Fixed parsing Scenery

This commit is contained in:
Timothy O'Barr
2026-09-02 11:24:10 -05:00
parent 668d416256
commit 0e7406db96
4 changed files with 100 additions and 29 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ private:
public:
Room();
Room(int id, std::string name, std::string desc, std::vector<Exit> e, std::vector<Scenery> s);
Room(int i, std::string n, std::string desc, std::vector<Exit> e, std::vector<Scenery> s);
Room(const Room &r);
void PrintAvalibleExits();
+7 -6
View File
@@ -10,12 +10,12 @@ Room::Room() {
exits.clear();
}
Room::Room(int id, std::string n, std::string desc, std::vector<Exit> e, std::vector<Scenery> s) {
id = id;
name = n;
description = desc;
exits = e;
scenery = s;
Room::Room(int i, std::string n, std::string desc, std::vector<Exit> e, std::vector<Scenery> s) {
id = i;
name = std::move(n);
description = std::move(desc);
exits = std::move(e);
scenery = std::move(s);
}
Room::Room(const Room &r) {
@@ -23,6 +23,7 @@ Room::Room(const Room &r) {
name = r.name;
description = r.description;
exits = r.exits;
scenery = r.scenery;
}
Room::~Room() {