-
Notifications
You must be signed in to change notification settings - Fork 9
/
ResearchData.cs
71 lines (63 loc) · 2.08 KB
/
ResearchData.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
using System.Collections.Generic;
using System.Linq;
namespace PASaveEditor {
internal static class ResearchData {
public static readonly List<string> AllResearch = new List<string> {
"Warden",
"Maintainance",
"Security",
"MentalHealth",
"Finance",
"Cctv",
"RemoteAccess",
"Health",
"Cleaning",
"GroundsKeeping",
"Clone",
"Deployment",
"Patrols",
"Dogs",
"PrisonLabour",
"Education",
"LandExpansion",
"Contraband",
"Policy",
"Armoury",
"BodyArmour",
"Tazers",
"TazersForEveryone",
"BankLoans",
"LowerTaxes1",
"LowerTaxes2",
"ExtraGrant"
};
static readonly Dictionary<string, string> AltNames = new Dictionary<string, string> {
{ "MentalHealth", "Psychology" },
{ "Cctv", "CCTV" },
{ "RemoteAccess", "Remote Access" },
{ "GroundsKeeping", "Grounds Keeping" },
{ "PrisonLabour", "Prison Labour" },
{ "LandExpansion", "Land Expansion" },
{ "Policy", "Prison Policy" },
{ "BodyArmour", "Body Armour" },
{ "TazersForEveryone", "Tazer Rollout" },
{ "BankLoans", "Bank Loans" },
{ "LowerTaxes1", "Tax Relief" },
{ "LowerTaxes2", "Offshore Tax Haven" },
{ "ExtraGrant", "Extra Grant" },
};
public static string[] GetInGameNames() {
return AllResearch.Select(name => {
string altName;
return AltNames.TryGetValue(name, out altName) ? altName : name;
}).ToArray();
}
public static int GetIndex(string inFileName) {
return AllResearch.IndexOf(inFileName);
}
public static int AddItem(string inFileName) {
AllResearch.Add(inFileName);
return AllResearch.Count - 1;
}
}
}