EngineEntity

class EngineEntity(val engine: Engine, val entity: Entity)

An Entity created by the provided Engine.

Provides methods for adding Components to the Engine and the Entity.

Constructors

Link copied to clipboard
constructor(engine: Engine, entity: Entity)

Properties

Link copied to clipboard
val engine: Engine

the Engine providing Components.

Link copied to clipboard
val entity: Entity

the Entity to add Components to.

Functions

Link copied to clipboard
inline fun <T : Component> EngineEntity.with(configure: T.() -> Unit = {}): T

Get or creates an instance of the component T and adds it to this entity.