-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmapConfig.ts
More file actions
134 lines (131 loc) · 3.63 KB
/
mapConfig.ts
File metadata and controls
134 lines (131 loc) · 3.63 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
export interface MapConfig {
bgColor: string
name: string
description?: string
descriptionShort?: string
}
export const maps: Record<string, MapConfig> = {
azagor: {
bgColor: '#83633C',
name: 'Azagor',
description: 'A desert island with a small town',
},
basra: {
bgColor: '#7292a6',
name: 'Basra',
description: "An archipelago with a grounded container ship in the map's center",
},
construction: {
bgColor: '#653F3D',
name: 'Construction',
description: 'A coastal, industrial construction site with a symmetrical layout',
},
district: {
bgColor: '#363D2D',
name: 'District',
description: 'A rain-shrouded map in a hilly region with factories and military fortifications',
},
'dusty-dew': {
bgColor: '#48321f',
name: 'Dusty Dew',
description: 'An arid, mountainous region with scattered settlements',
},
eduardovo: {
bgColor: '#565948',
name: 'Eduardovo',
description: 'A forested rural map with farms and abandoned factories',
},
frugis: {
bgColor: '#58573b',
name: 'Frugis',
description: 'Urban map featuring cozy, small streets and parks',
},
isle: {
bgColor: '#82969F',
name: 'Isle',
description: 'An island with an early-warning radar system used to detect nuclear missile launches',
},
kodiak: {
bgColor: '#5c5a77',
name: 'Kodiak',
description: 'Invasion on Alaskan town',
},
lonovo: {
bgColor: '#484D37',
name: 'Lonovo',
description: 'A city with extensive railway yards under the cover of night',
},
'multu-islands': {
bgColor: '#38312a',
name: 'Multu Islands',
description: 'A small island chain with a fortified military base',
},
namak: {
bgColor: '#695e5a',
name: 'Namak',
description: 'A small yet dense urban map dominated by high-rise buildings',
},
'oil-dunes': {
bgColor: '#8b5930',
name: 'Oil Dunes',
description: 'A sprawling oil extraction operation in flat, desert region',
},
outskirts: {
bgColor: '#9b9484',
name: 'Outskirts',
description: 'Battle the outskirts of Lonovo near the military factory',
},
river: {
bgColor: '#793922',
name: 'River',
description: 'A container shipping port on a river',
},
salhan: {
bgColor: '#855B40',
name: 'Salhan',
descriptionShort: 'Salhan is an urban-desert map',
description: 'A desert valley containing an oil refinery and a small town',
},
'sandy-sunset': {
bgColor: '#864A28',
name: 'Sandy Sunset',
description: 'Big desert hills and canyons encircle a crowded town',
},
'tensa-town': {
bgColor: '#433f36',
name: 'Tensa Town',
description: 'A dense map with narrow residential streets and many low-lying buildings',
},
valley: {
bgColor: '#715d3a',
name: 'Valley',
description: 'A nuclear power plant surrounded by wind turbines and prominent hills',
},
wakistan: {
bgColor: '#222812',
name: 'Wakistan',
descriptionShort: 'Wakistan is a forest map',
description: 'Wide valley with long bridges that connect two cliffs',
},
'wine-paradise': {
bgColor: '#613A1E',
name: 'Wine Paradise',
description: 'A seaside village surrounded by rural countryside and vineyards',
},
// range: {
// bgColor: '#9BBAAE',
// name: 'Range',
// description: 'Shooting range to hone your skills',
// },
'zalif-bay': {
bgColor: '#8a97b0',
name: 'ZalifBay',
description: 'A main city in area surrounded by big desert hills and canyons',
},
}
export function getMapConfig(mapName: string) {
if (!(mapName in maps)) {
throw new Error(`Map ${mapName} not found`)
}
return maps[mapName]
}