public override void Parse(GameBitBuffer buffer) { Field0 = buffer.ReadInt(32); Field1 = new Matrix4x4(); Field1.Parse(buffer); Field2 = buffer.ReadFloat32(); Field3 = buffer.ReadFloat32(); Field4 = buffer.ReadFloat32(); Field5 = buffer.ReadFloat32(); Field6 = buffer.ReadFloat32(); Field7 = buffer.ReadFloat32(); Field8 = buffer.ReadFloat32(); Field9 = buffer.ReadFloat32(); Field10 = buffer.ReadFloat32(); Field11 = buffer.ReadFloat32(); Field12 = buffer.ReadFloat32(); Field13 = buffer.ReadFloat32(); Field14 = buffer.ReadFloat32(); Field15 = buffer.ReadFloat32(); Field16 = buffer.ReadFloat32(); Field17 = buffer.ReadFloat32(); Field18 = buffer.ReadFloat32(); Field19 = buffer.ReadInt(32); Field20 = buffer.ReadInt(32); Field21 = buffer.ReadInt(32); Field22 = buffer.ReadInt(32); Field23 = new FrameAnim(); Field23.Parse(buffer); Field24 = buffer.ReadInt(32); }
public override void Parse(GameBitBuffer buffer) { Field0 = buffer.ReadInt(32); Field1 = buffer.ReadInt(32); Field2 = new FrameAnim(); Field2.Parse(buffer); snoSound = buffer.ReadInt(32); Field4 = buffer.ReadInt(32); serFrames = new SerializeData(); serFrames.Parse(buffer); //still checking variablearrays this.Frames = new List<Anim2DFrame>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _Frames.Count; loop12++) { _Frames[loop12] = new Anim2DFrame(); _Frames[loop12].Parse(buffer); } }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; Field0 = stream.ReadValueS32(); stream.Position = offset + 4; Field1 = new Matrix4x4(); Field1.FileRead(stream, stream.Position); stream.Position = offset + 68; Field2 = stream.ReadValueF32(); stream.Position = offset + 72; Field3 = stream.ReadValueF32(); stream.Position = offset + 80; Field4 = stream.ReadValueF32(); stream.Position = offset + 76; Field5 = stream.ReadValueF32(); stream.Position = offset + 84; Field6 = stream.ReadValueF32(); stream.Position = offset + 88; Field7 = stream.ReadValueF32(); stream.Position = offset + 92; Field8 = stream.ReadValueF32(); stream.Position = offset + 96; Field9 = stream.ReadValueF32(); stream.Position = offset + 100; Field10 = stream.ReadValueF32(); stream.Position = offset + 108; Field11 = stream.ReadValueF32(); stream.Position = offset + 104; Field12 = stream.ReadValueF32(); stream.Position = offset + 112; Field13 = stream.ReadValueF32(); stream.Position = offset + 116; Field14 = stream.ReadValueF32(); stream.Position = offset + 120; Field15 = stream.ReadValueF32(); stream.Position = offset + 124; Field16 = stream.ReadValueF32(); stream.Position = offset + 128; Field17 = stream.ReadValueF32(); stream.Position = offset + 132; Field18 = stream.ReadValueF32(); stream.Position = offset + 136; Field19 = stream.ReadValueS32(); stream.Position = offset + 140; Field20 = stream.ReadValueS32(); stream.Position = offset + 144; Field21 = stream.ReadValueS32(); stream.Position = offset + 148; Field22 = stream.ReadValueS32(); stream.Position = offset + 152; Field23 = new FrameAnim(); Field23.FileRead(stream, stream.Position); stream.Position = offset + 172; Field24 = stream.ReadValueS32(); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 12; Field0 = stream.ReadValueS32(); stream.Position = offset + 16; Field1 = stream.ReadValueS32(); stream.Position = offset + 20; Field2 = new FrameAnim(); Field2.FileRead(stream, stream.Position); stream.Position = offset + 40; snoSound = stream.ReadValueS32(); stream.Position = offset + 44; Field4 = stream.ReadValueS32(); stream.Position = offset + 48; serFrames = new SerializeData(); serFrames.FileRead(stream, stream.Position); stream.Position = offset + 56; //still checking variablearrays Frames = new List<Anim2DFrame>(); for(int i = 0; i < (int)(serFrames.Field1 / 68); i++) { stream.Position = serFrames.Field0 + 16 + (68*i) ; Anim2DFrame temp12_Frames; temp12_Frames = new Anim2DFrame(); temp12_Frames.FileRead(stream, stream.Position); _Frames.Add(temp12_Frames); } }