projectEli/Assets/NeoFPS/Core/Damage/IDamageHandler.cs

26 lines
479 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
using UnityEngine;
namespace NeoFPS
{
public interface IDamageHandler
{
DamageFilter inDamageFilter
{
get;
set;
}
DamageResult AddDamage(float damage);
DamageResult AddDamage(float damage, RaycastHit hit);
DamageResult AddDamage(float damage, IDamageSource source);
DamageResult AddDamage(float damage, RaycastHit hit, IDamageSource source);
}
public enum DamageResult
{
Standard,
Critical,
Ignored,
Blocked
}
}