2021-02-05 13:41:05 +01:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
using Content.Server.GameObjects.EntitySystems;
|
|
|
|
|
|
using Content.Shared.GameObjects.Components.Damage;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Shared.Serialization;
|
2021-02-05 13:41:05 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.Components.Destructible.Thresholds.Triggers
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IThresholdTrigger : IExposeData
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <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(IDamageableComponent damageable, DestructibleSystem system);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|