Refactored out the main_loop so that it's not tightly coupled inside builder, and in the process found I was accidentally copying GUI and GameEngine because Builder wasn't using a &ref for them. Now they don't have a copy constructor to catch that.
This commit is contained in:
parent
a7c5de6ac3
commit
fff182b457
7 changed files with 27 additions and 34 deletions
2
fsm.hpp
2
fsm.hpp
|
@ -3,7 +3,7 @@
|
|||
#include <fmt/core.h>
|
||||
|
||||
#define FSM_EV(S, F) case S: F(); break
|
||||
#define FSM_STATE(S, F, E) case S: fmt::println(">>> " #S ":" #F ":{}", int(E)); F(E); break
|
||||
#define FSM_STATE(S, F, E) case S: F(E); break
|
||||
|
||||
template<typename S, typename E>
|
||||
class DeadSimpleFSM {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue