diff --git a/game_root.cpp b/game_root.cpp index a0f39a5..f90c2f7 100644 --- a/game_root.cpp +++ b/game_root.cpp @@ -40,7 +40,7 @@ void GameRoot3D::_enter_tree() { // TODO: Replace this with detecting input devices this->player_input_connected(); this->grab_singleton(); - this->rng = gd::Ref(memnew(gd::RandomNumberGenerator)); + this->rng = godot::Ref(memnew(godot::RandomNumberGenerator)); } void GameRoot3D::_ready() { diff --git a/game_root.hpp b/game_root.hpp index 029342f..7e03199 100644 --- a/game_root.hpp +++ b/game_root.hpp @@ -159,7 +159,7 @@ private: * * `*get_game_mode()` */ - GameMode *game_mode{}; + GameMode *game_mode{}; /*! Active game state. * * Will be assigned loaded save data, or game_state_prototype if no save data is found. @@ -171,14 +171,14 @@ private: * * `get_first_boot_level()` `set_first_boot_level(value)` */ - gd::Ref first_boot_level{}; + gd::Ref first_boot_level{}; /*! The default game state data. * * Duplicated and assigned to game_state if no save data is available. * * `get_game_state_prototype()` `set_game_state_prototype(value)` */ - gd::Ref game_state_prototype{}; + gd::Ref game_state_prototype{}; }; }