mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-14 21:01:14 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Content.Shared.Weapons.Ranged.Systems;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Weapons.Ranged.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(fieldDeltas: true), Access(typeof(SharedGunSystem))]
|
|
public sealed partial class SolutionAmmoProviderComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The solution where reagents are extracted from for the projectile.
|
|
/// </summary>
|
|
[DataField(required: true), AutoNetworkedField]
|
|
public string SolutionId = default!;
|
|
|
|
/// <summary>
|
|
/// How much reagent it costs to fire once.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float FireCost = 5;
|
|
|
|
/// <summary>
|
|
/// The amount of shots currently available.
|
|
/// used for network predictions.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public int Shots;
|
|
|
|
/// <summary>
|
|
/// The max amount of shots the gun can fire.
|
|
/// used for network prediction
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public int MaxShots;
|
|
|
|
/// <summary>
|
|
/// The prototype that's fired by the gun.
|
|
/// </summary>
|
|
[DataField("proto")]
|
|
public EntProtoId Prototype;
|
|
}
|