Level traversal works, but it's very immediate. Next is a little 'confirm level' modal and a transition screen.

This commit is contained in:
Zed A. Shaw 2025-02-24 23:26:50 -05:00
parent 1886c99920
commit 29e6d45dc6
14 changed files with 98 additions and 43 deletions

View file

@ -254,8 +254,13 @@ void System::device(DinkyECS::World &world, DinkyECS::Entity actor, DinkyECS::En
auto& device = world.get<Device>(item);
for(auto event : device.events) {
// world.send<Events::GUI>((Events::GUI)event, actor, device);
fmt::println("BROKEN can't sent device event {}", event);
fmt::println("Device event received {}", event);
if(event == "Events::GUI::STAIRS_DOWN") {
world.send<Events::GUI>(Events::GUI::STAIRS_DOWN, actor, device);
} else {
dbc::log(fmt::format("EVENT IGNORED {}", event));
}
}
println("entity {} INTERACTED WITH DEVICE {}", actor, item);