CorridorDunGen.cs 673 B

1234567891011121314151617181920212223242526
  1. namespace Content.Shared.Procedural.PostGeneration;
  2. /// <summary>
  3. /// Connects room entrances via corridor segments.
  4. /// </summary>
  5. /// <remarks>
  6. /// Dungeon data keys are:
  7. /// - FallbackTile
  8. /// </remarks>
  9. public sealed partial class CorridorDunGen : IDunGenLayer
  10. {
  11. /// <summary>
  12. /// How far we're allowed to generate a corridor before calling it.
  13. /// </summary>
  14. /// <remarks>
  15. /// Given the heavy weightings this needs to be fairly large for larger dungeons.
  16. /// </remarks>
  17. [DataField]
  18. public int PathLimit = 2048;
  19. /// <summary>
  20. /// How wide to make the corridor.
  21. /// </summary>
  22. [DataField]
  23. public float Width = 3f;
  24. }