ContainerAmmoProviderComponent.cs 573 B

1234567891011121314151617181920
  1. using Content.Shared.Weapons.Ranged.Systems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Weapons.Ranged.Components;
  4. /// <summary>
  5. /// Handles pulling entities from the given container to use as ammunition.
  6. /// </summary>
  7. [RegisterComponent]
  8. [Access(typeof(SharedGunSystem))]
  9. public sealed partial class ContainerAmmoProviderComponent : AmmoProviderComponent
  10. {
  11. [DataField("container", required: true)]
  12. [ViewVariables]
  13. public string Container = default!;
  14. [DataField("provider")]
  15. [ViewVariables]
  16. public EntityUid? ProviderUid;
  17. }