/// <summary> /// Populate this map with cells /// </summary> /// <typeparam name="T"></typeparam> /// <param name="map"></param> public static void InitialiseCells <T>(this ICellMap <T> map) where T : IMapCell, new() { for (int i = 0; i < map.CellCount; i++) { T cell = new T(); map.SetCell(i, cell); } }