Files
tbd-station-14/Content.Shared/Weapons/Ranged/Upgrades/Components/GunUpgradeComponent.cs
2025-04-25 11:18:23 -07:00

25 lines
779 B
C#

using Content.Shared.Tag;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Weapons.Ranged.Upgrades.Components;
/// <summary>
/// Used to denote compatibility with <see cref="UpgradeableGunComponent"/>. Does not contain explicit behavior.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(GunUpgradeSystem))]
public sealed partial class GunUpgradeComponent : Component
{
/// <summary>
/// Tags used to ensure mutually exclusive upgrades and duplicates are not stacked.
/// </summary>
[DataField]
public List<ProtoId<TagPrototype>> Tags = new();
/// <summary>
/// Markup added to the gun on examine to display the upgrades.
/// </summary>
[DataField]
public LocId ExamineText;
}