SHOW:
|
|
- or go back to the newest paste.
1 | Index: Constructor/AppEnv.cs | |
2 | =================================================================== | |
3 | --- Constructor/AppEnv.cs (revision 6363) | |
4 | +++ Constructor/AppEnv.cs (working copy) | |
5 | @@ -235,6 +235,22 @@ | |
6 | set { vars["VECTORDATA5_OUTPUT_LNKD"].Value = value; } | |
7 | } | |
8 | ||
9 | + public string SurfaceL0OutputDir | |
10 | + { | |
11 | + get | |
12 | + { | |
13 | + if (terrainConfigObj != null) | |
14 | + { | |
15 | + if (terrainConfig.VectorData5) | |
16 | + return (TempDir + @"export-lsa4-with-vector-data-5\"); | |
17 | + else | |
18 | + return (TempDir + @"export-surface\"); | |
19 | + } | |
20 | + | |
21 | + return null; | |
22 | + } | |
23 | + } | |
24 | + | |
25 | public string RrrSceneOutput | |
26 | { | |
27 | get { return vars["RRR_SCENE_OUTPUT"].StringValue; } | |
28 | Index: Constructor/Operations/ExportNavigationMesh.cs | |
29 | =================================================================== | |
30 | --- Constructor/Operations/ExportNavigationMesh.cs (revision 6363) | |
31 | +++ Constructor/Operations/ExportNavigationMesh.cs (working copy) | |
32 | @@ -14,5 +14,20 @@ | |
33 | : base("Navigation Mesh") | |
34 | { | |
35 | } | |
36 | + | |
37 | + public override bool RunImp(Task task, AppEnv appEnv, bool withChildren) | |
38 | + { | |
39 | + | |
40 | + Command command = new Command(); | |
41 | + command.Type = Command.CommandType.EDTU4; | |
42 | + command.EdtuCommand = "build-navigation-mesh"; | |
43 | + string surfaceL0filename = appEnv.SurfaceL0OutputDir + "surface-L0.ofsh"; | |
44 | + string navMeshfilename = appEnv.terrainConfig.TerrainCfgDir.AbsoluteByRelativeTcons() + "navigationMesh.navmesh"; | |
45 | + command.Args = surfaceL0filename + " " + navMeshfilename; | |
46 | + command.ErrorsFile = appEnv.SurfaceL0OutputDir + @"export-vector-data_errors.ofsh"; | |
47 | + task.AddCommand(command); | |
48 | + | |
49 | + return true; | |
50 | + } | |
51 | } | |
52 | - | } |
52 | + | } |