A really shitty ritual crafting UI is working but needs a big reshape.

This commit is contained in:
Zed A. Shaw 2025-04-29 23:59:40 -04:00
parent 14619558fa
commit 2ceab51c40
13 changed files with 124 additions and 63 deletions

View file

@ -203,10 +203,13 @@ namespace guecs {
$world.remove<Comp>(ent);
}
// BUG: close could just be remove with overload
template <typename Comp>
void close(string region) {
auto ent = entity(region);
remove<Comp>(ent);
if(has<Comp>(ent)) {
remove<Comp>(ent);
}
}
template<typename T>
@ -229,8 +232,6 @@ namespace guecs {
void show_sprite(string region, string sprite_name);
void show_text(string region, wstring content);
void update_text(string region, wstring content);
void update_label(string region, wstring content);
void show_label(string region, wstring content);
};