HitWire() public method

public HitWire ( int i, int j ) : void
i int
j int
return void
Esempio n. 1
0
        //in Terraria.Wiring make the following public:
        //  _wireList, _toProcess, _teleport, _inPumpX, _inPumpY, _numInPump, _outPumpX, _outPumpY, _numOutPump CheckMech, TripWire
        //at end of Terraria.Wiring.HitWireSingle inside if statement checking for tile active add
        //  TileLoader.HitWire(i, j, type);
        public static void HitWire(int i, int j, int type)
        {
            ModTile modTile = GetTile(type);

            if (modTile != null)
            {
                modTile.HitWire(i, j);
            }
            foreach (GlobalTile globalTile in globalTiles)
            {
                globalTile.HitWire(i, j, type);
            }
        }