41 struct ResourceReference {
56 ResourceReference& operator=(ResourceReference
const&);
57 ResourceReference(ResourceReference
const&);
69 MCNAPI_C
void* $ctor();
81 MCNAPI_C
void $dtor();
89 using MissingResourceSet =
92 using ResourceTable = ::std::unordered_map<::HashedString, ::ExpressionNode::ResourceReference>;
97 ::ll::TypedStorage<8, 16, ::std::variant<::std::unique_ptr<::Molang::details::IComplexExpression>,
float>> mImpl;
106 std::string
const& expression,
107 ::MolangVersion molangVersion,
108 ::gsl::span<::HashedString const> querySetID
110 : ExpressionNode(expression, molangVersion) {
112 config.mVersion = molangVersion;
113 config.mAllowedQuerySets = querySetID;
114 parse(expression, config);
124 MCAPI
ExpressionNode(::std::string
const& expression, ::MolangVersion molangVersion);
132 MCAPI ::MolangScriptArg
const& evalGeneric(
::RenderParams& renderParams)
const;
134 MCAPI ::std::string getExpressionString()
const;
136 MCAPI_C
bool hasVariableAssignments()
const;
138 MCAPI ::MolangCompileResult link();
144 MCAPI ::ExpressionNode& operator=(
float value);
149 replaceArrayVariables(::std::unordered_map<::HashedString, ::ExpressionNode>& dataMap,
bool compileProgram);
163 MCAPI_C static ::std::function<
165 queryFunctionAccessorFromString(
167 ::MolangVersion molangVersion,
168 ::MolangQueryFunctionReturnType& functionReturnType,
169 bool missingIsOkay_returnNullIfSo
172 MCAPI static ::MolangQueryFunction& registerQueryFunction(
173 ::std::string_view queryFunctionName,
175 ::std::string_view documentation,
176 ::MolangQueryFunctionReturnType returnType,
178 uint64 minArgumentCount,
179 uint64 maxArgumentCount,
180 ::std::initializer_list<int>
const& experiments
184 unregisterQueryFunction(::std::string
const& queryFunctionName,
::HashedString querySetIdentifier);
191 _defaultUnknownQueryFunction();
194 mGetParticleTintFunc();
196 MCAPI static ::std::unordered_multimap<::HashedString, ::MolangQueryFunction>& mQueryFunctionAccessors();
198 MCAPI static ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString>>& mQuerySets();
204 MCAPI_C
void* $ctor();
212 MCAPI
void* $ctor(::std::string
const& expression, ::MolangVersion molangVersion);
214 MCAPI_C
void* $ctor(
char const* expression, ::MolangVersion molangVersion);
Definition MolangClientTextureSet.h:18