godot-cpp-utils
A collection of utility classes, functions and macros for use with Godot and GDExtension.
Loading...
Searching...
No Matches
level.hpp
1#ifndef UTILS_LEVEL_HPP
2#define UTILS_LEVEL_HPP
3
4#include "game_mode.hpp"
5#include <godot_cpp/classes/node3d.hpp>
6
7namespace gd = godot;
8
9namespace utils {
14class Level3D : public gd::Node3D {
15 GDCLASS(Level3D, gd::Node3D);
16 static void _bind_methods();
17public:
18 void set_game_mode_prototype(gd::Ref<gd::PackedScene> prototype);
19 gd::Ref<gd::PackedScene> get_game_mode_prototype() const;
20private:
21 gd::Ref<gd::PackedScene> game_mode_prototype{};
22};
23}
24
25#endif // !UTILS_LEVEL_HPP
3D level root to be used with GameRoot3D.
Definition level.hpp:14
gd::Ref< gd::PackedScene > game_mode_prototype
The starting state of the game mode to instantiate if this is the "leading" level.
Definition level.hpp:21