mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
26 lines
563 B
C#
26 lines
563 B
C#
using Content.Shared.Chemistry.Reagent;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared._Shitmed.OnHit;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class InjectOnHitComponent : Component
|
|
{
|
|
[DataField("reagents")]
|
|
public List<ReagentQuantity> Reagents;
|
|
|
|
[DataField("sound")]
|
|
public SoundSpecifier? Sound;
|
|
|
|
[DataField("limit")]
|
|
public float? ReagentLimit;
|
|
|
|
[DataField]
|
|
public bool NeedsRestrain;
|
|
|
|
[DataField]
|
|
public int InjectionDelay = 10000;
|
|
}
|
|
[ByRefEvent]
|
|
public record struct InjectOnHitAttemptEvent(bool Cancelled);
|