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:
@@ -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);
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user