1
0

CodeConditionSystem.cs 507 B

1234567891011121314151617
  1. using Content.Server.Objectives.Systems;
  2. namespace Content.Server.Objectives.Components;
  3. /// <summary>
  4. /// An objective that is set to complete by code in another system.
  5. /// Use <see cref="CodeConditionSystem"/> to check and set this.
  6. /// </summary>
  7. [RegisterComponent, Access(typeof(CodeConditionSystem))]
  8. public sealed partial class CodeConditionComponent : Component
  9. {
  10. /// <summary>
  11. /// Whether the objective is complete or not.
  12. /// </summary>
  13. [DataField]
  14. public bool Completed;
  15. }