WhenTest
WhenTest = (
entity,world) =>boolean
A test a when rule runs each step on an entity whose machine is in
its state: the entity, the world’s own for the world’s machine, and
the world. It reads the traits and returns whether to move.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
world |
World |
Returns
Section titled “Returns”boolean