public void LoadTile(WowContinent continent, int x, int y) { Scene = _builder.BuildTile(MpqFilePaths.MapToInternalName(continent), x, y); BVHTree = new BVHTree( Scene.Terrain .Concat(Scene.Liquids) .Concat(Scene.Doodads) .Concat(Scene.Wmos)); BuildResult = null; if (CurrentNavigationMeshRenderer != null) { CurrentNavigationMeshRenderer.ClearCache(); } TileLoaded(this, EventArgs.Empty); }
static void Main(string[] args) { if (args.Length != 3) { Usage(); return; } WowContinent cont; var continent = args[0]; if (!Enum.TryParse(continent, out cont)) { Console.Error.WriteLine("Continent '" + continent + "' not supported. Please try another or add the respective enum member."); return; } var x = int.Parse(args[1]); var y = int.Parse(args[2]); var scene = Builder.BuildTile(MpqFilePaths.MapToInternalName(cont), x, y); Dumper(scene, Console.OpenStandardOutput(65536)); }