386
edits
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
/* offset 0x00 */ u16 width; // Width of layer in metatiles | /* offset 0x00 */ u16 width; // Width of layer in metatiles | ||
/* offset 0x02 */ u16 height; // Height of layer in metatiles | /* offset 0x02 */ u16 height; // Height of layer in metatiles | ||
/* offset 0x04 */ | /* offset 0x04 */ u16 id; | ||
/* offset 0x06 */ u16 unknown_0x06; | |||
// Byte offset from start of **the TilemapHeader struct** to the layer data | // Byte offset from start of **the TilemapHeader struct** to the layer data | ||
Line 56: | Line 57: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Layers can be loaded by engine call 0x7a27, either by the layer's index in the layerDefinition array, or by the TilemapLayer.id field. | |||
= Layer data order = | = Layer data order = |