TargetOverrideComponent.cs 515 B

12345678910111213141516
  1. namespace Content.Server.Objectives.Components;
  2. /// <summary>
  3. /// Sets a target objective to a specific target when receiving it.
  4. /// The objective entity needs to have <see cref="PickSpecificPersonComponent"/>.
  5. /// This component needs to be added to entity receiving the objective.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class TargetOverrideComponent : Component
  9. {
  10. /// <summary>
  11. /// The entity that should be targeted.
  12. /// </summary>
  13. [DataField]
  14. public EntityUid? Target;
  15. }