SimpleCondition
dendron.conditions.simple_condition.SimpleCondition
Bases: ConditionNode
A simple condition node is initialized with a callback that is
called every time this node tick()s. The callback should be
a function that returns a NodeStatus. Additionally, as a
condition node the callback should never return a status of
RUNNING. It is up to the caller to ensure that this invariant
holds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
`str`
|
The given name of this node. |
required |
callback
|
`Callable`
|
The callback to be executed upon every |
required |