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

◆ SkipWire() [1/2]

static void Terraria.Wiring.SkipWire ( int x,
int y )
inlinestatic

Use to prevent wire signals from running for the provided coordinates. Typically used in multi-tiles to prevent a wire touching multiple tiles of the multi-tile from erroneously running wire code multiple times. In M:Terraria.ModLoader.ModTile.HitWire(System.Int32,System.Int32), call SkipWire for all the coordinates the tile covers.

Parameters
x
y

Definition at line 121 of file Wiring.cs.

122 {
123 _wireSkip[new Point16(x, y)] = true;
124 }
static Dictionary< Point16, bool > _wireSkip
Definition Wiring.cs:24

References Terraria.Wiring._wireSkip.

Referenced by Terraria.Wiring.CheckLogicGate(), Terraria.WorldGen.CloseDoor(), Terraria.Wiring.HitWire(), Terraria.Wiring.HitWireSingle(), Terraria.WorldGen.OpenDoor(), Terraria.WorldGen.ShiftTallGate(), Terraria.WorldGen.ShiftTrapdoor(), Terraria.WorldGen.SwitchFountain(), Terraria.WorldGen.SwitchMB(), and Terraria.WorldGen.SwitchMonolith().

+ Here is the caller graph for this function: