create

actual fun create(): Entity

Create a new Entity.

Returns a new unique entity ID. If the entity cannot be allocated (max entity count reached), the result will be a null entity.

Return

A new Entity ID, or NULL_ENTITY if allocation fails.


actual fun create(n: Int): IntArray

Create multiple entities.

Creates n new entities in a batch. This is more efficient than calling create() multiple times.

Return

An array of n newly created Entity IDs.

Parameters

n

The number of entities to create.


actual fun create(entities: IntArray): IntArray

Create entities into an existing array.

Creates entities and stores them in the provided array. The array size determines how many entities are created.

Return

The same array that was passed in, now populated with new entities.

Parameters

entities

The array to populate with newly created Entity IDs.

expect fun create(): Entity

Create a new Entity.

Returns a new unique entity ID. If the entity cannot be allocated (max entity count reached), the result will be a null entity.

Return

A new Entity ID, or NULL_ENTITY if allocation fails.


expect fun create(n: Int): IntArray

Create multiple entities.

Creates n new entities in a batch. This is more efficient than calling create() multiple times.

Return

An array of n newly created Entity IDs.

Parameters

n

The number of entities to create.


expect fun create(entities: IntArray): IntArray

Create entities into an existing array.

Creates entities and stores them in the provided array. The array size determines how many entities are created.

Return

The same array that was passed in, now populated with new entities.

Parameters

entities

The array to populate with newly created Entity IDs.

actual fun create(): Entity

Create a new Entity.

Returns a new unique entity ID. If the entity cannot be allocated (max entity count reached), the result will be a null entity.

Return

A new Entity ID, or NULL_ENTITY if allocation fails.


actual fun create(n: Int): IntArray

Create multiple entities.

Creates n new entities in a batch. This is more efficient than calling create() multiple times.

Return

An array of n newly created Entity IDs.

Parameters

n

The number of entities to create.


actual fun create(entities: IntArray): IntArray

Create entities into an existing array.

Creates entities and stores them in the provided array. The array size determines how many entities are created.

Return

The same array that was passed in, now populated with new entities.

Parameters

entities

The array to populate with newly created Entity IDs.

actual fun create(): Entity

Create a new Entity.

Returns a new unique entity ID. If the entity cannot be allocated (max entity count reached), the result will be a null entity.

Return

A new Entity ID, or NULL_ENTITY if allocation fails.


actual fun create(n: Int): IntArray

Create multiple entities.

Creates n new entities in a batch. This is more efficient than calling create() multiple times.

Return

An array of n newly created Entity IDs.

Parameters

n

The number of entities to create.


actual fun create(entities: IntArray): IntArray

Create entities into an existing array.

Creates entities and stores them in the provided array. The array size determines how many entities are created.

Return

The same array that was passed in, now populated with new entities.

Parameters

entities

The array to populate with newly created Entity IDs.

actual fun create(): Entity

Create a new Entity.

Returns a new unique entity ID. If the entity cannot be allocated (max entity count reached), the result will be a null entity.

Return

A new Entity ID, or NULL_ENTITY if allocation fails.


actual fun create(n: Int): IntArray

Create multiple entities.

Creates n new entities in a batch. This is more efficient than calling create() multiple times.

Return

An array of n newly created Entity IDs.

Parameters

n

The number of entities to create.


actual fun create(entities: IntArray): IntArray

Create entities into an existing array.

Creates entities and stores them in the provided array. The array size determines how many entities are created.

Return

The same array that was passed in, now populated with new entities.

Parameters

entities

The array to populate with newly created Entity IDs.