User Manual: Condition & Action Components
From Color Infection Wiki
Contents |
Condition Components
Condition Components are used as the preconditions of an event handler. An event handler can be assigned some conditions. only all this conditions are satisfied, the event handler can be called when the corresponding event occurs.
Basic Condition
Basic Condition is also called Atom Condition. It can be viewed as a function without any input parameters but with one Boolean output parameter.
Basic Condition is also a script.
All basic condition entities have a code sinppet property.
- Code Sinppet: The code snippet contains some function callings.
Condition Gate
And gate, or gate, not gate.
Task Aggregator
This is not essential component. Every entity has a task proeprty. Task aggregator component is used to aggregate the task status of many entities.
Action Component
An action component can be viewed as a function without any input parameters and output parameters.
All action entities have a code sinppet property.
- Code Sinppet: The code snippet contains some function callings.
Use Basic Condition And Action Entities As Scripts
Basic condition and action entities both have a code snippet property. The code snippet has no input parameters, so basic condition and action entities can be used as scripts.
See Core API Reference: World Script Calling for more.