Constructor
new LdtkEntity($parameters)
- Description:
- Creates a new LDTK entity.
- Source:
Example
const entity = new LdtkEntity({$data, $identifier, $label});
Parameters:
| Name | Type | Description |
|---|---|---|
$parameters |
Object | The given parameters. |
$parameters.$data |
Array.<TypeLdtkEntityField> | The LDTK JSON data custom fields. |
$parameters.$identifier |
string | The identifier of the entity to get. |
$parameters.$label |
string | The label of the entity to get. |
Members
data :Array.<TypeLdtkEntityField>
- Description:
- Gets the LDTK JSON data custom fields.
- Source:
Gets the LDTK JSON data custom fields.
Type:
- Array.<TypeLdtkEntityField>
identifier :string
- Description:
- Gets the identifier.
- Source:
Gets the identifier.
Type:
- string
label :string
- Description:
- Gets the label.
- Source:
Gets the label.
Type:
- string
Type Definitions
TypeLdtkEntityField
- Description:
- A LDTK JSON data custom field.
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
TypeLdtkEntityField.__identifier |
string | The identifier. |
TypeLdtkEntityField.__type |
string | The type. |
TypeLdtkEntityField.__value |
any | The value. |
A LDTK JSON data custom field.
Type:
- Object