1
0

StealAreaComponent.cs 693 B

1234567891011121314151617181920212223
  1. using Content.Server.Objectives.Systems;
  2. using Content.Server.Thief.Systems;
  3. namespace Content.Server.Objectives.Components;
  4. /// <summary>
  5. /// An abstract component that allows other systems to count adjacent objects as "stolen" when controlling other systems
  6. /// </summary>
  7. [RegisterComponent, Access(typeof(StealConditionSystem), typeof(ThiefBeaconSystem))]
  8. public sealed partial class StealAreaComponent : Component
  9. {
  10. [DataField]
  11. public bool Enabled = true;
  12. [DataField]
  13. public float Range = 1f;
  14. /// <summary>
  15. /// all the minds that will be credited with stealing from this area.
  16. /// </summary>
  17. [DataField]
  18. public HashSet<EntityUid> Owners = new();
  19. }