mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-16 01:43:04 +00:00
feat: template techset and shader dumping for IW4,T6
This commit is contained in:
33
src/ObjWriting/Techset/TechsetDumper.h.template
Normal file
33
src/ObjWriting/Techset/TechsetDumper.h.template
Normal file
@@ -0,0 +1,33 @@
|
||||
#options GAME(IW4, T6)
|
||||
|
||||
#filename "Game/" + GAME + "/Techset/TechsetDumper" + GAME + ".h"
|
||||
|
||||
#set GAME_HEADER "\"Game/" + GAME + "/" + GAME + ".h\""
|
||||
|
||||
// This file was templated.
|
||||
// See TechsetDumper.h.template.
|
||||
// Do not modify, changes will be lost.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Dumping/AbstractAssetDumper.h"
|
||||
#include GAME_HEADER
|
||||
|
||||
#set CLASS_NAME "Dumper" + GAME
|
||||
|
||||
namespace techset
|
||||
{
|
||||
class CLASS_NAME final : public AbstractAssetDumper<GAME::AssetTechniqueSet>
|
||||
{
|
||||
public:
|
||||
explicit CLASS_NAME(bool debug);
|
||||
|
||||
void Dump(AssetDumpingContext& context) override;
|
||||
|
||||
protected:
|
||||
void DumpAsset(AssetDumpingContext& context, const XAssetInfo<GAME::AssetTechniqueSet::Type>& asset) override;
|
||||
|
||||
private:
|
||||
bool m_debug;
|
||||
};
|
||||
} // namespace techset
|
||||
Reference in New Issue
Block a user