mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
test: cultureSets to have executable sort functions
This commit is contained in:
parent
f692f8dfbf
commit
7131a570f4
7 changed files with 362 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import * as d3 from "d3";
|
||||
import FlatQueue from "flatqueue";
|
||||
|
||||
import {cultureSets, TCultureSetName} from "config/cultureSets";
|
||||
import {cultureSets, DEFAULT_SORT_STRING, TCultureSetName} from "config/cultureSets";
|
||||
import {
|
||||
DISTANCE_FIELD,
|
||||
ELEVATION,
|
||||
|
|
@ -64,7 +64,7 @@ export const generateCultures = function (
|
|||
|
||||
const definedCultures: ICulture[] = culturesData.map((cultureData, index) => {
|
||||
const {name, sort} = cultureData;
|
||||
const center = placeCenter(sort || "n");
|
||||
const center = placeCenter(sort || DEFAULT_SORT_STRING);
|
||||
const base = checkNamesbase(cultureData.base);
|
||||
const color = colors[index];
|
||||
const type = defineCultureType(center);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue