1
0

RoundstartStationVariationRuleComponent.cs 719 B

12345678910111213141516171819
  1. using Content.Shared.Storage;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Server.GameTicking.Rules.Components;
  4. /// <summary>
  5. /// This handles starting various roundstart variation rules after a station has been loaded.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class RoundstartStationVariationRuleComponent : Component
  9. {
  10. /// <summary>
  11. /// The list of rules that will be started once the map is spawned.
  12. /// Uses <see cref="EntitySpawnEntry"/> to support probabilities for various rules
  13. /// without having to hardcode the probability directly in the rule's logic.
  14. /// </summary>
  15. [DataField(required: true)]
  16. public List<EntitySpawnEntry> Rules = new();
  17. }