2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-08 12:17:48 +00:00

refactor: streamline material dumping

This commit is contained in:
Jan Laupetin
2025-07-29 23:37:41 +01:00
parent 9885a4ce93
commit 0dfa57446c
26 changed files with 111 additions and 310 deletions

View File

@@ -0,0 +1,27 @@
#options GAME(IW3, IW4, IW5, T5, T6)
#filename "Game/" + GAME + "/Material/MaterialJsonDumper" + GAME + ".h"
// This file was templated.
// See MaterialJsonDumper.h.template.
// Do not modify, changes will be lost.
#pragma once
#include "Dumping/AbstractAssetDumper.h"
#include "Dumping/AssetDumpingContext.h"
#set GAME_HEADER "\"Game/" + GAME + "/" + GAME + ".h\""
#include GAME_HEADER
namespace GAME::material
{
class JsonDumper final : public AbstractAssetDumper<Material>
{
public:
void DumpPool(AssetDumpingContext& context, AssetPool<Material>* pool) override;
protected:
[[nodiscard]] bool ShouldDump(XAssetInfo<Material>* asset) override;
void DumpAsset(AssetDumpingContext& context, XAssetInfo<Material>* asset) override;
};
} // namespace GAME::material