17 lines
455 B
C#
17 lines
455 B
C#
namespace Dancer;
|
|
|
|
using Godot;
|
|
using Chickensoft.AutoInject;
|
|
using Chickensoft.Introspection;
|
|
|
|
[Meta(typeof(IAutoNode))]
|
|
public sealed partial class SlashProjectile : Node2D
|
|
{
|
|
public override void _Notification(int what) => this.Notify(what);
|
|
|
|
[Signal]
|
|
public delegate void HitboxEnteredEventHandler(Node2D other);
|
|
|
|
public void OnAttackFinished() => QueueFree();
|
|
public void OnHitboxBodyEntered(Node2D body) => EmitSignalHitboxEntered(body);
|
|
}
|