2025-07-09 20:06:51 -07:00
|
|
|
|
using Content.Server.Worldgen.Prototypes;
|
|
|
|
|
|
using Content.Server.Worldgen.Systems.Biomes;
|
|
|
|
|
|
using Robust.Shared.Prototypes;
|
2023-05-16 06:36:45 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Worldgen.Components;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is used for selecting the biome(s) to be used during world generation.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
[Access(typeof(BiomeSelectionSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class BiomeSelectionComponent : Component
|
2023-05-16 06:36:45 -05:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The list of biomes available to this selector.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>This is always sorted by priority after ComponentStartup.</remarks>
|
2025-07-09 20:06:51 -07:00
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
|
public List<ProtoId<BiomePrototype>> Biomes = new();
|
2023-05-16 06:36:45 -05:00
|
|
|
|
}
|
|
|
|
|
|
|