NotJobRequirementComponent.cs 655 B

1234567891011121314151617
  1. using Content.Server.Objectives.Systems;
  2. using Content.Shared.Roles;
  3. using Content.Shared.Roles.Jobs;
  4. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  5. /// <summary>
  6. /// Requires that the player not have a certain job to have this objective.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(NotJobRequirementSystem))]
  9. public sealed partial class NotJobRequirementComponent : Component
  10. {
  11. /// <summary>
  12. /// ID of the job to ban from having this objective.
  13. /// </summary>
  14. [DataField(required: true, customTypeSerializer: typeof(PrototypeIdSerializer<JobPrototype>))]
  15. public string Job = string.Empty;
  16. }