Jazz2::Editor::IDocumentEditor class

Changes the level being edited, see IToolHost.

Derived classes

class IToolHost
What tools need from the level editor.

Constructors, destructors, conversion operators

~IDocumentEditor() defaulted virtual

Public functions

auto GetDocument() -> LevelDocument& pure virtual
Returns the level being edited.
auto GetCurrentLayer() const -> std::int32_t pure virtual
Returns the layer being edited.
auto IsLayerEditable(std::int32_t layer) const -> bool pure virtual
Returns true if a layer can be changed, it's not locked or hidden.
void Execute(std::unique_ptr<EditCommand> command, bool allowMerge = false) pure virtual
Executes an edit command.
void BeginChanges(String name) pure virtual
Starts changes that are undone as one step, until EndChanges(), see CommandHistory::BeginTransaction().
void EndChanges() pure virtual
Ends changes started by BeginChanges().
auto GetSmartTiles() -> SmartTileModel& pure virtual
Returns what knows how the tiles of the default tile set of the level fit together, it starts learning it.
auto GetTileShapes() -> const TileShapes& pure virtual
Returns the shapes of the masks of the default tile set of the level.