Add AssetDumperContext to bundle context fields for dumping

(cherry picked from commit ed8331280392ef3a2b4657c5dbd0880463d85f2c)
This commit is contained in:
Jan
2021-03-05 18:11:56 +01:00
parent 88c48e8107
commit abb268a819
56 changed files with 191 additions and 156 deletions

View File

@ -1,17 +1,17 @@
#pragma once
#include "Dumping/AbstractAssetDumper.h"
#include "Dumping/AbstractFileDumper.h"
#include "Game/T6/T6.h"
namespace T6
{
class AssetDumperPhysConstraints final : public AbstractAssetDumper<PhysConstraints>
class AssetDumperPhysConstraints final : public AbstractFileDumper<PhysConstraints>
{
static cspField_t phys_constraints_fields[];
protected:
bool ShouldDump(XAssetInfo<PhysConstraints>* asset) override;
std::string GetFileNameForAsset(Zone* zone, XAssetInfo<PhysConstraints>* asset) override;
void DumpAsset(Zone* zone, XAssetInfo<PhysConstraints>* asset, std::ostream& stream) override;
void DumpAsset(AssetDumpingContext& context, XAssetInfo<PhysConstraints>* asset, std::ostream& stream) override;
};
}