2021-02-27 04:12:09 +01:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
using System;
|
2020-09-13 14:23:52 +02:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-08-24 13:13:26 +02:00
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.GameObjects.Components.Weapons.Ranged.Barrels
|
|
|
|
|
|
{
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public class RevolverBarrelComponentState : ComponentState
|
|
|
|
|
|
{
|
|
|
|
|
|
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-03-16 15:50:20 +01:00
|
|
|
|
string? soundGunshot) :
|
2020-08-24 13:13:26 +02:00
|
|
|
|
base(ContentNetIDs.REVOLVER_BARREL)
|
|
|
|
|
|
{
|
|
|
|
|
|
CurrentSlot = currentSlot;
|
|
|
|
|
|
FireRateSelector = fireRateSelector;
|
|
|
|
|
|
Bullets = bullets;
|
|
|
|
|
|
SoundGunshot = soundGunshot;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|