mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-09 14:28:03 -05:00
26 lines
949 B
C++
26 lines
949 B
C++
#pragma once
|
|
|
|
#include "Dumping/AbstractAssetDumper.h"
|
|
#include "Game/T6/T6.h"
|
|
#include "InfoString/InfoString.h"
|
|
|
|
namespace T6
|
|
{
|
|
class AssetDumperPhysConstraints final : public AbstractAssetDumper<PhysConstraints>
|
|
{
|
|
static constexpr const char* FILE_TYPE_STR = "PHYSCONSTRAINTS";
|
|
static constexpr const char* GDF_NAME = "physconstraints.gdf";
|
|
|
|
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;
|
|
GdtEntry DumpGdtEntry(AssetDumpingContext& context, XAssetInfo<PhysConstraints>* asset) override;
|
|
void DumpRaw(AssetDumpingContext& context, XAssetInfo<PhysConstraints>* asset, std::ostream& stream) override;
|
|
};
|
|
}
|