Files
tbd-station-14/Content.Shared/Weapons/Ranged/Components/MagazineAmmoProviderComponent.cs
2022-07-29 12:13:12 +10:00

21 lines
728 B
C#

using Content.Shared.Weapons.Ranged.Components;
using Robust.Shared.Audio;
namespace Content.Shared.Weapons.Ranged;
/// <summary>
/// Wrapper around a magazine (handled via ItemSlot). Passes all AmmoProvider logic onto it.
/// </summary>
[RegisterComponent, Virtual]
public class MagazineAmmoProviderComponent : AmmoProviderComponent
{
[ViewVariables(VVAccess.ReadWrite), DataField("soundAutoEject")]
public SoundSpecifier? SoundAutoEject = new SoundPathSpecifier("/Audio/Weapons/Guns/EmptyAlarm/smg_empty_alarm.ogg");
/// <summary>
/// Should the magazine automatically eject when empty.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("autoEject")]
public bool AutoEject = false;
}