Fixed parsing Scenery
This commit is contained in:
@@ -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
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user