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


C# MpqFileStream.ReadValueS64方法代码示例

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


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

示例1: FileRead

 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 1460;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 1464;
     serAppearanceMaterials = new SerializeData();
     serAppearanceMaterials.FileRead(stream, stream.Position);
     stream.Position = offset + 1472;
     //still checking variablearrays
     AppearanceMaterials = new List<AppearanceMaterial>();
     for(int i = 0; i < (int)(serAppearanceMaterials.Field1 / 140); i++)
     {
     stream.Position = serAppearanceMaterials.Field0 + 16 + (140*i) ;
         AppearanceMaterial temp12_AppearanceMaterials;
         temp12_AppearanceMaterials = new AppearanceMaterial();
         temp12_AppearanceMaterials.FileRead(stream, stream.Position);
         _AppearanceMaterials.Add(temp12_AppearanceMaterials);
     }
     stream.Position = offset + 1480;
     serAppearanceLooks = new SerializeData();
     serAppearanceLooks.FileRead(stream, stream.Position);
     stream.Position = offset + 1488;
     //still checking variablearrays
     AppearanceLooks = new List<AppearanceLook>();
     for(int i = 0; i < (int)(serAppearanceLooks.Field1 / 64); i++)
     {
     stream.Position = serAppearanceLooks.Field0 + 16 + (64*i) ;
         AppearanceLook temp12_AppearanceLooks;
         temp12_AppearanceLooks = new AppearanceLook();
         temp12_AppearanceLooks.FileRead(stream, stream.Position);
         _AppearanceLooks.Add(temp12_AppearanceLooks);
     }
     stream.Position = offset + 16;
     Field5 = new Structure();
     Field5.FileRead(stream, stream.Position);
     stream.Position = offset + 1456;
     Field6 = stream.ReadValueS32();
     stream.Position = offset + 1496;
     nStaticLightCount = stream.ReadValueS32();
     stream.Position = offset + 1500;
     serStaticLights = new SerializeData();
     serStaticLights.FileRead(stream, stream.Position);
     stream.Position = offset + 1512;
     //still checking variablearrays
     StaticLights = new List<StaticLight>();
     for(int i = 0; i < (int)(serStaticLights.Field1 / 92); i++)
     {
     stream.Position = serStaticLights.Field0 + 16 + (92*i) ;
         StaticLight temp12_StaticLights;
         temp12_StaticLights = new StaticLight();
         temp12_StaticLights.FileRead(stream, stream.Position);
         _StaticLights.Add(temp12_StaticLights);
     }
     stream.Position = offset + 1520;
     Field10 = stream.ReadValueS32();
     stream.Position = offset + 1524;
     Field11 = stream.ReadValueS32();
     stream.Position = offset + 1528;
     Field12 = stream.ReadValueS32();
     stream.Position = offset + 1532;
     Field13 = stream.ReadValueS32();
     stream.Position = offset + 1536;
     Field14 = stream.ReadValueS32();
     stream.Position = offset + 1540;
     Field15 = stream.ReadValueS32();
     stream.Position = offset + 1544;
     Field16 = stream.ReadValueS32();
     stream.Position = offset + 1548;
     Field17 = stream.ReadValueF32();
     stream.Position = offset + 1552;
     Field18 = stream.ReadValueS32();
     stream.Position = offset + 1556;
     Field19 = stream.ReadValueS32();
     stream.Position = offset + 1560;
     Field20 = stream.ReadValueS64();
     stream.Position = offset + 1568;
     Field21 = stream.ReadValueS32();
 }
开发者ID:starcasters,项目名称:type-extractor,代码行数:78,代码来源:classgenerator-output.cs


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