AccessGroupPrototype.cs 622 B

12345678910111213141516171819
  1. using Content.Shared.Access.Components;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
  4. namespace Content.Shared.Access;
  5. /// <summary>
  6. /// Contains a list of access tags that are part of this group.
  7. /// Used by <see cref="AccessComponent"/> to avoid boilerplate.
  8. /// </summary>
  9. [Prototype]
  10. public sealed partial class AccessGroupPrototype : IPrototype
  11. {
  12. [IdDataField]
  13. public string ID { get; private set; } = default!;
  14. [DataField("tags", required: true)]
  15. public HashSet<ProtoId<AccessLevelPrototype>> Tags = default!;
  16. }