new effect system

This commit is contained in:
Rendo 2025-07-30 00:56:53 +05:00
commit 22b02c4590
11 changed files with 146 additions and 89 deletions

View file

@ -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);
}
}