Cocos2d-x  v4
BasicScriptData 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

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

Public Attributes

void * nativeObject
 For Lua, nativeobject is used to get handler corresponding to the Lua function. More...
 
void * value
 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

◆ BasicScriptData()

BasicScriptData ( void *  inObject,
void *  inValue = 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

◆ value

void* value

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: