2024-01-31 20:01:22 +00:00
|
|
|
#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();
|
2024-02-04 21:33:07 +00:00
|
|
|
|
2024-01-31 20:01:22 +00:00
|
|
|
protected:
|
|
|
|
Dictionary entrances{};
|
2024-02-04 21:33:07 +00:00
|
|
|
|
2024-01-31 20:01:22 +00:00
|
|
|
public:
|
2024-02-04 21:33:07 +00:00
|
|
|
Transform3D get_entrance(String const& entranceName) const;
|
|
|
|
String get_default_entrance() const;
|
|
|
|
void add_entrance(Entrance* entrance);
|
|
|
|
void remove_entrance(Entrance* entrance);
|
2024-01-31 20:01:22 +00:00
|
|
|
};
|
2024-02-04 21:33:07 +00:00
|
|
|
} // namespace godot
|
2024-01-31 20:01:22 +00:00
|
|
|
|
2024-02-04 21:33:07 +00:00
|
|
|
#endif // !LEVEL_HPP
|