Finally unified all of my events into one place.
This commit is contained in:
parent
6c34fea64a
commit
c618a4828f
30 changed files with 215 additions and 216 deletions
|
|
@ -100,7 +100,7 @@ namespace boss {
|
|||
|
||||
auto& [enemy, wants_to, cost, host_state] = action;
|
||||
|
||||
Events::Combat result{};
|
||||
components::CombatResult result{};
|
||||
|
||||
switch(host_state) {
|
||||
case BattleHostState::agree:
|
||||
|
|
@ -127,6 +127,6 @@ namespace boss {
|
|||
break;
|
||||
}
|
||||
|
||||
world->send<Events::GUI>(Events::GUI::COMBAT, enemy.entity, result);
|
||||
world->send<game::Event>(game::Event::COMBAT, enemy.entity, result);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue