Cocos2d-x  v4
ActionObjectScriptData Struct Reference

For Lua, Wrapper the script data that should be used to find the handler corresponding to the Lua function by the nativeobject pointer and store the value pointer which would be converted concretely by the different events,then the converted data would be passed into the Lua stack. More...

Public Member Functions

 ActionObjectScriptData (void *inObject, int *inValue=nullptr, void *inParam=nullptr)
 Constructor of BasicScriptData. More...
 

Public Attributes

void * nativeObject
 For Lua, nativeobject is used to get handler corresponding to the Lua function. More...
 
int * eventType
 A pointer point to the value data which event action. More...
 
void * param
 A pointer point to the value data which would be converted by different events. More...
 

Detailed Description

For Lua, Wrapper the script data that should be used to find the handler corresponding to the Lua function by the nativeobject pointer and store the value pointer which would be converted concretely by the different events,then the converted data would be passed into the Lua stack.

@js NA

Constructor & Destructor Documentation

◆ ActionObjectScriptData()

ActionObjectScriptData ( void *  inObject,
int *  inValue = nullptr,
void *  inParam = nullptr 
)
inline

Constructor of BasicScriptData.

@js NA @lua NA

Member Data Documentation

◆ nativeObject

void* nativeObject

For Lua, nativeobject is used to get handler corresponding to the Lua function.

@js NA @lua NA

◆ eventType

int* eventType

A pointer point to the value data which event action.

@js NA @lua NA

◆ param

void* param

A pointer point to the value data which would be converted by different events.

@js NA @lua NA


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