ClothingSlotAmmoProviderComponent.cs 856 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.Inventory;
  2. using Content.Shared.Weapons.Ranged.Systems;
  3. using Content.Shared.Whitelist;
  4. using Robust.Shared.GameStates;
  5. namespace Content.Shared.Weapons.Ranged.Components;
  6. /// <summary>
  7. /// This is used for relaying ammo events
  8. /// to an entity in the user's clothing slot.
  9. /// </summary>
  10. [RegisterComponent, NetworkedComponent, Access(typeof(SharedGunSystem))]
  11. public sealed partial class ClothingSlotAmmoProviderComponent : AmmoProviderComponent
  12. {
  13. /// <summary>
  14. /// The slot that the ammo provider should be located in.
  15. /// </summary>
  16. [DataField("targetSlot", required: true)]
  17. public SlotFlags TargetSlot;
  18. /// <summary>
  19. /// A whitelist for determining whether or not an ammo provider is valid.
  20. /// </summary>
  21. [DataField("providerWhitelist")]
  22. public EntityWhitelist? ProviderWhitelist;
  23. }