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


C# ByteArray.WriteInt方法代码示例

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


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

示例1: GenerateByteArray

 public ByteArray GenerateByteArray(object data)
 {
     List<HumanTemplateVO> list = data as List<HumanTemplateVO>;
     ByteArray ba = new ByteArray();
     int length = list.Count;
     ba.WriteInt(length);
     for (int i = 0; (i < length); i = (i + 1))
     {
         ba.WriteInt(list[i].id);
         ba.WriteInt(list[i].exp);
     }
     return ba;
 }
开发者ID:wsycarlos,项目名称:ARIA,代码行数:13,代码来源:HumanTemplateVODataWriter.cs

示例2: GenerateByteArray

 public ByteArray GenerateByteArray(object data)
 {
     List<ConstantTemplateVO> list = data as List<ConstantTemplateVO>;
     ByteArray ba = new ByteArray();
     int length = list.Count;
     ba.WriteInt(length);
     for (int i = 0; (i < length); i = (i + 1))
     {
         ba.WriteInt(list[i].id);
         ba.WriteUTF(list[i].key);
         ba.WriteUTF(list[i].value);
     }
     return ba;
 }
开发者ID:wsycarlos,项目名称:ARIA,代码行数:14,代码来源:ConstantTemplateVODataWriter.cs

示例3: GenerateByteArray

 public ByteArray GenerateByteArray(object data)
 {
     List<BuildingProductTemplateVO> list = data as List<BuildingProductTemplateVO>;
     ByteArray ba = new ByteArray();
     int length = list.Count;
     ba.WriteInt(length);
     for (int i = 0; (i < length); i = (i + 1))
     {
         ba.WriteInt(list[i].id);
         ba.WriteInt(list[i].goldSpeed);
         ba.WriteInt(list[i].rarityCurrencySpeed);
         ba.WriteInt(list[i].campTimeCoef);
     }
     return ba;
 }
开发者ID:wsycarlos,项目名称:ARIA,代码行数:15,代码来源:BuildingProductTemplateVODataWriter.cs

示例4: GenerateByteArray

 public ByteArray GenerateByteArray(object data)
 {
     List<BuildingLevelTemplateVO> list = data as List<BuildingLevelTemplateVO>;
     ByteArray ba = new ByteArray();
     int length = list.Count;
     ba.WriteInt(length);
     for (int i = 0; (i < length); i = (i + 1))
     {
         ba.WriteInt(list[i].id);
         ba.WriteInt(list[i].time);
         ba.WriteInt(list[i].gold);
         ba.WriteInt(list[i].wood);
         ba.WriteInt(list[i].stone);
         ba.WriteInt(list[i].crystal);
         ba.WriteInt(list[i].sulfur);
         ba.WriteInt(list[i].diamond);
     }
     return ba;
 }
开发者ID:wsycarlos,项目名称:ARIA,代码行数:19,代码来源:BuildingLevelTemplateVODataWriter.cs

示例5: GenerateByteArray

 public ByteArray GenerateByteArray(object data)
 {
     List<BuildingTemplateVO> list = data as List<BuildingTemplateVO>;
     ByteArray ba = new ByteArray();
     int length = list.Count;
     ba.WriteInt(length);
     for (int i = 0; (i < length); i = (i + 1))
     {
         ba.WriteInt(list[i].id);
         ba.WriteUTF(list[i].name);
         ba.WriteInt(list[i].type);
         ba.WriteInt(list[i].buildingIndex);
         ba.WriteInt(list[i].camp);
         ba.WriteUTF(list[i].image);
         ba.WriteInt(list[i].levelMap);
         ba.WriteInt(list[i].affiliation);
         ba.WriteInt(list[i].openNeedThLevel);
         ba.WriteInt(list[i].isInitZore);
         ba.WriteInt(list[i].levelRule);
         ba.WriteInt(list[i].gold);
         ba.WriteInt(list[i].wood);
         ba.WriteInt(list[i].crystal);
         ba.WriteInt(list[i].stone);
         ba.WriteInt(list[i].sulfur);
         ba.WriteInt(list[i].diamond);
         ba.WriteInt(list[i].upgradeCdTime);
         ba.WriteInt(list[i].productActorId);
         ba.WriteInt(list[i].makeCurrencyId);
         ba.WriteUTF(list[i].desc);
         ba.WriteInt(list[i].isOpen);
     }
     return ba;
 }
开发者ID:wsycarlos,项目名称:ARIA,代码行数:33,代码来源:BuildingTemplateVODataWriter.cs

示例6: GenerateByteArray

 public ByteArray GenerateByteArray(object data)
 {
     List<BuildingSettingTemplateVO> list = data as List<BuildingSettingTemplateVO>;
     ByteArray ba = new ByteArray();
     int length = list.Count;
     ba.WriteInt(length);
     for (int i = 0; (i < length); i = (i + 1))
     {
         ba.WriteInt(list[i].id);
         ba.WriteInt(list[i].fuxingSquirePopu);
         ba.WriteInt(list[i].beastiaryPopu);
         ba.WriteInt(list[i].herohouseNumber);
         ba.WriteInt(list[i].mineNeedminer);
         ba.WriteInt(list[i].minerMax);
         ba.WriteInt(list[i].currencyMax);
         ba.WriteInt(list[i].currencyProtectRate);
         ba.WriteInt(list[i].currencyProtectVal);
         ba.WriteInt(list[i].def);
         ba.WriteInt(list[i].myOrderNumber);
     }
     return ba;
 }
开发者ID:wsycarlos,项目名称:ARIA,代码行数:22,代码来源:BuildingSettingTemplateVODataWriter.cs


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