24 lines
554 B
C#
24 lines
554 B
C#
using R3;
|
|
|
|
namespace GodotHostTest.Interfaces;
|
|
|
|
/// <summary>
|
|
/// A target for our projectiles.
|
|
/// </summary>
|
|
public interface ITarget
|
|
{
|
|
/// <summary>
|
|
/// The target hasn't been hit in the allotted time and has timed out.
|
|
/// </summary>
|
|
Observable<Unit> TimedOut { get; }
|
|
|
|
/// <summary>
|
|
/// The target has been hit.
|
|
/// </summary>
|
|
Observable<Unit> Hit { get; }
|
|
|
|
/// <summary>
|
|
/// Enable the target. Targets start disabled and gets disabled when they're hit or time out.
|
|
/// </summary>
|
|
void Enable();
|
|
} |