28 lines
623 B
C++
28 lines
623 B
C++
#ifndef LEVEL_HPP
|
|
#define LEVEL_HPP
|
|
|
|
#include "godot_cpp/classes/node3d.hpp"
|
|
#include "godot_cpp/variant/dictionary.hpp"
|
|
#include "godot_cpp/variant/string.hpp"
|
|
#include "godot_cpp/variant/transform3d.hpp"
|
|
|
|
namespace godot {
|
|
class Entrance;
|
|
|
|
class Level : public Node3D {
|
|
GDCLASS(Level, Node3D)
|
|
static void _bind_methods();
|
|
|
|
protected:
|
|
Dictionary entrances{};
|
|
|
|
public:
|
|
Transform3D get_entrance(String const& entranceName) const;
|
|
String get_default_entrance() const;
|
|
void add_entrance(Entrance* entrance);
|
|
void remove_entrance(Entrance* entrance);
|
|
};
|
|
} // namespace godot
|
|
|
|
#endif // !LEVEL_HPP
|