new effect system
This commit is contained in:
parent
f3a6f7a05a
commit
22b02c4590
11 changed files with 146 additions and 89 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using Godot;
|
||||
using Newlon.Components;
|
||||
|
||||
namespace Newlon.Systems.Effects;
|
||||
|
||||
|
|
@ -7,7 +8,12 @@ public abstract partial class Effect : Resource
|
|||
{
|
||||
[Export] public float Duration;
|
||||
[Export] public string Slot;
|
||||
public abstract void Enter(Node target);
|
||||
public abstract void Process(Node target);
|
||||
public abstract void Exit(Node target);
|
||||
public abstract void Enter(Entity target);
|
||||
public abstract void Process(Entity target);
|
||||
public abstract void Exit(Entity target);
|
||||
|
||||
private Tween CreateTween(Entity fromEntity)
|
||||
{
|
||||
return fromEntity.CreateTweenEffect(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue