Terraria.Wiring.CheckMech C# (CSharp) Method

CheckMech() private static method

private static CheckMech ( int i, int j, int time ) : bool
i int
j int
time int
return bool
        private static bool CheckMech(int i, int j, int time)
        {
            for (int index = 0; index < Wiring._numMechs; ++index)
            {
                if (Wiring._mechX[index] == i && Wiring._mechY[index] == j)
                    return false;
            }
            if (Wiring._numMechs >= 999)
                return false;
            Wiring._mechX[Wiring._numMechs] = i;
            Wiring._mechY[Wiring._numMechs] = j;
            Wiring._mechTime[Wiring._numMechs] = time;
            ++Wiring._numMechs;
            return true;
        }