Brought over the storyboard thing from my other game for the intro sequence.

This commit is contained in:
Zed A. Shaw 2026-04-03 00:05:37 -04:00
parent 279faf6dd5
commit 0df63ea074
10 changed files with 204 additions and 3 deletions

View file

@ -12,10 +12,12 @@
#include "gui/dnd_loot.hpp"
#include "events.hpp"
#include "gui/scene_ui.hpp"
#include "gui/storyboard.hpp"
namespace gui {
enum class State {
START=__LINE__,
INTRO=__LINE__,
START_SCENE=__LINE__,
DEATH_SCENE=__LINE__,
WIN_SCENE=__LINE__,
@ -47,12 +49,14 @@ namespace gui {
};
std::shared_ptr<gui::SceneUI> $cur_scene = nullptr;
std::shared_ptr<storyboard::UI> $story = nullptr;
FSM();
void event(game::Event ev, std::any data={});
void START(game::Event ev);
void INTRO(game::Event ev);
void START_SCENE(game::Event ev);
void WIN_SCENE(game::Event ev);
void DEATH_SCENE(game::Event ev);