ezEngine  Milestone 7
ezConsoleFunction< R(EZ_LIST(P, ARG_COUNT))> Class Template Reference
Inheritance diagram for ezConsoleFunction< R(EZ_LIST(P, ARG_COUNT))>:

Public Types

typedef ezDelegate< R(EZ_LIST(P,
ARG_COUNT))> 
FUNC
 

Public Member Functions

 ezConsoleFunction (const char *szFunctionName, const char *szDescription, FUNC f)
 
ezUInt32 GetNumParameters () const override
 Returns the number of parameters that this function takes.
 
virtual ezVariant::Type::Enum GetParameterType (ezUInt32 uiParam) const override
 Returns the type of the n-th parameter.
 
virtual ezResult Call (ezArrayPtr< ezVariant > params) override
 Calls the function. Each parameter must be put into an ezVariant and all of them are passed along as an array. More...
 
- Public Member Functions inherited from ezConsoleFunctionBase
 ezConsoleFunctionBase (const char *szFunctionName, const char *szDescription)
 The constructor takes the function name and description as it should appear in the console.
 
const char * GetName () const
 Returns the name of the function as it should be exposed in the console.
 
const char * GetDescription () const
 Returns the description of the function as it should appear in the console.
 

Public Attributes

FUNC m_Func
 

Additional Inherited Members

- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 
- Protected Attributes inherited from ezEnumerable< ezConsoleFunctionBase >
ezEnumerablem_pNextInstance
 

Member Function Documentation

template<typename R EZ_COMMA_IF>
virtual ezResult ezConsoleFunction< R(EZ_LIST(P, ARG_COUNT))>::Call ( ezArrayPtr< ezVariant params)
inlineoverridevirtual

Calls the function. Each parameter must be put into an ezVariant and all of them are passed along as an array.

Returns EZ_FAILURE, if the number of parameters did not match, or any parameter was not convertible to the actual type that the function expects.

Implements ezConsoleFunctionBase.


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