Modular landmines (#8351)
This commit is contained in:
@@ -24,6 +24,7 @@ namespace Content.Server.Destructible
|
||||
[Dependency] public readonly ConstructionSystem ConstructionSystem = default!;
|
||||
[Dependency] public readonly ExplosionSystem ExplosionSystem = default!;
|
||||
[Dependency] public readonly StackSystem StackSystem = default!;
|
||||
[Dependency] public readonly TriggerSystem TriggerSystem = default!;
|
||||
[Dependency] public readonly IPrototypeManager PrototypeManager = default!;
|
||||
[Dependency] public readonly IComponentFactory ComponentFactory = default!;
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Content.Server.Destructible.Thresholds.Behaviors;
|
||||
|
||||
[DataDefinition]
|
||||
public sealed class TriggerBehavior : IThresholdBehavior
|
||||
{
|
||||
public void Execute(EntityUid owner, DestructibleSystem system)
|
||||
{
|
||||
system.TriggerSystem.Trigger(owner);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user