34 lines
847 B
C++
34 lines
847 B
C++
|
#include "level.hpp"
|
||
|
#include "utils/godot_macros.h"
|
||
|
|
||
|
namespace godot {
|
||
|
void Level3D::_bind_methods() {
|
||
|
#define CLASSNAME Level3D
|
||
|
GDPROPERTY_HINTED(game_mode_prototype, Variant::OBJECT, PROPERTY_HINT_RESOURCE_TYPE, "GameMode");
|
||
|
}
|
||
|
|
||
|
void Level3D::set_game_mode_prototype(Ref<GameMode> prototype) {
|
||
|
this->game_mode_prototype = prototype;
|
||
|
}
|
||
|
|
||
|
Ref<GameMode> Level3D::get_game_mode_prototype() const {
|
||
|
return this->game_mode_prototype;
|
||
|
}
|
||
|
|
||
|
#undef CLASSNAME // Level3D
|
||
|
|
||
|
void Level2D::_bind_methods() {
|
||
|
#define CLASSNAME Level3D
|
||
|
GDPROPERTY_HINTED(game_mode_prototype, Variant::OBJECT, PROPERTY_HINT_RESOURCE_TYPE, "GameMode");
|
||
|
}
|
||
|
|
||
|
void Level2D::set_game_mode_prototype(Ref<GameMode> prototype) {
|
||
|
this->game_mode_prototype = prototype;
|
||
|
}
|
||
|
|
||
|
Ref<GameMode> Level2D::get_game_mode_prototype() const {
|
||
|
return this->game_mode_prototype;
|
||
|
}
|
||
|
|
||
|
}
|