Saved Navigation Data as Asset and load on scene load #439
|
@ -15,7 +15,6 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Math/Vector/SHVec3.h"
|
#include "Math/Vector/SHVec3.h"
|
||||||
#include "Assets/SHAssetMacros.h"
|
|
||||||
#include "SHAssetData.h"
|
#include "SHAssetData.h"
|
||||||
|
|
||||||
namespace SHADE
|
namespace SHADE
|
||||||
|
|
|
@ -164,7 +164,7 @@ namespace SHADE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SHBinaryLoader::LoadNavData(std::ifstream& file, SHAssetData* result)
|
void SHBinaryLoader::LoadNavData(std::ifstream& file, SHAssetData*& result)
|
||||||
{
|
{
|
||||||
auto const data = new SHNavDataAsset();
|
auto const data = new SHNavDataAsset();
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,6 @@ namespace SHADE
|
||||||
void LoadAnimClipContainer(std::ifstream& file,SHAssetData*& result);
|
void LoadAnimClipContainer(std::ifstream& file,SHAssetData*& result);
|
||||||
|
|
||||||
void WriteNavData(std::ofstream& file, SHAssetData const* data);
|
void WriteNavData(std::ofstream& file, SHAssetData const* data);
|
||||||
void LoadNavData(std::ifstream& file, SHAssetData* result);
|
void LoadNavData(std::ifstream& file, SHAssetData*& result);
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in New Issue