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


C# ICustomDataInput.ReadVarUhShort方法代码示例

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


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

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

示例2: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     finishedQuestsIds = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (finishedQuestsIds as ushort[])[i] = reader.ReadVarUhShort();
     }
     limit = reader.ReadUShort();
     finishedQuestsCounts = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (finishedQuestsCounts as ushort[])[i] = reader.ReadVarUhShort();
     }
     limit = reader.ReadUShort();
     activeQuests = new Types.QuestActiveInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (activeQuests as Types.QuestActiveInformations[])[i] = Types.ProtocolTypeManager.GetInstance<Types.QuestActiveInformations>(reader.ReadShort());
          (activeQuests as Types.QuestActiveInformations[])[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     reinitDoneQuestsIds = new ushort[limit];
     for (int i = 0; i < limit; i++)
     {
          (reinitDoneQuestsIds as ushort[])[i] = reader.ReadVarUhShort();
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:28,代码来源:QuestListMessage.cs

示例3: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     maxPods = reader.ReadVarUhShort();
     if (maxPods < 0)
         throw new Exception("Forbidden value on maxPods = " + maxPods + ", it doesn't respect the following condition : maxPods < 0");
     prospecting = reader.ReadVarUhShort();
     if (prospecting < 0)
         throw new Exception("Forbidden value on prospecting = " + prospecting + ", it doesn't respect the following condition : prospecting < 0");
     wisdom = reader.ReadVarUhShort();
     if (wisdom < 0)
         throw new Exception("Forbidden value on wisdom = " + wisdom + ", it doesn't respect the following condition : wisdom < 0");
     taxCollectorsCount = reader.ReadSByte();
     if (taxCollectorsCount < 0)
         throw new Exception("Forbidden value on taxCollectorsCount = " + taxCollectorsCount + ", it doesn't respect the following condition : taxCollectorsCount < 0");
     taxCollectorAttack = reader.ReadInt();
     kamas = reader.ReadVarUhInt();
     if (kamas < 0)
         throw new Exception("Forbidden value on kamas = " + kamas + ", it doesn't respect the following condition : kamas < 0");
     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)");
     pods = reader.ReadVarUhInt();
     if (pods < 0)
         throw new Exception("Forbidden value on pods = " + pods + ", it doesn't respect the following condition : pods < 0");
     itemsValue = reader.ReadVarUhInt();
     if (itemsValue < 0)
         throw new Exception("Forbidden value on itemsValue = " + itemsValue + ", it doesn't respect the following condition : itemsValue < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:29,代码来源:TaxCollectorDialogQuestionExtendedMessage.cs

示例4: Deserialize

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

示例5: Deserialize

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

示例6: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     cellId = reader.ReadVarUhShort();
     if ((cellId < 0) || (cellId > 559))
         throw new Exception("Forbidden value on cellId = " + cellId + ", it doesn't respect the following condition : (cellId < 0) || (cellId > 559)");
     objectGID = reader.ReadVarUhShort();
     if (objectGID < 0)
         throw new Exception("Forbidden value on objectGID = " + objectGID + ", it doesn't respect the following condition : objectGID < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:9,代码来源:ObjectItemInRolePlay.cs

示例7: Deserialize

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

示例8: Deserialize

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

示例9: Deserialize

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

示例10: Deserialize

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

示例11: Deserialize

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

示例12: Deserialize

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

示例13: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     entityId = reader.ReadVarUhInt();
     if (entityId < 0)
         throw new Exception("Forbidden value on entityId = " + entityId + ", it doesn't respect the following condition : entityId < 0");
     elemId = reader.ReadVarUhInt();
     if (elemId < 0)
         throw new Exception("Forbidden value on elemId = " + elemId + ", it doesn't respect the following condition : elemId < 0");
     skillId = reader.ReadVarUhShort();
     if (skillId < 0)
         throw new Exception("Forbidden value on skillId = " + skillId + ", it doesn't respect the following condition : skillId < 0");
     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,代码来源:InteractiveUsedMessage.cs

示例14: Deserialize

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

示例15: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     quantities = new uint[limit];
     for (int i = 0; i < limit; i++)
     {
          (quantities as uint[])[i] = reader.ReadVarUhInt();
     }
     limit = reader.ReadUShort();
     types = new uint[limit];
     for (int i = 0; i < limit; i++)
     {
          (types as uint[])[i] = reader.ReadVarUhInt();
     }
     taxPercentage = reader.ReadFloat();
     taxModificationPercentage = reader.ReadFloat();
     maxItemLevel = reader.ReadByte();
     if ((maxItemLevel < 0) || (maxItemLevel > 255))
         throw new Exception("Forbidden value on maxItemLevel = " + maxItemLevel + ", it doesn't respect the following condition : (maxItemLevel < 0) || (maxItemLevel > 255)");
     maxItemPerAccount = reader.ReadVarUhInt();
     if (maxItemPerAccount < 0)
         throw new Exception("Forbidden value on maxItemPerAccount = " + maxItemPerAccount + ", it doesn't respect the following condition : maxItemPerAccount < 0");
     npcContextualId = reader.ReadInt();
     unsoldDelay = reader.ReadVarUhShort();
     if (unsoldDelay < 0)
         throw new Exception("Forbidden value on unsoldDelay = " + unsoldDelay + ", it doesn't respect the following condition : unsoldDelay < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:27,代码来源:SellerBuyerDescriptor.cs


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