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]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class RevolverBarrelComponentState : ComponentState
|
2020-08-24 13:13:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
public int CurrentSlot { get; }
|
|
|
|
|
|
public FireRateSelector FireRateSelector { get; }
|
|
|
|
|
|
public bool?[] Bullets { get; }
|
2021-03-16 15:50:20 +01:00
|
|
|
|
public string? SoundGunshot { get; }
|
2020-08-24 13:13:26 +02:00
|
|
|
|
|
|
|
|
|
|
public RevolverBarrelComponentState(
|
|
|
|
|
|
int currentSlot,
|
|
|
|
|
|
FireRateSelector fireRateSelector,
|
|
|
|
|
|
bool?[] bullets,
|
2021-07-12 01:32:10 -07:00
|
|
|
|
string? soundGunshot)
|
2020-08-24 13:13:26 +02:00
|
|
|
|
{
|
|
|
|
|
|
CurrentSlot = currentSlot;
|
|
|
|
|
|
FireRateSelector = fireRateSelector;
|
|
|
|
|
|
Bullets = bullets;
|
|
|
|
|
|
SoundGunshot = soundGunshot;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|