Comment out invalid access tags (#5619)

This commit is contained in:
metalgearsloth
2021-12-01 00:40:46 +11:00
committed by GitHub
parent e910a0728b
commit d0efe50e83
9 changed files with 21 additions and 17 deletions

View File

@@ -1,8 +1,10 @@
using System.Collections.Generic;
using Content.Server.Access.Systems;
using Content.Shared.Access;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
using Robust.Shared.ViewVariables;
namespace Content.Server.Access.Components
@@ -16,7 +18,7 @@ namespace Content.Server.Access.Components
{
public override string Name => "Access";
[DataField("tags")]
[DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<AccessLevelPrototype>))]
[ViewVariables]
public HashSet<string> Tags = new();
}

View File

@@ -1,7 +1,9 @@
using System;
using System.Collections.Generic;
using Content.Shared.Access;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
using Robust.Shared.ViewVariables;
namespace Content.Shared.Roles
@@ -54,7 +56,7 @@ namespace Content.Shared.Roles
[DataField("departments")]
public IReadOnlyCollection<string> Departments { get; } = Array.Empty<string>();
[DataField("access")]
[DataField("access", customTypeSerializer: typeof(PrototypeIdListSerializer<AccessLevelPrototype>))]
public IReadOnlyCollection<string> Access { get; } = Array.Empty<string>();
}
}

View File

@@ -312,23 +312,23 @@
tags:
- Maintenance
- Cargo
- Quartermaster
# - Quartermaster
- Engineering
- ChiefEngineer
# - ChiefEngineer
- Medical
- ChiefMedicalOfficer
# - ChiefMedicalOfficer
- Research
- ResearchDirector
# - ResearchDirector
- Security
- Service
- Captain
- Command
- External
- HeadOfSecurity
#- HeadOfSecurity
- HeadOfPersonnel
- Bar
- Hydroponics
- Kitchen
#- Hydroponics
#- Kitchen
- Janitor
- Theatre

View File

@@ -8,7 +8,7 @@
supervisors: "the head of personnel"
access:
- Cargo
- Quartermaster
# - Quartermaster
- Maintenance
- type: startingGear

View File

@@ -7,7 +7,7 @@
icon: "Chaplain"
supervisors: "the head of personnel"
access:
- Chapel
# - Chapel
- Maintenance
- type: startingGear
id: ChaplainGear

View File

@@ -19,11 +19,11 @@
- HeadOfPersonnel
- Command
- Security
- Brig
# - Brig
- Engineering
- Medical
- Cargo
- ResearchDirector
# - ResearchDirector
- Research
- Service
- Maintenance

View File

@@ -7,8 +7,8 @@
icon: "Nanotrasen"
supervisors: "the head of security"
access:
- Command
- Maintenence
- Command
- Maintenance
- type: startingGear
id: CentcomGear

View File

@@ -12,7 +12,7 @@
canBeAntag: false
access:
- Command
- Brig
# - Brig
- Security
- Maintenance
- Service

View File

@@ -8,7 +8,7 @@
supervisors: "the head of security"
access:
- Security
- Brig
# - Brig
- Maintenance
- Service