-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
69 lines (61 loc) · 1.24 KB
/
Copy pathtypes.ts
File metadata and controls
69 lines (61 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
export type DeltaDirection = -1 | 1;
export type Upgrade = {
name: string;
description: string;
cost: number;
multiplier?: number;
maxCount: number;
threshold: number;
icon: any;
};
export type Upgrades = Record<string, Upgrade>;
export type MapPosition = {
x: number;
y: number;
};
export type Equipment = {
name: string;
description: string;
baseCost: number;
costMultiplier: number;
auPerSecond: number;
threshold: number;
icon: any;
mapPosition: MapPosition;
upgrades: Upgrades;
equipment?: boolean;
buildTime?: number;
};
export type EquipmentWithPosition = {
key: string;
item: Equipment;
equipmentItem: EquipmentItem;
position: MapPosition;
count: number;
auPerSecond: number;
};
export type EquipmentObject = {
[key: string]: EquipmentItem;
};
export type EquipmentItem = {
value: number;
upgrades: Record<string, number>;
building?: Record<string, number>;
};
export type GameData = {
income: {
total: number;
current: number;
};
equipment: EquipmentObject;
show: Record<string, boolean>;
last_updated: number;
prestige: {
income: number;
level: number;
points: number;
multiplier: number;
lifetime: number;
upgrades: Record<string, number>;
};
};