2020-01-26 00:39:13 -05:00
|
|
|
package d2dt1
|
|
|
|
|
2020-07-18 00:02:45 -04:00
|
|
|
// Tile is a representation of a map tile
|
2020-01-26 00:39:13 -05:00
|
|
|
type Tile struct {
|
2021-02-02 13:25:27 -05:00
|
|
|
unknown2 []byte
|
2020-01-26 00:39:13 -05:00
|
|
|
Direction int32
|
|
|
|
RoofHeight int16
|
|
|
|
MaterialFlags MaterialFlags
|
|
|
|
Height int32
|
|
|
|
Width int32
|
|
|
|
Type int32
|
|
|
|
Style int32
|
|
|
|
Sequence int32
|
|
|
|
RarityFrameIndex int32
|
|
|
|
SubTileFlags [25]SubTileFlags
|
|
|
|
blockHeaderPointer int32
|
|
|
|
blockHeaderSize int32
|
|
|
|
Blocks []Block
|
|
|
|
}
|
2021-03-29 02:30:10 -04:00
|
|
|
|
|
|
|
func (t *Tile) unknown1() []byte {
|
|
|
|
return make([]byte, numUnknownTileBytes1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (t *Tile) unknown3() []byte {
|
|
|
|
return make([]byte, numUnknownTileBytes3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (t *Tile) unknown4() []byte {
|
|
|
|
return make([]byte, numUnknownTileBytes4)
|
|
|
|
}
|