mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
Make dumpers works as gdt dumpers and raw dumpers
This commit is contained in:
@ -1,17 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "Dumping/AbstractFileDumper.h"
|
||||
#include "Dumping/AbstractAssetDumper.h"
|
||||
#include "Game/T6/T6.h"
|
||||
#include "Utils/InfoString.h"
|
||||
|
||||
namespace T6
|
||||
{
|
||||
class AssetDumperPhysConstraints final : public AbstractFileDumper<PhysConstraints>
|
||||
class AssetDumperPhysConstraints final : public AbstractAssetDumper<PhysConstraints>
|
||||
{
|
||||
static constexpr const char* FILE_TYPE_STR = "PHYSCONSTRAINTS";
|
||||
static constexpr const char* GDF_NAME = "physconstraints.gdf";
|
||||
static cspField_t phys_constraints_fields[];
|
||||
|
||||
static InfoString CreateInfoString(XAssetInfo<PhysConstraints>* asset);
|
||||
|
||||
protected:
|
||||
bool ShouldDump(XAssetInfo<PhysConstraints>* asset) override;
|
||||
bool CanDumpAsRaw() override;
|
||||
bool CanDumpAsGdtEntry() override;
|
||||
|
||||
std::string GetFileNameForAsset(Zone* zone, XAssetInfo<PhysConstraints>* asset) override;
|
||||
void DumpAsset(AssetDumpingContext& context, XAssetInfo<PhysConstraints>* asset, std::ostream& stream) override;
|
||||
GdtEntry DumpGdtEntry(AssetDumpingContext& context, XAssetInfo<PhysConstraints>* asset) override;
|
||||
void DumpRaw(AssetDumpingContext& context, XAssetInfo<PhysConstraints>* asset, std::ostream& stream) override;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user