Delta-v/Content.Server/_DV/Objectives/Components/NotJobsRequirementComponent.cs

19 lines
690 B
C#

using Content.Server._DV.Objectives.Systems;
using Content.Shared.Roles;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Server._DV.Objectives.Components;
/// <summary>
/// Requires that the player not have a certain job to have this objective.
/// </summary>
[RegisterComponent, Access(typeof(NotJobsRequirementSystem))]
public sealed partial class NotJobsRequirementComponent : Component
{
/// <summary>
/// ID of the job to ban from having this objective.
/// </summary>
[DataField(required: true, customTypeSerializer: typeof(PrototypeIdListSerializer<JobPrototype>))]
public List<string> Jobs = new();
}