public static TerrainMap New() { var map = new TerrainMap(); map.ForEachHex <TerrainGridHex, TerrainMap>(hex => hex.IfHasValueDo(h => h.SetCosts <TerrainGridHex>(c => map[c]))); map.ResetLandmarks(); return(map); }
public async static Task <TerrainMap> NewAsync() { var map = new TerrainMap(); map.ForEachHex <TerrainGridHex, TerrainMap>(hex => hex.IfHasValueDo(h => h.SetCosts <TerrainGridHex>(c => map[c]))); await map.ResetLandmarksAsync(); return(map); }