2
0
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:
Jan Laupetin
2025-08-03 17:47:21 +02:00
parent 0546572ecf
commit 250556ab61
16 changed files with 39 additions and 20 deletions

View File

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

View File

@@ -127,3 +127,8 @@ struct VertexMergerPos
};
typedef DistinctMapper<VertexMergerPos> VertexMerger;
namespace xmodel
{
std::string GetJsonFileNameForAssetName(const std::string& assetName);
}