godot-cpp-utils/level.hpp

22 lines
454 B
C++

#ifndef LEVEL_HPP
#define LEVEL_HPP
#include "game_mode.hpp"
#include <godot_cpp/classes/node3d.hpp>
namespace gd = godot;
namespace utils {
class Level3D : public gd::Node3D {
GDCLASS(Level3D, gd::Node3D);
static void _bind_methods();
public:
void set_game_mode_prototype(gd::Ref<GameMode> prototype);
gd::Ref<GameMode> get_game_mode_prototype() const;
private:
gd::Ref<GameMode> game_mode_prototype{};
};
}
#endif // !LEVEL_HPP