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


C# BigEndianWriter.WriteUShort方法代码示例

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


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

示例1: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(accountId);
     writer.WriteBoolean(tutorialAvailable);
     writer.WriteUShort(breedsVisible);
     writer.WriteUShort(breedsAvailable);
     writer.WriteSByte(status);
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:8,代码来源:AccountCapabilitiesMessage.cs

示例2: Serialize

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

示例3: Serialize

 public override void Serialize(BigEndianWriter 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:DjTrilogic,项目名称:BlueSheep,代码行数:13,代码来源:AchievementDetailedListMessage.cs

示例4: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort)playerIds.Length);
     foreach (var entry in playerIds)
     {
          writer.WriteVarInt(entry);
     }
     writer.WriteUShort((ushort)enable.Length);
     foreach (var entry in enable)
     {
          writer.WriteSByte(entry);
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:13,代码来源:UpdateMapPlayersAgressableStatusMessage.cs

示例5: Serialize

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

示例6: Serialize

 public override void Serialize(BigEndianWriter 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:DjTrilogic,项目名称:BlueSheep,代码行数:13,代码来源:ChallengeTargetsListMessage.cs

示例7: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort)ids.Length);
     foreach (var entry in ids)
     {
          writer.WriteVarShort(entry);
     }
     writer.WriteUShort((ushort)avgPrices.Length);
     foreach (var entry in avgPrices)
     {
          writer.WriteVarInt(entry);
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:13,代码来源:ObjectAveragePricesMessage.cs

示例8: Serialize

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

示例9: Serialize

 public override void Serialize(BigEndianWriter 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:DjTrilogic,项目名称:BlueSheep,代码行数:13,代码来源:EnabledChannelsMessage.cs

示例10: Serialize

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

示例11: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarShort(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.WriteVarInt(entry);
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:14,代码来源:DungeonPartyFinderRoomContentUpdateMessage.cs

示例12: Serialize

 public virtual void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarShort(id);
     writer.WriteUShort((ushort)finishedObjective.Length);
     foreach (var entry in finishedObjective)
     {
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)startedObjectives.Length);
     foreach (var entry in startedObjectives)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:14,代码来源:Achievement.cs

示例13: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort)positionsForChallengers.Length);
     foreach (var entry in positionsForChallengers)
     {
          writer.WriteVarShort(entry);
     }
     writer.WriteUShort((ushort)positionsForDefenders.Length);
     foreach (var entry in positionsForDefenders)
     {
          writer.WriteVarShort(entry);
     }
     writer.WriteSByte(teamNumber);
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:14,代码来源:GameFightPlacementPossiblePositionsMessage.cs

示例14: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteVarShort(messageId);
     writer.WriteUShort((ushort)dialogParams.Length);
     foreach (var entry in dialogParams)
     {
          writer.WriteUTF(entry);
     }
     writer.WriteUShort((ushort)visibleReplies.Length);
     foreach (var entry in visibleReplies)
     {
          writer.WriteVarShort(entry);
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:14,代码来源:NpcDialogQuestionMessage.cs

示例15: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUShort((ushort)titles.Length);
     foreach (var entry in titles)
     {
          writer.WriteVarShort(entry);
     }
     writer.WriteUShort((ushort)ornaments.Length);
     foreach (var entry in ornaments)
     {
          writer.WriteVarShort(entry);
     }
     writer.WriteVarShort(activeTitle);
     writer.WriteVarShort(activeOrnament);
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:15,代码来源:TitlesAndOrnamentsListMessage.cs


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