added C#
This commit is contained in:
parent
ab79ace226
commit
00b76b6b25
63 changed files with 1172 additions and 1548 deletions
17
src/player/SlashProjectile.cs
Normal file
17
src/player/SlashProjectile.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue