#pragma once #include "levelmanager.hpp" #include #include #include "guecs.hpp" namespace gui { class OverlayUI { public: guecs::UI $gui; GameLevel $level; std::unordered_map $name_ents; OverlayUI(GameLevel level); void render(TexturePack& texture); void draw(sf::RenderWindow& window); void click(int x, int y); template // this should be in the GUECS really void set(std::string name, Comp val) { auto ent = $name_ents.at(name); $level.world->set(ent, val); } }; }