create

fun create(): Entity

Create a new Entity.

Return

A new Entity ID, or NULL_ENTITY if allocation fails.


fun create(entities: IntArray)

Creates entities.size entities into entities. Thread safe.

Parameters

entities

The array to populate with newly created Entity IDs.