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

◆ ToggleHolidayLight()

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

Definition at line 2751 of file Wiring.cs.

2752 {
2753 bool flag = tileCache.frameX >= 54;
2754 if (!forcedStateWhereTrueIsOn.HasValue || !forcedStateWhereTrueIsOn.Value != flag)
2755 {
2756 if (tileCache.frameX < 54)
2757 {
2758 tileCache.frameX += 54;
2759 }
2760 else
2761 {
2762 tileCache.frameX -= 54;
2763 }
2764 NetMessage.SendTileSquare(-1, i, j);
2765 }
2766 }

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: