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


C# BigEndianReader.ReadBoolean方法代码示例

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


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

示例1: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     ready = reader.ReadBoolean();
     step = reader.ReadVarShort();
     if (step < 0)
         throw new Exception("Forbidden value on step = " + step + ", it doesn't respect the following condition : step < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:ExchangeReadyMessage.cs

示例2: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     kicked = reader.ReadBoolean();
     guildId = reader.ReadVarInt();
     if (guildId < 0)
         throw new Exception("Forbidden value on guildId = " + guildId + ", it doesn't respect the following condition : guildId < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:AllianceGuildLeavingMessage.cs

示例3: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     memberId = reader.ReadVarInt();
     if (memberId < 0)
         throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0");
     online = reader.ReadBoolean();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:GuildMemberOnlineStatusMessage.cs

示例4: Deserialize

 public virtual void Deserialize(BigEndianReader reader)
 {
     modelId = reader.ReadVarInt();
     if (modelId < 0)
         throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
     ownerName = reader.ReadUTF();
     ownerConnected = reader.ReadBoolean();
     worldX = reader.ReadShort();
     if (worldX < -255 || worldX > 255)
         throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : worldX < -255 || worldX > 255");
     worldY = reader.ReadShort();
     if (worldY < -255 || worldY > 255)
         throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : worldY < -255 || worldY > 255");
     subAreaId = reader.ReadVarShort();
     if (subAreaId < 0)
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     nbRoom = reader.ReadSByte();
     nbChest = reader.ReadSByte();
     var limit = reader.ReadUShort();
     skillListIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          skillListIds[i] = reader.ReadInt();
     }
     isLocked = reader.ReadBoolean();
     price = reader.ReadVarInt();
     if (price < 0)
         throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:29,代码来源:HouseInformationsForSell.cs

示例5: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     enable = reader.ReadBoolean();
     rights = reader.ReadVarInt();
     if (rights < 0)
         throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:HouseGuildShareRequestMessage.cs

示例6: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     breed = reader.ReadSByte();
     sex = reader.ReadBoolean();
     rank = reader.ReadVarShort();
     if (rank < 0)
         throw new Exception("Forbidden value on rank = " + rank + ", it doesn't respect the following condition : rank < 0");
     givenExperience = reader.ReadVarUhLong();
     if (givenExperience < 0 || givenExperience > 9.007199254740992E15)
         throw new Exception("Forbidden value on givenExperience = " + givenExperience + ", it doesn't respect the following condition : givenExperience < 0 || givenExperience > 9.007199254740992E15");
     experienceGivenPercent = reader.ReadSByte();
     if (experienceGivenPercent < 0 || experienceGivenPercent > 100)
         throw new Exception("Forbidden value on experienceGivenPercent = " + experienceGivenPercent + ", it doesn't respect the following condition : experienceGivenPercent < 0 || experienceGivenPercent > 100");
     rights = reader.ReadVarInt();
     if (rights < 0)
         throw new Exception("Forbidden value on rights = " + rights + ", it doesn't respect the following condition : rights < 0");
     connected = reader.ReadSByte();
     if (connected < 0)
         throw new Exception("Forbidden value on connected = " + connected + ", it doesn't respect the following condition : connected < 0");
     alignmentSide = reader.ReadSByte();
     hoursSinceLastConnection = reader.ReadUShort();
     if (hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535)
         throw new Exception("Forbidden value on hoursSinceLastConnection = " + hoursSinceLastConnection + ", it doesn't respect the following condition : hoursSinceLastConnection < 0 || hoursSinceLastConnection > 65535");
     moodSmileyId = reader.ReadSByte();
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
     achievementPoints = reader.ReadInt();
     status = (PlayerStatus)Types.ProtocolTypeManager.GetInstance<Types.PlayerStatus>(reader.ReadShort());
     status.Deserialize(reader);
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:32,代码来源:GuildMember.cs

示例7: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     addedOrDeleted = reader.ReadBoolean();
     jobId = reader.ReadSByte();
     if (jobId < 0)
         throw new Exception("Forbidden value on jobId = " + jobId + ", it doesn't respect the following condition : jobId < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:JobListedUpdateMessage.cs

示例8: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     challengeId = reader.ReadVarShort();
     if (challengeId < 0)
         throw new Exception("Forbidden value on challengeId = " + challengeId + ", it doesn't respect the following condition : challengeId < 0");
     success = reader.ReadBoolean();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:ChallengeResultMessage.cs

示例9: Deserialize

 public virtual void Deserialize(BigEndianReader reader)
 {
     fightId = reader.ReadInt();
     fightType = reader.ReadSByte();
     if (fightType < 0)
         throw new Exception("Forbidden value on fightType = " + fightType + ", it doesn't respect the following condition : fightType < 0");
     fightStart = reader.ReadInt();
     if (fightStart < 0)
         throw new Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0");
     fightSpectatorLocked = reader.ReadBoolean();
     var limit = reader.ReadUShort();
     fightTeams = new Types.FightTeamLightInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          fightTeams[i] = new Types.FightTeamLightInformations();
          fightTeams[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     fightTeamsOptions = new Types.FightOptionsInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          fightTeamsOptions[i] = new Types.FightOptionsInformations();
          fightTeamsOptions[i].Deserialize(reader);
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:25,代码来源:FightExternalInformations.cs

示例10: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     onlySuccess = reader.ReadBoolean();
     goldSum = reader.ReadVarInt();
     if (goldSum < 0)
         throw new Exception("Forbidden value on goldSum = " + goldSum + ", it doesn't respect the following condition : goldSum < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:ExchangeGoldPaymentForCraftMessage.cs

示例11: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
     session = reader.ReadBoolean();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:IgnoredDeleteRequestMessage.cs

示例12: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     alignmentRank = reader.ReadSByte();
     if (alignmentRank < 0)
         throw new Exception("Forbidden value on alignmentRank = " + alignmentRank + ", it doesn't respect the following condition : alignmentRank < 0");
     verbose = reader.ReadBoolean();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:AlignmentRankUpdateMessage.cs

示例13: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     changeOrUse = reader.ReadBoolean();
     codeSize = reader.ReadSByte();
     if (codeSize < 0)
         throw new Exception("Forbidden value on codeSize = " + codeSize + ", it doesn't respect the following condition : codeSize < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:LockableShowCodeDialogMessage.cs

示例14: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     dungeonId = reader.ReadVarShort();
     if (dungeonId < 0)
         throw new Exception("Forbidden value on dungeonId = " + dungeonId + ", it doesn't respect the following condition : dungeonId < 0");
     available = reader.ReadBoolean();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:DungeonKeyRingUpdateMessage.cs

示例15: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     id = reader.ReadVarInt();
     if (id < 0)
         throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
     ready = reader.ReadBoolean();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:ExchangeIsReadyMessage.cs


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