Dump and load iw4 physpresets

This commit is contained in:
Jan
2022-01-02 10:25:48 +01:00
parent 87c2e58c4b
commit bcafddd83a
9 changed files with 496 additions and 3 deletions

View File

@ -0,0 +1,18 @@
#pragma once
#include "Dumping/AbstractAssetDumper.h"
#include "Game/IW4/IW4.h"
#include "InfoString/InfoString.h"
namespace IW4
{
class AssetDumperPhysPreset final : public AbstractAssetDumper<PhysPreset>
{
static void CopyToPhysPresetInfo(const PhysPreset* physPreset, PhysPresetInfo* physPresetInfo);
static InfoString CreateInfoString(XAssetInfo<PhysPreset>* asset);
protected:
bool ShouldDump(XAssetInfo<PhysPreset>* asset) override;
void DumpAsset(AssetDumpingContext& context, XAssetInfo<PhysPreset>* asset) override;
};
}