|
BGC Tools
|
Simple State with optional lambda arguments for OnStateEnter, OnStateExit, and Update. More...


Public Member Functions | |
| UpdatingLambdaState (string name, Action onStateEnter=null, Action onStateExit=null, Action update=null) | |
| override void | Update () |
| This can be called every frame or whenever for complex states that have behavior on a frame by X basis. More... | |
Public Member Functions inherited from BGC.StateMachine.State | |
| State () | |
| Create a state with the default name More... | |
| State (string name) | |
| Create a state with a custom name rather than the default More... | |
| void | OnEnter () |
| Called when the state is entered More... | |
| void | OnExit () |
| Called when the state is exited, before the next state is entered More... | |
| void | SetVerbose (bool isVerbose) |
| Set whether the state machine is verbose or not More... | |
Protected Member Functions | |
| override void | OnStateEnter () |
| Called when the state is entered More... | |
| override void | OnStateExit () |
| Called when the state is exited before the next state is entered More... | |
Private Attributes | |
| readonly Action | onStateEnter |
| readonly Action | onStateExit |
| readonly Action | update |
Additional Inherited Members | |
Protected Attributes inherited from BGC.StateMachine.State | |
| virtual string | DefaultName => "State" |
Properties inherited from BGC.StateMachine.State | |
| string | Name [get, private set] |
| Name of the state. This will either be user defined or the default state name depending on the constructor used More... | |
Simple State with optional lambda arguments for OnStateEnter, OnStateExit, and Update.
Definition at line 9 of file UpdatingLambdaState.cs.
|
inline |
Definition at line 15 of file UpdatingLambdaState.cs.
|
protectedvirtual |
Called when the state is entered
Implements BGC.StateMachine.State.
|
protectedvirtual |
Called when the state is exited before the next state is entered
Reimplemented from BGC.StateMachine.State.
|
virtual |
This can be called every frame or whenever for complex states that have behavior on a frame by X basis.
Reimplemented from BGC.StateMachine.State.
|
private |
Definition at line 11 of file UpdatingLambdaState.cs.
|
private |
Definition at line 12 of file UpdatingLambdaState.cs.
|
private |
Definition at line 13 of file UpdatingLambdaState.cs.
1.8.13