BiomeSelectionComponent.cs 809 B

123456789101112131415161718192021
  1. using Content.Server.Worldgen.Systems.Biomes;
  2. using Content.Server.Worldgen.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
  4. namespace Content.Server.Worldgen.Components;
  5. /// <summary>
  6. /// This is used for selecting the biome(s) to be used during world generation.
  7. /// </summary>
  8. [RegisterComponent]
  9. [Access(typeof(BiomeSelectionSystem))]
  10. public sealed partial class BiomeSelectionComponent : Component
  11. {
  12. /// <summary>
  13. /// The list of biomes available to this selector.
  14. /// </summary>
  15. /// <remarks>This is always sorted by priority after ComponentStartup.</remarks>
  16. [DataField("biomes", required: true,
  17. customTypeSerializer: typeof(PrototypeIdListSerializer<BiomePrototype>))] public List<string> Biomes = new();
  18. }