contains

operator fun ComponentMapper<out Component>.contains(entityId: Int): Boolean

Checks if the entity has this type of Component.

Receiver

the ComponentMapper for checking if the entity has the component.

Return

true if the entity has this component type, `false`` if it does not or is scheduled for removal.

Parameters

entityId

the ID of entity to check.

Throws

if the component was removed or never existed.