| 123456789101112131415161718 |
- 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 partial class ExplodeBehavior : IThresholdBehavior
- {
- public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
- {
- system.ExplosionSystem.TriggerExplosive(owner, user:cause);
- }
- }
- }
|