BinhlEmul.World.WTickTorch C# (CSharp) Method

WTickTorch() private method

private WTickTorch ( ) : int
return int
        private int WTickTorch()
        {
            int wtime = 0;
            NotFullTick = true;
            while (NotFullTick)
            {
                NotFullTick = false;
                for (int x = 0; x < WorldSizeX; x++)
                {
                    for (int y = 0; y < WorldSizeY; y++)
                    {
                        for (int z = 0; z < WorldSizeZ; z++)
                        {
                            if (_objectMatrix[x, y, z].GetType() == typeof(RedstoneTorch))
                            {
                                if (_objectMatrix[x, y, z].WTick()) wtime++;
                            }
                        }
                    }
                }
            }
            return wtime;
        }