Cleanup previous refactor, fix floor count

This commit is contained in:
2025-03-10 21:04:28 -07:00
parent a1c26ed7fb
commit ed12c1cf15
7 changed files with 48 additions and 48 deletions

View File

@@ -22,6 +22,8 @@ public interface IMap : INode3D, IProvide<ISaveChunk<MapData>>
Transform3D GetPlayerSpawnPosition();
IDungeonRoom GetPlayersCurrentRoom();
public int CurrentFloorNumber { get; }
}
@@ -52,6 +54,8 @@ public partial class Map : Node3D, IMap
public IDungeonFloor CurrentFloor { get; private set; }
public int CurrentFloorNumber { get; private set; } = 0;
public void OnResolved()
{
FloorScenes = [];
@@ -95,6 +99,7 @@ public partial class Map : Node3D, IMap
Player.TeleportPlayer(transform);
CurrentFloor.FloorIsLoaded = true;
Game.NextFloorLoaded();
CurrentFloorNumber += 1;
}
public IDungeonRoom GetPlayersCurrentRoom()