* Remove most IEntity usages from Destructible and Explosions * Perform a minute amount of cleanup * Fix build
18 lines
532 B
C#
18 lines
532 B
C#
using System;
|
|
using Content.Server.Atmos.Piping.Unary.EntitySystems;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
namespace Content.Server.Destructible.Thresholds.Behaviors
|
|
{
|
|
[Serializable]
|
|
[DataDefinition]
|
|
public class DumpCanisterBehavior : IThresholdBehavior
|
|
{
|
|
public void Execute(EntityUid owner, DestructibleSystem system)
|
|
{
|
|
system.EntityManager.EntitySysManager.GetEntitySystem<GasCanisterSystem>().PurgeContents(owner);
|
|
}
|
|
}
|
|
}
|