From f0c2a302e999e0cae2e14ef8bef54640d32bd28a Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 19 Sep 2022 21:30:01 +0300 Subject: [PATCH] refactor: move some functions out of of pack generator --- src/scripts/generation/generation.ts | 6 +++++- src/scripts/generation/pack/pack.ts | 7 +------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/scripts/generation/generation.ts b/src/scripts/generation/generation.ts index 65fb65dd..3ab3fa66 100644 --- a/src/scripts/generation/generation.ts +++ b/src/scripts/generation/generation.ts @@ -55,7 +55,11 @@ async function generate(options?: IGenerationOptions) { const newGrid = await createGrid(grid, precreatedGraph); const newPack = createPack(newGrid); - // TODO: draw default ruler + // OceanLayers(newGrid); + + // draw default ruler + // drawScaleBar(window.scale); + // Names.getMapName(); // redefine global grid and pack grid = newGrid; diff --git a/src/scripts/generation/pack/pack.ts b/src/scripts/generation/pack/pack.ts index 8d4cee42..34a11b23 100644 --- a/src/scripts/generation/pack/pack.ts +++ b/src/scripts/generation/pack/pack.ts @@ -164,12 +164,7 @@ export function createPack(grid: IGrid): IPack { // Military.generate(); // Markers.generate(); - // addZones(); - - // OceanLayers(newGrid); - - // drawScaleBar(window.scale); - // Names.getMapName(); + // addZones(); // add to pack data const events: IEvents = {conflicts};