Files
tbd-station-14/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs
2022-05-13 17:59:03 +10:00

19 lines
538 B
C#

using Content.Server.Explosion.Components;
using JetBrains.Annotations;
namespace Content.Server.Destructible.Thresholds.Behaviors
{
/// <summary>
/// This behavior will trigger entities with <see cref="ExplosiveComponent"/> to go boom.
/// </summary>
[UsedImplicitly]
[DataDefinition]
public sealed class ExplodeBehavior : IThresholdBehavior
{
public void Execute(EntityUid owner, DestructibleSystem system)
{
system.ExplosionSystem.TriggerExplosive(owner);
}
}
}