-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConstants.cs
152 lines (148 loc) · 4.91 KB
/
Constants.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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
using System.Collections.Generic;
using Terraria.ID;
namespace WireMod
{
public static class Constants
{
public static readonly List<string> ToolCategories = new List<string>
{
"Tools",
"Logic Gates",
"Maths",
"Comparison",
"Basic Inputs",
"Sensor Inputs",
"Storage",
"Text",
"Outputs",
"Experimental",
};
public static readonly List<List<string>> Tools = new List<List<string>>
{
new List<string> // Tools
{
"None",
"Wiring",
"Delete",
"Debug",
},
new List<string> // Logic Gates
{
"AndGate",
"OrGate",
"NotGate",
"If",
},
new List<string> // Maths
{
"Add",
"Subtract",
"Multiply",
"Divide",
"Modulo",
},
new List<string> // Comparison
{
"Equals",
"LessThan",
"GreaterThan",
},
new List<string> // Basic Inputs
{
"BooleanConstant",
"IntegerConstant",
"StringConstant",
"TeamColorConstant",
"PointConstant",
"AreaInput",
"RandomInt",
},
new List<string> // Sensor Inputs
{
"TimeSensor",
"PlayerDistanceSensor",
"NPCDistanceSensor",
"PlayerCounter",
"NPCCounter",
"TileCounter",
},
new List<string> // Storage
{
"Variable",
"TileCopier",
"TilePaster",
},
new List<string> // Text
{
"Concat",
"TextTileController",
"Announcer",
},
new List<string> // Outputs
{
"OutputLamp",
"FlipFlop",
"Trigger",
},
new List<string> // Experimental
{
"Repulsor",
"Spawner",
"Buffer",
"ProtectArea",
},
};
public static readonly Dictionary<string, string> ToolNames = new Dictionary<string, string>
{
{ "None", "None" },
{ "Wiring", "Wiring" },
{ "Delete", "Remove Device" },
{ "Debug", "Debug Device" },
{ "AndGate", "AND Logic Gate" },
{ "OrGate", "OR Logic Gate" },
{ "NotGate", "NOT Logic Gate" },
{ "If", "Conditional Logic Gate" },
{ "Add", "Add Operation" },
{ "Subtract", "Subtract Operation" },
{ "Multiply", "Multiply Operation" },
{ "Divide", "Divide Operation" },
{ "Modulo", "Modulo Operation" },
{ "Equals", "Equals (=) Comparer" },
{ "LessThan", "Less Than (<) Comparer" },
{ "GreaterThan", "Greater Than (>) Comparer" },
{ "BooleanConstant", "Constant Boolean Value" },
{ "IntegerConstant", "Constant Number Value" },
{ "StringConstant", "Constant String Value" },
{ "TeamColorConstant", "Constant Team Color Value" },
{ "PointConstant", "Constant Point Value" },
{ "RandomInt", "Random Integer Value" },
{ "AreaInput", "Area Value" },
{ "Concat", "Concatenate Strings" },
{ "TextTileController", "Text Tile Controller" },
{ "Announcer", "Announces Messages" },
{ "FlipFlop", "Flip/Flop" },
{ "OutputLamp", "Output Lamp" },
{ "Trigger", "Trigger Output" },
{ "PlayerDistanceSensor", "Nearest Player Distance Sensor" },
{ "NPCDistanceSensor", "Nearest NPC Distance Sensor" },
{ "TimeSensor", "Time Sensor - basically a glorified clock" },
{ "PlayerCounter", "Count nearby Players" },
{ "NPCCounter", "Count nearby NPCs" },
{ "TileCounter", "Count nearby tiles" },
{ "Repulsor", "Repulsor (USE WITH CAUTION)" },
{ "Spawner", "NPC Spawner (USE WITH CAUTION)" },
{ "Buffer", "Buffer (USE WITH CAUTION)" },
{ "Variable", "Store value" },
{ "TileCopier", "Copies Tiles" },
{ "TilePaster", "Pastes Tiles" },
{ "ProtectArea", "Protect an area of tiles" }
};
public static readonly List<ushort> CopyTileBlacklist = new List<ushort>
{
TileID.DemonAltar,
TileID.ShadowOrbs,
TileID.Containers,
TileID.Containers2,
};
}
}