本文整理汇总了C#中Serializer.SerializeEnum方法的典型用法代码示例。如果您正苦于以下问题:C# Serializer.SerializeEnum方法的具体用法?C# Serializer.SerializeEnum怎么用?C# Serializer.SerializeEnum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Serializer
的用法示例。
在下文中一共展示了Serializer.SerializeEnum方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public virtual void Serialize(Serializer serializer)
{
serializer.SerializeEnum(ref type, "type");
serializer.Serialize(ref id, "id");
serializer.Serialize(ref description, "description");
serializer.Serialize(ref energy, "energy");
}
示例2: Serialize
//public ISerializable[] f;
public void Serialize(Serializer serializer)
{
serializer.Serialize(ref a, "a");
serializer.Serialize(ref b, "b");
serializer.Serialize(ref c, "c");
serializer.Serialize(ref d, "d");
serializer.Serialize(ref e, "e");
serializer.Serialize(ref f, "f");
serializer.Serialize(ref ff, "ff");
serializer.Serialize(ref g, "g");
serializer.SerializeEnum(ref h, "h");
serializer.Serialize(ref i, "i");
}
示例3: Serialize
public override void Serialize(Serializer serializer)
{
base.Serialize(serializer);
serializer.Serialize(ref tileType, "tileType");
serializer.Serialize(ref materials, "materials");
serializer.Serialize(ref animated, "animated");
serializer.SerializeEnum(ref drawMode, "drawMode");
serializer.Serialize(ref castShadow, "castShadow");
serializer.Serialize(ref lightSourceIntensity, "lightSourceIntensity");
serializer.Serialize(ref solid, "solid");
serializer.Serialize(ref liquid, "liquid");
serializer.Serialize(ref burns, "burns");
serializer.Serialize(ref tileUpdateRules, "tileUpdateRules");
serializer.Serialize(ref tileActionRules, "tileActionRules");
}
示例4: Serialize
public void Serialize(Serializer serializer)
{
serializer.SerializeEnum(ref action, "action");
serializer.Serialize(ref rules, "rules");
}