Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
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.
 
var data
 Pointer point to the different data.
 
local 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.


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