AntagObjectivesComponent.cs 553 B

123456789101112131415161718
  1. using Content.Server.Antag;
  2. using Content.Shared.Objectives.Components;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Server.Antag.Components;
  5. /// <summary>
  6. /// Gives antags selected by this rule a fixed list of objectives.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(AntagObjectivesSystem))]
  9. public sealed partial class AntagObjectivesComponent : Component
  10. {
  11. /// <summary>
  12. /// List of static objectives to give.
  13. /// </summary>
  14. [DataField(required: true)]
  15. public List<EntProtoId<ObjectiveComponent>> Objectives = new();
  16. }