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

◆ CheckMech()

static bool Terraria.Wiring.CheckMech ( int i,
int j,
int time )
inlinestaticprivate

Definition at line 429 of file Wiring.cs.

430 {
431 for (int k = 0; k < _numMechs; k++)
432 {
433 if (_mechX[k] == i && _mechY[k] == j)
434 {
435 return false;
436 }
437 }
438 if (_numMechs < 999)
439 {
440 _mechX[_numMechs] = i;
441 _mechY[_numMechs] = j;
442 _mechTime[_numMechs] = time;
443 _numMechs++;
444 return true;
445 }
446 return false;
447 }
static int _numMechs
Definition Wiring.cs:59
static int[] _mechX
Definition Wiring.cs:55
static int[] _mechTime
Definition Wiring.cs:61
static int[] _mechY
Definition Wiring.cs:57

References Terraria.Wiring._mechTime, Terraria.Wiring._mechX, Terraria.Wiring._mechY, and Terraria.Wiring._numMechs.

Referenced by Terraria.Wiring.HitSwitch(), and Terraria.Wiring.HitWireSingle().