Files
cod-backend/Sources/App/Data/MapData.swift
2021-10-19 06:33:31 -05:00

126 lines
5.8 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// MapData.swift
// App
//
// Created by Michael Simard on 1/10/21.
//
import Foundation
class MapData {
static let allMaps:[Int:Map] = [
0: Map(id: 0, name: "Satellite", imageName: "bocw_satellite"),
1: Map(id: 1, name: "Armada", imageName: "bocw_armada"),
2: Map(id: 2, name: "Nuketown", imageName: "bocw_nuketown"),
3: Map(id: 3, name: "Cartel", imageName: "bocw_cartel"),
4: Map(id: 4, name: "Garrison", imageName: "bocw_garrison"),
5: Map(id: 5, name: "Miami", imageName: "bocw_miami"),
6: Map(id: 6, name: "Moscow", imageName: "bocw_moscow"),
7: Map(id: 7, name: "Crossroads", imageName: "bocw_crossroads"),
8: Map(id: 8, name: "Checkmate", imageName: "bocw_checkmate"),
9: Map(id: 9, name: "Arklov Peak", imageName: "mw_arklov"),
10: Map(id: 10, name: "Atlas Superstore", imageName: "mw_atlas"),
11: Map(id: 11, name: "Talsik Backlot", imageName: "mw_backlot"),
12: Map(id: 12, name: "Broadcast", imageName: "mw_broadcast"),
13: Map(id: 13, name: "Azhir Cave", imageName: "mw_caves"),
14: Map(id: 14, name: "Chesire Park", imageName: "mw_chesire"),
15: Map(id: 15, name: "Crash", imageName: "mw_crash"),
28: Map(id: 28, name: "Gun Runner", imageName: "mw_gunrunner"),
16: Map(id: 16, name: "Hackney Yard", imageName: "mw_hackney"),
17: Map(id: 17, name: "Suldal Harbor", imageName: "mw_harbor"),
18: Map(id: 18, name: "Hardhat", imageName: "mw_hardhat"),
19: Map(id: 19, name: "Hovec Sawmill", imageName: "mw_hovec"),
20: Map(id: 20, name: "Khandor Hideout", imageName: "mw_khandor"),
21: Map(id: 21, name: "Petrov Oil Rig", imageName: "mw_oil"),
22: Map(id: 22, name: "St. Petrograd", imageName: "mw_petrograd"),
23: Map(id: 23, name: "Rammaza", imageName: "mw_rammaza"),
24: Map(id: 24, name: "Scrapyard", imageName: "mw_scrapyard"),
25: Map(id: 25, name: "Shoot House", imageName: "mw_shoothouse"),
26: Map(id: 26, name: "Mialstor Tank Factory", imageName: "mw_tank"),
27: Map(id: 27, name: "Vacant", imageName: "mw_vacant"),
31: Map(id: 31, name: "The Pines", imageName: "bocw_pines"),
29: Map(id: 29, name: "Nuketown Holiday", imageName: "bocw_nuketown_holiday"),
30: Map(id: 30, name: "Raid", imageName: "bocw_raid"),
32: Map(id: 32, name: "Piccadilly", imageName: "mw_piccadilly"),
33: Map(id: 33, name: "Grazna Raid", imageName: "mw_grazna"),
34: Map(id: 34, name: "Express", imageName: "bocw_express"),
35: Map(id: 35, name: "Apocalypse", imageName: "bocw_apocalypse"),
36: Map(id: 36, name: "Killhouse", imageName: "mw_killhouse"),
37: Map(id: 37, name: "Al-Raab Airbase", imageName: "mw_airbase"),
38: Map(id: 38, name: "Yamantau", imageName: "bocw_yamantau"),
39: Map(id: 39, name: "Standoff", imageName: "bocw_standoff"),
40: Map(id: 40, name: "Rush", imageName: "bocw_rush"),
41: Map(id: 41, name: "Collateral", imageName: "bocw_collateral"),
42: Map(id: 42, name: "Diesel", imageName: "bocw_diesel"),
43: Map(id: 43, name: "Miami Strike", imageName: "bocw_miamistrike"),
44: Map(id: 44, name: "Amsterdam", imageName: "bocw_amsterdam"),
45: Map(id: 45, name: "Game Show", imageName: "bocw_gameshow"),
46: Map(id: 46, name: "ICBM", imageName: "bocw_icbm"),
47: Map(id: 47, name: "KGB", imageName: "bocw_kgb"),
48: Map(id: 48, name: "Mansion", imageName: "bocw_mansion"),
49: Map(id: 49, name: "U-Bahn", imageName: "bocw_ubahn"),
50: Map(id: 50, name: "Alpine", imageName: "bocw_alpine"),
51: Map(id: 51, name: "Duga", imageName: "bocw_duga"),
52: Map(id: 52, name: "Golova", imageName: "bocw_golova"),
53: Map(id: 53, name: "Ruka", imageName: "bocw_ruka"),
54: Map(id: 54, name: "Sanatorium", imageName: "bocw_sanatorium"),
55: Map(id: 55, name: "Hijacked", imageName: "bocw_hijacked"),
56: Map(id: 56, name: "Echelon", imageName: "bocw_echelon"),
57: Map(id: 57, name: "Slums", imageName: "bocw_slums"),
58: Map(id: 58, name: "Showroom", imageName: "bocw_showroom"),
59: Map(id: 59, name: "Drive-In", imageName: "bocw_drive-in"),
60: Map(id: 60, name: "Zoo", imageName: "bocw_zoo"),
61: Map(id: 61, name: "Champion Hill", imageName: "vg_championhill"),
62: Map(id: 62, name: "Hotel Royal", imageName: "vg_hotel"),
63: Map(id: 63, name: "Red Star", imageName: "vg_redstar"),
64: Map(id: 64, name: "Gavutu", imageName: "vg_gavutu"),
65: Map(id: 65, name: "Eagles Nest", imageName: "vg_eaglesnest"),
66: Map(id: 66, name: "Deprogram", imageName: "bocw_deprogram"),
67: Map(id: 67, name: "Amerika", imageName: "bocw_amerika"),
68: Map(id: 68, name: "Gluboko", imageName: "bocw_gluboko"),
69: Map(id: 69, name: "Nuketown Halloween", imageName: "bocw_nuketown_halloween"),
]
static let bocwMaps = {
return [1,3,8,7,4,2,29,31,5,6,30,0,34,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,66,67,68,69].compactMap {
return allMaps[$0];
}
.sorted { (m1, m2) -> Bool in
return m1.name < m2.name
}
}
static let mwMaps = {
return [9,10,11,12,13,14,15,28,16,17,18,19,20,21,22,23,24,25,26,27,32,33,36,37].compactMap {
return allMaps[$0]
}.sorted { (m1, m2) -> Bool in
return m1.name < m2.name
}
}
static let vgMaps = {
return [61,62,63,64,65].compactMap {
return allMaps[$0];
}.sorted { (m1, m2) -> Bool in
return m1.name < m2.name
}
}
}