mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 16:52:35 +00:00
chore: generalize IAssetDumper interface
This commit is contained in:
@@ -1110,7 +1110,12 @@ namespace
|
||||
|
||||
namespace material
|
||||
{
|
||||
void DecompilingGdtDumperIW4::DumpAsset(AssetDumpingContext& context, const XAssetInfo<Material>& asset)
|
||||
DecompilingGdtDumperIW4::DecompilingGdtDumperIW4(const AssetPool<AssetMaterial::Type>& pool)
|
||||
: AbstractAssetDumper(pool)
|
||||
{
|
||||
}
|
||||
|
||||
void DecompilingGdtDumperIW4::DumpAsset(AssetDumpingContext& context, const XAssetInfo<AssetMaterial::Type>& asset)
|
||||
{
|
||||
if (!context.m_gdt)
|
||||
return;
|
||||
|
||||
@@ -5,9 +5,12 @@
|
||||
|
||||
namespace material
|
||||
{
|
||||
class DecompilingGdtDumperIW4 final : public AbstractAssetDumper<IW4::Material>
|
||||
class DecompilingGdtDumperIW4 final : public AbstractAssetDumper<IW4::AssetMaterial>
|
||||
{
|
||||
public:
|
||||
explicit DecompilingGdtDumperIW4(const AssetPool<IW4::AssetMaterial::Type>& pool);
|
||||
|
||||
protected:
|
||||
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<IW4::Material>& asset) override;
|
||||
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<IW4::AssetMaterial::Type>& asset) override;
|
||||
};
|
||||
} // namespace material
|
||||
|
||||
Reference in New Issue
Block a user