Example #1
0
        private void UpdateDrawRecalculateList()
        {
            for (int i = 0; i < cellsCount; i++)
            {
                updateCellX++;
                if (updateCellX >= cellsWidth)
                {
                    updateCellX = 0;
                    updateCellY++;

                    if (updateCellY >= cellsHeight)
                    {
                        updateCellY = 0;
                    }
                }

                MiniMapCell cell = miniMapCellGrid[updateCellX, updateCellY];

                if (cell.IsEmptyCalculateList())
                {
                    break;
                }
                cell.DrawCellRecalculateList();
            }
        }
Example #2
0
        public bool Create(LoadingInfo loadingInfo)
        {
            miniMapCellGrid[updateCellX, updateCellY] = new MiniMapCell(updateCellX, updateCellY, tilesPerCell, tilePixel);
            updateCellX++;

            if (updateCellX >= cellsWidth)
            {
                updateCellX = 0;
                updateCellY++;

                if (updateCellY >= cellsHeight)
                {
                    updateCellY = 0;
                    updateCellX = 0;
                    return(true);
                }
            }

            UpdateCreatingLabel(loadingInfo);
            return(false);
        }