1
0

NPCRecentlyInjectedComponent.cs 556 B

12345678910111213141516
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.NPC.Components
  3. {
  4. /// Added when a medibot injects someone
  5. /// So they don't get injected again for at least a minute.
  6. [RegisterComponent, NetworkedComponent]
  7. public sealed partial class NPCRecentlyInjectedComponent : Component
  8. {
  9. [ViewVariables(VVAccess.ReadWrite), DataField("accumulator")]
  10. public float Accumulator = 0f;
  11. [ViewVariables(VVAccess.ReadWrite), DataField("removeTime")]
  12. public TimeSpan RemoveTime = TimeSpan.FromMinutes(1);
  13. }
  14. }