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


C# Serializer.Serialize方法代码示例

本文整理汇总了C#中Serializer.Serialize方法的典型用法代码示例。如果您正苦于以下问题:C# Serializer.Serialize方法的具体用法?C# Serializer.Serialize怎么用?C# Serializer.Serialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Serializer的用法示例。


在下文中一共展示了Serializer.Serialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref delta, "delta");
            serializer.Serialize(ref itemDefinition, "itemDefinition");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:TileRuleCreateItem.cs

示例2: 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

示例3: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref minValue, "minValue");
            serializer.Serialize(ref tileType, "tileType");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:TileRuleConditionNearTypeAmout.cs

示例4: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref otherRules, "otherRules");
            serializer.Serialize(ref useRandom, "useRandom");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:TileRuleMultipleOnlyOne.cs

示例5: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref delta, "delta");
            serializer.Serialize(ref effectId, "effectId");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:TileRulePlayEffect.cs

示例6: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref delta, "delta");
            serializer.Serialize(ref soundId, "soundId");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:TileRulePlaySound.cs

示例7: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref delta, "delta");
            serializer.Serialize(ref damage, "damage");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:TileRuleDamage.cs

示例8: Serialize

 public void Serialize(Serializer serializer)
 {
     serializer.Serialize(ref id, "id");
     serializer.Serialize(ref offset, "offset");
     serializer.Serialize(ref rotation, "rotation");
     serializer.Serialize(ref visualDefinition, "visualDefinition");
 }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:AvatarPartDefinition.cs

示例9: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref delta, "delta");
            serializer.Serialize(ref tileType, "tileType");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:TileRuleConditionIsType.cs

示例10: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref sizeInTiles, "sizeInTiles");
            serializer.Serialize(ref parts, "parts");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:AvatarDefinition.cs

示例11: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref delta, "delta");
            serializer.Serialize(ref value, "value");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:7,代码来源:TileRuleSetOnFire.cs

示例12: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref radius, "radius");
            serializer.Serialize(ref damage, "damage");
            serializer.Serialize(ref setOnFire, "setOnFire");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:8,代码来源:TileRuleExplode.cs

示例13: Serialize

 public void Serialize(Serializer serializer)
 {
     serializer.Serialize(ref pivot, "pivot");
     serializer.Serialize(ref material, "material");
     serializer.Serialize(ref scale, "scale");
     serializer.Serialize(ref plane, "plane");
     serializer.Serialize(ref materialCount, "materialCount");
 }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:8,代码来源:CWVisualDefinition.cs

示例14: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref visualDefinition, "visualDefinition");
            serializer.Serialize(ref durability, "durability");
            serializer.Serialize(ref damage, "damage");
            serializer.Serialize(ref setOnFire, "setOnFire");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:9,代码来源:ItemDefinition.cs

示例15: Serialize

        public override void Serialize(Serializer serializer)
        {
            base.Serialize(serializer);

            serializer.Serialize(ref delta, "delta");
            serializer.Serialize(ref value, "value");
            serializer.Serialize(ref gravity, "gravity");
            serializer.Serialize(ref timeout, "timeout");
        }
开发者ID:carriercomm,项目名称:CubeWorld,代码行数:9,代码来源:TileRuleSetDynamic.cs


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