CatStation/Content.Shared/Weapons/Ranged/Components/BasicEntityAmmoProviderComponent.cs
deltanedas cf7fde3d62
Big prototype and datafield cleanup (#45202)
* giant protoid cleanup

* yml changes

* !

---------

Co-authored-by: deltanedas <@deltanedas:goida.zip>
2026-08-12 02:07:22 +00:00

27 lines
864 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Weapons.Ranged.Components;
/// <summary>
/// Simply provides a certain capacity of entities that cannot be reloaded through normal means and have
/// no special behavior like cycling, magazine
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class BasicEntityAmmoProviderComponent : AmmoProviderComponent
{
[DataField(required: true)]
public EntProtoId Proto = default!;
/// <summary>
/// Max capacity.
/// </summary>
[DataField, AutoNetworkedField]
public int? Capacity = null;
/// <summary>
/// Actual ammo left. Initialized to capacity unless they are non-null and differ.
/// </summary>
[DataField, AutoNetworkedField]
public int? Count = null;
}