2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-12 19:47:27 +00:00

refactor: do not nest asset namespaces in game namespaces

* Duplicated namespace names are kind of annoying
This commit is contained in:
Jan Laupetin
2025-08-06 00:50:35 +02:00
parent 33c09dfe61
commit 46fb919a52
336 changed files with 1430 additions and 1480 deletions

View File

@@ -1082,9 +1082,11 @@ namespace
};
} // namespace
namespace GAME::xmodel
#set CREATE_LOADER_METHOD "CreateLoader" + GAME
namespace xmodel
{
std::unique_ptr<AssetCreator<AssetXModel>> CreateXModelLoader(MemoryManager& memory, ISearchPath& searchPath, Zone& zone)
std::unique_ptr<AssetCreator<AssetXModel>> CREATE_LOADER_METHOD (MemoryManager& memory, ISearchPath& searchPath, Zone& zone)
{
return std::make_unique<XModelLoader>(memory, searchPath, zone.m_script_strings);
}

View File

@@ -13,7 +13,9 @@
#include <memory>
namespace GAME::xmodel
#set CREATE_LOADER_METHOD "CreateLoader" + GAME
namespace xmodel
{
std::unique_ptr<AssetCreator<AssetXModel>> CreateXModelLoader(MemoryManager& memory, ISearchPath& searchPath, Zone& zone);
std::unique_ptr<AssetCreator<GAME::AssetXModel>> CREATE_LOADER_METHOD (MemoryManager& memory, ISearchPath& searchPath, Zone& zone);
} // namespace GAME