* Add JobRequirementOverride prototypes * a * invert if * Add override that takes in prototypes directly
21 lines
585 B
C#
21 lines
585 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Roles;
|
|
|
|
/// <summary>
|
|
/// Collection of job, antag, and ghost-role job requirements for per-server requirement overrides.
|
|
/// </summary>
|
|
[Prototype]
|
|
public sealed partial class JobRequirementOverridePrototype : IPrototype
|
|
{
|
|
[ViewVariables]
|
|
[IdDataField]
|
|
public string ID { get; private set; } = default!;
|
|
|
|
[DataField]
|
|
public Dictionary<ProtoId<JobPrototype>, HashSet<JobRequirement>> Jobs = new ();
|
|
|
|
[DataField]
|
|
public Dictionary<ProtoId<AntagPrototype>, HashSet<JobRequirement>> Antags = new ();
|
|
}
|