mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-22 17:15:46 +00:00
28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "Dumping/AbstractAssetDumper.h"
|
|
#include "Game/T6/T6.h"
|
|
#include "Utils/InfoString.h"
|
|
|
|
namespace T6
|
|
{
|
|
class AssetDumperWeaponAttachmentUnique final : public AbstractAssetDumper<WeaponAttachmentUnique>
|
|
{
|
|
static constexpr const char* FILE_TYPE_STR = "ATTACHMENTUNIQUEFILE";
|
|
static constexpr const char* GDF_NAME = "attachmentunique.gdf";
|
|
static cspField_t attachment_unique_fields[];
|
|
|
|
static void CopyToFullDef(const WeaponAttachmentUnique* weapon, WeaponAttachmentUniqueFull* fullDef);
|
|
static InfoString CreateInfoString(XAssetInfo<WeaponAttachmentUnique>* asset);
|
|
|
|
protected:
|
|
bool ShouldDump(XAssetInfo<WeaponAttachmentUnique>* asset) override;
|
|
bool CanDumpAsRaw() override;
|
|
bool CanDumpAsGdtEntry() override;
|
|
|
|
std::string GetFileNameForAsset(Zone* zone, XAssetInfo<WeaponAttachmentUnique>* asset) override;
|
|
GdtEntry DumpGdtEntry(AssetDumpingContext& context, XAssetInfo<WeaponAttachmentUnique>* asset) override;
|
|
void DumpRaw(AssetDumpingContext& context, XAssetInfo<WeaponAttachmentUnique>* asset, std::ostream& stream) override;
|
|
};
|
|
}
|