Teleport works, item pickup is broken
This commit is contained in:
22
src/map/dungeon/floors/DungeonFloor.cs
Normal file
22
src/map/dungeon/floors/DungeonFloor.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
|
||||
public interface IDungeonFloor : INode3D
|
||||
{
|
||||
void InitializeDungeon();
|
||||
}
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class DungeonFloor : Node3D, IDungeonFloor
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Node] public GodotObject DungeonGenerator { get; set; } = default!;
|
||||
|
||||
public void InitializeDungeon()
|
||||
{
|
||||
DungeonGenerator.Call("generate");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user