ISource class
#include <Jazz2/Formats/LevelPreview.h>
Layers of a level and the pixels of their tiles, as the preview takes them.
Derived classes
- class RecordSource
- A level in the form its file stores it, with its tile sets in memory.
Constructors, destructors, conversion operators
- ~ISource() defaulted virtual
Public functions
-
auto GetLayerCount() -> std::
int32_t pure virtual - Returns the number of layers.
-
auto GetLayer(std::
int32_t index) -> const LayerRecord& pure virtual - Returns the description of a layer as the level stores it, its kind, flags, size, renderer and color.
-
auto GetLayerDescription(std::
int32_t index) -> Tiles:: LayerDescription virtual - Returns how the game places a layer.
-
auto GetTilePixels(std::
int32_t layer, std:: int32_t x, std:: int32_t y, TilePixels& result) -> bool pure virtual - Finds the pixels of a tile of a layer, the first frame of an animated one, returns
falsefor an empty or unknown one.
Function documentation
Tiles:: LayerDescription Jazz2:: Formats:: LevelPreview:: ISource:: GetLayerDescription(std:: int32_t index) virtual
Returns how the game places a layer.
As the level stores it by default, see Tiles::