Access groups + aghost all access (#6671)

This commit is contained in:
mirrorcult
2022-02-11 19:01:14 -07:00
committed by GitHub
parent 47f6f88fdc
commit aa2727c84d
19 changed files with 160 additions and 82 deletions

View File

@@ -13,10 +13,12 @@ namespace Content.Shared.Access.Components
/// </summary>
[RegisterComponent]
[Friend(typeof(AccessSystem))]
public class AccessComponent : Component
public sealed class AccessComponent : Component
{
[DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<AccessLevelPrototype>))]
[ViewVariables]
public HashSet<string> Tags = new();
[DataField("groups", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<AccessGroupPrototype>))]
public HashSet<string> Groups = new();
}
}