OldBlueWater/BlueWater/Assets/Behavior Designer Tactical/Scripts/Interfaces/IDamageable.cs

20 lines
557 B
C#
Raw Normal View History

2023-09-26 06:12:44 +00:00
namespace BehaviorDesigner.Runtime.Tactical
{
/// <summary>
/// Interface for objects that can take damage.
/// </summary>
public interface IDamageable
{
/// <summary>
/// Take damage by the specified amount.
/// </summary>
/// <param name="amount">The amount of damage to take.</param>
void Damage(float amount);
/// <summary>
/// Is the object currently alive?
/// </summary>
/// <returns>True if the object is alive.</returns>
bool IsAlive();
}
}