-
-
Notifications
You must be signed in to change notification settings - Fork 61
Advanced Manual Activation
Andrew Gresyk edited this page Apr 2, 2022
·
2 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 = hfsm2::Config ::ManualActivation; using M = hfsm2::MachineT<Config>;
Method | Description |
---|---|
void Instance::enter(); |
Activate instance |
void Instance::exit(); |
Deactivate instance |