dmitrysenkovich

Untitled

Aug 25th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public override bool RunImp(Task task, AppEnv appEnv, bool withChildren)
  2.         {
  3.             string tempDir = string.Empty;
  4.             string surfaceL0filename = string.Empty;
  5.             string navMeshfilename = string.Empty;
  6.             if (appEnv.terrainConfig.VectorData5)
  7.             {
  8.                 tempDir = appEnv.TempDir + @"export-lsa4-with-vector-data-5\";
  9.                 surfaceL0filename = tempDir + "surface-L0.ofsh";
  10.             }
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment