1
0

StunOnContactComponent.cs 603 B

1234567891011121314151617181920212223
  1. using Content.Shared.Whitelist;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Stunnable;
  4. [RegisterComponent, NetworkedComponent, Access(typeof(SharedStunSystem))]
  5. public sealed partial class StunOnContactComponent : Component
  6. {
  7. /// <summary>
  8. /// The fixture the entity must collide with to be stunned
  9. /// </summary>
  10. [DataField]
  11. public string FixtureId = "fix";
  12. /// <summary>
  13. /// The duration of the stun.
  14. /// </summary>
  15. [DataField]
  16. public TimeSpan Duration = TimeSpan.FromSeconds(5);
  17. [DataField]
  18. public EntityWhitelist Blacklist = new();
  19. }