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);
111 queryFunctionAccessorFromString(
113 ::MolangVersion molangVersion,
114 ::MolangQueryFunctionReturnType& functionReturnType,
115 bool missingIsOkay_returnNullIfSo
133 MCAPI
ExpressionNode(::std::string
const& expression, ::MolangVersion molangVersion);
136 MCAPI
ExpressionNode(
char const* expression, ::MolangVersion molangVersion);
143 MCAPI ::std::optional<::MolangScriptArg> _getValueIfConstant()
const;
145 MCAPI ::std::string getExpressionString()
const;
147 MCAPI ::MolangCompileResult link();
156 MCAPI ::ExpressionNode& operator=(
float value);
162 MCAPI
bool parse(::std::string_view expression, ::MolangVersion version, ::gsl::span<::HashedString const> idSet);
165 replaceArrayVariables(::std::unordered_map<::HashedString, ::ExpressionNode>& dataMap,
bool compileProgram);
177 MCAPI static ::std::function<
179 queryFunctionAccessorFromString(
181 ::MolangVersion molangVersion,
182 ::MolangQueryFunctionReturnType& functionReturnType,
183 bool missingIsOkay_returnNullIfSo
187 MCAPI static ::MolangQueryFunction& registerQueryFunction(
188 ::std::string_view queryFunctionName,
190 ::std::string_view documentation,
191 ::MolangQueryFunctionReturnType returnType,
193 uint64 minArgumentCount,
194 uint64 maxArgumentCount,
195 ::std::initializer_list<int>
const& experiments
198 MCAPI
static void setExperiments(
::Experiments const& experiments);
201 unregisterQueryFunction(::std::string
const& queryFunctionName,
::HashedString querySetIdentifier);
208 _defaultUnknownQueryFunction();
211 mGetParticleTintFunc();
213 MCAPI static ::std::unordered_multimap<::HashedString, ::MolangQueryFunction>& mQueryFunctionAccessors();
215 MCAPI static ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString>>& mQuerySets();
227 MCAPI
void* $ctor(::std::string
const& expression, ::MolangVersion molangVersion);
230 MCAPI
void* $ctor(
char const* expression, ::MolangVersion molangVersion);