コード例 #1
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = buffer.ReadFloat32();
     Field5 = buffer.ReadFloat32();
     Field6 = buffer.ReadFloat32();
     Field7 = new ConvexHull();
     Field7.Parse(buffer);
     Field8 = new OBB();
     Field8.Parse(buffer);
     Field9 = new Sphere();
     Field9.Parse(buffer);
     Field10 = new Cylinder();
     Field10.Parse(buffer);
     Field11 = new Capsule();
     Field11.Parse(buffer);
 }
コード例 #2
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 4;
     Field1 = stream.ReadValueS32();
     stream.Position = offset + 8;
     Field2 = stream.ReadValueS32();
     stream.Position = offset + 12;
     Field3 = stream.ReadValueS32();
     stream.Position = offset + 16;
     Field4 = stream.ReadValueF32();
     stream.Position = offset + 20;
     Field5 = stream.ReadValueF32();
     stream.Position = offset + 24;
     Field6 = stream.ReadValueF32();
     stream.Position = offset + 28;
     Field7 = new ConvexHull();
     Field7.FileRead(stream, stream.Position);
     stream.Position = offset + 132;
     Field8 = new OBB();
     Field8.FileRead(stream, stream.Position);
     stream.Position = offset + 172;
     Field9 = new Sphere();
     Field9.FileRead(stream, stream.Position);
     stream.Position = offset + 188;
     Field10 = new Cylinder();
     Field10.FileRead(stream, stream.Position);
     stream.Position = offset + 216;
     Field11 = new Capsule();
     Field11.FileRead(stream, stream.Position);
 }