33 lines
720 B
C++
33 lines
720 B
C++
|
#ifndef LEVEL_HPP
|
||
|
#define LEVEL_HPP
|
||
|
|
||
|
#include <godot_cpp/classes/node2d.hpp>
|
||
|
#include <godot_cpp/classes/node3d.hpp>
|
||
|
#include "game_mode.hpp"
|
||
|
|
||
|
namespace godot {
|
||
|
class Level3D : public Node3D {
|
||
|
GDCLASS(Level3D, Node3D);
|
||
|
static void _bind_methods();
|
||
|
public:
|
||
|
void set_game_mode_prototype(Ref<GameMode> prototype);
|
||
|
Ref<GameMode> get_game_mode_prototype() const;
|
||
|
private:
|
||
|
Ref<GameMode> game_mode_prototype{};
|
||
|
};
|
||
|
|
||
|
class Level2D : public Node2D {
|
||
|
GDCLASS(Level2D, Node2D);
|
||
|
static void _bind_methods();
|
||
|
public:
|
||
|
void set_game_mode_prototype(Ref<GameMode> prototype);
|
||
|
Ref<GameMode> get_game_mode_prototype() const;
|
||
|
private:
|
||
|
Ref<GameMode> game_mode_prototype{};
|
||
|
};
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif // !LEVEL_HPP
|