mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
27 lines
673 B
C#
27 lines
673 B
C#
namespace Content.Shared.Procedural.PostGeneration;
|
|
|
|
/// <summary>
|
|
/// Connects room entrances via corridor segments.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Dungeon data keys are:
|
|
/// - FallbackTile
|
|
/// </remarks>
|
|
public sealed partial class CorridorDunGen : IDunGenLayer
|
|
{
|
|
/// <summary>
|
|
/// How far we're allowed to generate a corridor before calling it.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Given the heavy weightings this needs to be fairly large for larger dungeons.
|
|
/// </remarks>
|
|
[DataField]
|
|
public int PathLimit = 2048;
|
|
|
|
/// <summary>
|
|
/// How wide to make the corridor.
|
|
/// </summary>
|
|
[DataField]
|
|
public float Width = 3f;
|
|
}
|