Esempio n. 1
0
        public static TerrainTile LoadTile(SimpleTerrain terrain, int x, int y)
        {
            var tile = SimpleTileReader.ReadTile(terrain, x, y);

            if (tile != null)
            {
                // do not generate navmesh on the fly (use command instead)
                if (NavMeshBuilder.DoesNavMeshExist(terrain.MapId, x, y))
                {
                    tile.EnsureNavMeshLoaded();
                }
            }

            return(tile);
        }