Represents a state in a KerbalFSM finite state machine.
More...
|
int | FrameCountAtStateEnter |
|
string | name |
| The name of this state. More...
|
|
KFSMStateChange | OnEnter |
| You can assign to this field a delegate that takes a KFSMState (which will be this state). The delegate will be called when the state machine enters this state. More...
|
|
KFSMCallback | OnFixedUpdate |
| You can assign a delegate to this field, and the delegate will be called during each FixedUpdate while the state machine is in this state. More...
|
|
KFSMCallback | OnLateUpdate |
| You can assign a delegate to this field, and the delegate will be called during each LateUpdate while the state machine is in this state. More...
|
|
KFSMStateChange | OnLeave |
| You can assign to this field a delegate that takes a KFSMState. The delegate will be called when the state machine leaves this state, and the argument passed to the delegate will be the new state that the machine is transitioning to. More...
|
|
KFSMCallback | OnUpdate |
| You can assign a delegate to this field, and the delegate will be call during each Update while the state machine is in this state. More...
|
|
double | TimeAtStateEnter |
|
KFSMUpdateMode | updateMode |
|
|
List< KFSMEvent > | StateEvents [get] |
| The set of events that are valid for this state (i.e., the possible transitions from this state). More...
|
|
Represents a state in a KerbalFSM finite state machine.
KFSMState.KFSMState |
( |
string |
name | ) |
|
Create a new KFSMState with a given name.
- Parameters
-
name | The name of the new state. |
Add an event (possible transition) to this state.
- Parameters
-
Whether the given event can be triggered from this state. An event must be added to a state before it can be triggered from that state.
- Parameters
-
- Returns
- Whether the event can be triggered from this state.
override string KFSMState.ToString |
( |
| ) |
|
int KFSMState.FrameCountAtStateEnter |
KFSMStateChange KFSMState.OnEnter |
You can assign to this field a delegate that takes a KFSMState (which will be this state). The delegate will be called when the state machine enters this state.
KFSMCallback KFSMState.OnFixedUpdate |
You can assign a delegate to this field, and the delegate will be called during each FixedUpdate while the state machine is in this state.
KFSMCallback KFSMState.OnLateUpdate |
You can assign a delegate to this field, and the delegate will be called during each LateUpdate while the state machine is in this state.
KFSMStateChange KFSMState.OnLeave |
You can assign to this field a delegate that takes a KFSMState. The delegate will be called when the state machine leaves this state, and the argument passed to the delegate will be the new state that the machine is transitioning to.
KFSMCallback KFSMState.OnUpdate |
You can assign a delegate to this field, and the delegate will be call during each Update while the state machine is in this state.
double KFSMState.TimeAtStateEnter |
KFSMUpdateMode KFSMState.updateMode |
The set of events that are valid for this state (i.e., the possible transitions from this state).
The documentation for this class was generated from the following file: