tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Wiring Class Reference

Static Public Member Functions

static bool Actuate (int i, int j)
 
static void ActuateForced (int i, int j)
 
static bool CheckMech (int i, int j, int time)
 
static void DeActive (int i, int j)
 
static IEntitySource GetItemSource (int sourceTileX, int sourceTileY)
 
static IEntitySource GetNPCSource (int sourceTileX, int sourceTileY)
 
static IEntitySource GetProjectileSource (int sourceTileX, int sourceTileY)
 
static void HitSwitch (int i, int j)
 
static void Initialize ()
 
static void MassWireOperation (Point ps, Point pe, Player master)
 
static void PokeLogicGate (int lampX, int lampY)
 
static void ReActive (int i, int j)
 
static void SetCurrentUser (int plr=-1)
 
static void SkipWire (int x, int y)
 
static void SkipWire (Point16 point)
 
static void Toggle2x2Light (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn, bool doSkipWires)
 
static void ToggleCampFire (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn, bool doSkipWires)
 
static void ToggleCandle (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn)
 
static void ToggleChandelier (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn, bool doSkipWires)
 
static void ToggleFirePlace (int i, int j, Tile theBlock, bool? forcedStateWhereTrueIsOn, bool doSkipWires)
 
static void ToggleHangingLantern (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn, bool doSkipWires)
 
static void ToggleHolidayLight (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn)
 
static void ToggleLamp (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn, bool doSkipWires)
 
static void ToggleLampPost (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn, bool doSkipWires)
 
static void ToggleTorch (int i, int j, Tile tileCache, bool? forcedStateWhereTrueIsOn)
 
static void TripWire (int left, int top, int width, int height)
 
static void UpdateMech ()
 

Static Public Attributes

static int _currentWireColor
 
static Queue< Point16_GatesNext
 
static int[] _inPumpX
 
static int[] _inPumpY
 
static Queue< Point16_LampsToCheck
 
static int _numInPump
 
static int _numOutPump
 
static int[] _outPumpX
 
static int[] _outPumpY
 
static Vector2[] _teleport
 
static Dictionary< Point16, byte > _toProcess
 
static DoubleStack< byte > _wireDirectionList
 
static DoubleStack< Point16_wireList
 
static bool blockPlayerTeleportationForOneIteration
 
static bool running