TileSpawnAnomalyComponent.cs 767 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.Maps;
  2. using Robust.Shared.GameStates;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Shared.Anomaly.Effects.Components;
  5. [RegisterComponent, NetworkedComponent, Access(typeof(SharedTileAnomalySystem))]
  6. public sealed partial class TileSpawnAnomalyComponent : Component
  7. {
  8. /// <summary>
  9. /// All types of floors spawns with their settings
  10. /// </summary>
  11. [DataField]
  12. public List<TileSpawnSettingsEntry> Entries = new();
  13. }
  14. [DataRecord]
  15. public partial record struct TileSpawnSettingsEntry()
  16. {
  17. /// <summary>
  18. /// The tile that is spawned by the anomaly's effect
  19. /// </summary>
  20. public ProtoId<ContentTileDefinition> Floor { get; set; } = default!;
  21. public AnomalySpawnSettings Settings { get; set; } = new();
  22. }