EntitySpawnVariationPassComponent.cs 791 B

123456789101112131415161718192021222324252627
  1. using Content.Shared.Random;
  2. using Content.Shared.Storage;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Server.GameTicking.Rules.VariationPass.Components;
  5. /// <summary>
  6. /// This is used for spawning entities randomly dotted around the station in a variation pass.
  7. /// </summary>
  8. [RegisterComponent]
  9. public sealed partial class EntitySpawnVariationPassComponent : Component
  10. {
  11. /// <summary>
  12. /// Number of tiles before we spawn one entity on average.
  13. /// </summary>
  14. [DataField]
  15. public float TilesPerEntityAverage = 50f;
  16. [DataField]
  17. public float TilesPerEntityStdDev = 7f;
  18. /// <summary>
  19. /// Spawn entries for each chosen location.
  20. /// </summary>
  21. [DataField(required: true)]
  22. public List<EntitySpawnEntry> Entities = default!;
  23. }