useHas
useHas(
target,trait):boolean
Whether target, an entity or the world, has trait, again each time
that changes: koota’s useHas, for the read-only world too.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
target |
Entity | World | null | undefined |
trait |
Trait | RelationPair |
Returns
Section titled “Returns”boolean