mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
refactor: map events
This commit is contained in:
parent
3c850d8d46
commit
ff97c9227d
32 changed files with 433 additions and 329 deletions
1
src/types/grid.d.ts
vendored
1
src/types/grid.d.ts
vendored
|
|
@ -15,6 +15,7 @@ interface IGrid {
|
|||
h: IntArray;
|
||||
t: IntArray;
|
||||
f: IntArray;
|
||||
temp: IntArray;
|
||||
prec: IntArray;
|
||||
};
|
||||
features: IFeature[];
|
||||
|
|
|
|||
11
src/types/pack.d.ts
vendored
11
src/types/pack.d.ts
vendored
|
|
@ -12,9 +12,16 @@ interface IPack {
|
|||
c: number[][];
|
||||
g: IntArray;
|
||||
h: IntArray;
|
||||
t: IntArray;
|
||||
f: IntArray;
|
||||
biome: IntArray;
|
||||
pop: Float32Array;
|
||||
burg: IntArray;
|
||||
area: IntArray;
|
||||
state: IntArray;
|
||||
culture: IntArray;
|
||||
religion: IntArray;
|
||||
province: IntArray;
|
||||
burg: IntArray;
|
||||
q: d3.Quadtree<number[]>;
|
||||
};
|
||||
states: IState[];
|
||||
|
|
@ -27,6 +34,7 @@ interface IPack {
|
|||
|
||||
interface IFeature {
|
||||
i: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface IState {
|
||||
|
|
@ -62,6 +70,7 @@ interface IBurg {
|
|||
interface IReligion {
|
||||
i: number;
|
||||
name: string;
|
||||
type: "Folk" | "Orgamized" | "Cult" | "Heresy";
|
||||
removed?: boolean;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue