mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
946 B
946 B
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 functionfindPath- Pathfinding algorithm functionfindCell- Cell lookup function by coordinatesrn- Number rounding utilityra- Random array element selectionrw- Weighted random selectiongetAdjective- 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:
{
dist2,
findPath,
findCell,
rn,
ra,
rw,
getAdjective,
Delaunator,
biomesData
}