2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-18 03:02:07 +00:00
Files
OpenAssetTools/src/ObjWriting/Material/MaterialJsonDumper.h.template
Jan Laupetin 46fb919a52 refactor: do not nest asset namespaces in game namespaces
* Duplicated namespace names are kind of annoying
2025-08-06 00:50:35 +02:00

30 lines
871 B
Plaintext

#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
#set CLASS_NAME "JsonDumper" + GAME
namespace material
{
class CLASS_NAME final : public AbstractAssetDumper<GAME::Material>
{
public:
void DumpPool(AssetDumpingContext& context, AssetPool<GAME::Material>* pool) override;
protected:
[[nodiscard]] bool ShouldDump(XAssetInfo<GAME::Material>* asset) override;
void DumpAsset(AssetDumpingContext& context, XAssetInfo<GAME::Material>* asset) override;
};
} // namespace material