mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-26 06:37:52 -05:00
Add T6 Attachment dumper
This commit is contained in:
@ -0,0 +1,27 @@
|
||||
#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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user