LeviLamina
Loading...
Searching...
No Matches
ExpressionNode Class Reference

Classes

struct  ResourceReference

Public Types

using GetParticleTintFunc = ::std::function<::mce::Color(::Block const&, ::BlockSource&, ::BlockPos const&)>
using IComplexExpression = ::Molang::details::IComplexExpression
using MissingResourceSet
using ResourceTable = ::std::unordered_map<::HashedString, ::ExpressionNode::ResourceReference>

Public Member Functions

 ExpressionNode (std::string const &expression, ::MolangVersion molangVersion, ::gsl::span<::HashedString const > querySetID)
MCAPI ExpressionNode (::ExpressionNode &&)
MCAPI ExpressionNode (::ExpressionNode const &rhs)
MCAPI ExpressionNode (::std::string const &expression, ::MolangVersion molangVersion)
MCAPI ExpressionNode (::Json::Value const &value, ::MolangParseConfig const &config)
MCAPI ExpressionNode (::MolangScriptArg const &value, ::ExpressionOp op)
MCAPI float evalAsFloat (::RenderParams &renderParams) const
MCAPI::MolangScriptArg const & evalGeneric (::RenderParams &renderParams) const
MCAPI::std::string getExpressionString () const
MCAPI_C bool hasVariableAssignments () const
MCAPI::MolangCompileResult link ()
MCAPI::ExpressionNode & operator= (::ExpressionNode &&)
MCAPI::ExpressionNode & operator= (::ExpressionNode const &rhs)
MCAPI::ExpressionNode & operator= (float value)
MCAPI bool parse (::std::string_view expression, ::MolangParseConfig const &config)
MCAPI_C void replaceArrayVariables (::std::unordered_map<::HashedString, ::ExpressionNode > &dataMap, bool compileProgram)
MCAPI_C void * $ctor ()
MCAPI void * $ctor (::ExpressionNode &&)
MCAPI_C void * $ctor (::MaterialVariants const &materialVariants)
MCAPI void * $ctor (::ExpressionNode const &rhs)
MCAPI void * $ctor (::std::string const &expression, ::MolangVersion molangVersion)
MCAPI_C void * $ctor (char const *expression, ::MolangVersion molangVersion)
MCAPI void * $ctor (::Json::Value const &value, ::MolangParseConfig const &config)
MCAPI void * $ctor (::MolangScriptArg const &value, ::ExpressionOp op)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI bool _initializeMolangQueries (::ExpressionQueries &&queries)
static MCAPI void bindType (::cereal::ReflectionCtx &ctx)
static MCAPI_S void initializeMolang (::ExpressionQueries &&queries)
static MCAPI_C ::std::function< ::MolangScriptArg const &(::RenderParams &, ::std::vector<::ExpressionNode > const &)> const * queryFunctionAccessorFromString (::HashedString const &functionName, ::MolangVersion molangVersion, ::MolangQueryFunctionReturnType &functionReturnType, bool missingIsOkay_returnNullIfSo)
static MCAPI ::MolangQueryFunctionregisterQueryFunction (::std::string_view queryFunctionName, ::std::function<::MolangScriptArg const &(::RenderParams &, ::std::vector<::ExpressionNode > const &)> accessor, ::std::string_view documentation, ::MolangQueryFunctionReturnType returnType, ::HashedString querySetIdentifier, uint64 minArgumentCount, uint64 maxArgumentCount, ::std::initializer_list< int > const &experiments)
static MCAPI void unregisterQueryFunction (::std::string const &queryFunctionName, ::HashedString querySetIdentifier)
static MCAPI ::std::function<::MolangScriptArg const &(::RenderParams &, ::std::vector<::ExpressionNode > const &)> & _defaultUnknownQueryFunction ()
static MCAPI ::std::function<::mce::Color(::Block const &, ::BlockSource &, ::BlockPos const &)> & mGetParticleTintFunc ()
static MCAPI ::std::unordered_multimap<::HashedString, ::MolangQueryFunction > & mQueryFunctionAccessors ()
static MCAPI ::std::unordered_map<::HashedString, ::std::unordered_set<::HashedString > > & mQuerySets ()

Public Attributes

::ll::TypedStorage< 8, 16, ::std::variant<::std::unique_ptr<::Molang::details::IComplexExpression >, float > > mImpl

Member Typedef Documentation

◆ MissingResourceSet

using ExpressionNode::MissingResourceSet
Initial value:
Definition flat_set.h:8

The documentation for this class was generated from the following file: