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


C# ICustomDataInput.ReadInt方法代码示例

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


在下文中一共展示了ICustomDataInput.ReadInt方法的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)
 {
     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 as Types.FightTeamLightInformations[])[i] = new Types.FightTeamLightInformations();
          (fightTeams as Types.FightTeamLightInformations[])[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     fightTeamsOptions = new Types.FightOptionsInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (fightTeamsOptions as Types.FightOptionsInformations[])[i] = new Types.FightOptionsInformations();
          (fightTeamsOptions as Types.FightOptionsInformations[])[i].Deserialize(reader);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:25,代码来源:FightExternalInformations.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 virtual void Deserialize(ICustomDataInput reader)
 {
     timeLeftBeforeFight = reader.ReadInt();
     waitTimeForPlacement = reader.ReadInt();
     nbPositionForDefensors = reader.ReadSByte();
     if (nbPositionForDefensors < 0)
         throw new Exception("Forbidden value on nbPositionForDefensors = " + nbPositionForDefensors + ", it doesn't respect the following condition : nbPositionForDefensors < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:ProtectedEntityWaitingForHelpInfo.cs

示例5: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     fightId = reader.ReadInt();
     sourceId = reader.ReadVarUhInt();
     if (sourceId < 0)
         throw new Exception("Forbidden value on sourceId = " + sourceId + ", it doesn't respect the following condition : sourceId < 0");
     targetId = reader.ReadInt();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:GameRolePlayFightRequestCanceledMessage.cs

示例6: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     arg1 = reader.ReadInt();
     arg2 = reader.ReadInt();
     arg3 = reader.ReadInt();
     delay = reader.ReadShort();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:FightTriggeredEffect.cs

示例7: Deserialize

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

示例8: Deserialize

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

示例9: Deserialize

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

示例10: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     fightId = reader.ReadInt();
     if (fightId < 0)
         throw new Exception("Forbidden value on fightId = " + fightId + ", it doesn't respect the following condition : fightId < 0");
     var limit = reader.ReadUShort();
     alliesId = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          (alliesId as int[])[i] = reader.ReadInt();
     }
     duration = reader.ReadVarUhShort();
     if (duration < 0)
         throw new Exception("Forbidden value on duration = " + duration + ", it doesn't respect the following condition : duration < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:15,代码来源:GameRolePlayArenaFightPropositionMessage.cs

示例11: Deserialize

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

示例12: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     targetId = reader.ReadInt();
     entityLook = new Types.EntityLook();
     entityLook.Deserialize(reader);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:GameActionFightChangeLookMessage.cs

示例13: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     memberId = reader.ReadInt();
     if (memberId < 0)
         throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0");
     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)");
     mapId = reader.ReadInt();
     subAreaId = reader.ReadVarUhShort();
     if (subAreaId < 0)
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:16,代码来源:PartyMemberGeoPosition.cs

示例14: Deserialize

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

示例15: Deserialize

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


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