forked from jaildesigner-jailgames/jaildoctors_dilemma
Singleton de ItemTracker
Arreglos menors
This commit is contained in:
@@ -90,11 +90,11 @@ struct ResourceTileMap
|
||||
// Estructura para almacenar habitaciones y su nombre
|
||||
struct ResourceRoom
|
||||
{
|
||||
std::string name; // Nombre de la habitación
|
||||
std::shared_ptr<room_t> room; // Habitación
|
||||
std::string name; // Nombre de la habitación
|
||||
std::shared_ptr<RoomData> room; // Habitación
|
||||
|
||||
// Constructor
|
||||
ResourceRoom(const std::string &name, std::shared_ptr<room_t> room)
|
||||
ResourceRoom(const std::string &name, std::shared_ptr<RoomData> room)
|
||||
: name(name), room(room) {}
|
||||
};
|
||||
|
||||
@@ -238,7 +238,7 @@ public:
|
||||
std::vector<int> &getTileMap(const std::string &name);
|
||||
|
||||
// Obtiene la habitación a partir de un nombre
|
||||
std::shared_ptr<room_t> getRoom(const std::string &name);
|
||||
std::shared_ptr<RoomData> getRoom(const std::string &name);
|
||||
|
||||
// Obtiene todas las habitaciones
|
||||
std::vector<ResourceRoom> &getRooms();
|
||||
|
||||
Reference in New Issue
Block a user