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


C# ICustomDataInput.ReadVarShort方法代码示例

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


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

示例1: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     @base = reader.ReadVarShort();
     additionnal = reader.ReadVarShort();
     objectsAndMountBonus = reader.ReadVarShort();
     alignGiftBonus = reader.ReadVarShort();
     contextModif = reader.ReadVarShort();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:CharacterBaseCharacteristic.cs

示例2: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     bonesId = reader.ReadVarUhShort();
     if (bonesId < 0)
         throw new Exception("Forbidden value on bonesId = " + bonesId + ", it doesn't respect the following condition : bonesId < 0");
     var limit = reader.ReadUShort();
     skins = new List<ushort>();
     for (int i = 0; i < limit; i++)
     {
         skins.Add(reader.ReadVarUhShort());
     }
     limit = reader.ReadUShort();
     indexedColors = new List<int>();
     for (int i = 0; i < limit; i++)
     {
         indexedColors.Add(reader.ReadInt());
     }
     limit = reader.ReadUShort();
     scales = new List<short>();
     for (int i = 0; i < limit; i++)
     {
         scales.Add(reader.ReadVarShort());
     }
     limit = reader.ReadUShort();
     subentities = new List<SubEntity>();
     for (int i = 0; i < limit; i++)
     {
          var subentity = new Types.SubEntity();
         subentity.Deserialize(reader);
         subentities.Add(subentity);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:32,代码来源:EntityLook.cs

示例3: Deserialize

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

示例4: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     reason = reader.ReadSByte();
     if (reason < 0)
         throw new Exception("Forbidden value on reason = " + reason + ", it doesn't respect the following condition : reason < 0");
     memberId = reader.ReadVarUhInt();
     if (memberId < 0)
         throw new Exception("Forbidden value on memberId = " + memberId + ", it doesn't respect the following condition : memberId < 0");
     memberAccountId = reader.ReadInt();
     if (memberAccountId < 0)
         throw new Exception("Forbidden value on memberAccountId = " + memberAccountId + ", it doesn't respect the following condition : memberAccountId < 0");
     memberName = reader.ReadUTF();
     fightId = reader.ReadInt();
     fightMap = new Types.MapCoordinatesExtended();
     fightMap.Deserialize(reader);
     timeBeforeFightStart = reader.ReadVarShort();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:18,代码来源:PartyMemberInFightMessage.cs

示例5: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     lifePoints = reader.ReadVarUhInt();
     if (lifePoints < 0)
         throw new Exception("Forbidden value on lifePoints = " + lifePoints + ", it doesn't respect the following condition : lifePoints < 0");
     maxLifePoints = reader.ReadVarUhInt();
     if (maxLifePoints < 0)
         throw new Exception("Forbidden value on maxLifePoints = " + maxLifePoints + ", it doesn't respect the following condition : maxLifePoints < 0");
     baseMaxLifePoints = reader.ReadVarUhInt();
     if (baseMaxLifePoints < 0)
         throw new Exception("Forbidden value on baseMaxLifePoints = " + baseMaxLifePoints + ", it doesn't respect the following condition : baseMaxLifePoints < 0");
     permanentDamagePercent = reader.ReadVarUhInt();
     if (permanentDamagePercent < 0)
         throw new Exception("Forbidden value on permanentDamagePercent = " + permanentDamagePercent + ", it doesn't respect the following condition : permanentDamagePercent < 0");
     shieldPoints = reader.ReadVarUhInt();
     if (shieldPoints < 0)
         throw new Exception("Forbidden value on shieldPoints = " + shieldPoints + ", it doesn't respect the following condition : shieldPoints < 0");
     actionPoints = reader.ReadVarShort();
     maxActionPoints = reader.ReadVarShort();
     movementPoints = reader.ReadVarShort();
     maxMovementPoints = reader.ReadVarShort();
     summoner = reader.ReadInt();
     summoned = reader.ReadBoolean();
     neutralElementResistPercent = reader.ReadVarShort();
     earthElementResistPercent = reader.ReadVarShort();
     waterElementResistPercent = reader.ReadVarShort();
     airElementResistPercent = reader.ReadVarShort();
     fireElementResistPercent = reader.ReadVarShort();
     neutralElementReduction = reader.ReadVarShort();
     earthElementReduction = reader.ReadVarShort();
     waterElementReduction = reader.ReadVarShort();
     airElementReduction = reader.ReadVarShort();
     fireElementReduction = reader.ReadVarShort();
     criticalDamageFixedResist = reader.ReadVarShort();
     pushDamageFixedResist = reader.ReadVarShort();
     dodgePALostProbability = reader.ReadVarUhShort();
     if (dodgePALostProbability < 0)
         throw new Exception("Forbidden value on dodgePALostProbability = " + dodgePALostProbability + ", it doesn't respect the following condition : dodgePALostProbability < 0");
     dodgePMLostProbability = reader.ReadVarUhShort();
     if (dodgePMLostProbability < 0)
         throw new Exception("Forbidden value on dodgePMLostProbability = " + dodgePMLostProbability + ", it doesn't respect the following condition : dodgePMLostProbability < 0");
     tackleBlock = reader.ReadVarShort();
     tackleEvade = reader.ReadVarShort();
     invisibilityState = reader.ReadSByte();
     if (invisibilityState < 0)
         throw new Exception("Forbidden value on invisibilityState = " + invisibilityState + ", it doesn't respect the following condition : invisibilityState < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:47,代码来源:GameFightMinimalStats.cs


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