2024-08-09 17:39:27 +10:00
|
|
|
|
using Content.Shared.Weapons.Ranged.Systems;
|
|
|
|
|
|
using Robust.Shared.GameStates;
|
2023-01-16 10:56:09 -06:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Weapons.Ranged.Components;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Handles pulling entities from the given container to use as ammunition.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
2024-08-09 17:39:27 +10:00
|
|
|
|
[Access(typeof(SharedGunSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class ContainerAmmoProviderComponent : AmmoProviderComponent
|
2023-01-16 10:56:09 -06:00
|
|
|
|
{
|
|
|
|
|
|
[DataField("container", required: true)]
|
2023-04-30 06:49:26 -04:00
|
|
|
|
[ViewVariables]
|
2023-01-16 10:56:09 -06:00
|
|
|
|
public string Container = default!;
|
2023-04-30 06:49:26 -04:00
|
|
|
|
|
|
|
|
|
|
[DataField("provider")]
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
|
public EntityUid? ProviderUid;
|
2023-01-16 10:56:09 -06:00
|
|
|
|
}
|