mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-05 16:27:27 +00:00
refactor: streamline namespaces of xmodel dumping and loading
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "XModelCommon.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <format>
|
||||
#include <limits>
|
||||
#include <tuple>
|
||||
|
||||
@@ -99,3 +100,11 @@ bool operator<(const VertexMergerPos& lhs, const VertexMergerPos& rhs)
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
namespace xmodel
|
||||
{
|
||||
std::string GetJsonFileNameForAssetName(const std::string& assetName)
|
||||
{
|
||||
return std::format("xmodel/{}.json", assetName);
|
||||
}
|
||||
} // namespace xmodel
|
||||
|
@@ -127,3 +127,8 @@ struct VertexMergerPos
|
||||
};
|
||||
|
||||
typedef DistinctMapper<VertexMergerPos> VertexMerger;
|
||||
|
||||
namespace xmodel
|
||||
{
|
||||
std::string GetJsonFileNameForAssetName(const std::string& assetName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user