2021-11-05 19:19:12 -05:00
|
|
|
using Content.Server.Atmos.Piping.Unary.EntitySystems;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Destructible.Thresholds.Behaviors
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
[DataDefinition]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class DumpCanisterBehavior : IThresholdBehavior
|
2021-11-05 19:19:12 -05:00
|
|
|
{
|
2023-02-10 17:45:38 -06:00
|
|
|
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
|
2021-11-05 19:19:12 -05:00
|
|
|
{
|
2021-11-09 21:24:35 +01:00
|
|
|
system.EntityManager.EntitySysManager.GetEntitySystem<GasCanisterSystem>().PurgeContents(owner);
|
2021-11-05 19:19:12 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|