A really shitty ritual crafting UI is working but needs a big reshape.
This commit is contained in:
parent
14619558fa
commit
2ceab51c40
13 changed files with 124 additions and 63 deletions
|
@ -81,11 +81,17 @@ namespace ritual {
|
|||
};
|
||||
|
||||
struct Blanket {
|
||||
DinkyECS::World contents;
|
||||
size_t entity_counter = 0;
|
||||
std::unordered_map<DinkyECS::Entity, JunkItem> contents;
|
||||
std::unordered_map<DinkyECS::Entity, bool> selected;
|
||||
|
||||
DinkyECS::Entity add(JunkItem name);
|
||||
JunkItem& get(DinkyECS::Entity ent);
|
||||
bool has(DinkyECS::Entity ent);
|
||||
void remove(DinkyECS::Entity ent);
|
||||
void select(DinkyECS::Entity ent);
|
||||
void deselect(DinkyECS::Entity ent);
|
||||
void reset();
|
||||
bool is_selected(DinkyECS::Entity ent);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue