public override void Parse(GameBitBuffer buffer) { Field0 = buffer.ReadInt(32); Field1 = buffer.ReadInt(32); Field2 = buffer.ReadInt(32); snoScene = buffer.ReadInt(32); serTileTagMap = new SerializeData(); serTileTagMap.Parse(buffer); hTileTagMap = new DT_TAGMAP(); hTileTagMap.Parse(buffer); Field6 = new CustomTileInfo(); Field6.Parse(buffer); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; Field0 = stream.ReadValueS32(); stream.Position = offset + 12; Field1 = stream.ReadValueS32(); stream.Position = offset + 4; Field2 = stream.ReadValueS32(); stream.Position = offset + 8; snoScene = stream.ReadValueS32(); stream.Position = offset + 16; serTileTagMap = new SerializeData(); serTileTagMap.FileRead(stream, stream.Position); stream.Position = offset + 24; // hTileTagMap: type DT_TAGMAP hasnt a deserializer implemented throw new Exception("some fields arent going to be decoded."); stream.Position = offset + 32; Field6 = new CustomTileInfo(); Field6.FileRead(stream, stream.Position); }