• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ICustomDataInput类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

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


示例2: Deserialize

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


示例3: Deserialize

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


示例4: Deserialize

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


示例5: Deserialize

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


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


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


示例8: Deserialize

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


示例9: Deserialize

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


示例10: 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");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:PartyCannotJoinErrorMessage.cs


示例11: Deserialize

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


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


示例13: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     var limit = reader.ReadUShort();
     effects = new Types.FightDispellableEffectExtendedInformations[limit];
     for (int i = 0; i < limit; i++)
     {
          (effects as Types.FightDispellableEffectExtendedInformations[])[i] = new Types.FightDispellableEffectExtendedInformations();
          (effects as Types.FightDispellableEffectExtendedInformations[])[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     marks = new Types.GameActionMark[limit];
     for (int i = 0; i < limit; i++)
     {
          (marks as Types.GameActionMark[])[i] = new Types.GameActionMark();
          (marks as Types.GameActionMark[])[i].Deserialize(reader);
     }
     gameTurn = reader.ReadVarUhShort();
     if (gameTurn < 0)
         throw new Exception("Forbidden value on gameTurn = " + gameTurn + ", it doesn't respect the following condition : gameTurn < 0");
     fightStart = reader.ReadInt();
     if (fightStart < 0)
         throw new Exception("Forbidden value on fightStart = " + fightStart + ", it doesn't respect the following condition : fightStart < 0");
     limit = reader.ReadUShort();
     idols = new Types.Idol[limit];
     for (int i = 0; i < limit; i++)
     {
          (idols as Types.Idol[])[i] = new Types.Idol();
          (idols as Types.Idol[])[i].Deserialize(reader);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:30,代码来源:GameFightSpectateMessage.cs


示例14: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     id = reader.ReadUTF();
     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,代码来源:ContentPart.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


示例16: Deserialize

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


示例17: Deserialize

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


示例18: Deserialize

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


示例19: Deserialize

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


示例20: Deserialize

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ICustomDataOutput类代码示例发布时间:2022-05-24
下一篇:
C# ICustomAttributeProvider类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap