KECS / com.juanmedina.kecs.entity / View / entities
entities¶
protected val entities:
ArrayList
<
Entity
>
Entities storage.
fun <reified T :
Any
> entities():
List
<
Entity
>
Return a set entities that has a component of the giving type.
inline fun <reified T :
Any
> entities(receiver: (
Entity
) ->
Unit
):
Unit
Send to a receiver a set of entities that has a component of the giving type.
Parameters¶
receiver
- function that will receive the entities.