DumpCanisterBehavior.cs 471 B

1234567891011121314
  1. using Content.Server.Atmos.Piping.Unary.EntitySystems;
  2. namespace Content.Server.Destructible.Thresholds.Behaviors
  3. {
  4. [Serializable]
  5. [DataDefinition]
  6. public sealed partial class DumpCanisterBehavior : IThresholdBehavior
  7. {
  8. public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
  9. {
  10. system.EntityManager.EntitySysManager.GetEntitySystem<GasCanisterSystem>().PurgeContents(owner);
  11. }
  12. }
  13. }