axmol/cocos/scripting/lua/bindings/LuaSkeletonAnimation.h

28 lines
749 B
C
Raw Normal View History

/*
* LuaSkeletonAnimation.h
*
* Created on: 2013?11?21?
* Author: edwardzhou
*/
#ifndef LUASKELETONANIMATION_H_
#define LUASKELETONANIMATION_H_
#include "spine/spine-cocos2dx.h"
#define SCRIPT_SPINE_EVENT 10001
class LuaSkeletonAnimation: public spine::CCSkeletonAnimation {
private:
void animationStateEvent (spine::CCSkeletonAnimation* node, int trackIndex, spEventType type, spEvent* event, int loopCount);
public:
static LuaSkeletonAnimation* createWithFile (const char* skeletonDataFile, const char* atlasFile, float scale = 1);
LuaSkeletonAnimation (const char* skeletonDataFile, const char* atlasFile, float scale = 1);
//LuaSkeletonAnimation();
virtual ~LuaSkeletonAnimation();
};
#endif /* LUASKELETONANIMATION_H_ */