Contraband Review Pass - The Threequel (#30970)

Contraband pass number three
This commit is contained in:
Plykiya
2024-08-15 11:52:46 -07:00
committed by GitHub
parent 40b9fd4ea3
commit dc66386e5f
13 changed files with 188 additions and 168 deletions

View File

@@ -7,13 +7,14 @@ 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))]
[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>
@@ -22,5 +23,6 @@ public sealed partial class ContrabandComponent : Component
/// If null, no departments are allowed to use this.
/// </summary>
[DataField]
[AutoNetworkedField]
public HashSet<ProtoId<DepartmentPrototype>>? AllowedDepartments = ["Security"];
}