reorganitzats els comandos de consola

This commit is contained in:
2026-03-29 18:08:33 +02:00
parent 7551115912
commit fd9be2066d
3 changed files with 73 additions and 69 deletions

View File

@@ -72,6 +72,7 @@ Game::Game(Mode mode)
#ifdef _DEBUG
GameControl::change_room = [this](const std::string& r) -> bool { return this->changeRoom(r); };
GameControl::get_current_room = [this]() -> std::string { return current_room_; };
GameControl::set_items = [this](int count) -> void {
scoreboard_data_->items = count;
Options::stats.items = count;
@@ -118,6 +119,7 @@ Game::~Game() {
#ifdef _DEBUG
GameControl::change_room = nullptr;
GameControl::get_current_room = nullptr;
GameControl::set_items = nullptr;
GameControl::toggle_debug_mode = nullptr;
GameControl::set_initial_room = nullptr;