Tutorial_Generation_postProcess.cpp
#include "common/basesystemenv.h"
#include "common/GeneratorEnvInit.h"
DONT_RUN_THIS_FILE
namespace
{
class Tutorial_Generation_PostProcess : public BaseSystemEnv
{
public:
typedef GeneratorEnvInit InitClass;
public:
{
Kaim::Ptr<Kaim::NavData> sectorNavData = sector->
GetNavData();
sectorNavData->
Init(database);
{
return false;
}
for (
KyUInt32 vtxIdx = 0; vtxIdx < path->
GetNodeCount(); ++vtxIdx)
{
{
}
previousVtxIdx = currentVtxIdx;
}
return true;
}
bool Generate_WithPostProcess()
{
sector->
m_inputFileNames.PushBack(GetAbsoluteInputFileName(
"common/Village_250x200_1m_noflip.obj").c_str());
return false;
if (ComputeNavGraphFromNavMesh(sector.GetPtr(), graphBuilder) == false)
return false;
return graphNavData.
Save(GetAbsoluteOutputFileName(
"TutorialGraph.NavData").c_str()) ==
KY_SUCCESS;
}
};
#define TEST_ENV_CLASS Tutorial_Generation_PostProcess
TEST_ENV {}
TUTORIAL { CHECK(env.Generate_WithPostProcess()) }
}