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

@ -8,19 +8,16 @@ public partial class PermanentSpeedEffect : Effect
{
[Export] public float Multiplier;
public override void Enter(Node target)
public override void Enter(Entity target)
{
if (target is Entity entity)
{
entity.LocalTimescale *= Multiplier;
}
target.LocalTimescale *= Multiplier;
}
public override void Exit(Node target)
public override void Exit(Entity target)
{
}
public override void Process(Node target)
public override void Process(Entity target)
{
}