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

◆ ToggleCandle()

static void Terraria.Wiring.ToggleCandle ( int i,
int j,
Tile tileCache,
bool? forcedStateWhereTrueIsOn )
inlinestatic

Definition at line 2879 of file Wiring.cs.

2880 {
2881 short num = 18;
2882 if (tileCache.frameX > 0)
2883 {
2884 num = -18;
2885 }
2886 bool flag = tileCache.frameX > 0;
2887 if (!forcedStateWhereTrueIsOn.HasValue || !forcedStateWhereTrueIsOn.Value != flag)
2888 {
2889 tileCache.frameX += num;
2890 NetMessage.SendTileSquare(-1, i, j, 3);
2891 }
2892 }

References Terraria.Tile.frameX, and Terraria.NetMessage.SendTileSquare().

Referenced by Terraria.Wiring.HitWireSingle(), and Terraria.WorldGen.TryToggleLight().

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