mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-07 05:23:02 +00:00
Make use of custom functions when converting menus
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
|
||||
#include "Parsing/Simple/Expression/ISimpleExpression.h"
|
||||
|
||||
namespace menu
|
||||
{
|
||||
class CommonExpressionBaseFunctionCall final : public ISimpleExpression
|
||||
{
|
||||
public:
|
||||
std::string m_function_name;
|
||||
size_t m_function_index;
|
||||
std::vector<std::unique_ptr<ISimpleExpression>> m_args;
|
||||
|
||||
CommonExpressionBaseFunctionCall(std::string functionName, size_t functionIndex);
|
||||
|
||||
_NODISCARD bool Equals(const ISimpleExpression* other) const override;
|
||||
_NODISCARD bool IsStatic() const override;
|
||||
_NODISCARD SimpleExpressionValue Evaluate() const override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user