TileMapLayer struct
#include <Jazz2/Tiles/TileMap.h>
Represents a single tile map layer.
Bundles a layer's grid of LayerTile entries with its dimensions, its LayerDescription and a visibility flag. A TileMap owns an ordered list of these layers, of which one is the main sprite layer used for collision while the rest provide foreground and parallax background detail.
Public variables
- LayerLayout Layout
- Layer layout.
- Vector2i LayoutSize
- Layer layout size.
- LayerDescription Description
- Layer description.
- bool Visible
- Layer visibility.
-
SmallVector<std::
uint8_t, 0> TexturePixels - Texture of its own of a textured layer, palette indices row by row, or empty.
-
std::
uint32_t TextureRevision - Changes with TexturePixels, unique among the layers, so the texture made of them is made again.
- Vector2f TextureOffset
- How far the texture of a reflection drawn only where the layer is has moved by its inner auto speeds, in its pixels.
- String Name
- Name of the layer, which scripts may find it by, or empty (see Formats::
LayerPropertiesChunk). -
std::
uint8_t OriginalNumber - Number of the layer in the original game, 1 to 8 from the front, or 0 for a layer of another origin.
Variable documentation
SmallVector<std:: uint8_t, 0> Jazz2:: Tiles:: TileMapLayer:: TexturePixels
Texture of its own of a textured layer, palette indices row by row, or empty.
Formats::
Vector2f Jazz2:: Tiles:: TileMapLayer:: TextureOffset
How far the texture of a reflection drawn only where the layer is has moved by its inner auto speeds, in its pixels.
For a wave, X is how far its waves have moved, in periods, from 0 to 1.
std:: uint8_t Jazz2:: Tiles:: TileMapLayer:: OriginalNumber
Number of the layer in the original game, 1 to 8 from the front, or 0 for a layer of another origin.
Scripts of JJ2+ refer to the layers by it (see Formats::