KECS / com.juanmedina.kecs.entity / Entity / hasComponent
hasComponent¶
fun <reified T :
Any
> hasComponent():
Boolean
Checks if an entity contains a component of the given type.
fun <reified T :
Any
> hasComponent(type:
KClass
<out T>):
Boolean
Checks if an entity contains a components of the given KClass.
Parameters¶
type
- the KClass of the component.