using Content.Server.Objectives.Systems; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom; using Robust.Shared.Serialization.TypeSerializers.Implementations.Generic; namespace Content.Server.Objectives.Components; /// /// Requires that the player's mind matches a whitelist. /// Typical use is checking for (antagonist) roles. /// [RegisterComponent, Access(typeof(RoleRequirementSystem))] public sealed partial class RoleRequirementComponent : Component { /// /// Mind role component whitelist. /// [DataField(required: true, customTypeSerializer: typeof(CustomHashSetSerializer))] public HashSet Roles = new(); }