Modular landmines (#8351)

This commit is contained in:
Kara
2022-06-01 01:39:06 -07:00
committed by GitHub
parent 19778cc664
commit da07d91895
14 changed files with 190 additions and 28 deletions

View File

@@ -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!;

View File

@@ -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);
}
}