Finally unified all of my events into one place.

This commit is contained in:
Zed A. Shaw 2025-12-17 12:51:15 -05:00
parent 6c34fea64a
commit c618a4828f
30 changed files with 215 additions and 216 deletions

View file

@ -2,6 +2,7 @@
#include "gui/dnd_loot.hpp"
namespace gui {
using Event = game::Event;
DNDLoot::DNDLoot(StatusUI& status_ui, LootUI& loot_ui, sf::RenderWindow &window, routing::Router& router) :
$status_ui(status_ui),
@ -9,7 +10,7 @@ namespace gui {
$window(window),
$router(router)
{
event(Event::STARTED);
event(Event::START);
}
bool DNDLoot::event(Event ev, std::any data) {
@ -30,7 +31,7 @@ namespace gui {
void DNDLoot::START(Event ev) {
using enum Event;
dbc::check(ev == STARTED, "START not given a STARTED event.");
dbc::check(ev == START, "START not given a STARTED event.");
END(CLOSE);
}