24 lines
666 B
C#
24 lines
666 B
C#
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<PackedScene>($"res://src/map/dungeon/scenes/BossRoom.tscn");
|
|
BossRoom = bossRoomScene.Instantiate<BossRoom>();
|
|
AddChild(BossRoom);
|
|
}
|
|
|
|
public Transform3D GetPlayerSpawnPoint() => BossRoom.PlayerSpawn.GlobalTransform;
|
|
|
|
public Vector3 GetTeleportSpawnPoint() => BossRoom.TeleportSpawn.GlobalPosition;
|
|
}
|