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


C# ICustomDataOutput.WriteUShort方法代码示例

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


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

示例1: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteUTF(address);
     writer.WriteUShort(port);
     writer.WriteUShort((ushort)ticket.Count());
     foreach (var entry in ticket)
     {
          writer.WriteSByte(entry);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:10,代码来源:GameRolePlayArenaSwitchToFightServerMessage.cs

示例2: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, tutorialAvailable);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, canCreateNewCharacter);
     writer.WriteByte(flag1);
     writer.WriteInt(accountId);
     writer.WriteUShort(breedsVisible);
     writer.WriteUShort(breedsAvailable);
     writer.WriteSByte(status);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:11,代码来源:AccountCapabilitiesMessage.cs

示例3: Serialize

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

示例4: Serialize

 public override void Serialize(ICustomDataOutput 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:thomasvinot,项目名称:Symbioz,代码行数:13,代码来源:GameFightTurnListMessage.cs

示例5: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteUShort((ushort)playerIds.Count());
     foreach (var entry in playerIds)
     {
          writer.WriteVarUhInt(entry);
     }
     writer.WriteUShort((ushort)enable.Count());
     foreach (var entry in enable)
     {
          writer.WriteSByte(entry);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:13,代码来源:UpdateMapPlayersAgressableStatusMessage.cs

示例6: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteUShort((ushort)finishedAchievementsIds.Count());
     foreach (var entry in finishedAchievementsIds)
     {
          writer.WriteVarUhShort(entry);
     }
     writer.WriteUShort((ushort)rewardableAchievements.Count());
     foreach (var entry in rewardableAchievements)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:13,代码来源:AchievementListMessage.cs

示例7: Serialize

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

示例8: Serialize

 public virtual void Serialize(ICustomDataOutput writer)
 {
     writer.WriteVarUhShort(id);
     writer.WriteUShort((ushort)finishedObjective.Count());
     foreach (var entry in finishedObjective)
     {
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)startedObjectives.Count());
     foreach (var entry in startedObjectives)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:14,代码来源:Achievement.cs

示例9: Serialize

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

示例10: Serialize

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

示例11: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     allianceInfos.Serialize(writer);
     writer.WriteUShort((ushort)guilds.Count());
     foreach (var entry in guilds)
     {
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)prisms.Count());
     foreach (var entry in prisms)
     {
          writer.WriteShort(entry.TypeId);
          entry.Serialize(writer);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:15,代码来源:AllianceInsiderInfoMessage.cs

示例12: Serialize

 public virtual void Serialize(ICustomDataOutput writer)
 {
     writer.WriteVarUhInt(objectUID);
     writer.WriteUShort((ushort)effects.Count());
     foreach (var entry in effects)
     {
          writer.WriteShort(entry.TypeId);
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)prices.Count());
     foreach (var entry in prices)
     {
          writer.WriteInt(entry);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:15,代码来源:BidExchangerObjectInfo.cs

示例13: Serialize

 public virtual void Serialize(ICustomDataOutput writer)
 {
     writer.WriteInt(collectorId);
     writer.WriteUShort((ushort)allyCharactersInformations.Count());
     foreach (var entry in allyCharactersInformations)
     {
          writer.WriteShort(entry.TypeId);
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)enemyCharactersInformations.Count());
     foreach (var entry in enemyCharactersInformations)
     {
          writer.WriteShort(entry.TypeId);
          entry.Serialize(writer);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:16,代码来源:TaxCollectorFightersInformation.cs

示例14: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteUShort((ushort)dungeonIds.Count());
     foreach (var entry in dungeonIds)
     {
          writer.WriteVarUhShort(entry);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:DungeonPartyFinderAvailableDungeonsMessage.cs

示例15: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteUShort((ushort)availableLegendaryIds.Count());
     foreach (var entry in availableLegendaryIds)
     {
          writer.WriteVarUhShort(entry);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:TreasureHuntShowLegendaryUIMessage.cs


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