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


C# Monster.Parse方法代码示例

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


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

示例1: Parse

 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     snoActor = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(4) + (-1);
     Field4 = buffer.ReadInt(4) + (-1);
     Field5 = buffer.ReadInt(4) + (-1);
     Field6 = new Monster();
     Field6.Parse(buffer);
     Field7 = buffer.ReadInt(3);
     Field8 = buffer.ReadInt(32);
     Field9 = buffer.ReadInt(32);
     Field10 = new int[4];
     for(int i = 0;i < _Field10.Length;i++) _Field10[i] = buffer.ReadInt(32);
     ... something to fix here :D GenerateFixedArrayParseBitBuffer(D3TypeDescriptor.DT_FIXEDARRAY)
     Field12 = buffer.ReadFloat32();
     Field13 = buffer.ReadFloat32();
     Field14 = buffer.ReadFloat32();
     Field15 = buffer.ReadFloat32();
     Field16 = buffer.ReadFloat32();
     Field17 = buffer.ReadFloat32();
     Field18 = buffer.ReadInt(32);
     Field19 = new HealthDropInfo();
     Field19.Parse(buffer);
     Field20 = new HealthDropInfo();
     Field20.Parse(buffer);
     Field21 = new HealthDropInfo();
     Field21.Parse(buffer);
     Field22 = new HealthDropInfo();
     Field22.Parse(buffer);
     snoSkillKit = buffer.ReadInt(32);
     Field24 = new SkillDeclaration[8];
     for(int i = 0;i < _Field24.Length;i++)
     {
         _Field24[i] = new SkillDeclaration();
         _Field24[i].Parse(buffer);
     }
     Field25 = new MonsterSkillDeclaration[8];
     for(int i = 0;i < _Field25.Length;i++)
     {
         _Field25[i] = new MonsterSkillDeclaration();
         _Field25[i].Parse(buffer);
     }
     snoTreasureClassFirstKill = buffer.ReadInt(32);
     snoTreasureClass = buffer.ReadInt(32);
     snoTreasureClassRare = buffer.ReadInt(32);
     snoTreasureClassChampion = buffer.ReadInt(32);
     snoTreasureClassChampionLight = buffer.ReadInt(32);
     Field31 = buffer.ReadFloat32();
     Field32 = buffer.ReadFloat32();
     Field33 = buffer.ReadFloat32();
     Field34 = buffer.ReadFloat32();
     Field35 = buffer.ReadInt(32);
     Field36 = buffer.ReadFloat32();
     Field37 = buffer.ReadInt(32);
     Field38 = buffer.ReadInt(32);
     snoInventory = buffer.ReadInt(32);
     snoSecondaryInventory = buffer.ReadInt(32);
     snoLore = buffer.ReadInt(32);
     arAIBehaviors = new int[6];
     for(int i = 0;i < _arAIBehaviors.Length;i++) _arAIBehaviors[i] = buffer.ReadInt(32);
     Field43 = new int[8];
     for(int i = 0;i < _Field43.Length;i++) _Field43[i] = buffer.ReadInt(32);
     snoSummonActor = new int[6];
     for(int i = 0;i < _snoSummonActor.Length;i++) _snoSummonActor[i] = buffer.ReadInt(32);
     Field45 = new int[4];
     for(int i = 0;i < _Field45.Length;i++) _Field45[i] = buffer.ReadInt(32);
     Field46 = new int[6];
     for(int i = 0;i < _Field46.Length;i++) _Field46[i] = buffer.ReadInt(32);
     Field47 = buffer.ReadInt(32);
     Field48 = buffer.ReadInt(32);
     Field49 = buffer.ReadInt(32);
     Field50 = buffer.ReadInt(3);
     serTagMap = new SerializeData();
     serTagMap.Parse(buffer);
     hTagMap = new DT_TAGMAP();
     hTagMap.Parse(buffer);
     Field53 = buffer.ReadInt(32);
     Field54 = new DT_VARIABLEARRAY();
     Field54.Parse(buffer);
     serSpawnGroups = new SerializeData();
     serSpawnGroups.Parse(buffer);
     Field56 = buffer.ReadCharArray(128);
 }
开发者ID:starcasters,项目名称:type-extractor,代码行数:85,代码来源:classgenerator-output.cs


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