Cocos2d-x  4.0.0
Public Member Functions | Public Attributes | List of all members
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.
 

Public Attributes

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

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. NA

Constructor & Destructor Documentation

ScriptEvent ( ScriptEventType  inType,
void *  inData 
)
inline

Constructor of ScriptEvent.

NA NA

Member Data Documentation

The specific type of ScriptEventType.

NA NA

void* data

Pointer point to the different data.

NA NA


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