TargetObjectiveComponent.cs 714 B

123456789101112131415161718192021
  1. using Content.Server.Objectives.Systems;
  2. namespace Content.Server.Objectives.Components;
  3. [RegisterComponent, Access(typeof(TargetObjectiveSystem))]
  4. public sealed partial class TargetObjectiveComponent : Component
  5. {
  6. /// <summary>
  7. /// Locale id for the objective title.
  8. /// It is passed "targetName" and "job" arguments.
  9. /// </summary>
  10. [DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
  11. public string Title = string.Empty;
  12. /// <summary>
  13. /// Mind entity id of the target.
  14. /// This must be set by another system using <see cref="TargetObjectiveSystem.SetTarget"/>.
  15. /// </summary>
  16. [DataField, ViewVariables(VVAccess.ReadWrite)]
  17. public EntityUid? Target;
  18. }