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

@@ -0,0 +1,19 @@
using Content.Shared.Access.Components;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
namespace Content.Shared.Access;
/// <summary>
/// Contains a list of access tags that are part of this group.
/// Used by <see cref="AccessComponent"/> to avoid boilerplate.
/// </summary>
[Prototype("accessGroup")]
public sealed class AccessGroupPrototype : IPrototype
{
[DataField("id", required: true)]
public string ID { get; } = default!;
[DataField("tags", required: true, customTypeSerializer:typeof(PrototypeIdHashSetSerializer<AccessLevelPrototype>))]
public HashSet<string> Tags = default!;
}