44 struct ResourceReference {
59 ResourceReference& operator=(ResourceReference
const&);
60 ResourceReference(ResourceReference
const&);
92 using MissingResourceSet =
95 using ResourceTable = ::std::unordered_map<::HashedString, ::ExpressionNode::ResourceReference>;
100 ::ll::TypedStorage<8, 16, ::std::variant<::std::unique_ptr<::Molang::details::IComplexExpression>,
float>> mImpl;
105 std::string
const& expression,
106 ::MolangVersion molangVersion,
107 ::gsl::span<::HashedString const> querySetID
109 : ExpressionNode(expression, molangVersion) {
111 config.mVersion = molangVersion;
112 config.mAllowedQuerySets = querySetID;
113 parse(expression, config);
133 MCAPI
ExpressionNode(::std::string
const& expression, ::MolangVersion molangVersion);
136 MCAPI
ExpressionNode(
char const* expression, ::MolangVersion molangVersion);
143 MCAPI ::std::optional<::MolangScriptArg> _getValueIfConstant()
const;
147 MCAPI ::MolangScriptArg
const& evalGeneric(
::RenderParams& renderParams)
const;
149 MCAPI ::std::string getExpressionString()
const;
151 MCAPI ::MolangVersion
const getMolangVersion()
const;
153 MCAPI ::ExpressionOp getOp()
const;
156 MCAPI
bool hasVariableAssignments()
const;
158 MCAPI
bool isConstantValue()
const;
161 MCAPI
bool isInitialized()
const;
163 MCAPI
bool isValid()
const;
165 MCAPI ::MolangCompileResult link();
168 MCAPI
bool needsToCompile()
const;
175 MCAPI ::ExpressionNode& operator=(
float value);
179 MCAPI
bool parse(::std::string_view expression, ::MolangVersion version, ::gsl::span<::HashedString const> idSet);
183 replaceArrayVariables(::std::unordered_map<::HashedString, ::ExpressionNode>& dataMap,
bool compileProgram);
185 MCAPI ::brstd::flat_set<::HashedString, ::std::less<::HashedString>, ::std::vector<::HashedString>>
186 replaceResourceVariables(::std::unordered_map<::HashedString, ::ExpressionNode::ResourceReference>& resourceTable);
188 MCAPI
void validateArrayVariables()
const;
197 MCAPI
static void assertMolangInitialized();
201 MCAPI static ::Experiments& getExperiments();
204 MCAPI static ::std::unordered_multimap<::HashedString, ::MolangQueryFunction>
const& getQueryFunctionAccessors();
206 MCAPI static ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString>>
const& getQuerySets();
211 MCAPI static ::std::function<
213 queryFunctionAccessorFromString(
215 ::MolangVersion molangVersion,
216 ::MolangQueryFunctionReturnType& functionReturnType,
217 bool missingIsOkay_returnNullIfSo
220 MCAPI static ::MolangQueryFunction& registerQueryFunction(
221 ::std::string_view queryFunctionName,
223 ::std::string_view documentation,
224 ::MolangQueryFunctionReturnType returnType,
226 uint64 minArgumentCount,
227 uint64 maxArgumentCount,
228 ::std::initializer_list<int>
const& experiments
231 MCAPI
static void setExperiments(
::Experiments const& experiments);
237 MCAPI static ::std::string& toLowerInPlaceExceptStrings(::std::string& expression);
241 unregisterQueryFunction(::std::string
const& queryFunctionName,
::HashedString querySetIdentifier);
248 _defaultUnknownQueryFunction();
251 mGetParticleTintFunc();
253 MCAPI static ::std::unordered_multimap<::HashedString, ::MolangQueryFunction>& mQueryFunctionAccessors();
255 MCAPI static ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString>>& mQuerySets();
261 MCFOLD
void* $ctor();
271 MCAPI
void* $ctor(
float value);
275 MCAPI
void* $ctor(::std::string
const& expression, ::MolangVersion molangVersion);
278 MCAPI
void* $ctor(
char const* expression, ::MolangVersion molangVersion);
Definition MolangClientTextureSet.h:18