Simplify enemy animation logic

This commit is contained in:
2025-10-06 02:13:05 -07:00
parent ad29e57fc9
commit ec0f9ebff7
56 changed files with 1584 additions and 5011 deletions

View File

@@ -28,8 +28,11 @@ public abstract partial class DungeonRoom : Node3D, IDungeonRoom
public void Setup()
{
_enemiesInRoom = [];
//_room.BodyEntered += Room_BodyEntered;
//_room.BodyExited += Room_BodyExited;
if (_room != null)
{
_room.BodyEntered += Room_BodyEntered;
_room.BodyExited += Room_BodyExited;
}
}
private void Room_BodyExited(Node3D body)

View File

@@ -0,0 +1,10 @@
using Chickensoft.AutoInject;
using Chickensoft.Introspection;
namespace Zennysoft.Game.Ma;
[Meta(typeof(IAutoNode))]
public partial class SpecialRoom : DungeonRoom
{
public override void _Notification(int what) => this.Notify(what);
}

View File

@@ -0,0 +1 @@
uid://bccyfmj8ikewh