feat: Level::get_entrance argument now const &
parent
a9a63da68d
commit
304729c3ea
|
@ -5,7 +5,7 @@
|
||||||
namespace godot {
|
namespace godot {
|
||||||
void Level::_bind_methods() {}
|
void Level::_bind_methods() {}
|
||||||
|
|
||||||
Transform3D Level::get_entrance(String entranceName) {
|
Transform3D Level::get_entrance(String const &entranceName) {
|
||||||
if (entrances.has(entranceName)) {
|
if (entrances.has(entranceName)) {
|
||||||
Node3D* entrance =
|
Node3D* entrance =
|
||||||
Object::cast_to<Node3D>(this->entrances[entranceName]);
|
Object::cast_to<Node3D>(this->entrances[entranceName]);
|
||||||
|
|
|
@ -15,7 +15,7 @@ class Level : public Node3D {
|
||||||
protected:
|
protected:
|
||||||
Dictionary entrances{};
|
Dictionary entrances{};
|
||||||
public:
|
public:
|
||||||
Transform3D get_entrance(String entranceName);
|
Transform3D get_entrance(String const &entranceName);
|
||||||
void add_entrance(Entrance *entrance);
|
void add_entrance(Entrance *entrance);
|
||||||
void remove_entrance(Entrance *entrance);
|
void remove_entrance(Entrance *entrance);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue