Add Special Rooms class

This commit is contained in:
2025-09-15 21:20:46 -07:00
parent 4808b1dd63
commit 7cbb93822b
6 changed files with 45 additions and 33 deletions

View File

@@ -0,0 +1,25 @@
using Chickensoft.AutoInject;
using Chickensoft.Introspection;
using Godot;
using System.Collections.Immutable;
namespace Zennysoft.Game.Ma;
[Meta(typeof(IAutoNode))]
public partial class SpecialFloor : Node3D, IDungeonFloor
{
public override void _Notification(int what) => this.Notify(what);
[Node] private Marker3D PlayerSpawn { get; set; } = default!;
public ImmutableList<IDungeonRoom> Rooms => [];
public void InitializeDungeon()
{
FloorIsLoaded = true;
}
public bool FloorIsLoaded { get; set; }
public Transform3D GetPlayerSpawnPoint() => PlayerSpawn.GlobalTransform;
}