Cleanup previous refactor, fix floor count
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user