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 + 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); } }