Files
wwdpublic/Content.Shared/Weapons/Ranged/Components/ContainerAmmoProviderComponent.cs
metalgearsloth 5ab011513f Add access to gun components (#30688)
* Add access to gun components

Found from an rmc14 PR.

* Admin verbs proving why access needs to exist

* Someone is probably going to post this pr to le reddit and complain about self-merges.

(cherry picked from commit 1649ed45bd395c850bd531752f7146ca073b04cd)
2025-07-20 14:20:00 +10:00

21 lines
573 B
C#

using Content.Shared.Weapons.Ranged.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Weapons.Ranged.Components;
/// <summary>
/// Handles pulling entities from the given container to use as ammunition.
/// </summary>
[RegisterComponent]
[Access(typeof(SharedGunSystem))]
public sealed partial class ContainerAmmoProviderComponent : AmmoProviderComponent
{
[DataField("container", required: true)]
[ViewVariables]
public string Container = default!;
[DataField("provider")]
[ViewVariables]
public EntityUid? ProviderUid;
}