2013-12-24 11:55:53 +08:00
|
|
|
/*
|
|
|
|
* LuaSkeletonAnimation.h
|
|
|
|
*
|
|
|
|
* Created on: 2013?11?21?
|
|
|
|
* Author: edwardzhou
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LUASKELETONANIMATION_H_
|
|
|
|
#define LUASKELETONANIMATION_H_
|
2013-12-25 17:42:59 +08:00
|
|
|
#include "spine-cocos2dx.h"
|
2013-12-24 11:55:53 +08:00
|
|
|
|
2013-12-25 16:42:40 +08:00
|
|
|
class LuaSkeletonAnimation: public spine::SkeletonAnimation {
|
2013-12-24 11:55:53 +08:00
|
|
|
private:
|
2013-12-25 16:42:40 +08:00
|
|
|
void animationStateEvent (spine::SkeletonAnimation* node, int trackIndex, spEventType type, spEvent* event, int loopCount);
|
2013-12-24 11:55:53 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
static LuaSkeletonAnimation* createWithFile (const char* skeletonDataFile, const char* atlasFile, float scale = 1);
|
|
|
|
|
|
|
|
LuaSkeletonAnimation (const char* skeletonDataFile, const char* atlasFile, float scale = 1);
|
|
|
|
|
|
|
|
virtual ~LuaSkeletonAnimation();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* LUASKELETONANIMATION_H_ */
|