/
Lookups.cs
108 lines (101 loc) · 3.85 KB
/
Lookups.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace F1_2020_Names_Changer {
class Lookups {
public static Dictionary<string, string> firstNames = new Dictionary<string, string>(){ // from single 'unique' firstname to full Mixed/Upper standard name
{"Carlos", "Carlos SAINZ"},
{"Daniil", "Daniil KVYAT"},
{"Daniel", "Daniel RICCIARDO" },
{"Felipe", "Felipe MASSA" },
{"Jolyon", "Jolyon PALMER" },
{"Kimi", "Kimi RÄIKKÖNEN" },
{"Lewis", "Lewis HAMILTON" },
{"Marcus", "Marcus ERICSSON" },
{"Max", "Max VERSTAPPEN" },
{"Nico", "Nico HÜLKENBERG" },
{"Kevin", "Kevin MAGNUSSEN" },
{"Romain", "Romain GROSJEAN" },
{"Sergio", "Sergio PEREZ" },
{"Pascal", "Pascal WEHRLEIN" },
{"Esteban", "Esteban OCON" },
{"Stoffel", "Stoffel Vandoorne" },
{"Lance", "Lance STROLL" },
{"Arron", "Arron BARNES" },
{"Martin", "Martin GILES" },
{"Alex", "Alex MURRAY" },
{"Lucas", "Lucas ROTH" },
{"Igor", "Igor CORREIA" },
{"Sophie", "Sophie FLÖRSCH" },
{"Jonas", "Jonas SFR???" },
{"Alain", "Alain FOREST" },
{"Jay", "Jay LET???" },
{"Esto", "Esto SAARI" },
{"Yasar", "Yasar ATIYEH" },
{"Naota", "Naota IZUMI" },
{"Howard", "Howard CLARKE" },
// insert more here I'm bored of typing them all out
{"Jack", "Jack AITKEN" },
{"George", "George RUSSELL" },
{"Lando", "Lando NORRIS"}
};
public static Dictionary<string, string> shortNames = new Dictionary<string, string>() {
{"AIT", "Jack AITKEN"},
{"ALB", "Alexander ALBON"},
{"ALO", "Fernando ALONSO"},
{"BOT", "Valtteri BOTTAS"},
{"FIT", "Pietro FITTIPALDI"},
{"GAS", "Pierre GASLY"},
{"GIO", "Antonio GIOVINAZZI"},
{"GRO", "Romain GROSJEAN"},
{"HAM", "Lewis HAMILTON"},
{"HUL", "Nico HÜLKENBERG"},
{"KUB", "Robert KUBICA"},
{"KVY", "Daniil KVYAT"},
{"LAT", "Nicholas LATIFI"},
{"LEC", "Charles LECLERC"},
{"MAG", "Kevin MAGNUSSEN"},
{"MAZ", "Nikita MAZEPIN"},
{"NOR", "Lando NORRIS"},
{"OCO", "Esteban OCON"},
{"PER", "Sergio PEREZ"},
{"RAI", "Kimi RÄIKKÖNEN"},
{"RIC", "Daniel RICCIARDO"},
{"RUS", "George RUSSELL"},
{"SAI", "Carlos SAINZ"},
{"SCH", "Mick SCHUMACHER"},
{"STR", "Lance STROLL"},
{"TSU", "Yuki TSUNODA"},
{"VER", "Max VERSTAPPEN"},
{"VET", "Sebastian VETTEL"}
};
public static Dictionary<string, string> shortNames_rev = shortNames.ToDictionary(x => x.Value, x => x.Key);
public static Dictionary<string, string> teams = new Dictionary<string, string>() { // used for looking up found team names in memory to our lookup names
{"Alfa Romeo Racing Orlen", "Alfa Romeo"},
{"Scuderia AlphaTauri Honda", "AlphaTauri"},
{"Scuderia Ferrari", "Ferrari"},
{"Haas F1 Team", "Haas"},
{"{o:upper}M{/o}{o:lower}c{/o}{o:upper}L{/o}aren F1 Team", "McLaren"},
{"Mercedes-AMG Petronas F1 Team", "Mercedes"},
{"BWT Racing Point F1 Team" , "Racing Point"},
{"Aston Martin Red Bull Racing", "Red Bull"},
{"Renault DP World F1 Team", "Renault"},
{"Williams Racing", "Williams"}
};
public static Dictionary<string, string> teams_short = new Dictionary<string, string>() { // same as above, but for the short-team names used in-game leaderboard
{"Alfa Romeo", "Alfa Romeo"},
{"AlphaTauri", "AlphaTauri"},
{"Ferrari", "Ferrari" },
{"Haas", "Haas"},
{"{o:upper}M{/o}{o:lower}c{/o}{o:upper}L{/o}aren", "McLaren"},
{"Mercedes-AMG Petronas", "Mercedes"},
{"Racing Point", "Racing Point"},
{"Red Bull Racing", "Red Bull" },
{"Renault", "Renault"},
{"Williams", "Williams"}
};
public static Dictionary<string, string> teams_rev = teams.ToDictionary(x => x.Value, x => x.Key);
public static Dictionary<string, string> teams_short_rev = teams_short.ToDictionary(x => x.Value, x => x.Key);
}
}