Singleton de ItemTracker
Arreglos menors
This commit is contained in:
@@ -181,7 +181,7 @@ std::vector<int> &Resource::getTileMap(const std::string &name)
|
||||
}
|
||||
|
||||
// Obtiene la habitación a partir de un nombre
|
||||
std::shared_ptr<room_t> Resource::getRoom(const std::string &name)
|
||||
std::shared_ptr<RoomData> Resource::getRoom(const std::string &name)
|
||||
{
|
||||
auto it = std::find_if(rooms_.begin(), rooms_.end(), [&name](const auto &r)
|
||||
{ return r.name == name; });
|
||||
@@ -304,7 +304,7 @@ void Resource::loadRooms()
|
||||
for (const auto &l : list)
|
||||
{
|
||||
auto name = getFileName(l);
|
||||
rooms_.emplace_back(ResourceRoom(name, std::make_shared<room_t>(loadRoomFile(l))));
|
||||
rooms_.emplace_back(ResourceRoom(name, std::make_shared<RoomData>(loadRoomFile(l))));
|
||||
printWithDots("Room : ", name, "[ LOADED ]");
|
||||
updateLoadingProgress();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user