DNDLoot works now, just had to fix a problem with the constructor.

This commit is contained in:
Zed A. Shaw 2025-06-13 10:46:05 -04:00
parent 82ee8f68f7
commit 9468990f76
4 changed files with 9 additions and 12 deletions

View file

@ -7,11 +7,11 @@
namespace gui {
enum class DNDState {
START=0,
LOOTING=1,
LOOT_GRAB=2,
INV_GRAB=3,
END=4
START=100,
LOOTING=101,
LOOT_GRAB=102,
INV_GRAB=103,
END=104
};
class DNDLoot : public DeadSimpleFSM<DNDState, Event> {
@ -22,8 +22,8 @@ namespace gui {
sf::RenderWindow& $window;
routing::Router& $router;
DNDLoot(StatusUI status_ui,
LootUI loot_ui, sf::RenderWindow& window,
DNDLoot(StatusUI& status_ui,
LootUI& loot_ui, sf::RenderWindow& window,
routing::Router& router);
bool event(Event ev, std::any data={});