Jazz2/Editor/Document/LevelDocument.h file

Namespaces

namespace Jazz2
Root namespace of Jazz² Resurrection.
namespace Jazz2::Editor

Classes

class Jazz2::Editor::ITileSetLibrary
Provides information about tile sets to a level being edited.
struct Jazz2::Editor::TileRef
Reference to a tile of a level being edited.
struct Jazz2::Editor::DocumentAnimation
An animated tile of a level being edited.
struct Jazz2::Editor::DocumentLayer
A layer of a level being edited.
struct Jazz2::Editor::DocumentEvent
An event of the grid, at a tile of the sprite layer.
class Jazz2::Editor::LevelDocument
A level being edited.
struct Jazz2::Editor::LevelDocument::OverrideRefs
Tiles overridden by the level as tile references, see RemapTiles().

Enums

enum class DocumentProblem : std::uint8_t { None, LayerSize, SpriteLayerCount, TooManyLayers, TooManyTexts, TooManyExtraTileSets, TooManyAnimations, TooManyFrames, UnaddressableTile }
Problem that would make a level unloadable, see LevelDocument::Validate().

Functions

auto MakeLayerId() -> std::uint32_t
Returns a new identity of a layer, unique while the editor runs, see DocumentLayer::Id, it may be called on any thread.

Enum documentation

enum class DocumentProblem : std::uint8_t

Problem that would make a level unloadable, see LevelDocument::Validate().

Enumerators
None

No problem

LayerSize

A layer has a different number of tiles than its size

SpriteLayerCount

The level doesn't have exactly one sprite layer

TooManyLayers

The level has too many layers

TooManyTexts

The level has too many texts

TooManyExtraTileSets

The level has too many extra tile sets

TooManyAnimations

The level has too many animated tiles

TooManyFrames

An animated tile has too many frames

UnaddressableTile

The level uses tiles past the tile IDs it can address