Files
godot-host-test/Interfaces/ITarget.cs
T
redglow e7dbb9cabb .
2026-07-21 20:49:24 +02:00

25 lines
717 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; once this observable emits an event, both
/// it and <see cref="Hit"/> complete.
/// </summary>
Observable<Unit> TimedOut { get; }
/// <summary>
/// The target has been hit; once this observable emits an event, both it and <see cref="TimedOut"/> complete.
/// </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();
}