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(); } }
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); }