6
2026-01-18 12:53:36 +03:00

19 lines
668 B
C#

using Content.Shared.Damage;
namespace Content.Server.Destructible.Thresholds.Triggers
{
public interface IThresholdTrigger
{
/// <summary>
/// Checks if this trigger has been reached.
/// </summary>
/// <param name="damageable">The damageable component to check with.</param>
/// <param name="system">
/// An instance of <see cref="DestructibleSystem"/> to pull
/// dependencies from, if any.
/// </param>
/// <returns>true if this trigger has been reached, false otherwise.</returns>
bool Reached(DamageableComponent damageable, DestructibleSystem system);
}
}