public interface NodeOwner extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
hasNode(StateNode node)
Check if given node is registered to this node owner.
|
void |
markAsDirty(StateNode node)
Marks a node owned by this instance as dirty.
|
int |
register(StateNode node)
Registers a node with this node owner.
|
void |
unregister(StateNode node)
Unregisters a node from this owner.
|
int register(StateNode node)
node
- the node to registervoid unregister(StateNode node)
node
- the node to unregistervoid markAsDirty(StateNode node)
StateTree.collectDirtyNodes()
.node
- the node to be marked as dirtyboolean hasNode(StateNode node)
node
- node to check registration status forCopyright © 2020. All rights reserved.