1
0

RuleGridsComponent.cs 885 B

123456789101112131415161718192021222324252627282930
  1. using Content.Server.GameTicking.Rules;
  2. using Content.Shared.Whitelist;
  3. using Robust.Shared.Map;
  4. /// <summary>
  5. /// Stores grids created by another gamerule component.
  6. /// With <c>AntagSelection</c>, spawners on these grids can be used for its antags.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(RuleGridsSystem))]
  9. public sealed partial class RuleGridsComponent : Component
  10. {
  11. /// <summary>
  12. /// The map that was loaded.
  13. /// </summary>
  14. [DataField]
  15. public MapId? Map;
  16. /// <summary>
  17. /// The grid entities that have been loaded.
  18. /// </summary>
  19. [DataField]
  20. public List<EntityUid> MapGrids = new();
  21. /// <summary>
  22. /// Whitelist for a spawner to be considered for an antag.
  23. /// All spawners must have <c>SpawnPointComponent</c> regardless to be found.
  24. /// </summary>
  25. [DataField]
  26. public EntityWhitelist? SpawnerWhitelist;
  27. }