2024-03-13 15:08:37 +00:00
|
|
|
#include "level.hpp"
|
|
|
|
#include "utils/godot_macros.h"
|
|
|
|
|
2024-05-28 14:28:36 +00:00
|
|
|
namespace utils {
|
2024-03-13 15:08:37 +00:00
|
|
|
void Level3D::_bind_methods() {
|
|
|
|
#define CLASSNAME Level3D
|
2024-05-28 14:28:36 +00:00
|
|
|
GDPROPERTY_HINTED(game_mode_prototype, gd::Variant::OBJECT, gd::PROPERTY_HINT_RESOURCE_TYPE, "GameMode");
|
2024-03-13 15:08:37 +00:00
|
|
|
}
|
|
|
|
|
2024-05-28 14:28:36 +00:00
|
|
|
void Level3D::set_game_mode_prototype(gd::Ref<GameMode> prototype) {
|
2024-03-13 15:08:37 +00:00
|
|
|
this->game_mode_prototype = prototype;
|
|
|
|
}
|
|
|
|
|
2024-05-28 14:28:36 +00:00
|
|
|
gd::Ref<GameMode> Level3D::get_game_mode_prototype() const {
|
2024-03-13 15:08:37 +00:00
|
|
|
return this->game_mode_prototype;
|
|
|
|
}
|
|
|
|
}
|