2013-11-07 23:22:11 +08:00
|
|
|
#ifndef COCOS_SCRIPTING_LUA_BINDINGS_LUA_COCOS2DX_COCO_STUDIO_MANUAL_H
|
|
|
|
#define COCOS_SCRIPTING_LUA_BINDINGS_LUA_COCOS2DX_COCO_STUDIO_MANUAL_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#include "tolua++.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-11-09 22:58:40 +08:00
|
|
|
#include "CCObject.h"
|
|
|
|
|
2013-11-07 23:22:11 +08:00
|
|
|
TOLUA_API int register_all_cocos2dx_coco_studio_manual(lua_State* L);
|
|
|
|
|
2013-11-09 22:58:40 +08:00
|
|
|
struct LuaCocoStudioEventListenerData
|
|
|
|
{
|
|
|
|
cocos2d::Object* objTarget;
|
|
|
|
int eventType;
|
|
|
|
|
|
|
|
LuaCocoStudioEventListenerData(cocos2d::Object* _objTarget, int _eventType):objTarget(_objTarget),eventType(_eventType)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct LuaArmatureWrapperEventData
|
|
|
|
{
|
|
|
|
enum class LuaArmatureWrapperEventType
|
|
|
|
{
|
|
|
|
MOVEMENT_EVENT,
|
|
|
|
FRAME_EVENT,
|
|
|
|
FILE_ASYNC,
|
|
|
|
};
|
|
|
|
|
|
|
|
LuaArmatureWrapperEventType eventType;
|
|
|
|
void* eventData;
|
|
|
|
|
|
|
|
LuaArmatureWrapperEventData(LuaArmatureWrapperEventType _eventType, void* _eventData):eventType(_eventType),eventData(_eventData)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct LuaArmatureMovementEventData
|
|
|
|
{
|
|
|
|
cocos2d::Object* objTarget;
|
|
|
|
int movementType;
|
|
|
|
std::string movementID;
|
|
|
|
|
|
|
|
LuaArmatureMovementEventData(cocos2d::Object* _objTarget, int _movementType,const std::string& _movementID):objTarget(_objTarget),movementType(_movementType),movementID(_movementID)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct LuaArmatureFrameEventData
|
|
|
|
{
|
|
|
|
cocos2d::Object* objTarget;
|
|
|
|
std::string frameEventName;
|
|
|
|
int originFrameIndex;
|
|
|
|
int currentFrameIndex;
|
|
|
|
|
|
|
|
LuaArmatureFrameEventData( cocos2d::Object* _objTarget, const std::string& _frameEventName, int _originFrameIndex, int _currentFrameIndex):objTarget(_objTarget), frameEventName(_frameEventName),originFrameIndex(_originFrameIndex), currentFrameIndex(_currentFrameIndex)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-11-07 23:22:11 +08:00
|
|
|
#endif // #ifndef COCOS_SCRIPTING_LUA_BINDINGS_LUA_COCOS2DX_COCO_STUDIO_MANUAL_H
|