mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 16:52:35 +00:00
refactor: do not nest asset namespaces in game namespaces
* Duplicated namespace names are kind of annoying
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
#include "Dumping/AbstractAssetDumper.h"
|
||||
#include "Game/IW4/IW4.h"
|
||||
|
||||
namespace IW4::material
|
||||
namespace material
|
||||
{
|
||||
class DecompilingGdtDumper final : public AbstractAssetDumper<Material>
|
||||
class DecompilingGdtDumperIW4 final : public AbstractAssetDumper<IW4::Material>
|
||||
{
|
||||
protected:
|
||||
bool ShouldDump(XAssetInfo<Material>* asset) override;
|
||||
void DumpAsset(AssetDumpingContext& context, XAssetInfo<Material>* asset) override;
|
||||
bool ShouldDump(XAssetInfo<IW4::Material>* asset) override;
|
||||
void DumpAsset(AssetDumpingContext& context, XAssetInfo<IW4::Material>* asset) override;
|
||||
};
|
||||
} // namespace IW4::material
|
||||
} // namespace material
|
||||
|
||||
Reference in New Issue
Block a user