ldtk::entity_definition class

Public types

enum class limit_scope_kind: std::uint8_t { PER_LAYER, PER_LEVEL, PER_WORLD }
How the max_count() limits the number of max entities.

Public functions

auto size() const -> const bn::size& constexpr
Pixel size.
auto width() const -> int constexpr
Pixel width.
auto height() const -> int constexpr
Pixel height.
auto identifier() const -> gen::entity_ident constexpr
User defined unique identifier.
auto pivot() const -> const bn::fixed_point& constexpr
Pivot coordinate (from 0 to 1.0)
auto uid() const -> int constexpr
Unique Int identifier.
auto field_defs() const -> const bn::span<const field_definition>& constexpr
Array of field definitions.
auto tags() const -> const bn::span<const gen::entity_tag>& constexpr
An array of strings that classifies this entity.
auto max_count() const -> int constexpr
Max entities count. The scope is indicated via limit_scope()
auto limit_scope() const -> limit_scope_kind constexpr
Indicates how the max_count() limits the number of max entities.

Function documentation

int ldtk::entity_definition::max_count() const constexpr

Max entities count. The scope is indicated via limit_scope()