Cocos2d-x  v4
ScriptEvent Struct Reference

The ScriptEvent wrapper the different script data corresponding to the ScriptEventType in to the unified struct. More...

Public Member Functions

 ScriptEvent (ScriptEventType inType, void *inData)
 Constructor of ScriptEvent. More...
 

Public Attributes

ScriptEventType type
 The specific type of ScriptEventType. More...
 
void * data
 Pointer point to the different data. More...
 

Detailed Description

The ScriptEvent wrapper the different script data corresponding to the ScriptEventType in to the unified struct.

when the corresponding event is triggered, we could call the sendEvent of ScriptEngineProtocol to handle the event. @js NA

Constructor & Destructor Documentation

◆ ScriptEvent()

ScriptEvent ( ScriptEventType  inType,
void *  inData 
)
inline

Constructor of ScriptEvent.

@lua NA @js NA

Member Data Documentation

◆ type

The specific type of ScriptEventType.

@lua NA @js NA

◆ data

void* data

Pointer point to the different data.

@lua NA @js NA


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