mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-28 23:57:52 -05:00
Dump and load iw4 physpresets
This commit is contained in:
18
src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperPhysPreset.h
Normal file
18
src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperPhysPreset.h
Normal 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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user