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


C# IDataWriter.WriteUShort方法代码示例

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


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

示例1: Serialize

 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteUShort(honor);
     writer.WriteUShort(honorGradeFloor);
     writer.WriteUShort(honorNextGradeFloor);
     writer.WriteBoolean(pvpEnabled);
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:8,代码来源:ActorExtendedAlignmentInformations.cs

示例2: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort(id);
     writer.WriteUShort((ushort)parameters.Count());
     foreach (var entry in parameters)
     {
         writer.WriteUTF(entry);
     }
     writer.WriteBoolean(forceOpen);
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:10,代码来源:NotificationByServerMessage.cs

示例3: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)cells.Length);
     foreach (var entry in cells)
     {
          writer.WriteShort(entry);
     }
     writer.WriteUShort((ushort)referenceIds.Length);
     foreach (var entry in referenceIds)
     {
          writer.WriteInt(entry);
     }
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:13,代码来源:ObjectGroundListAddedMessage.cs

示例4: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)targetIds.Length);
     foreach (var entry in targetIds)
     {
          writer.WriteInt(entry);
     }
     writer.WriteUShort((ushort)targetCells.Length);
     foreach (var entry in targetCells)
     {
          writer.WriteShort(entry);
     }
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:13,代码来源:ChallengeTargetsListMessage.cs

示例5: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)angelsSubAreas.Length);
     foreach (var entry in angelsSubAreas)
     {
          writer.WriteShort(entry);
     }
     writer.WriteUShort((ushort)evilsSubAreas.Length);
     foreach (var entry in evilsSubAreas)
     {
          writer.WriteShort(entry);
     }
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:13,代码来源:AlignmentSubAreasListMessage.cs

示例6: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)channels.Length);
     foreach (var entry in channels)
     {
          writer.WriteSByte(entry);
     }
     writer.WriteUShort((ushort)disallowed.Length);
     foreach (var entry in disallowed)
     {
          writer.WriteSByte(entry);
     }
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:13,代码来源:EnabledChannelsMessage.cs

示例7: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)startedAchievements.Length);
     foreach (var entry in startedAchievements)
     {
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)finishedAchievements.Length);
     foreach (var entry in finishedAchievements)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:13,代码来源:AchievementDetailedListMessage.cs

示例8: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)availables.Length);
     foreach (var entry in availables)
     {
          writer.WriteShort(entry);
     }
     writer.WriteUShort((ushort)unavailables.Length);
     foreach (var entry in unavailables)
     {
          writer.WriteShort(entry);
     }
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:13,代码来源:DungeonKeyRingMessage.cs

示例9: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)ids.Length);
     foreach (var entry in ids)
     {
          writer.WriteShort(entry);
     }
     writer.WriteUShort((ushort)avgPrices.Length);
     foreach (var entry in avgPrices)
     {
          writer.WriteInt(entry);
     }
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:13,代码来源:ObjectAveragePricesMessage.cs

示例10: Serialize

 public virtual void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)questsToValidId.Count());
     foreach (var entry in questsToValidId)
     {
         writer.WriteShort(entry);
     }
     writer.WriteUShort((ushort)questsToStartId.Count());
     foreach (var entry in questsToStartId)
     {
         writer.WriteShort(entry);
     }
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:13,代码来源:GameRolePlayNpcQuestFlag.cs

示例11: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)finishedAchievementsIds.Length);
     foreach (var entry in finishedAchievementsIds)
     {
          writer.WriteShort(entry);
     }
     writer.WriteUShort((ushort)rewardableAchievements.Length);
     foreach (var entry in rewardableAchievements)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:13,代码来源:AchievementListMessage.cs

示例12: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteUShort((ushort)ids.Count());
     foreach (var entry in ids)
     {
         writer.WriteInt(entry);
     }
     writer.WriteUShort((ushort)deadsIds.Count());
     foreach (var entry in deadsIds)
     {
         writer.WriteInt(entry);
     }
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:13,代码来源:GameFightTurnListMessage.cs

示例13: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteShort(dungeonId);
     writer.WriteUShort((ushort)addedPlayers.Length);
     foreach (var entry in addedPlayers)
     {
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)removedPlayersIds.Length);
     foreach (var entry in removedPlayersIds)
     {
          writer.WriteInt(entry);
     }
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:14,代码来源:DungeonPartyFinderRoomContentUpdateMessage.cs

示例14: Serialize

 public virtual void Serialize(IDataWriter writer)
 {
     writer.WriteInt(collectorId);
     writer.WriteUShort((ushort)allyCharactersInformations.Length);
     foreach (var entry in allyCharactersInformations)
     {
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)enemyCharactersInformations.Length);
     foreach (var entry in enemyCharactersInformations)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:14,代码来源:TaxCollectorFightersInformation.cs

示例15: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteInt(fightId);
     writer.WriteUShort((ushort)attackers.Length);
     foreach (var entry in attackers)
     {
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)defenders.Length);
     foreach (var entry in defenders)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:14,代码来源:MapRunningFightDetailsMessage.cs


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