3template <
typename R PL_COMMA_IF(ARG_COUNT) PL_LIST(
typename P, ARG_COUNT)>
21 PL_ASSERT_DEV(uiParam <
GetNumParameters(),
"Invalid Parameter Index {0}", uiParam);
62 P0 param0 = params[0].ConvertTo<P0>(&r);
69 P1 param1 = params[1].ConvertTo<P1>(&r);
76 P2 param2 = params[2].ConvertTo<P2>(&r);
83 P3 param3 = params[3].ConvertTo<P3>(&r);
90 P4 param4 = params[4].ConvertTo<P4>(&r);
97 P5 param5 = params[5].ConvertTo<P5>(&r);
103 m_Func(PL_LIST(param, ARG_COUNT));
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
virtual plResult Call(plArrayPtr< plVariant > params) override
Calls the function. Each parameter must be put into an plVariant and all of them are passed along as ...
Definition ConsoleFunctionHelper_inl.h:56
plUInt32 GetNumParameters() const override
Returns the number of parameters that this function takes.
Definition ConsoleFunctionHelper_inl.h:17
virtual plVariant::Type::Enum GetParameterType(plUInt32 uiParam) const override
Returns the type of the n-th parameter.
Definition ConsoleFunctionHelper_inl.h:19
Base class for all types of plConsoleFunction, represents functions to be exposed to plConsole.
Definition ConsoleFunction.h:37
virtual plUInt32 GetNumParameters() const =0
Returns the number of parameters that this function takes.
plConsoleFunctionBase(plStringView sFunctionName, plStringView sDescription)
The constructor takes the function name and description as it should appear in the console.
Definition ConsoleFunction.h:42
Implements the functionality of plConsoleFunctionBase for functions with different parameter types....
Definition ConsoleFunction.h:76
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
A helper struct to convert the C++ type, which is passed as the template argument,...
Definition VariantType.h:97
Enum
This enum describes the type of data that is currently stored inside the variant. Note that changes t...
Definition VariantType.h:26
@ Invalid
The variant stores no (valid) data at the moment.
Definition VariantType.h:27