Rename to GameDB and GameDB::Level.

This commit is contained in:
Zed A. Shaw 2025-08-20 23:20:36 -04:00
parent c46927ea10
commit a20d701096
23 changed files with 142 additions and 151 deletions

View file

@ -8,7 +8,7 @@ namespace gui {
using namespace guecs;
LootUI::LootUI() :
$temp_loot(Game::current_world()->entity()),
$temp_loot(GameDB::current_world()->entity()),
$target($temp_loot)
{
$gui.position(RAY_VIEW_X+RAY_VIEW_WIDTH/2-200,
@ -21,7 +21,7 @@ namespace gui {
"[=item_12| =item_13|=item_14|=item_15 ]"
"[ =take_all | =close| =destroy]");
auto world = Game::current_world();
auto world = GameDB::current_world();
world->set<inventory::Model>($temp_loot, {});
world->make_constant($temp_loot);
}
@ -62,7 +62,7 @@ namespace gui {
}
void LootUI::update() {
auto world = Game::current_world();
auto world = GameDB::current_world();
dbc::check(world->has<inventory::Model>($target),
"update called but $target isn't in world");