SpaceSpawnRuleComponent.cs 698 B

12345678910111213141516171819202122232425
  1. using Content.Server.StationEvents.Events;
  2. using Robust.Shared.Map;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Server.StationEvents.Components;
  5. /// <summary>
  6. /// Component for spawning antags in space around a station.
  7. /// Requires <c>AntagSelectionComponent</c>.
  8. /// </summary>
  9. [RegisterComponent, Access(typeof(SpaceSpawnRule))]
  10. public sealed partial class SpaceSpawnRuleComponent : Component
  11. {
  12. /// <summary>
  13. /// Distance that the entity spawns from the station's half AABB radius
  14. /// </summary>
  15. [DataField]
  16. public float SpawnDistance = 20f;
  17. /// <summary>
  18. /// Location that was picked.
  19. /// </summary>
  20. [DataField]
  21. public MapCoordinates? Coords;
  22. }