2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-10-26 08:15:54 +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

@@ -1108,14 +1108,14 @@ namespace
};
} // namespace
namespace IW4::material
namespace material
{
bool DecompilingGdtDumper::ShouldDump(XAssetInfo<Material>* asset)
bool DecompilingGdtDumperIW4::ShouldDump(XAssetInfo<Material>* asset)
{
return true;
}
void DecompilingGdtDumper::DumpAsset(AssetDumpingContext& context, XAssetInfo<Material>* asset)
void DecompilingGdtDumperIW4::DumpAsset(AssetDumpingContext& context, XAssetInfo<Material>* asset)
{
if (!context.m_gdt)
return;
@@ -1123,4 +1123,4 @@ namespace IW4::material
MaterialGdtDumper dumper(*asset->Asset());
context.m_gdt->WriteEntry(dumper.CreateGdtEntry());
}
} // namespace IW4::material
} // namespace material