🚀 Quick Start
If you don't have time for anything else.
💡 Creating a Logic Block
A logic block is simply a class that extends LogicBlock
. Logic blocks receive inputs, maintain a single state value, and produce outputs.
To make a logic block, you simply extend the LogicBlock<TState>
class, override the GetInitialState()
method, and add the [LogicBlock]
attribute to your class with the type of your state.
🔌 Using a Logic Block
LogicBlocks includes a simple binding system to enable you to write declarative code, even in imperative environments like a game engine. Bindings allow you to monitor the inputs a state machine receives and the outputs it produces, in addition to its state changes and any exceptions that occur.