2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-08 12:17:48 +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

@@ -13,15 +13,17 @@
#set GAME_HEADER "\"Game/" + GAME + "/" + GAME + ".h\""
#include GAME_HEADER
namespace GAME::material
#set CLASS_NAME "JsonDumper" + GAME
namespace material
{
class JsonDumper final : public AbstractAssetDumper<Material>
class CLASS_NAME final : public AbstractAssetDumper<GAME::Material>
{
public:
void DumpPool(AssetDumpingContext& context, AssetPool<Material>* pool) override;
void DumpPool(AssetDumpingContext& context, AssetPool<GAME::Material>* pool) override;
protected:
[[nodiscard]] bool ShouldDump(XAssetInfo<Material>* asset) override;
void DumpAsset(AssetDumpingContext& context, XAssetInfo<Material>* asset) override;
[[nodiscard]] bool ShouldDump(XAssetInfo<GAME::Material>* asset) override;
void DumpAsset(AssetDumpingContext& context, XAssetInfo<GAME::Material>* asset) override;
};
} // namespace GAME::material
} // namespace material