Add healing effects and systems with event handling

This commit is contained in:
2025-10-29 02:27:41 +01:00
parent d6a31b12e3
commit 341173c53f
4 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using GameCore.Combat.Interfaces;
using GameCore.Events;
namespace GameCore.Combat.Effects;
public class HealEffect(float amount) : IEffect
{
public void Execute(EffectContext context)
{
if (context.Target == null) return;
context.World.PublishEvent(new HealDealtEvent(context.Target.Value, amount));
}
}