Significant work done porting to headless engine

This commit is contained in:
barrulus 2025-08-04 00:01:48 +01:00
parent ab08dc9429
commit d1b07fff01
573 changed files with 50603 additions and 0 deletions

View 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
}
```