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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user