2024-03-13 15:08:37 +00:00
|
|
|
#include "game_mode.hpp"
|
|
|
|
#include <godot_cpp/classes/global_constants.hpp>
|
|
|
|
#include <godot_cpp/classes/packed_scene.hpp>
|
|
|
|
#include <godot_cpp/classes/scene_state.hpp>
|
2024-05-29 22:49:37 +00:00
|
|
|
#include "utils/godot_macros.hpp"
|
2024-03-13 15:08:37 +00:00
|
|
|
|
2024-05-28 14:28:36 +00:00
|
|
|
namespace utils {
|
2024-03-13 15:08:37 +00:00
|
|
|
void GameMode::_bind_methods() {
|
|
|
|
#define CLASSNAME GameMode
|
2024-05-28 14:28:36 +00:00
|
|
|
GDPROPERTY_HINTED(player_scene, gd::Variant::OBJECT, gd::PROPERTY_HINT_RESOURCE_TYPE, "PackedScene");
|
2024-03-13 15:08:37 +00:00
|
|
|
}
|
|
|
|
|
2024-05-28 14:28:36 +00:00
|
|
|
void GameMode::set_player_scene(gd::Ref<gd::PackedScene> scene) {
|
2024-03-13 15:08:37 +00:00
|
|
|
this->player_scene = scene;
|
|
|
|
}
|
|
|
|
|
2024-05-28 14:28:36 +00:00
|
|
|
gd::Ref<gd::PackedScene> GameMode::get_player_scene() const {
|
2024-03-13 15:08:37 +00:00
|
|
|
return this->player_scene;
|
|
|
|
}
|
|
|
|
}
|