2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-09 10:11:49 +00:00

refactor: restructure image dumper

This commit is contained in:
Jan Laupetin
2025-07-28 23:15:45 +01:00
parent 9a6f0c8919
commit 22dbf57269
17 changed files with 245 additions and 240 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include "Dumping/AbstractAssetDumper.h"
#include "Game/IW4/IW4.h"
#include "Image/IImageWriter.h"
#include <memory>
namespace IW4::image
{
class Dumper final : public AbstractAssetDumper<GfxImage>
{
public:
Dumper();
protected:
bool ShouldDump(XAssetInfo<GfxImage>* asset) override;
void DumpAsset(AssetDumpingContext& context, XAssetInfo<GfxImage>* asset) override;
private:
std::unique_ptr<IImageWriter> m_writer;
};
} // namespace IW4::image