RCDAmmoComponent.cs 571 B

12345678910111213141516
  1. using Content.Shared.RCD.Systems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.RCD.Components;
  4. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  5. [Access(typeof(RCDAmmoSystem))]
  6. public sealed partial class RCDAmmoComponent : Component
  7. {
  8. /// <summary>
  9. /// How many charges are contained in this ammo cartridge.
  10. /// Can be partially transferred into an RCD, until it is empty then it gets deleted.
  11. /// </summary>
  12. [DataField("charges"), ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
  13. public int Charges = 30;
  14. }