mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-15 03:31:44 +01:00
* Entity<T>, skipping Magazine and ChamberMagazine * missed some * AUGH!! * ballistic examine * dotnet hates me * WHY ARE YOU CALLED THAT!!!! * cheers aada
37 lines
803 B
C#
37 lines
803 B
C#
using Content.Client.Weapons.Ranged.Systems;
|
|
|
|
namespace Content.Client.Weapons.Ranged.Components;
|
|
|
|
/// <summary>
|
|
/// Visualizer for gun mag presence; can change states based on ammo count or toggle visibility entirely.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(GunSystem))]
|
|
public sealed partial class MagazineVisualsComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// What RsiState we use.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? MagState;
|
|
|
|
/// <summary>
|
|
/// How many steps there are
|
|
/// </summary>
|
|
[DataField("steps")]
|
|
public int MagSteps;
|
|
|
|
/// <summary>
|
|
/// Should we hide when the count is 0
|
|
/// </summary>
|
|
[DataField]
|
|
public bool ZeroVisible;
|
|
}
|
|
|
|
public enum GunVisualLayers : byte
|
|
{
|
|
Base,
|
|
BaseUnshaded,
|
|
Mag,
|
|
MagUnshaded,
|
|
}
|