namespace Content.Server.Worldgen;
[RegisterComponent]
public sealed partial class StructurePlacementComponent : Component
{
///
/// The structures to place into the world.
///
[DataField("structures")] public List Structures = new();
///
/// Radius around which there should be no objects for placement to succeed.
///
[DataField("safetyRadius")] public int SafetyRadius = 128;
[DataField("placementRadius")] public int PlacementRadius = 4096;
}
///
/// A single structure's placement config.
///
[DataDefinition]
public sealed partial class StructureConfig
{
///
/// The entity to spawn into the world.
///
[DataField("entity", required: true)] public string Entity = default!;
///
/// The amount of that entity to spawn.
///
[DataField("amountRange")] public Vector2i AmountRange = Vector2i.One;
}