KillPersonConditionComponent.cs 625 B

1234567891011121314151617
  1. using Content.Server.Objectives.Systems;
  2. namespace Content.Server.Objectives.Components;
  3. /// <summary>
  4. /// Requires that a target dies or, if <see cref="RequireDead"/> is false, is not on the emergency shuttle.
  5. /// Depends on <see cref="TargetObjectiveComponent"/> to function.
  6. /// </summary>
  7. [RegisterComponent, Access(typeof(KillPersonConditionSystem))]
  8. public sealed partial class KillPersonConditionComponent : Component
  9. {
  10. /// <summary>
  11. /// Whether the target must be truly dead, ignores missing evac.
  12. /// </summary>
  13. [DataField, ViewVariables(VVAccess.ReadWrite)]
  14. public bool RequireDead = false;
  15. }