ldtk::field_definition class

Public functions

auto type() const -> field_type constexpr
Value type.
auto is_array() const -> bool constexpr
Whether the field is array or not.
auto enum_type() const -> const bn::optional<bn::type_id_t>& constexpr
Enum type.
auto can_be_null() const -> bool constexpr
true if the value can be null. For arrays, true means it can contain null values (exception: array of Points can't have null values).
template<typename Ident>
auto identifier() const -> Ident constexpr
User defined unique identifier.
auto uid() const -> int constexpr
Unique Int identifier.
auto array_min_length() const -> int constexpr
Minimum length of this array field.
auto array_max_length() const -> int constexpr
Maximum length of this array field.

Function documentation

int ldtk::field_definition::array_min_length() const constexpr

Minimum length of this array field.

int ldtk::field_definition::array_max_length() const constexpr

Maximum length of this array field.