Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CommandOutput Class Reference

Public Member Functions

void error (std::string_view msgId, std::vector<::CommandOutputParameter > const &params={})
template<class First, class... Args>
void success (fmt::format_string< First, Args... > fmt, First &&_args, Args &&... args)
template<class First, class... Args>
void error (fmt::format_string< First, Args... > fmt, First &&_args, Args &&... args)
MCAPI CommandOutput (::CommandOutput const &rhs)
MCAPI CommandOutput (::CommandOutputType type)
MCAPI void addMessage (::std::string_view msgId, ::std::vector<::CommandOutputParameter > const &params, ::CommandOutputMessageType type)
MCAPI void addToResultList (::std::string const &key, ::std::string const &element)
MCAPI void addToResultList (::std::string const &key, ::Actor const &element)
MCAPI::CommandOutput & operator= (::CommandOutput const &rhs)
MCAPI void success (::std::string_view msgId, ::std::vector<::CommandOutputParameter > const &params={})
MCAPI void * $ctor (::CommandOutput const &rhs)
MCAPI void * $ctor (::CommandOutputType type)

Static Public Member Functions

static MCAPI ::std::optional<::std::string > _mDataGetter (::CommandOutput const &payload)
static MCAPI void _mDataSetter (::CommandOutput &payload, ::std::optional<::std::string > jsonString)

Public Attributes

CommandOutputType mType
std::unique_ptr< CommandPropertyBag > mBag
std::vector< CommandOutputMessage > mMessages
uint mSuccessCount
bool mHasPlayerText

Member Function Documentation

◆ addToResultList() [1/2]

MCAPI void CommandOutput::addToResultList ( ::std::string const & key,
::std::string const & element )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addToResultList() [2/2]

MCAPI void CommandOutput::addToResultList ( ::std::string const & key,
::Actor const & element )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _mDataGetter()

MCAPI ::std::optional<::std::string > CommandOutput::_mDataGetter ( ::CommandOutput const & payload)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _mDataSetter()

MCAPI void CommandOutput::_mDataSetter ( ::CommandOutput & payload,
::std::optional<::std::string > jsonString )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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