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


C# BigEndianReader.ReadUShort方法代码示例

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


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

示例1: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     Honor = reader.ReadUShort();
     HonorGradeFloor = reader.ReadUShort();
     HonorNextGradeFloor = reader.ReadUShort();
     PvpEnabled = reader.ReadBoolean();
 }
开发者ID:Riul,项目名称:emulator,代码行数:8,代码来源:ActorExtendedAlignmentInformations.cs

示例2: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     Id = reader.ReadUShort();
     var limit = reader.ReadUShort();
     Parameters = new string[limit];
     for (int i = 0; i < limit; i++)
     {
         Parameters[i] = reader.ReadUTF();
     }
     ForceOpen = reader.ReadBoolean();
 }
开发者ID:Riul,项目名称:emulator,代码行数:11,代码来源:NotificationByServerMessage.cs

示例3: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     AngelsSubAreas = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         AngelsSubAreas[i] = reader.ReadShort();
     }
     limit = reader.ReadUShort();
     EvilsSubAreas = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         EvilsSubAreas[i] = reader.ReadShort();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:15,代码来源:AlignmentSubAreasListMessage.cs

示例4: Deserialize

 public virtual void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     QuestsToValidId = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         QuestsToValidId[i] = reader.ReadShort();
     }
     limit = reader.ReadUShort();
     QuestsToStartId = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         QuestsToStartId[i] = reader.ReadShort();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:15,代码来源:GameRolePlayNpcQuestFlag.cs

示例5: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     Channels = new sbyte[limit];
     for (int i = 0; i < limit; i++)
     {
         Channels[i] = reader.ReadSByte();
     }
     limit = reader.ReadUShort();
     Disallowed = new sbyte[limit];
     for (int i = 0; i < limit; i++)
     {
         Disallowed[i] = reader.ReadSByte();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:15,代码来源:EnabledChannelsMessage.cs

示例6: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     Ids = new int[limit];
     for (int i = 0; i < limit; i++)
     {
         Ids[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     DeadsIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
         DeadsIds[i] = reader.ReadInt();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:15,代码来源:GameFightTurnListMessage.cs

示例7: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     Availables = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         Availables[i] = reader.ReadShort();
     }
     limit = reader.ReadUShort();
     Unavailables = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         Unavailables[i] = reader.ReadShort();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:15,代码来源:DungeonKeyRingMessage.cs

示例8: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     Cells = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         Cells[i] = reader.ReadShort();
     }
     limit = reader.ReadUShort();
     ReferenceIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
         ReferenceIds[i] = reader.ReadInt();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:15,代码来源:ObjectGroundListAddedMessage.cs

示例9: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     var limit = reader.ReadUShort();
     CharactersToRecolor = new CharacterToRecolorInformation[limit];
     for (int i = 0; i < limit; i++)
     {
         CharactersToRecolor[i] = new CharacterToRecolorInformation();
         CharactersToRecolor[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     CharactersToRename = new int[limit];
     for (int i = 0; i < limit; i++)
     {
         CharactersToRename[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     UnusableCharacters = new int[limit];
     for (int i = 0; i < limit; i++)
     {
         UnusableCharacters[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     CharactersToRelook = new CharacterToRelookInformation[limit];
     for (int i = 0; i < limit; i++)
     {
         CharactersToRelook[i] = new CharacterToRelookInformation();
         CharactersToRelook[i].Deserialize(reader);
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:30,代码来源:CharactersListWithModificationsMessage.cs

示例10: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     Messageid = reader.ReadShort();
     var limit = reader.ReadUShort();
     DialogParams = new string[limit];
     for (int i = 0; i < limit; i++)
     {
         DialogParams[i] = reader.ReadUTF();
     }
     limit = reader.ReadUShort();
     VisibleReplies = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         VisibleReplies[i] = reader.ReadShort();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:16,代码来源:NpcDialogQuestionMessage.cs

示例11: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     FinishedAchievementsIds = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         FinishedAchievementsIds[i] = reader.ReadShort();
     }
     limit = reader.ReadUShort();
     RewardableAchievements = new AchievementRewardable[limit];
     for (int i = 0; i < limit; i++)
     {
         RewardableAchievements[i] = new AchievementRewardable();
         RewardableAchievements[i].Deserialize(reader);
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:16,代码来源:AchievementListMessage.cs

示例12: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     PositionsForChallengers = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         PositionsForChallengers[i] = reader.ReadShort();
     }
     limit = reader.ReadUShort();
     PositionsForDefenders = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         PositionsForDefenders[i] = reader.ReadShort();
     }
     TeamNumber = reader.ReadSByte();
 }
开发者ID:Riul,项目名称:emulator,代码行数:16,代码来源:GameFightPlacementPossiblePositionsMessage.cs

示例13: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     SetId = reader.ReadShort();
     var limit = reader.ReadUShort();
     SetObjects = new short[limit];
     for (int i = 0; i < limit; i++)
     {
         SetObjects[i] = reader.ReadShort();
     }
     limit = reader.ReadUShort();
     SetEffects = new ObjectEffect[limit];
     for (int i = 0; i < limit; i++)
     {
         SetEffects[i] = Types.ProtocolTypeManager.GetInstance<ObjectEffect>(reader.ReadShort());
         SetEffects[i].Deserialize(reader);
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:17,代码来源:SetUpdateMessage.cs

示例14: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     DungeonId = reader.ReadShort();
     var limit = reader.ReadUShort();
     AddedPlayers = new DungeonPartyFinderPlayer[limit];
     for (int i = 0; i < limit; i++)
     {
         AddedPlayers[i] = new DungeonPartyFinderPlayer();
         AddedPlayers[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     RemovedPlayersIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
         RemovedPlayersIds[i] = reader.ReadInt();
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:17,代码来源:DungeonPartyFinderRoomContentUpdateMessage.cs

示例15: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     StartedAchievements = new Types.Game.Achievement.Achievement[limit];
     for (int i = 0; i < limit; i++)
     {
         StartedAchievements[i] = new Types.Game.Achievement.Achievement();
         StartedAchievements[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     FinishedAchievements = new Types.Game.Achievement.Achievement[limit];
     for (int i = 0; i < limit; i++)
     {
         FinishedAchievements[i] = new Types.Game.Achievement.Achievement();
         FinishedAchievements[i].Deserialize(reader);
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:17,代码来源:AchievementDetailedListMessage.cs


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