コード例 #1
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     serClusters = new SerializeData();
     serClusters.Parse(buffer);
     //still checking variablearrays
     this.Clusters = new List<SceneCluster>( buffer.ReadInt(0) );
     for(int loop12 = 0; loop12 < _Clusters.Count; loop12++)
     {
         _Clusters[loop12] = new SceneCluster();
         _Clusters[loop12].Parse(buffer);
     }
 }
コード例 #2
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 16;
     serClusters = new SerializeData();
     serClusters.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     //still checking variablearrays
     Clusters = new List<SceneCluster>();
     for(int i = 0; i < (int)(serClusters.Field1 / 176); i++)
     {
     stream.Position = serClusters.Field0 + 16 + (176*i) ;
         SceneCluster temp12_Clusters;
         temp12_Clusters = new SceneCluster();
         temp12_Clusters.FileRead(stream, stream.Position);
         _Clusters.Add(temp12_Clusters);
     }
 }