当前位置: 首页>>代码示例>>C#>>正文


C# Serializer.SerializeEnum方法代码示例

本文整理汇总了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");
 }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:CWDefinition.cs

示例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");
            }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:15,代码来源:TestSerializer.cs

示例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");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:16,代码来源:TileDefinition.cs

示例4: Serialize

 public void Serialize(Serializer serializer)
 {
     serializer.SerializeEnum(ref action, "action");
     serializer.Serialize(ref rules, "rules");
 }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:5,代码来源:TileActionRule.cs


注:本文中的Serializer.SerializeEnum方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。