mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-07 05:23:02 +00:00
chore: generalize IAssetDumper interface
This commit is contained in:
@@ -6,7 +6,12 @@ using namespace IW5;
|
||||
|
||||
namespace string_table
|
||||
{
|
||||
void DumperIW5::DumpAsset(AssetDumpingContext& context, const XAssetInfo<StringTable>& asset)
|
||||
DumperIW5::DumperIW5(const AssetPool<AssetStringTable::Type>& pool)
|
||||
: AbstractAssetDumper(pool)
|
||||
{
|
||||
}
|
||||
|
||||
void DumperIW5::DumpAsset(AssetDumpingContext& context, const XAssetInfo<AssetStringTable::Type>& asset)
|
||||
{
|
||||
const auto* stringTable = asset.Asset();
|
||||
const auto assetFile = context.OpenAssetFile(asset.m_name);
|
||||
|
||||
@@ -5,9 +5,12 @@
|
||||
|
||||
namespace string_table
|
||||
{
|
||||
class DumperIW5 final : public AbstractAssetDumper<IW5::StringTable>
|
||||
class DumperIW5 final : public AbstractAssetDumper<IW5::AssetStringTable>
|
||||
{
|
||||
public:
|
||||
explicit DumperIW5(const AssetPool<IW5::AssetStringTable::Type>& pool);
|
||||
|
||||
protected:
|
||||
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<IW5::StringTable>& asset) override;
|
||||
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<IW5::AssetStringTable::Type>& asset) override;
|
||||
};
|
||||
} // namespace string_table
|
||||
|
||||
Reference in New Issue
Block a user