mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-02-10 17:43:03 +00:00
chore: generalize IAssetDumper interface
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#include "StructuredDataDefDumperIW4.h"
|
||||
|
||||
#include "StructuredDataDef/CommonStructuredDataDef.h"
|
||||
#include "StructuredDataDef/StructuredDataDefDumper.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <sstream>
|
||||
|
||||
using namespace IW4;
|
||||
@@ -185,7 +187,12 @@ namespace
|
||||
|
||||
namespace structured_data_def
|
||||
{
|
||||
void DumperIW4::DumpAsset(AssetDumpingContext& context, const XAssetInfo<StructuredDataDefSet>& asset)
|
||||
DumperIW4::DumperIW4(const AssetPool<AssetStructuredDataDef::Type>& pool)
|
||||
: AbstractAssetDumper(pool)
|
||||
{
|
||||
}
|
||||
|
||||
void DumperIW4::DumpAsset(AssetDumpingContext& context, const XAssetInfo<AssetStructuredDataDef::Type>& asset)
|
||||
{
|
||||
const auto* set = asset.Asset();
|
||||
const auto assetFile = context.OpenAssetFile(asset.m_name);
|
||||
|
||||
Reference in New Issue
Block a user