2023-06-27 19:17:42 +10:00
|
|
|
namespace Content.Shared.Procedural.PostGeneration;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Connects room entrances via corridor segments.
|
|
|
|
|
/// </summary>
|
2024-07-03 22:23:11 +10:00
|
|
|
/// <remarks>
|
|
|
|
|
/// Dungeon data keys are:
|
|
|
|
|
/// - FallbackTile
|
|
|
|
|
/// </remarks>
|
|
|
|
|
public sealed partial class CorridorDunGen : IDunGenLayer
|
2023-06-27 19:17:42 +10:00
|
|
|
{
|
|
|
|
|
/// <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>
|
2024-03-23 21:37:18 -06:00
|
|
|
[DataField]
|
2023-06-27 19:17:42 +10:00
|
|
|
public int PathLimit = 2048;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How wide to make the corridor.
|
|
|
|
|
/// </summary>
|
2024-03-23 21:37:18 -06:00
|
|
|
[DataField]
|
|
|
|
|
public float Width = 3f;
|
2023-06-27 19:17:42 +10:00
|
|
|
}
|