mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-07 09:17:26 +00:00
Write all menu function definitions on top of every menu list item
This commit is contained in:
@@ -776,6 +776,16 @@ MenuDumper::MenuDumper(std::ostream& stream)
|
||||
{
|
||||
}
|
||||
|
||||
void MenuDumper::WriteFunctionDef(const std::string& functionName, const Statement_s* statement)
|
||||
{
|
||||
StartFunctionDefScope();
|
||||
|
||||
WriteStringProperty("name", functionName);
|
||||
WriteStatementProperty("value", statement, false);
|
||||
|
||||
EndScope();
|
||||
}
|
||||
|
||||
void MenuDumper::WriteMenu(const menuDef_t* menu)
|
||||
{
|
||||
StartMenuDefScope();
|
||||
|
@@ -48,6 +48,7 @@ namespace IW4
|
||||
public:
|
||||
explicit MenuDumper(std::ostream& stream);
|
||||
|
||||
void WriteFunctionDef(const std::string& functionName, const Statement_s* statement);
|
||||
void WriteMenu(const menuDef_t* menu);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user