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


C# ICustomDataInput.ReadSByte方法代码示例

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


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

示例1: Deserialize

 public override void Deserialize(ICustomDataInput 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 as Types.TreasureHuntStep[])[i] = Types.ProtocolTypeManager.GetInstance<Types.TreasureHuntStep>(reader.ReadShort());
          (knownStepsList as Types.TreasureHuntStep[])[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.ReadVarUhInt();
     if (checkPointCurrent < 0)
         throw new Exception("Forbidden value on checkPointCurrent = " + checkPointCurrent + ", it doesn't respect the following condition : checkPointCurrent < 0");
     checkPointTotal = reader.ReadVarUhInt();
     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 as Types.TreasureHuntFlag[])[i] = new Types.TreasureHuntFlag();
          (flags as Types.TreasureHuntFlag[])[i].Deserialize(reader);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:31,代码来源:TreasureHuntMessage.cs

示例2: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     modelId = reader.ReadVarUhInt();
     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.ReadVarUhShort();
     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 as int[])[i] = reader.ReadInt();
     }
     isLocked = reader.ReadBoolean();
     price = reader.ReadVarUhInt();
     if (price < 0)
         throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:29,代码来源:HouseInformationsForSell.cs

示例3: Deserialize

 public virtual void Deserialize(ICustomDataInput 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 as Types.GameActionMarkedCell[])[i] = new Types.GameActionMarkedCell();
          (cells as Types.GameActionMarkedCell[])[i].Deserialize(reader);
     }
     active = reader.ReadBoolean();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:26,代码来源:GameActionMark.cs

示例4: Deserialize

 public override void Deserialize(ICustomDataInput 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:thomasvinot,项目名称:Symbioz,代码行数:9,代码来源:InventoryPresetSaveResultMessage.cs

示例5: Deserialize

 public override void Deserialize(ICustomDataInput 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:thomasvinot,项目名称:Symbioz,代码行数:9,代码来源:TreasureHuntDigRequestAnswerMessage.cs

示例6: Deserialize

 public override void Deserialize(ICustomDataInput 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:thomasvinot,项目名称:Symbioz,代码行数:9,代码来源:ShortcutBarRemoveRequestMessage.cs

示例7: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     id = reader.ReadSByte();
     if (id < 0)
         throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
     teamId = reader.ReadSByte();
     if (teamId < 0)
         throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
     nbTurnBeforeNextWave = reader.ReadShort();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:10,代码来源:GameFightNewWaveMessage.cs

示例8: Deserialize

 public override void Deserialize(ICustomDataInput 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:thomasvinot,项目名称:Symbioz,代码行数:10,代码来源:ServerSettingsMessage.cs

示例9: Deserialize

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

示例10: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     bindingPointCategory = reader.ReadSByte();
     if (bindingPointCategory < 0)
         throw new Exception("Forbidden value on bindingPointCategory = " + bindingPointCategory + ", it doesn't respect the following condition : bindingPointCategory < 0");
     bindingPointIndex = reader.ReadSByte();
     if (bindingPointIndex < 0)
         throw new Exception("Forbidden value on bindingPointIndex = " + bindingPointIndex + ", it doesn't respect the following condition : bindingPointIndex < 0");
     subEntityLook = new Types.EntityLook();
     subEntityLook.Deserialize(reader);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:11,代码来源:SubEntity.cs

示例11: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     day = reader.ReadSByte();
     if (day < 0)
         throw new Exception("Forbidden value on day = " + day + ", it doesn't respect the following condition : day < 0");
     month = reader.ReadSByte();
     if (month < 0)
         throw new Exception("Forbidden value on month = " + month + ", it doesn't respect the following condition : month < 0");
     year = reader.ReadShort();
     if (year < 0)
         throw new Exception("Forbidden value on year = " + year + ", it doesn't respect the following condition : year < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:12,代码来源:BasicDateMessage.cs

示例12: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     serverId = reader.ReadVarUhShort();
     if (serverId < 0)
         throw new Exception("Forbidden value on serverId = " + serverId + ", it doesn't respect the following condition : serverId < 0");
     error = reader.ReadSByte();
     if (error < 0)
         throw new Exception("Forbidden value on error = " + error + ", it doesn't respect the following condition : error < 0");
     serverStatus = reader.ReadSByte();
     if (serverStatus < 0)
         throw new Exception("Forbidden value on serverStatus = " + serverStatus + ", it doesn't respect the following condition : serverStatus < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:12,代码来源:SelectedServerRefusedMessage.cs

示例13: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     days = reader.ReadVarUhShort();
     if (days < 0)
         throw new Exception("Forbidden value on days = " + days + ", it doesn't respect the following condition : days < 0");
     hours = reader.ReadSByte();
     if (hours < 0)
         throw new Exception("Forbidden value on hours = " + hours + ", it doesn't respect the following condition : hours < 0");
     minutes = reader.ReadSByte();
     if (minutes < 0)
         throw new Exception("Forbidden value on minutes = " + minutes + ", it doesn't respect the following condition : minutes < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:12,代码来源:AccountLoggingKickedMessage.cs

示例14: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     alignmentSide = reader.ReadSByte();
     alignmentValue = reader.ReadSByte();
     if (alignmentValue < 0)
         throw new Exception("Forbidden value on alignmentValue = " + alignmentValue + ", it doesn't respect the following condition : alignmentValue < 0");
     alignmentGrade = reader.ReadSByte();
     if (alignmentGrade < 0)
         throw new Exception("Forbidden value on alignmentGrade = " + alignmentGrade + ", it doesn't respect the following condition : alignmentGrade < 0");
     characterPower = reader.ReadVarUhInt();
     if (characterPower < 0)
         throw new Exception("Forbidden value on characterPower = " + characterPower + ", it doesn't respect the following condition : characterPower < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:13,代码来源:ActorAlignmentInformations.cs

示例15: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     fightId = reader.ReadShort();
     if (fightId < 0)
         throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
     teamId = reader.ReadSByte();
     if (teamId < 0)
         throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
     option = reader.ReadSByte();
     if (option < 0)
         throw new Exception("Forbidden value on option = " + option + ", it doesn't respect the following condition : option < 0");
     state = reader.ReadBoolean();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:13,代码来源:GameFightOptionStateUpdateMessage.cs


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