using Chickensoft.AutoInject; using Chickensoft.Introspection; using GameJamDungeon; using Godot; [Meta(typeof(IAutoNode))] public partial class BossFloor : Node3D, IDungeonFloor { public override void _Notification(int what) => this.Notify(what); private BossRoom BossRoom; public void InitializeDungeon() { var bossRoomScene = GD.Load($"res://src/map/dungeon/scenes/BossRoom.tscn"); BossRoom = bossRoomScene.Instantiate(); AddChild(BossRoom); } public Transform3D GetPlayerSpawnPoint() => BossRoom.PlayerSpawn.GlobalTransform; public Vector3 GetTeleportSpawnPoint() => BossRoom.TeleportSpawn.GlobalPosition; }