43 struct ResourceReference {
58 ResourceReference& operator=(ResourceReference
const&);
59 ResourceReference(ResourceReference
const&);
83 using MissingResourceSet =
86 using ResourceTable = ::std::unordered_map<::HashedString, ::ExpressionNode::ResourceReference>;
91 ::ll::TypedStorage<8, 16, ::std::variant<::std::unique_ptr<::Molang::details::IComplexExpression>,
float>> mImpl;
96 std::string
const& expression,
97 ::MolangVersion molangVersion,
98 ::gsl::span<::HashedString const> querySetID
100 : ExpressionNode(expression, molangVersion) {
102 config.mVersion = molangVersion;
103 config.mAllowedQuerySets = querySetID;
104 parse(expression, config);
110 queryFunctionAccessorFromString(
112 ::MolangVersion molangVersion,
113 ::MolangQueryFunctionReturnType& functionReturnType,
114 bool missingIsOkay_returnNullIfSo
131 MCAPI ExpressionNode(::std::string
const& expression, ::MolangVersion molangVersion);
134 MCNAPI ExpressionNode(
char const* expression, ::MolangVersion molangVersion);
143 MCAPI ::std::string getExpressionString()
const;
145 MCNAPI ::MolangCompileResult
link();
151 MCNAPI ::ExpressionNode&
operator=(::ExpressionNode
const& rhs);
154 MCNAPI ::ExpressionNode&
operator=(
float value);
160 MCNAPI
bool parse(::std::string_view expression, ::MolangVersion version, ::gsl::span<::HashedString const> idSet);
163 replaceArrayVariables(::std::unordered_map<::HashedString, ::ExpressionNode>& dataMap,
bool compileProgram);
174 MCAPI static ::MolangQueryFunction& registerQueryFunction(
175 ::std::string_view queryFunctionName,
177 ::std::string_view documentation,
178 ::MolangQueryFunctionReturnType returnType,
180 uint64 minArgumentCount,
181 uint64 maxArgumentCount,
182 ::std::initializer_list<int>
const& experiments
188 unregisterQueryFunction(::std::string
const& queryFunctionName,
::HashedString querySetIdentifier);
195 _defaultUnknownQueryFunction();
200 MCAPI static ::std::unordered_multimap<::HashedString, ::MolangQueryFunction>& mQueryFunctionAccessors();
202 MCNAPI static ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString>>&
mQuerySets();
214 MCAPI
void*
$ctor(::std::string
const& expression, ::MolangVersion molangVersion);
217 MCNAPI
void*
$ctor(
char const* expression, ::MolangVersion molangVersion);