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-24 13:13:26 +02:00
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Shared.Weapons.Ranged.Barrels.Components
|
2020-08-24 13:13:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public class BoltActionBarrelComponentState : ComponentState
|
|
|
|
|
|
{
|
|
|
|
|
|
public (bool chambered, bool spent) Chamber { get; }
|
|
|
|
|
|
public FireRateSelector FireRateSelector { get; }
|
|
|
|
|
|
public (int count, int max)? Magazine { get; }
|
2021-03-16 15:50:20 +01:00
|
|
|
|
public string? SoundGunshot { get; }
|
2020-08-24 13:13:26 +02:00
|
|
|
|
|
|
|
|
|
|
public BoltActionBarrelComponentState(
|
|
|
|
|
|
(bool chambered, bool spent) chamber,
|
|
|
|
|
|
FireRateSelector fireRateSelector,
|
|
|
|
|
|
(int count, int max)? magazine,
|
2021-07-12 01:32:10 -07:00
|
|
|
|
string? soundGunshot)
|
2020-08-24 13:13:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
Chamber = chamber;
|
|
|
|
|
|
FireRateSelector = fireRateSelector;
|
|
|
|
|
|
Magazine = magazine;
|
|
|
|
|
|
SoundGunshot = soundGunshot;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|