entity

inline fun Engine.entity(configure: EngineEntity.() -> Unit = {}): Entity

Create and add an Entity to the Engine.

Return

the created Entity.

Parameters

configure

inlined function with the created EngineEntity as the receiver to allow further configuration of the Entity. The EngineEntity holds the created Entity and this Engine.