destroy

actual fun destroy(entity: Entity)

Destroy an entity.

Releases the entity ID and marks it as destroyed. The entity ID becomes invalid and should not be used after destruction.

Parameters

entity

The entity to destroy.


actual fun destroy(entities: IntArray)

Destroy multiple entities.

Destroys a batch of entities. This is more efficient than calling destroy() multiple times.

Parameters

entities

Array of entities to destroy.

expect fun destroy(entity: Entity)

Destroy an entity.

Releases the entity ID and marks it as destroyed. The entity ID becomes invalid and should not be used after destruction.

Parameters

entity

The entity to destroy.


expect fun destroy(entities: IntArray)

Destroy multiple entities.

Destroys a batch of entities. This is more efficient than calling destroy() multiple times.

Parameters

entities

Array of entities to destroy.

actual fun destroy(entity: Entity)

Destroy an entity.

Releases the entity ID and marks it as destroyed. The entity ID becomes invalid and should not be used after destruction.

Parameters

entity

The entity to destroy.


actual fun destroy(entities: IntArray)

Destroy multiple entities.

Destroys a batch of entities. This is more efficient than calling destroy() multiple times.

Parameters

entities

Array of entities to destroy.

actual fun destroy(entity: Entity)

Destroy an entity.

Releases the entity ID and marks it as destroyed. The entity ID becomes invalid and should not be used after destruction.

Parameters

entity

The entity to destroy.


actual fun destroy(entities: IntArray)

Destroy multiple entities.

Destroys a batch of entities. This is more efficient than calling destroy() multiple times.

Parameters

entities

Array of entities to destroy.

actual fun destroy(entity: Entity)

Destroy an entity.

Releases the entity ID and marks it as destroyed. The entity ID becomes invalid and should not be used after destruction.

Parameters

entity

The entity to destroy.


actual fun destroy(entities: IntArray)

Destroy multiple entities.

Destroys a batch of entities. This is more efficient than calling destroy() multiple times.

Parameters

entities

Array of entities to destroy.