mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
Significant work done porting to headless engine
This commit is contained in:
parent
ab08dc9429
commit
d1b07fff01
573 changed files with 50603 additions and 0 deletions
36
procedural/src/engine/support/routes-generator_external.md
Normal file
36
procedural/src/engine/support/routes-generator_external.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# External Dependencies for routes-generator.js
|
||||
|
||||
The refactored `routes-generator.js` module requires the following external dependencies to be imported:
|
||||
|
||||
## Utility Functions
|
||||
- `dist2` - Distance calculation function
|
||||
- `findPath` - Pathfinding algorithm function
|
||||
- `findCell` - Cell lookup function by coordinates
|
||||
- `rn` - Number rounding utility
|
||||
- `ra` - Random array element selection
|
||||
- `rw` - Weighted random selection
|
||||
- `getAdjective` - Name transformation utility
|
||||
|
||||
## External Libraries
|
||||
- `Delaunator` - Delaunay triangulation library for Urquhart edge calculation
|
||||
|
||||
## Data Dependencies
|
||||
- `biomesData` - Object containing biome information with habitability data
|
||||
|
||||
## Grid Data
|
||||
- `grid` - Grid object containing temperature data for cells
|
||||
|
||||
These dependencies should be passed through a `utils` object parameter that contains:
|
||||
```javascript
|
||||
{
|
||||
dist2,
|
||||
findPath,
|
||||
findCell,
|
||||
rn,
|
||||
ra,
|
||||
rw,
|
||||
getAdjective,
|
||||
Delaunator,
|
||||
biomesData
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue