Files
tbd-station-14/Content.Shared/Contraband/ContrabandComponent.cs
Plykiya dc66386e5f Contraband Review Pass - The Threequel (#30970)
Contraband pass number three
2024-08-15 20:52:46 +02:00

29 lines
1.0 KiB
C#

using Content.Shared.Roles;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Contraband;
/// <summary>
/// This is used for marking entities that are considered 'contraband' IC and showing it clearly in examine.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(ContrabandSystem)), AutoGenerateComponentState]
public sealed partial class ContrabandComponent : Component
{
/// <summary>
/// The degree of contraband severity this item is considered to have.
/// </summary>
[DataField]
[AutoNetworkedField]
public ProtoId<ContrabandSeverityPrototype> Severity = "Restricted";
/// <summary>
/// Which departments is this item restricted to?
/// By default, command and sec are assumed to be fine with contraband.
/// If null, no departments are allowed to use this.
/// </summary>
[DataField]
[AutoNetworkedField]
public HashSet<ProtoId<DepartmentPrototype>>? AllowedDepartments = ["Security"];
}