mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
refactor: rivers generation
This commit is contained in:
parent
c1e7d6f54a
commit
3215b6f0d2
18 changed files with 739 additions and 704 deletions
2
src/types/overrides.d.ts
vendored
2
src/types/overrides.d.ts
vendored
|
|
@ -14,6 +14,7 @@ interface Window {
|
|||
|
||||
// untyped IIFE modules
|
||||
Biomes: any;
|
||||
Rivers: any;
|
||||
Names: any;
|
||||
ThreeD: any;
|
||||
ReliefIcons: any;
|
||||
|
|
@ -21,7 +22,6 @@ interface Window {
|
|||
Lakes: any;
|
||||
HeightmapGenerator: any;
|
||||
OceanLayers: any;
|
||||
Rivers: any;
|
||||
Cultures: any;
|
||||
BurgsAndStates: any;
|
||||
Religions: any;
|
||||
|
|
|
|||
3
src/types/pack/feature.d.ts
vendored
3
src/types/pack/feature.d.ts
vendored
|
|
@ -30,7 +30,8 @@ interface IPackFeatureLake extends IPackFeatureBase {
|
|||
flux?: number;
|
||||
temp?: number;
|
||||
evaporation?: number;
|
||||
outCell?: number;
|
||||
inlets?: number[];
|
||||
outlet?: number;
|
||||
}
|
||||
|
||||
type TPackFeature = IPackFeatureOcean | IPackFeatureIsland | IPackFeatureLake;
|
||||
|
|
|
|||
6
src/types/pack/pack.d.ts
vendored
6
src/types/pack/pack.d.ts
vendored
|
|
@ -17,9 +17,9 @@ interface IPackCells {
|
|||
g: UintArray;
|
||||
s: IntArray;
|
||||
pop: Float32Array;
|
||||
fl: UintArray;
|
||||
conf: UintArray;
|
||||
r: UintArray;
|
||||
fl: Uint16Array; // flux volume, defined by drainWater() in river-generator.ts
|
||||
r: Uint16Array; // river id, defined by defineRivers() in river-generator.ts
|
||||
conf: Uint16Array; // conluence, defined by defineRivers() in river-generator.ts
|
||||
biome: UintArray;
|
||||
area: UintArray;
|
||||
state: UintArray;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue