IThresholdTrigger.cs 668 B

123456789101112131415161718
  1. using Content.Shared.Damage;
  2. namespace Content.Server.Destructible.Thresholds.Triggers
  3. {
  4. public interface IThresholdTrigger
  5. {
  6. /// <summary>
  7. /// Checks if this trigger has been reached.
  8. /// </summary>
  9. /// <param name="damageable">The damageable component to check with.</param>
  10. /// <param name="system">
  11. /// An instance of <see cref="DestructibleSystem"/> to pull
  12. /// dependencies from, if any.
  13. /// </param>
  14. /// <returns>true if this trigger has been reached, false otherwise.</returns>
  15. bool Reached(DamageableComponent damageable, DestructibleSystem system);
  16. }
  17. }