2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-29 15:57:48 +00:00

chore: generalize IAssetDumper interface

This commit is contained in:
Jan Laupetin
2025-10-15 20:06:01 +01:00
parent c6e9cbedda
commit 6a84d1ea68
152 changed files with 1051 additions and 586 deletions

View File

@@ -854,7 +854,12 @@ namespace
namespace xmodel
{
void CLASS_NAME::DumpAsset(AssetDumpingContext& context, const XAssetInfo<XModel>& asset)
CLASS_NAME::CLASS_NAME (const AssetPool<GAME::AssetXModel::Type>& pool)
: AbstractAssetDumper(pool)
{
}
void CLASS_NAME::DumpAsset(AssetDumpingContext& context, const XAssetInfo<AssetXModel::Type>& asset)
{
DumpXModelJson(context, asset);
DumpXModelSurfs(context, asset);

View File

@@ -17,9 +17,12 @@
namespace xmodel
{
class CLASS_NAME final : public AbstractAssetDumper<GAME::XModel>
class CLASS_NAME final : public AbstractAssetDumper<GAME::AssetXModel>
{
public:
explicit CLASS_NAME (const AssetPool<GAME::AssetXModel::Type>& pool);
protected:
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<GAME::XModel>& asset) override;
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<GAME::AssetXModel::Type>& asset) override;
};
} // namespace xmodel