AutoShootGunComponent.cs 498 B

1234567891011121314
  1. using Content.Shared.Weapons.Ranged.Systems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Weapons.Ranged.Components;
  4. /// <summary>
  5. /// Allows GunSystem to automatically fire while this component is enabled
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, Access(typeof(SharedGunSystem)), AutoGenerateComponentState]
  8. public sealed partial class AutoShootGunComponent : Component
  9. {
  10. [DataField, ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
  11. public bool Enabled;
  12. }