mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-03 23:37:26 +00:00
refactor: streamline menu dumping
This commit is contained in:
19
src/ObjWriting/Game/IW4/Menu/MenuWriterIW4.h
Normal file
19
src/ObjWriting/Game/IW4/Menu/MenuWriterIW4.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "Game/IW4/IW4.h"
|
||||
#include "Menu/IMenuWriter.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace IW4::menu
|
||||
{
|
||||
class IWriterIW4 : public ::menu::IWriter
|
||||
{
|
||||
public:
|
||||
virtual void WriteFunctionDef(const std::string& functionName, const Statement_s* statement) = 0;
|
||||
virtual void WriteMenu(const menuDef_t& menu) = 0;
|
||||
};
|
||||
|
||||
std::unique_ptr<IWriterIW4> CreateMenuWriter(std::ostream& stream);
|
||||
} // namespace IW4::menu
|
Reference in New Issue
Block a user