* World generation (squash) * Test fixes. * command * o * Access cleanup. * Documentation touchups. * Use a prototype serializer for BiomeSelectionComponent * Struct enumerator in SimpleFloorPlanPopulatorSystem * Safety margins around PoissonDiskSampler, cookie acquisition methodologies * Struct enumerating PoissonDiskSampler; internal side * Struct enumerating PoissonDiskSampler: Finish it * Update WorldgenConfigSystem.cs awa --------- Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com> Co-authored-by: 20kdc <asdd2808@gmail.com>
38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
using Content.Server.Worldgen.Systems.Debris;
|
|
using Content.Shared.Maps;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
|
|
namespace Content.Server.Worldgen.Components.Debris;
|
|
|
|
/// <summary>
|
|
/// This is used for constructing asteroid debris.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[Access(typeof(BlobFloorPlanBuilderSystem))]
|
|
public sealed class BlobFloorPlanBuilderComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The probability that placing a floor tile will add up to three-four neighboring tiles as well.
|
|
/// </summary>
|
|
[DataField("blobDrawProb")] public float BlobDrawProb;
|
|
|
|
/// <summary>
|
|
/// The maximum radius for the structure.
|
|
/// </summary>
|
|
[DataField("radius", required: true)] public float Radius;
|
|
|
|
/// <summary>
|
|
/// The tiles to be used for the floor plan.
|
|
/// </summary>
|
|
[DataField("floorTileset", required: true,
|
|
customTypeSerializer: typeof(PrototypeIdListSerializer<ContentTileDefinition>))]
|
|
public List<string> FloorTileset { get; } = default!;
|
|
|
|
/// <summary>
|
|
/// The number of floor tiles to place when drawing the asteroid layout.
|
|
/// </summary>
|
|
[DataField("floorPlacements", required: true)]
|
|
public int FloorPlacements { get; }
|
|
}
|
|
|