SHOW:
|
|
- or go back to the newest paste.
| 1 | public override bool RunImp(Task task, AppEnv appEnv, bool withChildren) | |
| 2 | {
| |
| 3 | - | string tempDir = appEnv.TempDir + @"export-lsa4-with-vector-data-5\"; |
| 3 | + | string tempDir = string.Empty; |
| 4 | string surfaceL0filename = string.Empty; | |
| 5 | - | Command command = null; |
| 5 | + | string navMeshfilename = string.Empty; |
| 6 | - | command = new Command(); |
| 6 | + | if (appEnv.terrainConfig.VectorData5) |
| 7 | {
| |
| 8 | tempDir = appEnv.TempDir + @"export-lsa4-with-vector-data-5\"; | |
| 9 | - | string surfaceL0filename = tempDir + "surfaceL0.ofsh"; |
| 9 | + | surfaceL0filename = tempDir + "surface-L0.ofsh"; |
| 10 | - | string navMeshfilename = //todo |
| 10 | + | } |
| 11 | - | command.Args = surfaceL0filename + " " + navMeshfilename; |
| 11 | + | else |
| 12 | {
| |
| 13 | tempDir = appEnv.TempDir + @"export-surface\"; | |
| 14 | surfaceL0filename = tempDir + "surfaceL0.ofsh"; | |
| 15 | } | |
| 16 | ||
| 17 | Command command = new Command(); | |
| 18 | command.Type = Command.CommandType.EDTU4; | |
| 19 | command.EdtuCommand = "build-navigation-mesh"; | |
| 20 | //navMeshfilename = + "navigationMesh.navmesh"; | |
| 21 | command.Args = surfaceL0filename + " " + navMeshfilename; | |
| 22 | command.ErrorsFile = tempDir + @"export-vector-data_errors.ofsh"; | |
| 23 | task.AddCommand(command); | |
| 24 | ||
| 25 | return true; | |
| 26 | } |