2013-08-22 10:16:57 +08:00
|
|
|
#ifndef COCOS2DX_SCRIPT_LUA_COCOS2DX_SUPPORT_LUA_COCOS2DX_EXTENSION_MANUAL_H
|
|
|
|
#define COCOS2DX_SCRIPT_LUA_COCOS2DX_SUPPORT_LUA_COCOS2DX_EXTENSION_MANUAL_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#include "tolua++.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-09-04 22:17:26 +08:00
|
|
|
#include "LuaScriptHandlerMgr.h"
|
|
|
|
|
2013-08-22 10:16:57 +08:00
|
|
|
TOLUA_API int register_all_cocos2dx_extension_manual(lua_State* tolua_S);
|
|
|
|
TOLUA_API int register_cocos2dx_extension_CCBProxy(lua_State* tolua_S);
|
|
|
|
|
2013-09-04 14:02:22 +08:00
|
|
|
struct LuaTableViewEventData
|
|
|
|
{
|
2013-09-04 22:17:26 +08:00
|
|
|
cocos2d::ScriptHandlerMgr::HandlerType handlerType;
|
2013-09-04 14:02:22 +08:00
|
|
|
void* value;
|
|
|
|
|
|
|
|
// Constructor
|
2013-09-04 22:17:26 +08:00
|
|
|
LuaTableViewEventData(cocos2d::ScriptHandlerMgr::HandlerType _handleType,void* _value = nullptr)
|
|
|
|
: handlerType(_handleType),value(_value)
|
2013-09-04 14:02:22 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-08-22 10:16:57 +08:00
|
|
|
#endif // #ifndef COCOS2DX_SCRIPT_LUA_COCOS2DX_SUPPORT_LUA_COCOS2DX_EXTENSION_MANUAL_H
|