/// <summary> /// Builds the cell lookup for faster cell retrieval /// </summary> public void BuildCellLookup() { CellLookup.Clear(); foreach (var cell in Cells) { CellLookup.Add(cell.Id, cell); } }
/// <summary> /// Gets the cell information /// </summary> /// <param name="Id">Id of the cell to lookup</param> /// <returns></returns> public Cell GetCell(int Id) { return(CellLookup.ContainsKey(Id) ? CellLookup[Id] : null); }