refactor: map events

This commit is contained in:
Azgaar 2022-07-10 02:35:30 +03:00
parent 3c850d8d46
commit ff97c9227d
32 changed files with 433 additions and 329 deletions

1
src/types/grid.d.ts vendored
View file

@ -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
View file

@ -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;
}