Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: Constructor/AppEnv.cs
- ===================================================================
- --- Constructor/AppEnv.cs (revision 6363)
- +++ Constructor/AppEnv.cs (working copy)
- @@ -235,6 +235,22 @@
- set { vars["VECTORDATA5_OUTPUT_LNKD"].Value = value; }
- }
- + public string SurfaceL0OutputDir
- + {
- + get
- + {
- + if (terrainConfigObj != null)
- + {
- + if (terrainConfig.VectorData5)
- + return (TempDir + @"export-lsa4-with-vector-data-5\");
- + else
- + return (TempDir + @"export-surface\");
- + }
- +
- + return null;
- + }
- + }
- +
- public string RrrSceneOutput
- {
- get { return vars["RRR_SCENE_OUTPUT"].StringValue; }
- Index: Constructor/Operations/ExportNavigationMesh.cs
- ===================================================================
- --- Constructor/Operations/ExportNavigationMesh.cs (revision 6363)
- +++ Constructor/Operations/ExportNavigationMesh.cs (working copy)
- @@ -14,5 +14,20 @@
- : base("Navigation Mesh")
- {
- }
- +
- + public override bool RunImp(Task task, AppEnv appEnv, bool withChildren)
- + {
- +
- + Command command = new Command();
- + command.Type = Command.CommandType.EDTU4;
- + command.EdtuCommand = "build-navigation-mesh";
- + string surfaceL0filename = appEnv.SurfaceL0OutputDir + "surface-L0.ofsh";
- + string navMeshfilename = appEnv.terrainConfig.TerrainCfgDir.AbsoluteByRelativeTcons() + "navigationMesh.navmesh";
- + command.Args = surfaceL0filename + " " + navMeshfilename;
- + command.ErrorsFile = appEnv.SurfaceL0OutputDir + @"export-vector-data_errors.ofsh";
- + task.AddCommand(command);
- +
- + return true;
- + }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement