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


C# IO.BigEndianReader类代码示例

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


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

示例1: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     timestamp = reader.ReadDouble();
     if (timestamp < 0 || timestamp > 9.007199254740992E15)
         throw new Exception("Forbidden value on timestamp = " + timestamp + ", it doesn't respect the following condition : timestamp < 0 || timestamp > 9.007199254740992E15");
     timezoneOffset = reader.ReadShort();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:BasicTimeMessage.cs

示例2: Deserialize

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

示例3: Deserialize

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

示例4: Deserialize

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

示例5: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
      byte b= reader.ReadByte();
      this.showExperience = BooleanByteWrapper.GetFlag(b,0);
      this.showExperienceLevelFloor = BooleanByteWrapper.GetFlag(b, 1);
      this.showExperienceNextLevelFloor = BooleanByteWrapper.GetFlag(b, 2);
      this.showExperienceFightDelta = BooleanByteWrapper.GetFlag(b, 3);
      this.showExperienceForGuild = BooleanByteWrapper.GetFlag(b, 4);
      this.showExperienceForMount = BooleanByteWrapper.GetFlag(b, 5);
      this.isIncarnationExperience = BooleanByteWrapper.GetFlag(b, 6);
     experience = reader.ReadVarUhLong();
     if (experience < 0 || experience > 9.007199254740992E15)
         throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < 0 || experience > 9.007199254740992E15");
     experienceLevelFloor = reader.ReadVarUhLong();
     if (experienceLevelFloor < 0 || experienceLevelFloor > 9.007199254740992E15)
         throw new Exception("Forbidden value on experienceLevelFloor = " + experienceLevelFloor + ", it doesn't respect the following condition : experienceLevelFloor < 0 || experienceLevelFloor > 9.007199254740992E15");
     experienceNextLevelFloor = reader.ReadDouble();
     if (experienceNextLevelFloor < 0 || experienceNextLevelFloor > 9.007199254740992E15)
         throw new Exception("Forbidden value on experienceNextLevelFloor = " + experienceNextLevelFloor + ", it doesn't respect the following condition : experienceNextLevelFloor < 0 || experienceNextLevelFloor > 9.007199254740992E15");
     experienceFightDelta = reader.ReadVarInt();
     experienceForGuild = reader.ReadVarInt();
     if (experienceForGuild < 0)
         throw new Exception("Forbidden value on experienceForGuild = " + experienceForGuild + ", it doesn't respect the following condition : experienceForGuild < 0");
     experienceForMount = reader.ReadVarInt();
     if (experienceForMount < 0)
         throw new Exception("Forbidden value on experienceForMount = " + experienceForMount + ", it doesn't respect the following condition : experienceForMount < 0");
     rerollExperienceMul = reader.ReadSByte();
     if (rerollExperienceMul < 0)
         throw new Exception("Forbidden value on rerollExperienceMul = " + rerollExperienceMul + ", it doesn't respect the following condition : rerollExperienceMul < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:31,代码来源:FightResultExperienceData.cs

示例6: Deserialize

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

示例7: Deserialize

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

示例8: Deserialize

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

示例9: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     byte flag1 = reader.ReadByte();
     enabled = BooleanByteWrapper.GetFlag(flag1, 0);
     abandonnedPaddock = BooleanByteWrapper.GetFlag(flag1, 1);
     level = reader.ReadByte();
     if (level < 0 || level > 255)
         throw new Exception("Forbidden value on level = " + level + ", it doesn't respect the following condition : level < 0 || level > 255");
     expLevelFloor = reader.ReadVarUhLong();
     if (expLevelFloor < 0 || expLevelFloor > 9.007199254740992E15)
         throw new Exception("Forbidden value on expLevelFloor = " + expLevelFloor + ", it doesn't respect the following condition : expLevelFloor < 0 || expLevelFloor > 9.007199254740992E15");
     experience = reader.ReadVarUhLong();
     if (experience < 0 || experience > 9.007199254740992E15)
         throw new Exception("Forbidden value on experience = " + experience + ", it doesn't respect the following condition : experience < 0 || experience > 9.007199254740992E15");
     expNextLevelFloor = reader.ReadVarUhLong();
     if (expNextLevelFloor < 0 || expNextLevelFloor > 9.007199254740992E15)
         throw new Exception("Forbidden value on expNextLevelFloor = " + expNextLevelFloor + ", it doesn't respect the following condition : expNextLevelFloor < 0 || expNextLevelFloor > 9.007199254740992E15");
     creationDate = reader.ReadInt();
     if (creationDate < 0)
         throw new Exception("Forbidden value on creationDate = " + creationDate + ", it doesn't respect the following condition : creationDate < 0");
     nbTotalMembers = reader.ReadVarShort();
     if (nbTotalMembers < 0)
         throw new Exception("Forbidden value on nbTotalMembers = " + nbTotalMembers + ", it doesn't respect the following condition : nbTotalMembers < 0");
     nbConnectedMembers = reader.ReadVarShort();
     if (nbConnectedMembers < 0)
         throw new Exception("Forbidden value on nbConnectedMembers = " + nbConnectedMembers + ", it doesn't respect the following condition : nbConnectedMembers < 0");
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:27,代码来源:GuildInformationsGeneralMessage.cs

示例10: FromId

 // Methods
 public static Map FromId(int id)
 {
     lock (MapsManager.CheckLock)
     {
         if (MapsManager.MapId_Map.ContainsKey(id))
         {
             return MapsManager.MapId_Map[id];
         }
         string str = ((id % 10).ToString() + "/" + id.ToString() + ".dlm");
         if (MapsManager.D2pFileManager.MapExists(str))
         {
             MemoryStream stream = new MemoryStream(MapsManager.D2pFileManager.method_1(str)) { Position = 2 };
             DeflateStream stream2 = new DeflateStream(stream, CompressionMode.Decompress);
             byte[] buffer = new byte[50001];
             MemoryStream destination = new MemoryStream(buffer);
             stream2.CopyTo(destination);
             destination.Position = 0;
             BigEndianReader reader = new BigEndianReader(destination);
             Map map2 = new Map();
             map2.Init(reader);
             MapsManager.MapId_Map.Add(id, map2);
             if ((MapsManager.MapId_Map.Count > 1000))
             {
                 MapsManager.MapId_Map.Remove(MapsManager.MapId_Map.Keys.First());
             }
             return map2;
         }
         MapsManager.MapId_Map.Add(id, null);
         if ((MapsManager.MapId_Map.Count > 1000))
         {
             MapsManager.MapId_Map.Remove(MapsManager.MapId_Map.Keys.First());
         }
         return null;
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:36,代码来源:MapsManager.cs

示例11: Deserialize

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

示例12: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     name = reader.ReadUTF();
     status = new Types.PlayerStatus();
     status.Deserialize(reader);
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:7,代码来源:GameFightFighterNamedInformations.cs

示例13: Deserialize

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

示例14: Deserialize

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

示例15: Deserialize

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


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