mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
refactor: Biomes.define - partial
This commit is contained in:
parent
bb78d5168b
commit
21234dc414
7 changed files with 72 additions and 59 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import {clipPoly} from "utils/lineUtils";
|
||||
import {TIME} from "config/logging";
|
||||
|
||||
export function drawBiomes() {
|
||||
TIME && console.time("drawBiomes");
|
||||
|
|
@ -6,6 +7,7 @@ export function drawBiomes() {
|
|||
|
||||
const {cells, vertices} = pack;
|
||||
const n = cells.i.length;
|
||||
|
||||
const used = new Uint8Array(cells.i.length);
|
||||
const paths = new Array(biomesData.i.length).fill("");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {pick} from "utils/functionUtils";
|
||||
|
||||
export function drawRivers(pack: IPack) {
|
||||
export function drawRivers() {
|
||||
rivers.selectAll("*").remove();
|
||||
|
||||
const {addMeandering, getRiverPath} = window.Rivers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue