コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }