-
-
Notifications
You must be signed in to change notification settings - Fork 5
Advanced Manual Activation
Andrew Gresyk edited this page Apr 1, 2022
·
3 revisions
-
By default, FSM instance is activated in its constructor and deactivated in destructor.
-
In some cases, it's useful to keep constructed FSM instance un-activated, and wait for an appropriate moment.
-
For example, for implementing a ROLE_SimulatedProxy actor in UE4.
-
Enable manual activation:
using Config = ffsm2::Config ::ManualActivation; using M = ffsm2::MachineT<Config>;
Method | Description |
---|---|
void Instance::enter(); |
Activate instance |
void Instance::exit(); |
Deactivate instance |