Better UI for the ritual crafting that almost works, but need to get the selected items to move down. Might need some state machine love soon.

This commit is contained in:
Zed A. Shaw 2025-04-28 13:21:10 -04:00
parent 9d55b2954a
commit 14619558fa
9 changed files with 99 additions and 48 deletions

View file

@ -5,6 +5,12 @@
#include "dinkyecs.hpp"
namespace ritual {
using JunkItem = std::string;
struct JunkPile {
std::vector<JunkItem> contents;
};
enum class Element {
NONE=0, FIRE=1, LIGHTNING=2
};
@ -59,6 +65,7 @@ namespace ritual {
void set_state(CraftingState& ritual, std::string name, bool setting);
void plan(CraftingState& ritual);
Action finalize(CraftingState& ritual);
void load_junk(CraftingState& ritual, const JunkItem& item);
};
struct Belt {
@ -73,12 +80,6 @@ namespace ritual {
int next();
};
using JunkItem = std::string;
struct JunkPile {
std::vector<JunkItem> contents;
};
struct Blanket {
DinkyECS::World contents;