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


C# BigEndianReader.ReadSByte方法代码示例

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


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

示例1: Deserialize

 public virtual void Deserialize(BigEndianReader reader)
 {
     markAuthorId = reader.ReadInt();
     markTeamId = reader.ReadSByte();
     if (markTeamId < 0)
         throw new Exception("Forbidden value on markTeamId = " + markTeamId + ", it doesn't respect the following condition : markTeamId < 0");
     markSpellId = reader.ReadInt();
     if (markSpellId < 0)
         throw new Exception("Forbidden value on markSpellId = " + markSpellId + ", it doesn't respect the following condition : markSpellId < 0");
     markSpellLevel = reader.ReadSByte();
     if (markSpellLevel < 1 || markSpellLevel > 6)
         throw new Exception("Forbidden value on markSpellLevel = " + markSpellLevel + ", it doesn't respect the following condition : markSpellLevel < 1 || markSpellLevel > 6");
     markId = reader.ReadShort();
     markType = reader.ReadSByte();
     markimpactCell = reader.ReadShort();
     if (markimpactCell < -1 || markimpactCell > 559)
         throw new Exception("Forbidden value on markimpactCell = " + markimpactCell + ", it doesn't respect the following condition : markimpactCell < -1 || markimpactCell > 559");
     var limit = reader.ReadUShort();
     cells = new Types.GameActionMarkedCell[limit];
     for (int i = 0; i < limit; i++)
     {
          cells[i] = new Types.GameActionMarkedCell();
          cells[i].Deserialize(reader);
     }
     active = reader.ReadBoolean();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:26,代码来源:GameActionMark.cs

示例2: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     questType = reader.ReadSByte();
     if (questType < 0)
         throw new Exception("Forbidden value on questType = " + questType + ", it doesn't respect the following condition : questType < 0");
     startMapId = reader.ReadInt();
     var limit = reader.ReadUShort();
     knownStepsList = new Types.TreasureHuntStep[limit];
     for (int i = 0; i < limit; i++)
     {
          knownStepsList[i] = Types.ProtocolTypeManager.GetInstance<Types.TreasureHuntStep>(reader.ReadShort());
          knownStepsList[i].Deserialize(reader);
     }
     totalStepCount = reader.ReadSByte();
     if (totalStepCount < 0)
         throw new Exception("Forbidden value on totalStepCount = " + totalStepCount + ", it doesn't respect the following condition : totalStepCount < 0");
     checkPointCurrent = reader.ReadVarInt();
     if (checkPointCurrent < 0)
         throw new Exception("Forbidden value on checkPointCurrent = " + checkPointCurrent + ", it doesn't respect the following condition : checkPointCurrent < 0");
     checkPointTotal = reader.ReadVarInt();
     if (checkPointTotal < 0)
         throw new Exception("Forbidden value on checkPointTotal = " + checkPointTotal + ", it doesn't respect the following condition : checkPointTotal < 0");
     availableRetryCount = reader.ReadInt();
     limit = reader.ReadUShort();
     flags = new Types.TreasureHuntFlag[limit];
     for (int i = 0; i < limit; i++)
     {
          flags[i] = new Types.TreasureHuntFlag();
          flags[i].Deserialize(reader);
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:31,代码来源:TreasureHuntMessage.cs

示例3: Deserialize

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

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

示例5: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     teleporterType = reader.ReadSByte();
     if (teleporterType < 0)
         throw new Exception("Forbidden value on teleporterType = " + teleporterType + ", it doesn't respect the following condition : teleporterType < 0");
     var limit = reader.ReadUShort();
     mapIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          mapIds[i] = reader.ReadInt();
     }
     limit = reader.ReadUShort();
     subAreaIds = new short[limit];
     for (int i = 0; i < limit; i++)
     {
          subAreaIds[i] = reader.ReadVarShort();
     }
     limit = reader.ReadUShort();
     costs = new short[limit];
     for (int i = 0; i < limit; i++)
     {
          costs[i] = reader.ReadVarShort();
     }
     limit = reader.ReadUShort();
     destTeleporterType = new sbyte[limit];
     for (int i = 0; i < limit; i++)
     {
          destTeleporterType[i] = reader.ReadSByte();
     }
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:30,代码来源:TeleportDestinationsListMessage.cs

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

示例7: Deserialize

 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     partyType = reader.ReadSByte();
     if (partyType < 0)
         throw new Exception("Forbidden value on partyType = " + partyType + ", it doesn't respect the following condition : partyType < 0");
     partyLeaderId = reader.ReadVarInt();
     if (partyLeaderId < 0)
         throw new Exception("Forbidden value on partyLeaderId = " + partyLeaderId + ", it doesn't respect the following condition : partyLeaderId < 0");
     maxParticipants = reader.ReadSByte();
     if (maxParticipants < 0)
         throw new Exception("Forbidden value on maxParticipants = " + maxParticipants + ", it doesn't respect the following condition : maxParticipants < 0");
     var limit = reader.ReadUShort();
     members = new Types.PartyMemberInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          members[i] = Types.ProtocolTypeManager.GetInstance<Types.PartyMemberInformations>(reader.ReadShort());
          members[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     guests = new Types.PartyGuestInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          guests[i] = new Types.PartyGuestInformations();
          guests[i].Deserialize(reader);
     }
     restricted = reader.ReadBoolean();
     partyName = reader.ReadUTF();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:29,代码来源:PartyJoinMessage.cs

示例8: Deserialize

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

示例9: Deserialize

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

示例10: Deserialize

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

示例11: Deserialize

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

示例12: Deserialize

 public virtual void Deserialize(BigEndianReader reader)
 {
     cellId = reader.ReadVarShort();
     if (cellId < 0 || cellId > 559)
         throw new Exception("Forbidden value on cellId = " + cellId + ", it doesn't respect the following condition : cellId < 0 || cellId > 559");
     zoneSize = reader.ReadSByte();
     cellColor = reader.ReadInt();
     cellsType = reader.ReadSByte();
 }
开发者ID:DjTrilogic,项目名称:BlueSheep,代码行数:9,代码来源:GameActionMarkedCell.cs

示例13: Deserialize

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

示例14: Deserialize

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

示例15: Deserialize

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


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