Refresh fix, Dungeon Builder v4
This commit is contained in:
@@ -112,7 +112,22 @@ public class DungeonGeneratorV3
|
||||
// Set spawn points
|
||||
SetSpawnPoints(layout, rooms);
|
||||
|
||||
Console.WriteLine($"[DungeonGenV3] Generation complete: {rooms.Count} rooms, {layout.TileDetails.Count} tiles, {layout.Objects.Count} objects");
|
||||
// Populate TileMapSheets for client rendering
|
||||
foreach (var sheet in _tileSheets.Values)
|
||||
{
|
||||
layout.TileMapSheets.Add(new TileMapSheetInfo
|
||||
{
|
||||
Id = sheet.Id,
|
||||
CdnPath = sheet.CdnPath ?? "",
|
||||
TileWidth = sheet.TileWidth,
|
||||
TileHeight = sheet.TileHeight,
|
||||
SheetWidth = sheet.SheetWidth,
|
||||
SheetHeight = sheet.SheetHeight,
|
||||
Columns = sheet.Columns
|
||||
});
|
||||
}
|
||||
|
||||
Console.WriteLine($"[DungeonGenV3] Generation complete: {rooms.Count} rooms, {layout.TileDetails.Count} tiles, {layout.Objects.Count} objects, {layout.TileMapSheets.Count} sheets");
|
||||
|
||||
return layout;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user