Saved Navigation Data as Asset and load on scene load #439

Merged
maverickdgg merged 7 commits from Navigation into main 2023-03-24 18:05:56 +08:00
3 changed files with 2 additions and 3 deletions
Showing only changes of commit 6527634839 - Show all commits

View File

@ -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

View File

@ -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();

View File

@ -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);
}; };
} }