ldtk::field_definition class

Constructors, destructors, conversion operators

field_definition(const field_definition&) deleted constexpr
Deleted copy constructor.
field_definition(field_definition&&) defaulted constexpr
Defaulted move constructor.

Public functions

auto operator=(const field_definition&) -> field_definition& deleted constexpr
Deleted copy assignment operator.
auto operator=(field_definition&&) -> field_definition& defaulted constexpr
Defaulted move assignment operator.
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.