WormCorridorDunGen.cs 773 B

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Content.Shared.Procedural.PostGeneration;
  2. // Ime a worm
  3. /// <summary>
  4. /// Generates worm corridors.
  5. /// </summary>
  6. public sealed partial class WormCorridorDunGen : IDunGenLayer
  7. {
  8. [DataField]
  9. public int PathLimit = 2048;
  10. /// <summary>
  11. /// How many times to run the worm
  12. /// </summary>
  13. [DataField]
  14. public int Count = 20;
  15. /// <summary>
  16. /// How long to make each worm
  17. /// </summary>
  18. [DataField]
  19. public int Length = 20;
  20. /// <summary>
  21. /// Maximum amount the angle can change in a single step.
  22. /// </summary>
  23. [DataField]
  24. public Angle MaxAngleChange = Angle.FromDegrees(45);
  25. /// <summary>
  26. /// How wide to make the corridor.
  27. /// </summary>
  28. [DataField]
  29. public float Width = 3f;
  30. }