42 struct ResourceReference {
58 ResourceReference& operator=(ResourceReference
const&);
59 ResourceReference(ResourceReference
const&);
65 ResourceReference& operator=(ResourceReference
const&);
66 ResourceReference(ResourceReference
const&);
73 MCNAPI ResourceReference();
81 MCNAPI ~ResourceReference();
112 using MissingResourceSet =
115 using ResourceTable = ::std::unordered_map<::HashedString, ::ExpressionNode::ResourceReference>;
120 ::ll::TypedStorage<8, 16, ::std::variant<::std::unique_ptr<::Molang::details::IComplexExpression>,
float>> mImpl;
132 std::string
const& expression,
133 ::MolangVersion molangVersion,
134 ::gsl::span<::HashedString const> querySetID
136 : ExpressionNode(expression, molangVersion) {
138 config.mVersion = molangVersion;
139 config.mAllowedQuerySets = querySetID;
140 parse(expression, config);
162 MCAPI
ExpressionNode(::std::string
const& expression, ::MolangVersion molangVersion);
165 MCAPI
ExpressionNode(
char const* expression, ::MolangVersion molangVersion);
174 MCAPI ::MolangScriptArg
const& evalGeneric(
::RenderParams& renderParams)
const;
176 MCAPI ::std::string getExpressionString()
const;
179 MCAPI
bool hasVariableAssignments()
const;
182 MCAPI ::MolangCompileResult link();
192 MCAPI ::ExpressionNode& operator=(
float value);
198 replaceArrayVariables(::std::unordered_map<::HashedString, ::ExpressionNode>& dataMap,
bool compileProgram);
216 MCAPI static ::std::function<
218 queryFunctionAccessorFromString(
220 ::MolangVersion molangVersion,
221 ::MolangQueryFunctionReturnType& functionReturnType,
222 bool missingIsOkay_returnNullIfSo
226 MCAPI static ::MolangQueryFunction& registerQueryFunction(
227 ::std::string_view queryFunctionName,
229 ::std::string_view documentation,
230 ::MolangQueryFunctionReturnType returnType,
232 uint64 minArgumentCount,
233 uint64 maxArgumentCount,
234 ::std::initializer_list<int>
const& experiments
238 unregisterQueryFunction(::std::string
const& queryFunctionName,
::HashedString querySetIdentifier);
245 _defaultUnknownQueryFunction();
248 mGetParticleTintFunc();
250 MCAPI static ::std::unordered_multimap<::HashedString, ::MolangQueryFunction>& mQueryFunctionAccessors();
252 MCAPI static ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString>>& mQuerySets();
274 MCAPI
void* $ctor(::std::string
const& expression, ::MolangVersion molangVersion);
277 MCAPI
void* $ctor(
char const* expression, ::MolangVersion molangVersion);
Definition MolangClientTextureSet.h:18