Files
tbd-station-14/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs
Moony 4a466f4927 Explosion refactor TEST MERG (#6995)
* Explosions

* fix yaml typo

and prevent silly UI inputs

* oop

Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
2022-03-04 13:48:01 -06:00

21 lines
625 B
C#

using Content.Server.Explosion.Components;
using JetBrains.Annotations;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
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);
}
}
}