TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ FlipSwitchTrack()

static void Terraria.Minecart.FlipSwitchTrack ( int i,
int j )
inlinestatic

Definition at line 1517 of file Minecart.cs.

1518 {
1519 Tile tileTrack = Main.tile[i, j];
1520 short num = tileTrack.FrontTrack();
1521 if (num == -1)
1522 {
1523 return;
1524 }
1525 switch (_trackType[num])
1526 {
1527 case 0:
1528 if (tileTrack.BackTrack() != -1)
1529 {
1530 tileTrack.FrontTrack(tileTrack.BackTrack());
1531 tileTrack.BackTrack(num);
1532 NetMessage.SendTileSquare(-1, i, j);
1533 }
1534 break;
1535 case 2:
1536 FrameTrack(i, j, pound: true, mute: true);
1537 NetMessage.SendTileSquare(-1, i, j);
1538 break;
1539 }
1540 }
static bool FrameTrack(int i, int j, bool pound, bool mute=false)
Definition Minecart.cs:1105
static int[] _trackType
Definition Minecart.cs:75

References Terraria.Minecart._trackType, Terraria.Minecart.FrameTrack(), Terraria.NetMessage.SendTileSquare(), and Terraria.Main.tile.

Referenced by Terraria.Wiring.HitWireSingle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: