class
#include <ldtk_entity_definition.h>
entity_definition
Public types
- enum class limit_scope_kind: std::uint8_t { PER_LAYER, PER_LEVEL, PER_WORLD }
- How the
max_
limits the number of max entities.count()
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_
limits the number of max entities.count()
Function documentation
int ldtk:: entity_definition:: max_count() const constexpr
Max entities count. The scope is indicated via limit_