2021-07-17 02:37:09 +02:00
|
|
|
|
using System;
|
2021-06-09 22:19:39 +02:00
|
|
|
|
using Content.Shared.Weapons.Ranged.Components;
|
2020-09-13 14:23:52 +02:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-08-27 16:31:29 +02:00
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Shared.Weapons.Ranged.Barrels.Components
|
2020-08-27 16:31:29 +02:00
|
|
|
|
{
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public class BatteryBarrelComponentState : ComponentState
|
|
|
|
|
|
{
|
|
|
|
|
|
public FireRateSelector FireRateSelector { get; }
|
|
|
|
|
|
public (int count, int max)? Magazine { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public BatteryBarrelComponentState(
|
|
|
|
|
|
FireRateSelector fireRateSelector,
|
2021-07-12 01:32:10 -07:00
|
|
|
|
(int count, int max)? magazine)
|
2020-08-27 16:31:29 +02:00
|
|
|
|
{
|
|
|
|
|
|
FireRateSelector = fireRateSelector;
|
|
|
|
|
|
Magazine = magazine;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|