mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: generate historical conflicts
This commit is contained in:
parent
a2192fb984
commit
9b3a3f2e48
11 changed files with 81 additions and 28 deletions
|
|
@ -53,13 +53,14 @@ async function generate(options?: IGenerationOptions) {
|
|||
window.mapCoordinates = calculateMapCoordinates();
|
||||
|
||||
const newGrid = await createGrid(grid, precreatedGraph);
|
||||
const newPack = createPack(newGrid);
|
||||
const {pack: newPack, conflicts} = createPack(newGrid);
|
||||
|
||||
// TODO: draw default ruler
|
||||
|
||||
// redefine global grid and pack
|
||||
grid = newGrid;
|
||||
pack = newPack;
|
||||
events = {conflicts};
|
||||
|
||||
// temp rendering for debug
|
||||
// renderLayer("cells");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue