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


C# ICustomDataOutput.WriteShort方法代码示例

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


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

示例1: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteUTF(name);
     writer.WriteShort(worldX);
     writer.WriteShort(worldY);
     writer.WriteUTF(liberator);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:ExchangeMountFreeFromPaddockMessage.cs

示例2: Serialize

 public virtual void Serialize(ICustomDataOutput writer)
 {
     writer.WriteInt(memberId);
     writer.WriteShort(worldX);
     writer.WriteShort(worldY);
     writer.WriteInt(mapId);
     writer.WriteVarUhShort(subAreaId);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:PartyMemberGeoPosition.cs

示例3: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     writer.WriteShort(worldX);
     writer.WriteShort(worldY);
     writer.WriteInt(mapId);
     writer.WriteShort(prism.TypeId);
     prism.Serialize(writer);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:9,代码来源:PrismGeolocalizedInformation.cs

示例4: Serialize

 public virtual void Serialize(ICustomDataOutput writer)
 {
     writer.WriteUTF(guildOwner);
     writer.WriteShort(worldX);
     writer.WriteShort(worldY);
     writer.WriteVarUhShort(subAreaId);
     writer.WriteSByte(nbMount);
     writer.WriteSByte(nbObject);
     writer.WriteVarUhInt(price);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:10,代码来源:PaddockInformationsForSell.cs

示例5: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     writer.WriteShort(worldX);
     writer.WriteShort(worldY);
     writer.WriteInt(mapId);
     writer.WriteVarUhShort(subAreaId);
     writer.WriteUShort((ushort)companions.Count());
     foreach (var entry in companions)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:13,代码来源:PartyInvitationMemberInformations.cs

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

示例7: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     writer.WriteShort(humanoidInfo.TypeId);
     humanoidInfo.Serialize(writer);
     writer.WriteInt(accountId);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:GameRolePlayHumanoidInformations.cs

示例8: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteShort(fightId);
     writer.WriteSByte(teamId);
     writer.WriteSByte(option);
     writer.WriteBoolean(state);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:GameFightOptionStateUpdateMessage.cs

示例9: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteInt(accountId);
     writer.WriteVarUhInt(playerId);
     writer.WriteShort(status.TypeId);
     status.Serialize(writer);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:PlayerStatusUpdateMessage.cs

示例10: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     writer.WriteInt(duration);
     writer.WriteShort(ageBonus);
     writer.WriteShort(lootShareLimitMalus);
     writer.WriteUShort((ushort)results.Count());
     foreach (var entry in results)
     {
          writer.WriteShort(entry.TypeId);
          entry.Serialize(writer);
     }
     writer.WriteUShort((ushort)namedPartyTeamsOutcomes.Count());
     foreach (var entry in namedPartyTeamsOutcomes)
     {
          entry.Serialize(writer);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:17,代码来源:GameFightEndMessage.cs

示例11: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     writer.WriteInt(targetId);
     writer.WriteShort(destinationCellId);
     writer.WriteSByte(critical);
     writer.WriteBoolean(silentCast);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:AbstractGameActionFightTargetedAbilityMessage.cs

示例12: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     writer.WriteInt(arg1);
     writer.WriteInt(arg2);
     writer.WriteInt(arg3);
     writer.WriteShort(delay);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:FightTriggeredEffect.cs

示例13: Serialize

 public override void Serialize(ICustomDataOutput writer)
 {
     base.Serialize(writer);
     writer.WriteShort(identification.TypeId);
     identification.Serialize(writer);
     writer.WriteByte(guildLevel);
     writer.WriteInt(taxCollectorAttack);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:GameRolePlayTaxCollectorInformations.cs

示例14: Serialize

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

示例15: Serialize

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


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