20 lines
557 B
C#
20 lines
557 B
C#
![]() |
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();
|
|||
|
}
|
|||
|
}
|