Definition at line 152 of file Wiring.cs.
153 {
156 {
161 {
163 }
164 else
165 {
167 if (tile == null)
168 {
170 }
171 else
172 {
173 if (tile.active() && tile.type == 144)
174 {
175 if (tile.frameY == 0)
176 {
178 }
179 else
180 {
181 int num4 = tile.frameX / 18;
183 {
184 case 0:
186 break;
187 case 1:
189 break;
190 case 2:
192 break;
193 case 3:
195 break;
196 case 4:
198 break;
199 }
201 {
204 }
205 }
206 }
208 {
209 if (tile.active() && tile.type == 144)
210 {
211 tile.frameY = 0;
213 }
214 if (tile.active() && tile.type == 411)
215 {
216 int num5 = tile.frameX % 36 / 18;
217 int num6 = tile.frameY % 36 / 18;
221 if (Main.tile[
num7,
num8].frameX >= 36)
222 {
224 }
225 for (
int i =
num7; i <
num7 + 2; i++)
226 {
228 {
230 {
233 {
234 tile2.frameX = (short)(
tile2.frameX +
num9);
235 }
236 }
237 }
238 }
239 NetMessage.SendTileSquare(-1,
num7,
num8, 2, 2);
240 }
242 {
246 }
248 }
249 }
250 }
251 }
252 }
static void SetCurrentUser(int plr=-1)
static void TripWire(int left, int top, int width, int height)
Used to send a single to wiring wired up to the specified area. The parameters represent the tile coo...
References Terraria.Wiring._mechTime, Terraria.Wiring._mechX, Terraria.Wiring._mechY, Terraria.Wiring._numMechs, Terraria.Tile.active(), Terraria.Tile.frameY, Terraria.WorldGen.InWorld(), Terraria.NetMessage.SendTileSquare(), Terraria.Wiring.SetCurrentUser(), Terraria.Main.tile, Terraria.Wiring.TripWire(), and Terraria.Tile.type.
Referenced by Terraria.WorldGen.UpdateWorld_Inner().