Cleaned up and unified the source before the big refactor.
This commit is contained in:
parent
0d6a71b06f
commit
343f3a246f
5 changed files with 11 additions and 29 deletions
|
@ -11,22 +11,21 @@ namespace gui {
|
|||
class StatusUI {
|
||||
public:
|
||||
guecs::UI $gui;
|
||||
std::unordered_map<DinkyECS::Entity, DinkyECS::Entity> $slots;
|
||||
GameLevel $level;
|
||||
ritual::UI $ritual_ui;
|
||||
std::unordered_map<DinkyECS::Entity, DinkyECS::Entity> contents;
|
||||
DinkyECS::Entity $selected_entity;
|
||||
ritual::UI $ritual_ui;
|
||||
|
||||
StatusUI(GameLevel level);
|
||||
void select_ritual();
|
||||
void update_level(GameLevel &level);
|
||||
bool mouse(float x, float y, bool hover);
|
||||
void init();
|
||||
void render(sf::RenderWindow &window);
|
||||
void update();
|
||||
bool place_slot(DinkyECS::Entity gui_id);
|
||||
bool mouse(float x, float y, bool hover);
|
||||
|
||||
|
||||
guecs::GrabSource& get_grab_source(DinkyECS::Entity entity);
|
||||
bool has_grab_source(DinkyECS::Entity gui_id);
|
||||
|
||||
std::optional<DinkyECS::Entity> begin_grab(DinkyECS::Entity slot);
|
||||
void commit_grab(DinkyECS::Entity slot_id);
|
||||
|
@ -34,5 +33,6 @@ namespace gui {
|
|||
guecs::DropTarget& get_drop_target(DinkyECS::Entity gui_id);
|
||||
void begin_drop(DinkyECS::Entity world_entity);
|
||||
bool commit_drop(DinkyECS::Entity gui_id);
|
||||
bool place_slot(DinkyECS::Entity gui_id);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue