Refactored the FSM so that it uses a generic registry of systems to do what it needs.

This commit is contained in:
Zed A. Shaw 2026-03-23 12:47:16 -04:00
parent cbff127b40
commit e742b8772d
7 changed files with 150 additions and 118 deletions

View file

@ -1,6 +1,7 @@
#pragma once
#include "constants.hpp"
#include "game/registry.hpp"
#include "algos/simplefsm.hpp"
#include "gui/debug_ui.hpp"
#include "gui/main_ui.hpp"
@ -35,12 +36,11 @@ namespace gui {
LootUI $loot_ui;
gui::routing::Router $router;
DNDLoot $dnd_loot;
System::Registry $systems;
FSM();
void event(game::Event ev, std::any data={});
void autowalk();
void start_autowalk(double rot_speed);
void START(game::Event ev);
void MOVING(game::Event ev);