Skip to content

Instantly share code, notes, and snippets.

@JSandusky
Created November 20, 2017 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JSandusky/724e684511397c22ccfe92f27524a707 to your computer and use it in GitHub Desktop.
Save JSandusky/724e684511397c22ccfe92f27524a707 to your computer and use it in GitHub Desktop.
Code generator for serialization code
// only included in case some of the ctx weirdness needs explanation
using System;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
namespace SprueKit.Data
{
// When we have a broken path have to have a means to fix it
public class SerializationBrokenPath
{
// target to fix
public object TargetObject { get; set; }
// unused, was going to be for differentiating parameterized Uris
public string LinkType { get; set; }
// the string name of the property has found in GetProperty().Name NOT as returned by the property helpers
public string TargetProperty { get; set; }
// The string form of the path that we tried to find it from
public string BrokenPath { get; set; }
// The file extension table, in dialog format "My File (*.txt)|*.txt"
public string ExtensionMask { get; set; }
public SerializationBrokenPath(object target, string property, string path, string type, string mask)
{
TargetObject = target;
TargetProperty = property;
BrokenPath = path;
LinkType = type;
ExtensionMask = mask;
}
/// <summary>
/// Shows a file dialog to select a replacement file
/// </summary>
public bool Fix(string path)
{
if (System.IO.File.Exists(path))
{
if (ExtensionMask == null || ExtensionMask.Contains(System.IO.Path.GetExtension(path)))
{
var property = TargetObject.GetType().GetProperty(TargetProperty);
if (property != null)
{
// Did this stuff ever work?
//object convertedValue = Convert.ChangeType(path, property.PropertyType);
//if (convertedValue != null)
{
property.SetValue(TargetObject, new Uri(path));// convertedValue));
return true;
}
}
}
}
return false;
}
}
// Manages the mapping of relative paths
// When saving absolute paths need to be converted into relative ones
// When loading relative paths have to be converted into absolute ones
public class SerializationContext
{
public Uri MapRelativeTo { get; set; }
public Uri GetRelativePath(Uri uri)
{
if (MapRelativeTo == null)
return uri;
if (uri != null)
{
if (uri.IsFile)
{
string path = uri.AbsolutePath;
var dirInfo = new DirectoryInfo(System.IO.Path.GetDirectoryName(path));
if (dirInfo.Exists && System.IO.File.Exists(path))
{
if (Settings.GeneralSettings.CorePaths.Contains(dirInfo.Name))
return new Uri(string.Format("{0}://{1}", dirInfo.Name, System.IO.Path.GetFileName(path)));
}
Uri settingsFolder = new IOCDependency<Settings.GeneralSettings>().Object.CheckUri_Save(uri);
if (settingsFolder != null)
return settingsFolder;
}
return MapRelativeTo.MakeRelativeUri(uri);
}
return null;
}
public string GetRelativePathString(Uri uri)
{
if (uri != null)
{
string retString = GetRelativePath(uri).ToString();
return StripTrailingSlash(retString);
}
return "";
}
static string StripTrailingSlash(string inStr)
{
if (inStr.EndsWith("/"))
return inStr.Substring(0, inStr.Length - 1);
return inStr;
}
public Uri GetAbsolutePath(Uri relativeUri, object owner, string property, string type, string mask)
{
if (MapRelativeTo == null)
return relativeUri;
if (relativeUri != null)
{
Uri ret = relativeUri;
if (!relativeUri.IsAbsoluteUri)
ret = new Uri(MapRelativeTo, relativeUri);
foreach (var corePath in Settings.GeneralSettings.CorePaths)
{
if (corePath.ToLowerInvariant().Equals(relativeUri.Scheme))
{
string trimmed = relativeUri.ToString().Replace(string.Format("{0}://", relativeUri.Scheme), "");
if (!string.IsNullOrEmpty(trimmed))
ret = new Uri(string.Format("{0}/{1}", App.ProgramPath(corePath), StripTrailingSlash(trimmed)));
}
}
Uri settingsFolder = new IOCDependency<Settings.GeneralSettings>().Object.CheckUri_Read(relativeUri);
if (settingsFolder != null)
ret = settingsFolder;
if (!System.IO.File.Exists(ret.AbsolutePath))
{
BrokenPaths.Add(new SerializationBrokenPath(owner, property, Uri.UnescapeDataString(ret.AbsolutePath), type, mask));
return null;
}
return ret;
}
return null;
}
public SerializationContext(Uri relativeFolder)
{
MapRelativeTo = relativeFolder;
}
// Must check this after deserialization to decide whether to show GUI for fixing bad paths
public ObservableCollection<SerializationBrokenPath> BrokenPaths { get; private set; } = new ObservableCollection<SerializationBrokenPath>();
}
}
using System;
using System.Text;
using System.Reflection;
using System.Xml;
using IntVector2 = PluginLib.IntVector2;
using IntVector4 = PluginLib.IntVector4;
using Color = Microsoft.Xna.Framework.Color;
using Vector2 = Microsoft.Xna.Framework.Vector2;
using Vector3 = Microsoft.Xna.Framework.Vector3;
using Vector4 = Microsoft.Xna.Framework.Vector4;
using Mat3x3 = PluginLib.Mat3x3;
using Matrix = Microsoft.Xna.Framework.Matrix;
using Quaternion = Microsoft.Xna.Framework.Quaternion;
using System.IO;
using System.Xml.Serialization;
namespace SprueKit.Util
{
/// <summary>
/// Generates all of the serialization code for graph nodes
/// </summary>
public class SerializationGenerator
{
/// <summary>
/// Main method, use this to dump serialization autogenerated code into a StringBuilder for a list of types
/// </summary>
public static void ProcessTypes(StringBuilder output, Type[] types)
{
foreach (var type in types)
ProcessType(output, type);
}
static void WritePropertyMethod(StringBuilder output, Type owningType, PropertyInfo propertyInfo, bool isWrite, bool isBinary)
{
string indent = " ";
if (propertyInfo.PropertyType == typeof(bool))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.ReadBoolean();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetBoolElement(\"{1}\");", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(int))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.ReadInt32();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetIntElement(\"{1}\");", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(uint))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.ReadUInt32();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetUIntElement(\"{1}\");", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(float))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.ReadSingle();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetFloatElement(\"{1}\");", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(double))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.ReadDouble();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = (double)thisElem.GetFloatElement(\"{1}\");", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(Color))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToColor();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(Vector2))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToVector2();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(Vector3))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToVector3();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(Vector4))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToVector4();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(Quaternion))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToQuaternion();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(IntVector2))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToIntVector2();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(IntVector4))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToIntVector4();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(Mat3x3))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToMat3x3();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(Matrix))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\").ToMatrix();", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType == typeof(string))
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write({1} ?? \"\");", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = strm.ReadString();", indent, propertyInfo.Name, owningType.Name));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = thisElem.GetStringElement(\"{1}\");", indent, propertyInfo.Name));
}
}
else if (propertyInfo.PropertyType.IsEnum)
{
if (isBinary)
{
if (isWrite)
output.AppendLine(string.Format("{0}strm.Write((int){1});", indent, propertyInfo.Name));
else
output.AppendLine(string.Format("{0}{1} = ({2})strm.ReadInt32();", indent, propertyInfo.Name, propertyInfo.PropertyType.FullName.Replace("+", ".")));
}
else
{
if (isWrite)
output.AppendLine(string.Format("{0}thisElem.AddStringElement(\"{1}\", {1}.ToString());", indent, propertyInfo.Name));
else
{
string enumName = propertyInfo.PropertyType.FullName.Replace("+", ".");
output.AppendLine(string.Format("{0}{1} = ({2})Enum.Parse(typeof({2}), thisElem.GetStringElement(\"{1}\"));", indent, propertyInfo.Name, enumName));
}
}
}
else if (propertyInfo.PropertyType == typeof(Uri))
{
var resourceTag = propertyInfo.GetCustomAttribute<PropertyData.ResourceTagAttribute>();
if (resourceTag == null)
throw new Exception(string.Format("FAILED TO FIND RESOURCE TAG ON URI: {0}.{1}", propertyInfo.DeclaringType.Name, propertyInfo.Name));
string maskString = "FileData.SprueModelMask";
switch (resourceTag.Type)
{
case PropertyData.ResourceTagType.ForeignModel:
maskString = "FileData.ModelFileMask";
break;
case PropertyData.ResourceTagType.RasterTexture:
maskString = "FileData.ImageFileMask";
break;
case PropertyData.ResourceTagType.SVGTexture:
maskString = "FileData.SVGFileMask";
break;
}
if (isBinary)
{
if (isWrite)
{
output.AppendLine(string.Format("{0}if ({1} != null && System.IO.File.Exists({1}.AbsolutePath)) {{", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0} strm.Write(true);", indent));
output.AppendLine(string.Format("{0} strm.Write(ctx.GetRelativePathString({1}));", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0}}} else strm.Write(false);", indent));
}
else
{
output.AppendLine(string.Format("{0}if (strm.ReadBoolean()) {{", indent));
output.AppendLine(string.Format("{0} Uri result = ctx.GetAbsolutePath(new Uri(strm.ReadString()), this, \"{2}\", \"{2}\", {3});", indent, propertyInfo.Name, owningType.Name, maskString));
output.AppendLine(string.Format("{0} if (result != null) {1} = result;", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0}}}", indent));
}
}
else
{
if (isWrite)
{
output.AppendLine(string.Format("{0}if ({1} != null && System.IO.File.Exists({1}.AbsolutePath))", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0} thisElem.AddStringElement(\"{1}\", ctx.GetRelativePathString({1}));", indent, propertyInfo.Name));
}
else
{
output.AppendLine(string.Format("{0}{{", indent));
output.AppendLine(string.Format("{0} string fileString = thisElem.GetStringElement(\"{1}\");", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0} Uri result = ctx.GetAbsolutePath(new Uri(thisElem.GetStringElement(\"{1}\")), this, \"{2}\", \"{2}\", {3});", indent, propertyInfo.Name, owningType.Name, maskString));
output.AppendLine(string.Format("{0} if (result != null) {1} = result;", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0}}}", indent));
}
}
}
else if (propertyInfo.PropertyType == typeof(Data.ForeignModel))
{
if (isBinary)
{
if (isWrite)
{
output.AppendLine(string.Format("{0}if ({1} != null && {1}.ModelFile != null) {{", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0} strm.Write(true);", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0} {1}.Write(ctx, strm);", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0}}} else strm.Write(false);", indent));
}
else
{
output.AppendLine(string.Format("{0}if (strm.ReadBoolean()) {{", indent));
output.AppendLine(string.Format("{0} {1}.Read(ctx, strm);", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0}}}", indent));
}
}
else
{
if (isWrite)
{
output.AppendLine(string.Format("{0}if ({1} != null && {1}.ModelFile != null) {{", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0} var mdl = thisElem.CreateChild(\"{1}\");", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0} {1}.Write(ctx, mdl);", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0}}}", indent));
}
else
{
output.AppendLine(string.Format("{0}{{ var mdlElem = thisElem.SelectSingleNode(\"{1}\") as XmlElement;", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0} if (mdlElem != null) {1}.Read(ctx, mdlElem);", indent, propertyInfo.Name));
output.AppendLine(string.Format("{0}}}", indent));
}
}
}
else if (propertyInfo.PropertyType == typeof(Data.ResponseCurve))
{
if (isBinary)
{
if (isWrite)
output.AppendFormat("{0}strm.Write({1});", indent, propertyInfo.Name);
else
output.AppendFormat("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name);
}
else
{
if (isWrite)
output.AppendFormat("{0}thisElem.AddStringElement(\"{1}\", {1}.ToString());", indent, propertyInfo.Name);
else
output.AppendFormat("{0}{1} = thisElem.GetStringElement(\"{1}\").ToResponseCurve();", indent, propertyInfo.Name);
}
}
else if (propertyInfo.PropertyType == typeof(Data.ColorCurves))
{
if (isBinary)
{
if (isWrite)
output.AppendFormat("{0}strm.Write({1});", indent, propertyInfo.Name);
else
output.AppendFormat("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name);
}
else
{
if (isWrite)
output.AppendFormat("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name);
else
output.AppendFormat("{0}{1} = thisElem.GetStringElement(\"{1}\").ToColorCurves();", indent, propertyInfo.Name);
}
}
else if (propertyInfo.PropertyType == typeof(Data.ColorRamp))
{
if (isBinary)
{
if (isWrite)
output.AppendFormat("{0}strm.Write({1});", indent, propertyInfo.Name);
else
output.AppendFormat("{0}{1} = strm.Read{2}();", indent, propertyInfo.Name, propertyInfo.PropertyType.Name);
}
else
{
if (isWrite)
output.AppendFormat("{0}thisElem.AddStringElement(\"{1}\", {1}.ToTightString());", indent, propertyInfo.Name);
else
output.AppendFormat("{0}{1} = thisElem.GetStringElement(\"{1}\").ToColorRamp();", indent, propertyInfo.Name);
}
}
else if (propertyInfo.PropertyType == typeof(Data.TextureMap))
{
throw new Exception("TextureMap was not expected to be serialized");
}
}
public static void ProcessType(StringBuilder output, Type type)
{
output.AppendLine(string.Format("namespace {0} {{", type.Namespace));
output.AppendLine(string.Format(" public partial class {0} {{", type.Name));
output.AppendLine(" public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem) {");
var properties = type.GetProperties();
foreach (var propertyInfo in properties)
{
if (propertyInfo.CanWrite && propertyInfo.GetCustomAttribute<XmlIgnoreAttribute>() == null)
WritePropertyMethod(output, type, propertyInfo, true, false);
}
if (typeof(Data.IPermutable).IsAssignableFrom(type))
output.AppendLine(" PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);");
output.AppendLine(" }"); // end SerializeProperties
output.AppendLine(" public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem) {");
foreach (var propertyInfo in properties)
{
if (propertyInfo.CanWrite && propertyInfo.GetCustomAttribute<XmlIgnoreAttribute>() == null)
WritePropertyMethod(output, type, propertyInfo, false, false);
}
if (typeof(Data.IPermutable).IsAssignableFrom(type))
output.AppendLine(" PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);");
output.AppendLine(" }"); // end DeserializeProperties
// Binary serialization
output.AppendLine(" public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm) {");
foreach (var propertyInfo in properties)
{
if (propertyInfo.CanWrite && propertyInfo.GetCustomAttribute<XmlIgnoreAttribute>() == null)
WritePropertyMethod(output, type, propertyInfo, true, true);
}
if (typeof(Data.IPermutable).IsAssignableFrom(type))
output.AppendLine(" PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);");
output.AppendLine(" }"); // end SerializeProperties
output.AppendLine(" public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm) {");
foreach (var propertyInfo in properties)
{
if (propertyInfo.CanWrite && propertyInfo.GetCustomAttribute<XmlIgnoreAttribute>() == null)
WritePropertyMethod(output, type, propertyInfo, false, true);
}
if (typeof(Data.IPermutable).IsAssignableFrom(type))
output.AppendLine(" PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);");
output.AppendLine(" }"); // end DeserializeProperties
// Clone method
output.AppendLine(" public override Data.Graph.GraphNode Clone() {");
output.AppendLine(string.Format(" {0} retVal = new {0}();", type.Name));
output.AppendLine(" CloneFields(retVal);");
output.AppendLine(" return retVal;");
output.AppendLine(" }"); // end Clone()
output.AppendLine(" protected override void CloneFields(Data.Graph.GraphNode into) {");
output.AppendLine(" base.CloneFields(into);");
output.AppendLine(string.Format(" {0} retVal = into as {0};", type.Name));
var fields = type.GetFields(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
foreach (var fieldInfo in fields)
{
// don't clone non-serialized fields
if (fieldInfo.GetCustomAttribute<NonSerializedAttribute>() != null)
continue;
//WARNING: explicit hacks
if (fieldInfo.FieldType == typeof(Data.ColorRamp) || fieldInfo.FieldType == typeof(Data.ColorCurves) || fieldInfo.FieldType == typeof(Data.ResponseCurve))
output.AppendLine(string.Format(" retVal.{0} = this.{0}.Clone();", fieldInfo.Name));
else if (!fieldInfo.IsSpecialName && !fieldInfo.Name.StartsWith("<"))
output.AppendLine(string.Format(" retVal.{0} = this.{0};", fieldInfo.Name));
}
//WARNING: more field cloning hacks and short circuits
if (typeof(Data.TexGen.CachingNode).IsAssignableFrom(type))
output.AppendLine(" retVal.cacheScale_ = this.cacheScale_;");
output.AppendLine(" }"); // end CloneFields
output.AppendLine(" }"); // end class
output.AppendLine("}"); // end namespace
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class FloatNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Value", Value.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Value = thisElem.GetFloatElement("Value");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Value);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Value = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
FloatNode retVal = new FloatNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
FloatNode retVal = into as FloatNode;
retVal.value_ = this.value_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ColorNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Color", Color.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Color = thisElem.GetStringElement("Color").ToColor();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Color);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Color = strm.ReadColor();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ColorNode retVal = new ColorNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ColorNode retVal = into as ColorNode;
retVal.color_ = this.color_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class TextureNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
thisElem.AddStringElement("Texture", ctx.GetRelativePathString(Texture));
thisElem.AddStringElement("BilinearFilter", BilinearFilter.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
string fileString = thisElem.GetStringElement("Texture");
Uri result = ctx.GetAbsolutePath(new Uri(thisElem.GetStringElement("Texture")), this, "TextureNode", "TextureNode", FileData.ImageFileMask);
if (result != null) Texture = result;
}
BilinearFilter = thisElem.GetBoolElement("BilinearFilter");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
{
strm.Write(true);
strm.Write(ctx.GetRelativePathString(Texture));
}
else strm.Write(false);
strm.Write(BilinearFilter);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
Uri result = ctx.GetAbsolutePath(new Uri(strm.ReadString()), this, "TextureNode", "TextureNode", FileData.ImageFileMask);
if (result != null) Texture = result;
}
BilinearFilter = strm.ReadBoolean();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
TextureNode retVal = new TextureNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
TextureNode retVal = into as TextureNode;
retVal.data_ = this.data_;
retVal.imageFile_ = this.imageFile_;
retVal.bilinearFilter_ = this.bilinearFilter_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class IDMapGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
thisElem.AddStringElement("Texture", ctx.GetRelativePathString(Texture));
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
string fileString = thisElem.GetStringElement("Texture");
Uri result = ctx.GetAbsolutePath(new Uri(thisElem.GetStringElement("Texture")), this, "IDMapGenerator", "IDMapGenerator", FileData.ImageFileMask);
if (result != null) Texture = result;
}
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
{
strm.Write(true);
strm.Write(ctx.GetRelativePathString(Texture));
}
else strm.Write(false);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
Uri result = ctx.GetAbsolutePath(new Uri(strm.ReadString()), this, "IDMapGenerator", "IDMapGenerator", FileData.ImageFileMask);
if (result != null) Texture = result;
}
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
IDMapGenerator retVal = new IDMapGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
IDMapGenerator retVal = into as IDMapGenerator;
retVal.data_ = this.data_;
retVal.colors_ = this.colors_;
retVal.imageFile_ = this.imageFile_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SVGNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Width", Width.ToString());
thisElem.AddStringElement("Height", Height.ToString());
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
thisElem.AddStringElement("Texture", ctx.GetRelativePathString(Texture));
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Width = thisElem.GetIntElement("Width");
Height = thisElem.GetIntElement("Height");
{
string fileString = thisElem.GetStringElement("Texture");
Uri result = ctx.GetAbsolutePath(new Uri(thisElem.GetStringElement("Texture")), this, "SVGNode", "SVGNode", FileData.SVGFileMask);
if (result != null) Texture = result;
}
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Width);
strm.Write(Height);
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
{
strm.Write(true);
strm.Write(ctx.GetRelativePathString(Texture));
}
else strm.Write(false);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Width = strm.ReadInt32();
Height = strm.ReadInt32();
if (strm.ReadBoolean())
{
Uri result = ctx.GetAbsolutePath(new Uri(strm.ReadString()), this, "SVGNode", "SVGNode", FileData.SVGFileMask);
if (result != null) Texture = result;
}
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SVGNode retVal = new SVGNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SVGNode retVal = into as SVGNode;
retVal.width_ = this.width_;
retVal.height_ = this.height_;
retVal.data_ = this.data_;
retVal.imageFile_ = this.imageFile_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class CombineNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
CombineNode retVal = new CombineNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
CombineNode retVal = into as CombineNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SplitNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SplitNode retVal = new SplitNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SplitNode retVal = into as SplitNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class AddNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
AddNode retVal = new AddNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
AddNode retVal = into as AddNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SubtractNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SubtractNode retVal = new SubtractNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SubtractNode retVal = into as SubtractNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class MultiplyNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
MultiplyNode retVal = new MultiplyNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
MultiplyNode retVal = into as MultiplyNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class DivideNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
DivideNode retVal = new DivideNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
DivideNode retVal = into as DivideNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class BricksGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("TileSize", TileSize.ToTightString());
thisElem.AddStringElement("RowOffset", RowOffset.ToString());
thisElem.AddStringElement("Gutter", Gutter.ToTightString());
thisElem.AddStringElement("PerturbPower", PerturbPower.ToTightString());
thisElem.AddStringElement("BlockColor", BlockColor.ToTightString());
thisElem.AddStringElement("GroutColor", GroutColor.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
TileSize = thisElem.GetStringElement("TileSize").ToVector2();
RowOffset = thisElem.GetFloatElement("RowOffset");
Gutter = thisElem.GetStringElement("Gutter").ToVector2();
PerturbPower = thisElem.GetStringElement("PerturbPower").ToVector2();
BlockColor = thisElem.GetStringElement("BlockColor").ToColor();
GroutColor = thisElem.GetStringElement("GroutColor").ToColor();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(TileSize);
strm.Write(RowOffset);
strm.Write(Gutter);
strm.Write(PerturbPower);
strm.Write(BlockColor);
strm.Write(GroutColor);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
TileSize = strm.ReadVector2();
RowOffset = strm.ReadSingle();
Gutter = strm.ReadVector2();
PerturbPower = strm.ReadVector2();
BlockColor = strm.ReadColor();
GroutColor = strm.ReadColor();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
BricksGenerator retVal = new BricksGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
BricksGenerator retVal = into as BricksGenerator;
retVal.tileSize_ = this.tileSize_;
retVal.rowOffset_ = this.rowOffset_;
retVal.gutter_ = this.gutter_;
retVal.perturbPower_ = this.perturbPower_;
retVal.blockColor_ = this.blockColor_;
retVal.groutColor_ = this.groutColor_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ChainGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("BackgroundColor", BackgroundColor.ToTightString());
thisElem.AddStringElement("CenterLinkColor", CenterLinkColor.ToTightString());
thisElem.AddStringElement("ConnectingLinkColor", ConnectingLinkColor.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
BackgroundColor = thisElem.GetStringElement("BackgroundColor").ToColor();
CenterLinkColor = thisElem.GetStringElement("CenterLinkColor").ToColor();
ConnectingLinkColor = thisElem.GetStringElement("ConnectingLinkColor").ToColor();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(BackgroundColor);
strm.Write(CenterLinkColor);
strm.Write(ConnectingLinkColor);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
BackgroundColor = strm.ReadColor();
CenterLinkColor = strm.ReadColor();
ConnectingLinkColor = strm.ReadColor();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ChainGenerator retVal = new ChainGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ChainGenerator retVal = into as ChainGenerator;
retVal.backgroundColor_ = this.backgroundColor_;
retVal.centerLinkColor_ = this.centerLinkColor_;
retVal.connectingLinkColor_ = this.connectingLinkColor_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ChainMailGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("BackgroundColor", BackgroundColor.ToTightString());
thisElem.AddStringElement("CenterLinkColor", CenterLinkColor.ToTightString());
thisElem.AddStringElement("ConnectingLinkColor", ConnectingLinkColor.ToTightString());
thisElem.AddStringElement("ChainSize", ChainSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
BackgroundColor = thisElem.GetStringElement("BackgroundColor").ToColor();
CenterLinkColor = thisElem.GetStringElement("CenterLinkColor").ToColor();
ConnectingLinkColor = thisElem.GetStringElement("ConnectingLinkColor").ToColor();
ChainSize = thisElem.GetStringElement("ChainSize").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(BackgroundColor);
strm.Write(CenterLinkColor);
strm.Write(ConnectingLinkColor);
strm.Write(ChainSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
BackgroundColor = strm.ReadColor();
CenterLinkColor = strm.ReadColor();
ConnectingLinkColor = strm.ReadColor();
ChainSize = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ChainMailGenerator retVal = new ChainMailGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ChainMailGenerator retVal = into as ChainMailGenerator;
retVal.backgroundColor_ = this.backgroundColor_;
retVal.centerLinkColor_ = this.centerLinkColor_;
retVal.connectingLinkColor_ = this.connectingLinkColor_;
retVal.chainSize_ = this.chainSize_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class CheckerGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("ColorA", ColorA.ToTightString());
thisElem.AddStringElement("ColorB", ColorB.ToTightString());
thisElem.AddStringElement("TileCount", TileCount.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
ColorA = thisElem.GetStringElement("ColorA").ToColor();
ColorB = thisElem.GetStringElement("ColorB").ToColor();
TileCount = thisElem.GetStringElement("TileCount").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(ColorA);
strm.Write(ColorB);
strm.Write(TileCount);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
ColorA = strm.ReadColor();
ColorB = strm.ReadColor();
TileCount = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
CheckerGenerator retVal = new CheckerGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
CheckerGenerator retVal = into as CheckerGenerator;
retVal.colorA_ = this.colorA_;
retVal.colorB_ = this.colorB_;
retVal.tileCount_ = this.tileCount_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class FBMNoiseGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Fractal", Fractal.ToString());
thisElem.AddStringElement("Gain", Gain.ToString());
thisElem.AddStringElement("Lacunarity", Lacunarity.ToString());
thisElem.AddStringElement("Octaves", Octaves.ToString());
thisElem.AddStringElement("Seed", Seed.ToString());
thisElem.AddStringElement("Inverted", Inverted.ToString());
thisElem.AddStringElement("Period", Period.ToTightString());
thisElem.AddStringElement("Interpolation", Interpolation.ToString());
thisElem.AddStringElement("Frequency", Frequency.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Fractal = (FastNoise.FractalType)Enum.Parse(typeof(FastNoise.FractalType), thisElem.GetStringElement("Fractal"));
Gain = thisElem.GetFloatElement("Gain");
Lacunarity = thisElem.GetFloatElement("Lacunarity");
Octaves = thisElem.GetIntElement("Octaves");
Seed = thisElem.GetIntElement("Seed");
Inverted = thisElem.GetBoolElement("Inverted");
Period = thisElem.GetStringElement("Period").ToVector2();
Interpolation = (FastNoise.Interp)Enum.Parse(typeof(FastNoise.Interp), thisElem.GetStringElement("Interpolation"));
Frequency = thisElem.GetFloatElement("Frequency");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write((int)Fractal);
strm.Write(Gain);
strm.Write(Lacunarity);
strm.Write(Octaves);
strm.Write(Seed);
strm.Write(Inverted);
strm.Write(Period);
strm.Write((int)Interpolation);
strm.Write(Frequency);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Fractal = (FastNoise.FractalType)strm.ReadInt32();
Gain = strm.ReadSingle();
Lacunarity = strm.ReadSingle();
Octaves = strm.ReadInt32();
Seed = strm.ReadInt32();
Inverted = strm.ReadBoolean();
Period = strm.ReadVector2();
Interpolation = (FastNoise.Interp)strm.ReadInt32();
Frequency = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
FBMNoiseGenerator retVal = new FBMNoiseGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
FBMNoiseGenerator retVal = into as FBMNoiseGenerator;
retVal.noise_ = this.noise_;
retVal.inverted_ = this.inverted_;
retVal.period_ = this.period_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class GradientGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Offset", Offset.ToTightString());
thisElem.AddStringElement("Start", Start.ToTightString());
thisElem.AddStringElement("End", End.ToTightString());
thisElem.AddStringElement("Length", Length.ToString());
thisElem.AddStringElement("Angle", Angle.ToString());
thisElem.AddStringElement("Type", Type.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Offset = thisElem.GetStringElement("Offset").ToVector2();
Start = thisElem.GetStringElement("Start").ToColor();
End = thisElem.GetStringElement("End").ToColor();
Length = thisElem.GetFloatElement("Length");
Angle = thisElem.GetFloatElement("Angle");
Type = (SprueKit.Data.TexGen.GradientGenerator.GradientType)Enum.Parse(typeof(SprueKit.Data.TexGen.GradientGenerator.GradientType), thisElem.GetStringElement("Type"));
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Offset);
strm.Write(Start);
strm.Write(End);
strm.Write(Length);
strm.Write(Angle);
strm.Write((int)Type);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Offset = strm.ReadVector2();
Start = strm.ReadColor();
End = strm.ReadColor();
Length = strm.ReadSingle();
Angle = strm.ReadSingle();
Type = (SprueKit.Data.TexGen.GradientGenerator.GradientType)strm.ReadInt32();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
GradientGenerator retVal = new GradientGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
GradientGenerator retVal = into as GradientGenerator;
retVal.offset_ = this.offset_;
retVal.start_ = this.start_;
retVal.end_ = this.end_;
retVal.length_ = this.length_;
retVal.angle_ = this.angle_;
retVal.gradientType_ = this.gradientType_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class PerlinNoiseGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Seed", Seed.ToString());
thisElem.AddStringElement("Inverted", Inverted.ToString());
thisElem.AddStringElement("Period", Period.ToTightString());
thisElem.AddStringElement("Interpolation", Interpolation.ToString());
thisElem.AddStringElement("Frequency", Frequency.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Seed = thisElem.GetIntElement("Seed");
Inverted = thisElem.GetBoolElement("Inverted");
Period = thisElem.GetStringElement("Period").ToVector2();
Interpolation = (FastNoise.Interp)Enum.Parse(typeof(FastNoise.Interp), thisElem.GetStringElement("Interpolation"));
Frequency = thisElem.GetFloatElement("Frequency");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Seed);
strm.Write(Inverted);
strm.Write(Period);
strm.Write((int)Interpolation);
strm.Write(Frequency);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Seed = strm.ReadInt32();
Inverted = strm.ReadBoolean();
Period = strm.ReadVector2();
Interpolation = (FastNoise.Interp)strm.ReadInt32();
Frequency = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
PerlinNoiseGenerator retVal = new PerlinNoiseGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
PerlinNoiseGenerator retVal = into as PerlinNoiseGenerator;
retVal.noise_ = this.noise_;
retVal.inverted_ = this.inverted_;
retVal.period_ = this.period_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class RowsGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("RowCount", RowCount.ToString());
thisElem.AddStringElement("PerturbationPower", PerturbationPower.ToString());
thisElem.AddStringElement("Vertical", Vertical.ToString());
thisElem.AddStringElement("AlternateDeadColumns", AlternateDeadColumns.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
RowCount = thisElem.GetIntElement("RowCount");
PerturbationPower = thisElem.GetFloatElement("PerturbationPower");
Vertical = thisElem.GetBoolElement("Vertical");
AlternateDeadColumns = thisElem.GetBoolElement("AlternateDeadColumns");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(RowCount);
strm.Write(PerturbationPower);
strm.Write(Vertical);
strm.Write(AlternateDeadColumns);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
RowCount = strm.ReadInt32();
PerturbationPower = strm.ReadSingle();
Vertical = strm.ReadBoolean();
AlternateDeadColumns = strm.ReadBoolean();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
RowsGenerator retVal = new RowsGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
RowsGenerator retVal = into as RowsGenerator;
retVal.rowCount_ = this.rowCount_;
retVal.perturbPower_ = this.perturbPower_;
retVal.vertical_ = this.vertical_;
retVal.alternateDeadColumns_ = this.alternateDeadColumns_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ScalesGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("EvenColor", EvenColor.ToTightString());
thisElem.AddStringElement("OddColor", OddColor.ToTightString());
thisElem.AddStringElement("ScaleSize", ScaleSize.ToTightString());
thisElem.AddStringElement("Matched", Matched.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
EvenColor = thisElem.GetStringElement("EvenColor").ToColor();
OddColor = thisElem.GetStringElement("OddColor").ToColor();
ScaleSize = thisElem.GetStringElement("ScaleSize").ToVector2();
Matched = thisElem.GetBoolElement("Matched");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(EvenColor);
strm.Write(OddColor);
strm.Write(ScaleSize);
strm.Write(Matched);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
EvenColor = strm.ReadColor();
OddColor = strm.ReadColor();
ScaleSize = strm.ReadVector2();
Matched = strm.ReadBoolean();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ScalesGenerator retVal = new ScalesGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ScalesGenerator retVal = into as ScalesGenerator;
retVal.evenColor_ = this.evenColor_;
retVal.oddColor_ = this.oddColor_;
retVal.scaleSize_ = this.scaleSize_;
retVal.matched_ = this.matched_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ScratchesGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Seed", Seed.ToString());
thisElem.AddStringElement("Density", Density.ToString());
thisElem.AddStringElement("Length", Length.ToString());
thisElem.AddStringElement("Inverted", Inverted.ToString());
thisElem.AddStringElement("FadeOff", FadeOff.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Seed = thisElem.GetIntElement("Seed");
Density = thisElem.GetIntElement("Density");
Length = thisElem.GetFloatElement("Length");
Inverted = thisElem.GetBoolElement("Inverted");
FadeOff = thisElem.GetBoolElement("FadeOff");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Seed);
strm.Write(Density);
strm.Write(Length);
strm.Write(Inverted);
strm.Write(FadeOff);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Seed = strm.ReadInt32();
Density = strm.ReadInt32();
Length = strm.ReadSingle();
Inverted = strm.ReadBoolean();
FadeOff = strm.ReadBoolean();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ScratchesGenerator retVal = new ScratchesGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ScratchesGenerator retVal = into as ScratchesGenerator;
retVal.noise_ = this.noise_;
retVal.density_ = this.density_;
retVal.length_ = this.length_;
retVal.inverted_ = this.inverted_;
retVal.fadeOff_ = this.fadeOff_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class TextureFunction2D
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Offset", Offset.ToTightString());
thisElem.AddStringElement("Perturb", Perturb.ToTightString());
thisElem.AddStringElement("Period", Period.ToTightString());
thisElem.AddStringElement("XFunction", XFunction.ToString());
thisElem.AddStringElement("YFunction", YFunction.ToString());
thisElem.AddStringElement("DiagonalFunction", DiagonalFunction.ToString());
thisElem.AddStringElement("Mix", Mix.ToString());
thisElem.AddStringElement("DiagonalMix", DiagonalMix.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Offset = thisElem.GetStringElement("Offset").ToVector2();
Perturb = thisElem.GetStringElement("Perturb").ToVector3();
Period = thisElem.GetStringElement("Period").ToVector2();
XFunction = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction)Enum.Parse(typeof(SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction), thisElem.GetStringElement("XFunction"));
YFunction = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction)Enum.Parse(typeof(SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction), thisElem.GetStringElement("YFunction"));
DiagonalFunction = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction)Enum.Parse(typeof(SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction), thisElem.GetStringElement("DiagonalFunction"));
Mix = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionMix)Enum.Parse(typeof(SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionMix), thisElem.GetStringElement("Mix"));
DiagonalMix = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionMix)Enum.Parse(typeof(SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionMix), thisElem.GetStringElement("DiagonalMix"));
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Offset);
strm.Write(Perturb);
strm.Write(Period);
strm.Write((int)XFunction);
strm.Write((int)YFunction);
strm.Write((int)DiagonalFunction);
strm.Write((int)Mix);
strm.Write((int)DiagonalMix);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Offset = strm.ReadVector2();
Perturb = strm.ReadVector3();
Period = strm.ReadVector2();
XFunction = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction)strm.ReadInt32();
YFunction = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction)strm.ReadInt32();
DiagonalFunction = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionFunction)strm.ReadInt32();
Mix = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionMix)strm.ReadInt32();
DiagonalMix = (SprueKit.Data.TexGen.TextureFunction2D.TextureFunctionMix)strm.ReadInt32();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
TextureFunction2D retVal = new TextureFunction2D();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
TextureFunction2D retVal = into as TextureFunction2D;
retVal.xFunc_ = this.xFunc_;
retVal.yFunc_ = this.yFunc_;
retVal.diagFunc_ = this.diagFunc_;
retVal.mix_ = this.mix_;
retVal.diagMix_ = this.diagMix_;
retVal.pertrub_ = this.pertrub_;
retVal.period_ = this.period_;
retVal.offset_ = this.offset_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class WeaveGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("UnderRun", UnderRun.ToString());
thisElem.AddStringElement("OverRun", OverRun.ToString());
thisElem.AddStringElement("Skip", Skip.ToString());
thisElem.AddStringElement("WarpWidth", WarpWidth.ToString());
thisElem.AddStringElement("WeftWidth", WeftWidth.ToString());
thisElem.AddStringElement("WarpColor", WarpColor.ToTightString());
thisElem.AddStringElement("WeftColor", WeftColor.ToTightString());
thisElem.AddStringElement("BaseColor", BaseColor.ToTightString());
thisElem.AddStringElement("Tiling", Tiling.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
UnderRun = thisElem.GetIntElement("UnderRun");
OverRun = thisElem.GetIntElement("OverRun");
Skip = thisElem.GetIntElement("Skip");
WarpWidth = thisElem.GetFloatElement("WarpWidth");
WeftWidth = thisElem.GetFloatElement("WeftWidth");
WarpColor = thisElem.GetStringElement("WarpColor").ToColor();
WeftColor = thisElem.GetStringElement("WeftColor").ToColor();
BaseColor = thisElem.GetStringElement("BaseColor").ToColor();
Tiling = thisElem.GetStringElement("Tiling").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(UnderRun);
strm.Write(OverRun);
strm.Write(Skip);
strm.Write(WarpWidth);
strm.Write(WeftWidth);
strm.Write(WarpColor);
strm.Write(WeftColor);
strm.Write(BaseColor);
strm.Write(Tiling);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
UnderRun = strm.ReadInt32();
OverRun = strm.ReadInt32();
Skip = strm.ReadInt32();
WarpWidth = strm.ReadSingle();
WeftWidth = strm.ReadSingle();
WarpColor = strm.ReadColor();
WeftColor = strm.ReadColor();
BaseColor = strm.ReadColor();
Tiling = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
WeaveGenerator retVal = new WeaveGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
WeaveGenerator retVal = into as WeaveGenerator;
retVal.underrun_ = this.underrun_;
retVal.overrun_ = this.overrun_;
retVal.skip_ = this.skip_;
retVal.warpWidth_ = this.warpWidth_;
retVal.weftWidth_ = this.weftWidth_;
retVal.warpColor_ = this.warpColor_;
retVal.weftColor_ = this.weftColor_;
retVal.baseColor_ = this.baseColor_;
retVal.tiling_ = this.tiling_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class VoronoiGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Function", Function.ToString());
thisElem.AddStringElement("CellType", CellType.ToString());
thisElem.AddStringElement("KnockOutMode", KnockOutMode.ToString());
thisElem.AddStringElement("Seed", Seed.ToString());
thisElem.AddStringElement("Inverted", Inverted.ToString());
thisElem.AddStringElement("Period", Period.ToTightString());
thisElem.AddStringElement("Interpolation", Interpolation.ToString());
thisElem.AddStringElement("Frequency", Frequency.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Function = (FastNoise.CellularDistanceFunction)Enum.Parse(typeof(FastNoise.CellularDistanceFunction), thisElem.GetStringElement("Function"));
CellType = (FastNoise.CellularReturnType)Enum.Parse(typeof(FastNoise.CellularReturnType), thisElem.GetStringElement("CellType"));
KnockOutMode = thisElem.GetBoolElement("KnockOutMode");
Seed = thisElem.GetIntElement("Seed");
Inverted = thisElem.GetBoolElement("Inverted");
Period = thisElem.GetStringElement("Period").ToVector2();
Interpolation = (FastNoise.Interp)Enum.Parse(typeof(FastNoise.Interp), thisElem.GetStringElement("Interpolation"));
Frequency = thisElem.GetFloatElement("Frequency");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write((int)Function);
strm.Write((int)CellType);
strm.Write(KnockOutMode);
strm.Write(Seed);
strm.Write(Inverted);
strm.Write(Period);
strm.Write((int)Interpolation);
strm.Write(Frequency);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Function = (FastNoise.CellularDistanceFunction)strm.ReadInt32();
CellType = (FastNoise.CellularReturnType)strm.ReadInt32();
KnockOutMode = strm.ReadBoolean();
Seed = strm.ReadInt32();
Inverted = strm.ReadBoolean();
Period = strm.ReadVector2();
Interpolation = (FastNoise.Interp)strm.ReadInt32();
Frequency = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
VoronoiGenerator retVal = new VoronoiGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
VoronoiGenerator retVal = into as VoronoiGenerator;
retVal.knockOutMode_ = this.knockOutMode_;
retVal.noise_ = this.noise_;
retVal.inverted_ = this.inverted_;
retVal.period_ = this.period_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class WhiteNoiseGenerator
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Seed", Seed.ToString());
thisElem.AddStringElement("Inverted", Inverted.ToString());
thisElem.AddStringElement("Period", Period.ToTightString());
thisElem.AddStringElement("Interpolation", Interpolation.ToString());
thisElem.AddStringElement("Frequency", Frequency.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Seed = thisElem.GetIntElement("Seed");
Inverted = thisElem.GetBoolElement("Inverted");
Period = thisElem.GetStringElement("Period").ToVector2();
Interpolation = (FastNoise.Interp)Enum.Parse(typeof(FastNoise.Interp), thisElem.GetStringElement("Interpolation"));
Frequency = thisElem.GetFloatElement("Frequency");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Seed);
strm.Write(Inverted);
strm.Write(Period);
strm.Write((int)Interpolation);
strm.Write(Frequency);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Seed = strm.ReadInt32();
Inverted = strm.ReadBoolean();
Period = strm.ReadVector2();
Interpolation = (FastNoise.Interp)strm.ReadInt32();
Frequency = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
WhiteNoiseGenerator retVal = new WhiteNoiseGenerator();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
WhiteNoiseGenerator retVal = into as WhiteNoiseGenerator;
retVal.noise_ = this.noise_;
retVal.inverted_ = this.inverted_;
retVal.period_ = this.period_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class AverageRGBNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
AverageRGBNode retVal = new AverageRGBNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
AverageRGBNode retVal = into as AverageRGBNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class BinarizeNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Cutoff", Cutoff.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Cutoff = thisElem.GetFloatElement("Cutoff");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Cutoff);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Cutoff = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
BinarizeNode retVal = new BinarizeNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
BinarizeNode retVal = into as BinarizeNode;
retVal.cutoff_ = this.cutoff_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ContrastNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Power", Power.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Power = thisElem.GetFloatElement("Power");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Power);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Power = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ContrastNode retVal = new ContrastNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ContrastNode retVal = into as ContrastNode;
retVal.power_ = this.power_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class BrightnessNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Power", Power.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Power = thisElem.GetFloatElement("Power");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Power);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Power = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
BrightnessNode retVal = new BrightnessNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
BrightnessNode retVal = into as BrightnessNode;
retVal.power_ = this.power_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class BrightnessRGBNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
BrightnessRGBNode retVal = new BrightnessRGBNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
BrightnessRGBNode retVal = into as BrightnessRGBNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class CurveTextureModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Curves", Curves.ToTightString()); thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Curves = thisElem.GetStringElement("Curves").ToColorCurves(); Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Curves); strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Curves = strm.ReadColorCurves(); Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
CurveTextureModifier retVal = new CurveTextureModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
CurveTextureModifier retVal = into as CurveTextureModifier;
retVal.curves_ = this.curves_.Clone();
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class GradientRampTextureModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Ramp", Ramp.ToTightString()); thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Ramp = thisElem.GetStringElement("Ramp").ToColorRamp(); Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Ramp); strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Ramp = strm.ReadColorRamp(); Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
GradientRampTextureModifier retVal = new GradientRampTextureModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
GradientRampTextureModifier retVal = into as GradientRampTextureModifier;
retVal.ramp_ = this.ramp_.Clone();
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class LevelsFilterNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("LowerBound", LowerBound.ToString());
thisElem.AddStringElement("UpperBound", UpperBound.ToString());
thisElem.AddStringElement("PivotFraction", PivotFraction.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
LowerBound = thisElem.GetFloatElement("LowerBound");
UpperBound = thisElem.GetFloatElement("UpperBound");
PivotFraction = thisElem.GetFloatElement("PivotFraction");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(LowerBound);
strm.Write(UpperBound);
strm.Write(PivotFraction);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
LowerBound = strm.ReadSingle();
UpperBound = strm.ReadSingle();
PivotFraction = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
LevelsFilterNode retVal = new LevelsFilterNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
LevelsFilterNode retVal = into as LevelsFilterNode;
retVal.lowerBound_ = this.lowerBound_;
retVal.pivotFraction_ = this.pivotFraction_;
retVal.upperBound_ = this.upperBound_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ReplaceColorModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Replace", Replace.ToTightString());
thisElem.AddStringElement("With", With.ToTightString());
thisElem.AddStringElement("Tolerance", Tolerance.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Replace = thisElem.GetStringElement("Replace").ToColor();
With = thisElem.GetStringElement("With").ToColor();
Tolerance = thisElem.GetFloatElement("Tolerance");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Replace);
strm.Write(With);
strm.Write(Tolerance);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Replace = strm.ReadColor();
With = strm.ReadColor();
Tolerance = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ReplaceColorModifier retVal = new ReplaceColorModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ReplaceColorModifier retVal = into as ReplaceColorModifier;
retVal.replace_ = this.replace_;
retVal.with_ = this.with_;
retVal.tolerance_ = this.tolerance_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SelectColorModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Select", Select.ToTightString());
thisElem.AddStringElement("Tolerance", Tolerance.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Select = thisElem.GetStringElement("Select").ToColor();
Tolerance = thisElem.GetFloatElement("Tolerance");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Select);
strm.Write(Tolerance);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Select = strm.ReadColor();
Tolerance = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SelectColorModifier retVal = new SelectColorModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SelectColorModifier retVal = into as SelectColorModifier;
retVal.select_ = this.select_;
retVal.tolerance_ = this.tolerance_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class FromGammaNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
FromGammaNode retVal = new FromGammaNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
FromGammaNode retVal = into as FromGammaNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ToGammaNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ToGammaNode retVal = new ToGammaNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ToGammaNode retVal = into as ToGammaNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class CosNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
CosNode retVal = new CosNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
CosNode retVal = into as CosNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ACosNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ACosNode retVal = new ACosNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ACosNode retVal = into as ACosNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SinNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SinNode retVal = new SinNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SinNode retVal = into as SinNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ASinNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ASinNode retVal = new ASinNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ASinNode retVal = into as ASinNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class TanNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
TanNode retVal = new TanNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
TanNode retVal = into as TanNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ATanNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ATanNode retVal = new ATanNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ATanNode retVal = into as ATanNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class Clamp01Node
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
Clamp01Node retVal = new Clamp01Node();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
Clamp01Node retVal = into as Clamp01Node;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ExpNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ExpNode retVal = new ExpNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ExpNode retVal = into as ExpNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class MaxRGBNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
MaxRGBNode retVal = new MaxRGBNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
MaxRGBNode retVal = into as MaxRGBNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class MinRGBNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
MinRGBNode retVal = new MinRGBNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
MinRGBNode retVal = into as MinRGBNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class PowNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
PowNode retVal = new PowNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
PowNode retVal = into as PowNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SqrtNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SqrtNode retVal = new SqrtNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SqrtNode retVal = into as SqrtNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class FromNormalizedRangeNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Range", Range.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Range = thisElem.GetStringElement("Range").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Range);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Range = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
FromNormalizedRangeNode retVal = new FromNormalizedRangeNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
FromNormalizedRangeNode retVal = into as FromNormalizedRangeNode;
retVal.range_ = this.range_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ToNormalizedRangeNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Range", Range.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Range = thisElem.GetStringElement("Range").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Range);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Range = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ToNormalizedRangeNode retVal = new ToNormalizedRangeNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ToNormalizedRangeNode retVal = into as ToNormalizedRangeNode;
retVal.range_ = this.range_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class AnisotropicBlur
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("EdgeCurve", EdgeCurve.ToString()); thisElem.AddStringElement("SobelEdgeStep", SobelEdgeStep.ToString());
thisElem.AddStringElement("BlurRadius", BlurRadius.ToString());
thisElem.AddStringElement("BlurStepSize", BlurStepSize.ToString());
thisElem.AddStringElement("Sigma", Sigma.ToString());
thisElem.AddStringElement("CacheScale", CacheScale.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
EdgeCurve = thisElem.GetStringElement("EdgeCurve").ToResponseCurve(); SobelEdgeStep = thisElem.GetFloatElement("SobelEdgeStep");
BlurRadius = thisElem.GetIntElement("BlurRadius");
BlurStepSize = thisElem.GetFloatElement("BlurStepSize");
Sigma = thisElem.GetFloatElement("Sigma");
CacheScale = thisElem.GetStringElement("CacheScale").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(EdgeCurve); strm.Write(SobelEdgeStep);
strm.Write(BlurRadius);
strm.Write(BlurStepSize);
strm.Write(Sigma);
strm.Write(CacheScale);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
EdgeCurve = strm.ReadResponseCurve(); SobelEdgeStep = strm.ReadSingle();
BlurRadius = strm.ReadInt32();
BlurStepSize = strm.ReadSingle();
Sigma = strm.ReadSingle();
CacheScale = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
AnisotropicBlur retVal = new AnisotropicBlur();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
AnisotropicBlur retVal = into as AnisotropicBlur;
retVal.edgeCurve_ = this.edgeCurve_.Clone();
retVal.sobelEdge_ = this.sobelEdge_;
retVal.cacheScale_ = this.cacheScale_;
retVal.lastExecutionContext = this.lastExecutionContext;
retVal.cacheScale_ = this.cacheScale_;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class BlurModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("BlurRadius", BlurRadius.ToString());
thisElem.AddStringElement("BlurStepSize", BlurStepSize.ToString());
thisElem.AddStringElement("Sigma", Sigma.ToString());
thisElem.AddStringElement("CacheScale", CacheScale.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
BlurRadius = thisElem.GetIntElement("BlurRadius");
BlurStepSize = thisElem.GetFloatElement("BlurStepSize");
Sigma = thisElem.GetFloatElement("Sigma");
CacheScale = thisElem.GetStringElement("CacheScale").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(BlurRadius);
strm.Write(BlurStepSize);
strm.Write(Sigma);
strm.Write(CacheScale);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
BlurRadius = strm.ReadInt32();
BlurStepSize = strm.ReadSingle();
Sigma = strm.ReadSingle();
CacheScale = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
BlurModifier retVal = new BlurModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
BlurModifier retVal = into as BlurModifier;
retVal.kernel = this.kernel;
retVal.blurRadius_ = this.blurRadius_;
retVal.blurStepSize_ = this.blurStepSize_;
retVal.sigma_ = this.sigma_;
retVal.cacheScale_ = this.cacheScale_;
retVal.lastExecutionContext = this.lastExecutionContext;
retVal.cacheScale_ = this.cacheScale_;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ClipTextureModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("ClipAlpha", ClipAlpha.ToString());
thisElem.AddStringElement("Range", Range.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
ClipAlpha = thisElem.GetBoolElement("ClipAlpha");
Range = thisElem.GetStringElement("Range").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(ClipAlpha);
strm.Write(Range);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
ClipAlpha = strm.ReadBoolean();
Range = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ClipTextureModifier retVal = new ClipTextureModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ClipTextureModifier retVal = into as ClipTextureModifier;
retVal.range_ = this.range_;
retVal.clipAlpha_ = this.clipAlpha_;
retVal.hasMin = this.hasMin;
retVal.hasMax = this.hasMax;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ConvolutionFilter
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Kernel", Kernel.ToTightString());
thisElem.AddStringElement("StepSize", StepSize.ToString());
thisElem.AddStringElement("CacheScale", CacheScale.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Kernel = thisElem.GetStringElement("Kernel").ToMat3x3();
StepSize = thisElem.GetFloatElement("StepSize");
CacheScale = thisElem.GetStringElement("CacheScale").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Kernel);
strm.Write(StepSize);
strm.Write(CacheScale);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Kernel = strm.ReadMat3x3();
StepSize = strm.ReadSingle();
CacheScale = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ConvolutionFilter retVal = new ConvolutionFilter();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ConvolutionFilter retVal = into as ConvolutionFilter;
retVal.kernel_ = this.kernel_;
retVal.stepSize_ = this.stepSize_;
retVal.cacheScale_ = this.cacheScale_;
retVal.lastExecutionContext = this.lastExecutionContext;
retVal.cacheScale_ = this.cacheScale_;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class DivModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Fraction", Fraction.ToString());
thisElem.AddStringElement("Vertical", Vertical.ToString());
thisElem.AddStringElement("NormalizeCoordinates", NormalizeCoordinates.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Fraction = thisElem.GetFloatElement("Fraction");
Vertical = thisElem.GetBoolElement("Vertical");
NormalizeCoordinates = thisElem.GetBoolElement("NormalizeCoordinates");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Fraction);
strm.Write(Vertical);
strm.Write(NormalizeCoordinates);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Fraction = strm.ReadSingle();
Vertical = strm.ReadBoolean();
NormalizeCoordinates = strm.ReadBoolean();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
DivModifier retVal = new DivModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
DivModifier retVal = into as DivModifier;
retVal.fraction_ = this.fraction_;
retVal.vertical_ = this.vertical_;
retVal.normalizeCoordinates_ = this.normalizeCoordinates_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class EmbossModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Angle", Angle.ToString());
thisElem.AddStringElement("StepSize", StepSize.ToString());
thisElem.AddStringElement("Bias", Bias.ToString());
thisElem.AddStringElement("Power", Power.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Angle = thisElem.GetFloatElement("Angle");
StepSize = thisElem.GetFloatElement("StepSize");
Bias = thisElem.GetFloatElement("Bias");
Power = thisElem.GetFloatElement("Power");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Angle);
strm.Write(StepSize);
strm.Write(Bias);
strm.Write(Power);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Angle = strm.ReadSingle();
StepSize = strm.ReadSingle();
Bias = strm.ReadSingle();
Power = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
EmbossModifier retVal = new EmbossModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
EmbossModifier retVal = into as EmbossModifier;
retVal.angle_ = this.angle_;
retVal.stepSize_ = this.stepSize_;
retVal.bias_ = this.bias_;
retVal.power_ = this.power_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ErosionModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Iterations", Iterations.ToString());
thisElem.AddStringElement("Intensity", Intensity.ToString());
thisElem.AddStringElement("StepSize", StepSize.ToString());
thisElem.AddStringElement("Talus", Talus.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Iterations = thisElem.GetIntElement("Iterations");
Intensity = thisElem.GetFloatElement("Intensity");
StepSize = thisElem.GetFloatElement("StepSize");
Talus = thisElem.GetFloatElement("Talus");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Iterations);
strm.Write(Intensity);
strm.Write(StepSize);
strm.Write(Talus);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Iterations = strm.ReadInt32();
Intensity = strm.ReadSingle();
StepSize = strm.ReadSingle();
Talus = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ErosionModifier retVal = new ErosionModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ErosionModifier retVal = into as ErosionModifier;
retVal.iterations_ = this.iterations_;
retVal.intensity_ = this.intensity_;
retVal.stepSize_ = this.stepSize_;
retVal.talus_ = this.talus_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class InvertTextureModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
InvertTextureModifier retVal = new InvertTextureModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
InvertTextureModifier retVal = into as InvertTextureModifier;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class PosterizeModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Range", Range.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Range = thisElem.GetIntElement("Range");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Range);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Range = strm.ReadInt32();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
PosterizeModifier retVal = new PosterizeModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
PosterizeModifier retVal = into as PosterizeModifier;
retVal.range_ = this.range_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SharpenFilter
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Power", Power.ToString());
thisElem.AddStringElement("StepSize", StepSize.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Power = thisElem.GetFloatElement("Power");
StepSize = thisElem.GetFloatElement("StepSize");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Power);
strm.Write(StepSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Power = strm.ReadSingle();
StepSize = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SharpenFilter retVal = new SharpenFilter();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SharpenFilter retVal = into as SharpenFilter;
retVal.power_ = this.power_;
retVal.stepSize_ = this.stepSize_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SobelTextureModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("StepSize", StepSize.ToString());
thisElem.AddStringElement("CacheScale", CacheScale.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
StepSize = thisElem.GetFloatElement("StepSize");
CacheScale = thisElem.GetStringElement("CacheScale").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(StepSize);
strm.Write(CacheScale);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
StepSize = strm.ReadSingle();
CacheScale = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SobelTextureModifier retVal = new SobelTextureModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SobelTextureModifier retVal = into as SobelTextureModifier;
retVal.stepSize_ = this.stepSize_;
retVal.cacheScale_ = this.cacheScale_;
retVal.lastExecutionContext = this.lastExecutionContext;
retVal.cacheScale_ = this.cacheScale_;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SolarizeTextureModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Threshold", Threshold.ToString());
thisElem.AddStringElement("InvertLower", InvertLower.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Threshold = thisElem.GetFloatElement("Threshold");
InvertLower = thisElem.GetBoolElement("InvertLower");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Threshold);
strm.Write(InvertLower);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Threshold = strm.ReadSingle();
InvertLower = strm.ReadBoolean();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SolarizeTextureModifier retVal = new SolarizeTextureModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SolarizeTextureModifier retVal = into as SolarizeTextureModifier;
retVal.threshold_ = this.threshold_;
retVal.invertLower_ = this.invertLower_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class StreakModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("StreakAngle", StreakAngle.ToString());
thisElem.AddStringElement("StreakLength", StreakLength.ToString());
thisElem.AddStringElement("Samples", Samples.ToString());
thisElem.AddStringElement("CacheScale", CacheScale.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
StreakAngle = thisElem.GetFloatElement("StreakAngle");
StreakLength = thisElem.GetFloatElement("StreakLength");
Samples = thisElem.GetIntElement("Samples");
CacheScale = thisElem.GetStringElement("CacheScale").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(StreakAngle);
strm.Write(StreakLength);
strm.Write(Samples);
strm.Write(CacheScale);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
StreakAngle = strm.ReadSingle();
StreakLength = strm.ReadSingle();
Samples = strm.ReadInt32();
CacheScale = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
StreakModifier retVal = new StreakModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
StreakModifier retVal = into as StreakModifier;
retVal.streakAngle_ = this.streakAngle_;
retVal.streakLength_ = this.streakLength_;
retVal.samples_ = this.samples_;
retVal.fadeOff_ = this.fadeOff_;
retVal.cacheScale_ = this.cacheScale_;
retVal.lastExecutionContext = this.lastExecutionContext;
retVal.cacheScale_ = this.cacheScale_;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class TransformModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Transform", Transform.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Transform = thisElem.GetStringElement("Transform").ToMat3x3();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Transform);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Transform = strm.ReadMat3x3();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
TransformModifier retVal = new TransformModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
TransformModifier retVal = into as TransformModifier;
retVal.transform_ = this.transform_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SimpleTransformModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Offset", Offset.ToTightString());
thisElem.AddStringElement("Scale", Scale.ToTightString());
thisElem.AddStringElement("Rotation", Rotation.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Offset = thisElem.GetStringElement("Offset").ToVector2();
Scale = thisElem.GetStringElement("Scale").ToVector2();
Rotation = thisElem.GetFloatElement("Rotation");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Offset);
strm.Write(Scale);
strm.Write(Rotation);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Offset = strm.ReadVector2();
Scale = strm.ReadVector2();
Rotation = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SimpleTransformModifier retVal = new SimpleTransformModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SimpleTransformModifier retVal = into as SimpleTransformModifier;
retVal.offset_ = this.offset_;
retVal.rotation_ = this.rotation_;
retVal.scale_ = this.scale_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SplatMapNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SplatMapNode retVal = new SplatMapNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SplatMapNode retVal = into as SplatMapNode;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class TrimModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("LeftTrimSize", LeftTrimSize.ToString());
thisElem.AddStringElement("RightTrimSize", RightTrimSize.ToString());
thisElem.AddStringElement("Vertical", Vertical.ToString());
thisElem.AddStringElement("NormalizeCoordinates", NormalizeCoordinates.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
LeftTrimSize = thisElem.GetFloatElement("LeftTrimSize");
RightTrimSize = thisElem.GetFloatElement("RightTrimSize");
Vertical = thisElem.GetBoolElement("Vertical");
NormalizeCoordinates = thisElem.GetBoolElement("NormalizeCoordinates");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(LeftTrimSize);
strm.Write(RightTrimSize);
strm.Write(Vertical);
strm.Write(NormalizeCoordinates);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
LeftTrimSize = strm.ReadSingle();
RightTrimSize = strm.ReadSingle();
Vertical = strm.ReadBoolean();
NormalizeCoordinates = strm.ReadBoolean();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
TrimModifier retVal = new TrimModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
TrimModifier retVal = into as TrimModifier;
retVal.leftTrimSize_ = this.leftTrimSize_;
retVal.rightTrimSize_ = this.rightTrimSize_;
retVal.vertical_ = this.vertical_;
retVal.normalizeCoordinates_ = this.normalizeCoordinates_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class TileModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Tiling", Tiling.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Tiling = thisElem.GetStringElement("Tiling").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Tiling);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Tiling = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
TileModifier retVal = new TileModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
TileModifier retVal = into as TileModifier;
retVal.tiling_ = this.tiling_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class WarpModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Intensity", Intensity.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Intensity = thisElem.GetStringElement("Intensity").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Intensity);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Intensity = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
WarpModifier retVal = new WarpModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
WarpModifier retVal = into as WarpModifier;
retVal.intensity_ = this.intensity_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class CartesianToPolarModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
CartesianToPolarModifier retVal = new CartesianToPolarModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
CartesianToPolarModifier retVal = into as CartesianToPolarModifier;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class PolarToCartesianModifier
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
PolarToCartesianModifier retVal = new PolarToCartesianModifier();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
PolarToCartesianModifier retVal = into as PolarToCartesianModifier;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class AmbientOcclusionBaker
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
AmbientOcclusionBaker retVal = new AmbientOcclusionBaker();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
AmbientOcclusionBaker retVal = into as AmbientOcclusionBaker;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class CurvatureBaker
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
CurvatureBaker retVal = new CurvatureBaker();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
CurvatureBaker retVal = into as CurvatureBaker;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class DominantPlaneBaker
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
DominantPlaneBaker retVal = new DominantPlaneBaker();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
DominantPlaneBaker retVal = into as DominantPlaneBaker;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class FacetBaker
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
FacetBaker retVal = new FacetBaker();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
FacetBaker retVal = into as FacetBaker;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ModelSpaceNormalBaker
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ModelSpaceNormalBaker retVal = new ModelSpaceNormalBaker();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ModelSpaceNormalBaker retVal = into as ModelSpaceNormalBaker;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ModelSpacePositionBaker
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ModelSpacePositionBaker retVal = new ModelSpacePositionBaker();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ModelSpacePositionBaker retVal = into as ModelSpacePositionBaker;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class TriplanarTextureBaker
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("TriplanarSampling", TriplanarSampling.ToString());
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
thisElem.AddStringElement("Texture", ctx.GetRelativePathString(Texture));
thisElem.AddStringElement("Tiling", Tiling.ToTightString());
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
TriplanarSampling = thisElem.GetBoolElement("TriplanarSampling");
{
string fileString = thisElem.GetStringElement("Texture");
Uri result = ctx.GetAbsolutePath(new Uri(thisElem.GetStringElement("Texture")), this, "TriplanarTextureBaker", "TriplanarTextureBaker", FileData.ImageFileMask);
if (result != null) Texture = result;
}
Tiling = thisElem.GetStringElement("Tiling").ToVector2();
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(TriplanarSampling);
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
{
strm.Write(true);
strm.Write(ctx.GetRelativePathString(Texture));
}
else strm.Write(false);
strm.Write(Tiling);
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
TriplanarSampling = strm.ReadBoolean();
if (strm.ReadBoolean())
{
Uri result = ctx.GetAbsolutePath(new Uri(strm.ReadString()), this, "TriplanarTextureBaker", "TriplanarTextureBaker", FileData.ImageFileMask);
if (result != null) Texture = result;
}
Tiling = strm.ReadVector2();
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
TriplanarTextureBaker retVal = new TriplanarTextureBaker();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
TriplanarTextureBaker retVal = into as TriplanarTextureBaker;
retVal.useTriplanar_ = this.useTriplanar_;
retVal.data_ = this.data_;
retVal.imageFile_ = this.imageFile_;
retVal.bilinearFilter_ = this.bilinearFilter_;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class CylindricalTextureBaker
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
thisElem.AddStringElement("Texture", ctx.GetRelativePathString(Texture));
thisElem.AddStringElement("Tiling", Tiling.ToTightString());
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
{
string fileString = thisElem.GetStringElement("Texture");
Uri result = ctx.GetAbsolutePath(new Uri(thisElem.GetStringElement("Texture")), this, "CylindricalTextureBaker", "CylindricalTextureBaker", FileData.ImageFileMask);
if (result != null) Texture = result;
}
Tiling = thisElem.GetStringElement("Tiling").ToVector2();
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
if (Texture != null && System.IO.File.Exists(Texture.AbsolutePath))
{
strm.Write(true);
strm.Write(ctx.GetRelativePathString(Texture));
}
else strm.Write(false);
strm.Write(Tiling);
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
if (strm.ReadBoolean())
{
Uri result = ctx.GetAbsolutePath(new Uri(strm.ReadString()), this, "CylindricalTextureBaker", "CylindricalTextureBaker", FileData.ImageFileMask);
if (result != null) Texture = result;
}
Tiling = strm.ReadVector2();
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
CylindricalTextureBaker retVal = new CylindricalTextureBaker();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
CylindricalTextureBaker retVal = into as CylindricalTextureBaker;
retVal.data_ = this.data_;
retVal.imageFile_ = this.imageFile_;
retVal.bilinearFilter_ = this.bilinearFilter_;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class VolumetricFBM
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Fractal", Fractal.ToString());
thisElem.AddStringElement("Gain", Gain.ToString());
thisElem.AddStringElement("Lacunarity", Lacunarity.ToString());
thisElem.AddStringElement("Octaves", Octaves.ToString());
thisElem.AddStringElement("Seed", Seed.ToString());
thisElem.AddStringElement("Inverted", Inverted.ToString());
thisElem.AddStringElement("Interpolation", Interpolation.ToString());
thisElem.AddStringElement("Frequency", Frequency.ToString());
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Fractal = (FastNoise.FractalType)Enum.Parse(typeof(FastNoise.FractalType), thisElem.GetStringElement("Fractal"));
Gain = thisElem.GetFloatElement("Gain");
Lacunarity = thisElem.GetFloatElement("Lacunarity");
Octaves = thisElem.GetIntElement("Octaves");
Seed = thisElem.GetIntElement("Seed");
Inverted = thisElem.GetBoolElement("Inverted");
Interpolation = (FastNoise.Interp)Enum.Parse(typeof(FastNoise.Interp), thisElem.GetStringElement("Interpolation"));
Frequency = thisElem.GetFloatElement("Frequency");
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write((int)Fractal);
strm.Write(Gain);
strm.Write(Lacunarity);
strm.Write(Octaves);
strm.Write(Seed);
strm.Write(Inverted);
strm.Write((int)Interpolation);
strm.Write(Frequency);
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Fractal = (FastNoise.FractalType)strm.ReadInt32();
Gain = strm.ReadSingle();
Lacunarity = strm.ReadSingle();
Octaves = strm.ReadInt32();
Seed = strm.ReadInt32();
Inverted = strm.ReadBoolean();
Interpolation = (FastNoise.Interp)strm.ReadInt32();
Frequency = strm.ReadSingle();
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
VolumetricFBM retVal = new VolumetricFBM();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
VolumetricFBM retVal = into as VolumetricFBM;
retVal.noise_ = this.noise_;
retVal.inverted_ = this.inverted_;
retVal.period_ = this.period_;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class VolumetricPerlin
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Seed", Seed.ToString());
thisElem.AddStringElement("Inverted", Inverted.ToString());
thisElem.AddStringElement("Interpolation", Interpolation.ToString());
thisElem.AddStringElement("Frequency", Frequency.ToString());
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Seed = thisElem.GetIntElement("Seed");
Inverted = thisElem.GetBoolElement("Inverted");
Interpolation = (FastNoise.Interp)Enum.Parse(typeof(FastNoise.Interp), thisElem.GetStringElement("Interpolation"));
Frequency = thisElem.GetFloatElement("Frequency");
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Seed);
strm.Write(Inverted);
strm.Write((int)Interpolation);
strm.Write(Frequency);
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Seed = strm.ReadInt32();
Inverted = strm.ReadBoolean();
Interpolation = (FastNoise.Interp)strm.ReadInt32();
Frequency = strm.ReadSingle();
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
VolumetricPerlin retVal = new VolumetricPerlin();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
VolumetricPerlin retVal = into as VolumetricPerlin;
retVal.noise_ = this.noise_;
retVal.inverted_ = this.inverted_;
retVal.period_ = this.period_;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class VolumetricVoronoi
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Function", Function.ToString());
thisElem.AddStringElement("CellType", CellType.ToString());
thisElem.AddStringElement("KnockOutMode", KnockOutMode.ToString());
thisElem.AddStringElement("Seed", Seed.ToString());
thisElem.AddStringElement("Inverted", Inverted.ToString());
thisElem.AddStringElement("Interpolation", Interpolation.ToString());
thisElem.AddStringElement("Frequency", Frequency.ToString());
if (ModelFile != null && ModelFile.ModelFile != null)
{
var mdl = thisElem.CreateChild("ModelFile");
ModelFile.Write(ctx, mdl);
}
thisElem.AddStringElement("TextureSize", TextureSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Function = (FastNoise.CellularDistanceFunction)Enum.Parse(typeof(FastNoise.CellularDistanceFunction), thisElem.GetStringElement("Function"));
CellType = (FastNoise.CellularReturnType)Enum.Parse(typeof(FastNoise.CellularReturnType), thisElem.GetStringElement("CellType"));
KnockOutMode = thisElem.GetBoolElement("KnockOutMode");
Seed = thisElem.GetIntElement("Seed");
Inverted = thisElem.GetBoolElement("Inverted");
Interpolation = (FastNoise.Interp)Enum.Parse(typeof(FastNoise.Interp), thisElem.GetStringElement("Interpolation"));
Frequency = thisElem.GetFloatElement("Frequency");
{
var mdlElem = thisElem.SelectSingleNode("ModelFile") as XmlElement;
if (mdlElem != null) ModelFile.Read(ctx, mdlElem);
}
TextureSize = thisElem.GetStringElement("TextureSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write((int)Function);
strm.Write((int)CellType);
strm.Write(KnockOutMode);
strm.Write(Seed);
strm.Write(Inverted);
strm.Write((int)Interpolation);
strm.Write(Frequency);
if (ModelFile != null && ModelFile.ModelFile != null)
{
strm.Write(true);
ModelFile.Write(ctx, strm);
}
else strm.Write(false);
strm.Write(TextureSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Function = (FastNoise.CellularDistanceFunction)strm.ReadInt32();
CellType = (FastNoise.CellularReturnType)strm.ReadInt32();
KnockOutMode = strm.ReadBoolean();
Seed = strm.ReadInt32();
Inverted = strm.ReadBoolean();
Interpolation = (FastNoise.Interp)strm.ReadInt32();
Frequency = strm.ReadSingle();
if (strm.ReadBoolean())
{
ModelFile.Read(ctx, strm);
}
TextureSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
VolumetricVoronoi retVal = new VolumetricVoronoi();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
VolumetricVoronoi retVal = into as VolumetricVoronoi;
retVal.knockOutMode_ = this.knockOutMode_;
retVal.noise_ = this.noise_;
retVal.inverted_ = this.inverted_;
retVal.period_ = this.period_;
retVal.cache_ = this.cache_;
retVal.modelFile_ = this.modelFile_;
retVal.dirty_ = this.dirty_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class NormalMapDeviation
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
NormalMapDeviation retVal = new NormalMapDeviation();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
NormalMapDeviation retVal = into as NormalMapDeviation;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class NormalMapNormalize
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
NormalMapNormalize retVal = new NormalMapNormalize();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
NormalMapNormalize retVal = into as NormalMapNormalize;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class NormalPower
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Power", Power.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Power = thisElem.GetFloatElement("Power");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Power);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Power = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
NormalPower retVal = new NormalPower();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
NormalPower retVal = into as NormalPower;
retVal.power_ = this.power_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class ToNormalMap
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("StepSize", StepSize.ToString());
thisElem.AddStringElement("Power", Power.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
StepSize = thisElem.GetFloatElement("StepSize");
Power = thisElem.GetFloatElement("Power");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(StepSize);
strm.Write(Power);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
StepSize = strm.ReadSingle();
Power = strm.ReadSingle();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
ToNormalMap retVal = new ToNormalMap();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
ToNormalMap retVal = into as ToNormalMap;
retVal.stepSize_ = this.stepSize_;
retVal.power_ = this.power_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class RotateNormals
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("Rotation", Rotation.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
Rotation = thisElem.GetStringElement("Rotation").ToVector3();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(Rotation);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
Rotation = strm.ReadVector3();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
RotateNormals retVal = new RotateNormals();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
RotateNormals retVal = into as RotateNormals;
retVal.rotation_ = this.rotation_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class WarpOut
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("WarpKey", WarpKey);
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
WarpKey = thisElem.GetStringElement("WarpKey");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(WarpKey ?? "");
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
WarpKey = strm.ReadString();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
WarpOut retVal = new WarpOut();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
WarpOut retVal = into as WarpOut;
retVal.warpKey_ = this.warpKey_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class WarpIn
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("WarpKey", WarpKey);
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
WarpKey = thisElem.GetStringElement("WarpKey");
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(WarpKey ?? "");
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
WarpKey = strm.ReadString();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
WarpIn retVal = new WarpIn();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
WarpIn retVal = into as WarpIn;
retVal.warp_ = this.warp_;
retVal.warpKey_ = this.warpKey_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class SampleControl
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("CacheSize", CacheSize.ToTightString());
thisElem.AddStringElement("CacheScale", CacheScale.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
CacheSize = thisElem.GetStringElement("CacheSize").ToIntVector2();
CacheScale = thisElem.GetStringElement("CacheScale").ToVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write(CacheSize);
strm.Write(CacheScale);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
CacheSize = strm.ReadIntVector2();
CacheScale = strm.ReadVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
SampleControl retVal = new SampleControl();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
SampleControl retVal = into as SampleControl;
retVal.cacheSize_ = this.cacheSize_;
retVal.cacheScale_ = this.cacheScale_;
retVal.lastExecutionContext = this.lastExecutionContext;
retVal.cacheScale_ = this.cacheScale_;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class TextureOutputNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("OutputChannel", OutputChannel.ToString());
thisElem.AddStringElement("DefaultColor", DefaultColor.ToTightString());
thisElem.AddStringElement("TargetSize", TargetSize.ToTightString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
OutputChannel = (SprueKit.Data.TextureChannel)Enum.Parse(typeof(SprueKit.Data.TextureChannel), thisElem.GetStringElement("OutputChannel"));
DefaultColor = thisElem.GetStringElement("DefaultColor").ToColor();
TargetSize = thisElem.GetStringElement("TargetSize").ToIntVector2();
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write((int)OutputChannel);
strm.Write(DefaultColor);
strm.Write(TargetSize);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
OutputChannel = (SprueKit.Data.TextureChannel)strm.ReadInt32();
DefaultColor = strm.ReadColor();
TargetSize = strm.ReadIntVector2();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
TextureOutputNode retVal = new TextureOutputNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
TextureOutputNode retVal = into as TextureOutputNode;
retVal.outputChannel_ = this.outputChannel_;
retVal.defaultColor_ = this.defaultColor_;
retVal.targetSize_ = this.targetSize_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
namespace SprueKit.Data.TexGen
{
public partial class BlendNode
{
public override void SerializeProperties(SerializationContext ctx, XmlElement thisElem)
{
thisElem.AddStringElement("BlendMode", BlendMode.ToString());
thisElem.AddStringElement("BlendSource", BlendSource.ToString());
thisElem.AddStringElement("Name", Name);
thisElem.AddStringElement("Description", Description);
thisElem.AddStringElement("NodeID", NodeID.ToString());
thisElem.AddStringElement("VisualX", VisualX.ToString());
thisElem.AddStringElement("VisualY", VisualY.ToString());
thisElem.AddStringElement("EntryPoint", EntryPoint.ToString());
thisElem.AddStringElement("EventPoint", EventPoint.ToString());
PermutationSerialization.SerializePermutations(ctx, thisElem, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, XmlElement thisElem)
{
BlendMode = (SprueKit.Data.PSBlendMode)Enum.Parse(typeof(SprueKit.Data.PSBlendMode), thisElem.GetStringElement("BlendMode"));
BlendSource = (SprueKit.Data.PSAlphaMode)Enum.Parse(typeof(SprueKit.Data.PSAlphaMode), thisElem.GetStringElement("BlendSource"));
Name = thisElem.GetStringElement("Name");
Description = thisElem.GetStringElement("Description");
NodeID = thisElem.GetIntElement("NodeID");
VisualX = (double)thisElem.GetFloatElement("VisualX");
VisualY = (double)thisElem.GetFloatElement("VisualY");
EntryPoint = thisElem.GetBoolElement("EntryPoint");
EventPoint = thisElem.GetBoolElement("EventPoint");
PermutationSerialization.DeserializePermutations(ctx, thisElem, this, Permutations);
}
public override void SerializeProperties(SerializationContext ctx, BinaryWriter strm)
{
strm.Write((int)BlendMode);
strm.Write((int)BlendSource);
strm.Write(Name ?? "");
strm.Write(Description ?? "");
strm.Write(NodeID);
strm.Write(VisualX);
strm.Write(VisualY);
strm.Write(EntryPoint);
strm.Write(EventPoint);
PermutationSerialization.SerializePermutations(ctx, strm, this, Permutations);
}
public override void DeserializeProperties(SerializationContext ctx, BinaryReader strm)
{
BlendMode = (SprueKit.Data.PSBlendMode)strm.ReadInt32();
BlendSource = (SprueKit.Data.PSAlphaMode)strm.ReadInt32();
Name = strm.ReadString();
Description = strm.ReadString();
NodeID = strm.ReadInt32();
VisualX = strm.ReadDouble();
VisualY = strm.ReadDouble();
EntryPoint = strm.ReadBoolean();
EventPoint = strm.ReadBoolean();
PermutationSerialization.DeserializePermutations(ctx, strm, this, Permutations);
}
public override Data.Graph.GraphNode Clone()
{
BlendNode retVal = new BlendNode();
CloneFields(retVal);
return retVal;
}
protected override void CloneFields(Data.Graph.GraphNode into)
{
base.CloneFields(into);
BlendNode retVal = into as BlendNode;
retVal.blendMode_ = this.blendMode_;
retVal.alphaMode_ = this.alphaMode_;
retVal.lastExecutionContext = this.lastExecutionContext;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment