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

Classes

struct  ResourceReference
 

Public Types

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

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 (float value)
 
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::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 void * $ctor (::ExpressionNode &&)
 
MCAPI void * $ctor (::ExpressionNode const &rhs)
 
MCAPI void * $ctor (float value)
 
MCAPI void * $ctor (::std::string 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 ()
 
static MCAPI void initializeMolang ()
 
static MCAPI ::std::function< ::MolangScriptArg const &(::RenderParams &, ::std::vector<::ExpressionNode > const &)> const * queryFunctionAccessorFromString (::std::string 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
 

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