migrats els fitxers .room i .tmx a .yaml unificats

This commit is contained in:
2025-11-17 08:20:02 +01:00
parent a5d43dfb1f
commit 23fe4a35a9
298 changed files with 18063 additions and 507 deletions

View File

@@ -306,20 +306,13 @@ void Cache::loadAnimations() {
}
// Carga los mapas de tiles
// DEPRECATED: Los tilemaps ahora vienen embebidos en los archivos YAML de habitaciones
void Cache::loadTileMaps() {
std::cout << "\n>> TILE MAPS" << '\n';
auto list = List::get()->getListByType(List::Type::TILEMAP);
tile_maps_.clear();
for (const auto& l : list) {
auto name = getFileName(l);
tile_maps_.emplace_back(name, Room::loadRoomTileFile(l));
printWithDots("TileMap : ", name, "[ LOADED ]");
updateLoadingProgress();
}
std::cout << "\n>> TILE MAPS (skipped - embebidos en YAML)" << '\n';
// Ya no se cargan tilemaps por separado
}
// Carga las habitaciones
// Carga las habitaciones desde archivos YAML
void Cache::loadRooms() {
std::cout << "\n>> ROOMS" << '\n';
auto list = List::get()->getListByType(List::Type::ROOM);
@@ -327,7 +320,7 @@ void Cache::loadRooms() {
for (const auto& l : list) {
auto name = getFileName(l);
rooms_.emplace_back(name, std::make_shared<Room::Data>(Room::loadRoomFile(l)));
rooms_.emplace_back(name, std::make_shared<Room::Data>(Room::loadYAML(l)));
printWithDots("Room : ", name, "[ LOADED ]");
updateLoadingProgress();
}