Make some progress decoding map trailer

This commit is contained in:
2020-06-07 01:44:28 +01:00
parent 0bf8233cd1
commit a6fdbaef2b
2 changed files with 119 additions and 5 deletions

View File

@@ -48,6 +48,25 @@ type Header struct {
// Need to investigate the rest of the header too
}
type Trailer struct {
Unknown1 uint16
Unknown2 uint16
Unknown3 uint32
Unknown4 uint32
Unknown5 uint32
NumCharacters uint32
Padding1 uint32
Unknown6 uint16
Unknown7 uint16
Unknown8 uint32
NumThingies uint32
Padding2 [36]byte
}
type Character struct {
Unknown1 uint32
}
func (h Header) Width() int {
return int(h.MaxWidth - h.MinWidth)
}