Files
crystall-punk-14/Content.Server/_CP14/ModularCraft/CP14ModularDisassembleBehavior.cs

16 lines
479 B
C#
Raw Permalink Normal View History

using Content.Server.Destructible;
using Content.Server.Destructible.Thresholds.Behaviors;
namespace Content.Server._CP14.ModularCraft;
[Serializable]
[DataDefinition]
public sealed partial class CP14ModularDisassembleBehavior : IThresholdBehavior
{
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
{
var modular = system.EntityManager.System<CP14ModularCraftSystem>();
modular.DisassembleModular(owner);
}
}