GunRequiresWieldComponent.cs 655 B

123456789101112131415161718192021
  1. using Content.Shared.Wieldable;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Weapons.Ranged.Components;
  4. /// <summary>
  5. /// Indicates that this gun requires wielding to be useable.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  8. [Access(typeof(SharedWieldableSystem))]
  9. public sealed partial class GunRequiresWieldComponent : Component
  10. {
  11. [DataField, AutoNetworkedField]
  12. public TimeSpan LastPopup;
  13. [DataField, AutoNetworkedField]
  14. public TimeSpan PopupCooldown = TimeSpan.FromSeconds(1);
  15. [DataField]
  16. public LocId? WieldRequiresExamineMessage = "gunrequireswield-component-examine";
  17. }