feat: Level::get_entrance argument now const &

main
Sara 2024-02-02 08:48:07 +01:00
parent a9a63da68d
commit 304729c3ea
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
namespace godot {
void Level::_bind_methods() {}
Transform3D Level::get_entrance(String entranceName) {
Transform3D Level::get_entrance(String const &entranceName) {
if (entrances.has(entranceName)) {
Node3D* entrance =
Object::cast_to<Node3D>(this->entrances[entranceName]);

View File

@ -15,7 +15,7 @@ class Level : public Node3D {
protected:
Dictionary entrances{};
public:
Transform3D get_entrance(String entranceName);
Transform3D get_entrance(String const &entranceName);
void add_entrance(Entrance *entrance);
void remove_entrance(Entrance *entrance);
};