2022-02-11 19:01:14 -07:00
|
|
|
|
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")]
|
2023-11-01 19:56:23 -07:00
|
|
|
|
public sealed partial class AccessGroupPrototype : IPrototype
|
2022-02-11 19:01:14 -07:00
|
|
|
|
{
|
2023-01-19 03:56:45 +01:00
|
|
|
|
[IdDataField]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public string ID { get; private set; } = default!;
|
2022-02-11 19:01:14 -07:00
|
|
|
|
|
2024-04-01 09:06:13 +03:00
|
|
|
|
[DataField("tags", required: true)]
|
|
|
|
|
|
public HashSet<ProtoId<AccessLevelPrototype>> Tags = default!;
|
2022-02-11 19:01:14 -07:00
|
|
|
|
}
|