First batch of changes merged back from Under. Fixes the router, adds magic_enum to FSM, and makes it easy to reset the world.

This commit is contained in:
Zed A. Shaw 2026-05-09 23:52:40 -04:00
parent d583a28b9c
commit 110612c33a
11 changed files with 44 additions and 19 deletions

View file

@ -235,7 +235,7 @@ namespace boss {
dbc::check($window != nullptr, "you didn't set_window");
while(const auto ev = $window->pollEvent()) {
auto gui_ev = $router.process_event(ev);
auto [gui_ev, mods] = $router.process_event(ev);
if(gui_ev == game::Event::KEY_PRESS) {
using KEY = sf::Keyboard::Scan;