2012-06-14 05:19:13 +08:00
|
|
|
#ifndef _CCB_CCBREADER_H_
|
|
|
|
#define _CCB_CCBREADER_H_
|
2012-05-03 11:58:53 +08:00
|
|
|
|
2014-08-29 15:39:52 +08:00
|
|
|
#include <set>
|
2012-09-17 14:27:17 +08:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2014-04-27 01:11:22 +08:00
|
|
|
#include "2d/CCNode.h"
|
2014-04-27 01:35:57 +08:00
|
|
|
#include "base/CCData.h"
|
|
|
|
#include "base/CCMap.h"
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "editor-support/cocosbuilder/CCBSequence.h"
|
2013-10-15 18:00:03 +08:00
|
|
|
#include "extensions/GUI/CCControlExtension/CCControl.h"
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "editor-support/cocosbuilder/CCBAnimationManager.h"
|
2012-05-03 14:43:27 +08:00
|
|
|
|
2015-10-03 09:04:31 +08:00
|
|
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
|
|
|
#ifdef ABSOLUTE
|
|
|
|
#undef ABSOLUTE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2012-06-15 05:23:53 +08:00
|
|
|
#define CCB_STATIC_NEW_AUTORELEASE_OBJECT_METHOD(T, METHOD) static T * METHOD() { \
|
2014-08-28 07:31:57 +08:00
|
|
|
T * ptr = new (std::nothrow) T(); \
|
2012-06-15 09:16:54 +08:00
|
|
|
if(ptr != NULL) { \
|
|
|
|
ptr->autorelease(); \
|
|
|
|
return ptr; \
|
|
|
|
} \
|
|
|
|
CC_SAFE_DELETE(ptr); \
|
|
|
|
return NULL; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(T, METHOD) static T * METHOD() { \
|
2014-08-28 07:31:57 +08:00
|
|
|
T * ptr = new (std::nothrow) T(); \
|
2012-06-15 09:16:54 +08:00
|
|
|
if(ptr != NULL && ptr->init()) { \
|
|
|
|
ptr->autorelease(); \
|
|
|
|
return ptr; \
|
|
|
|
} \
|
|
|
|
CC_SAFE_DELETE(ptr); \
|
|
|
|
return NULL; \
|
2012-06-14 05:19:13 +08:00
|
|
|
}
|
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
#define CCB_VERSION 5
|
2012-09-24 11:47:33 +08:00
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
namespace cocosbuilder {
|
2012-05-03 11:58:53 +08:00
|
|
|
|
2012-06-20 18:09:11 +08:00
|
|
|
/**
|
|
|
|
* @addtogroup cocosbuilder
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
class CCBFile : public cocos2d::Node
|
2012-09-17 14:27:17 +08:00
|
|
|
{
|
|
|
|
private:
|
2013-10-15 18:00:03 +08:00
|
|
|
cocos2d::Node *_CCBFileNode;
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
CCBFile();
|
|
|
|
|
|
|
|
static CCBFile* create();
|
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
cocos2d::Node* getCCBFileNode();
|
2013-06-20 14:15:53 +08:00
|
|
|
void setCCBFileNode(Node *pNode); // retain
|
2012-09-17 14:27:17 +08:00
|
|
|
};
|
|
|
|
|
2012-06-14 05:19:13 +08:00
|
|
|
/* Forward declaration. */
|
2013-06-20 14:15:53 +08:00
|
|
|
class NodeLoader;
|
|
|
|
class NodeLoaderLibrary;
|
|
|
|
class NodeLoaderListener;
|
2012-06-14 05:19:13 +08:00
|
|
|
class CCBMemberVariableAssigner;
|
|
|
|
class CCBSelectorResolver;
|
2012-09-17 14:27:17 +08:00
|
|
|
class CCBAnimationManager;
|
|
|
|
class CCBKeyframe;
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2012-05-07 18:14:15 +08:00
|
|
|
/**
|
2012-06-14 05:19:13 +08:00
|
|
|
* @brief Parse CCBI file which is generated by CocosBuilder
|
2012-05-07 18:14:15 +08:00
|
|
|
*/
|
2014-08-27 10:18:44 +08:00
|
|
|
class CC_DLL CCBReader : public cocos2d::Ref
|
2012-09-17 14:27:17 +08:00
|
|
|
{
|
2013-07-27 21:44:49 +08:00
|
|
|
public:
|
|
|
|
enum class PropertyType {
|
|
|
|
POSITION = 0,
|
|
|
|
SIZE,
|
|
|
|
POINT,
|
|
|
|
POINT_LOCK,
|
|
|
|
SCALE_LOCK,
|
|
|
|
DEGREES,
|
|
|
|
INTEGER,
|
|
|
|
FLOAT,
|
|
|
|
FLOAT_VAR,
|
|
|
|
CHECK,
|
|
|
|
SPRITEFRAME,
|
|
|
|
TEXTURE,
|
|
|
|
BYTE,
|
|
|
|
COLOR3,
|
|
|
|
COLOR4F_VAR,
|
|
|
|
FLIP,
|
|
|
|
BLEND_MODE,
|
|
|
|
FNT_FILE,
|
|
|
|
TEXT,
|
|
|
|
FONT_TTF,
|
|
|
|
INTEGER_LABELED,
|
|
|
|
BLOCK,
|
|
|
|
ANIMATION,
|
|
|
|
CCB_FILE,
|
|
|
|
STRING,
|
|
|
|
BLOCK_CONTROL,
|
|
|
|
FLOAT_SCALE,
|
|
|
|
FLOAT_XY
|
|
|
|
};
|
2012-11-02 08:52:07 +08:00
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
enum class FloatType {
|
|
|
|
_0 = 0,
|
|
|
|
_1,
|
|
|
|
MINUS1,
|
|
|
|
_05,
|
|
|
|
INTEGER,
|
|
|
|
FULL
|
|
|
|
};
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
enum class PlatformType {
|
|
|
|
ALL = 0,
|
|
|
|
IOS,
|
|
|
|
MAC
|
|
|
|
};
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
enum class TargetType {
|
|
|
|
NONE = 0,
|
|
|
|
DOCUMENT_ROOT = 1,
|
|
|
|
OWNER = 2,
|
|
|
|
};
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
enum class PositionType
|
|
|
|
{
|
|
|
|
RELATIVE_BOTTOM_LEFT,
|
|
|
|
RELATIVE_TOP_LEFT,
|
|
|
|
RELATIVE_TOP_RIGHT,
|
|
|
|
RELATIVE_BOTTOM_RIGHT,
|
|
|
|
PERCENT,
|
|
|
|
MULTIPLY_RESOLUTION,
|
|
|
|
};
|
2014-03-22 21:12:32 +08:00
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
enum class SizeType
|
|
|
|
{
|
|
|
|
ABSOLUTE,
|
|
|
|
PERCENT,
|
|
|
|
RELATIVE_CONTAINER,
|
|
|
|
HORIZONTAL_PERCENT,
|
|
|
|
VERTICAL_PERCENT,
|
|
|
|
MULTIPLY_RESOLUTION,
|
|
|
|
};
|
2012-11-02 08:52:07 +08:00
|
|
|
|
2013-07-27 21:44:49 +08:00
|
|
|
enum class ScaleType
|
|
|
|
{
|
|
|
|
ABSOLUTE,
|
|
|
|
MULTIPLY_RESOLUTION
|
|
|
|
};
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-06-20 14:15:53 +08:00
|
|
|
CCBReader(NodeLoaderLibrary *pNodeLoaderLibrary, CCBMemberVariableAssigner *pCCBMemberVariableAssigner = NULL, CCBSelectorResolver *pCCBSelectorResolver = NULL, NodeLoaderListener *pNodeLoaderListener = NULL);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-07-27 21:44:49 +08:00
|
|
|
CCBReader(CCBReader *ccbReader);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
virtual ~CCBReader();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
CCBReader();
|
2012-11-26 21:51:05 +08:00
|
|
|
|
2013-07-27 22:31:57 +08:00
|
|
|
void setCCBRootPath(const char* ccbRootPath);
|
2012-12-03 18:27:50 +08:00
|
|
|
const std::string& getCCBRootPath() const;
|
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
cocos2d::Node* readNodeGraphFromFile(const char *pCCBFileName);
|
2014-02-20 10:53:49 +08:00
|
|
|
cocos2d::Node* readNodeGraphFromFile(const char *pCCBFileName, cocos2d::Ref *pOwner);
|
|
|
|
cocos2d::Node* readNodeGraphFromFile(const char *pCCBFileName, cocos2d::Ref *pOwner, const cocos2d::Size &parentSize);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2014-02-20 10:53:49 +08:00
|
|
|
cocos2d::Node* readNodeGraphFromData(std::shared_ptr<cocos2d::Data> data, cocos2d::Ref *pOwner, const cocos2d::Size &parentSize);
|
2012-11-26 21:51:05 +08:00
|
|
|
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
@lua NA
|
|
|
|
*/
|
2013-10-15 18:00:03 +08:00
|
|
|
cocos2d::Scene* createSceneWithNodeGraphFromFile(const char *pCCBFileName);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
@lua NA
|
|
|
|
*/
|
2014-02-20 10:53:49 +08:00
|
|
|
cocos2d::Scene* createSceneWithNodeGraphFromFile(const char *pCCBFileName, cocos2d::Ref *pOwner);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
@lua NA
|
|
|
|
*/
|
2014-02-20 10:53:49 +08:00
|
|
|
cocos2d::Scene* createSceneWithNodeGraphFromFile(const char *pCCBFileName, cocos2d::Ref *pOwner, const cocos2d::Size &parentSize);
|
2013-09-13 11:41:20 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
CCBMemberVariableAssigner* getCCBMemberVariableAssigner();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
CCBSelectorResolver* getCCBSelectorResolver();
|
|
|
|
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js getActionManager
|
|
|
|
* @lua getActionManager
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
CCBAnimationManager* getAnimationManager();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js setActionManager
|
|
|
|
* @lua setActionManager
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
void setAnimationManager(CCBAnimationManager *pAnimationManager);
|
|
|
|
|
2013-09-13 11:41:20 +08:00
|
|
|
/** Used in NodeLoader::parseProperties()
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-18 17:04:10 +08:00
|
|
|
std::set<std::string>* getAnimatedProperties();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
std::set<std::string>& getLoadedSpriteSheet();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2014-02-20 10:53:49 +08:00
|
|
|
cocos2d::Ref* getOwner();
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-09-13 11:41:20 +08:00
|
|
|
/* Utility methods.
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-11-26 21:51:05 +08:00
|
|
|
static std::string lastPathComponent(const char* pString);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-11-26 21:51:05 +08:00
|
|
|
static std::string deletePathExtension(const char* pString);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-06-20 14:15:53 +08:00
|
|
|
static std::string toLowerCase(const char* pString);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-11-26 21:51:05 +08:00
|
|
|
static bool endsWith(const char* pString, const char* pEnding);
|
2012-09-17 14:27:17 +08:00
|
|
|
|
2013-09-13 11:41:20 +08:00
|
|
|
/* Parse methods.
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
int readInt(bool pSigned);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
unsigned char readByte();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
bool readBool();
|
2012-11-26 21:51:05 +08:00
|
|
|
std::string readUTF8();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
float readFloat();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-11-26 21:51:05 +08:00
|
|
|
std::string readCachedString();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-11-01 02:06:56 +08:00
|
|
|
bool isJSControlled();
|
|
|
|
|
2013-03-15 08:43:56 +08:00
|
|
|
bool readCallbackKeyframesForSeq(CCBSequence* seq);
|
|
|
|
bool readSoundKeyframesForSeq(CCBSequence* seq);
|
|
|
|
|
2013-12-08 22:17:54 +08:00
|
|
|
cocos2d::ValueVector getOwnerCallbackNames();
|
|
|
|
cocos2d::Vector<cocos2d::Node*>& getOwnerCallbackNodes();
|
|
|
|
cocos2d::ValueVector& getOwnerCallbackControlEvents();
|
2013-08-12 11:18:07 +08:00
|
|
|
|
2013-12-08 22:17:54 +08:00
|
|
|
cocos2d::ValueVector getOwnerOutletNames();
|
|
|
|
cocos2d::Vector<cocos2d::Node*>& getOwnerOutletNodes();
|
|
|
|
cocos2d::Vector<cocos2d::Node*>& getNodesWithAnimationManagers();
|
|
|
|
cocos2d::Vector<CCBAnimationManager*>& getAnimationManagersForNodes();
|
2013-12-10 13:42:55 +08:00
|
|
|
|
|
|
|
typedef cocos2d::Map<cocos2d::Node*, CCBAnimationManager*> CCBAnimationManagerMap;
|
|
|
|
typedef std::shared_ptr<CCBAnimationManagerMap> CCBAnimationManagerMapPtr;
|
|
|
|
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-12-10 13:42:55 +08:00
|
|
|
CCBAnimationManagerMapPtr getAnimationManagers();
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-12-10 13:45:15 +08:00
|
|
|
void setAnimationManagers(CCBAnimationManagerMapPtr x);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-08-12 11:18:07 +08:00
|
|
|
void addOwnerCallbackName(const std::string& name);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-10-15 18:00:03 +08:00
|
|
|
void addOwnerCallbackNode(cocos2d::Node *node);
|
|
|
|
void addOwnerCallbackControlEvents(cocos2d::extension::Control::EventType type);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-08-12 11:18:07 +08:00
|
|
|
void addDocumentCallbackName(const std::string& name);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-10-15 18:00:03 +08:00
|
|
|
void addDocumentCallbackNode(cocos2d::Node *node);
|
|
|
|
void addDocumentCallbackControlEvents(cocos2d::extension::Control::EventType eventType);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2012-09-17 14:27:17 +08:00
|
|
|
static float getResolutionScale();
|
2013-04-23 10:34:16 +08:00
|
|
|
static void setResolutionScale(float scale);
|
2013-09-13 11:41:20 +08:00
|
|
|
/**
|
|
|
|
* @js NA
|
|
|
|
* @lua NA
|
|
|
|
*/
|
2013-12-10 13:42:55 +08:00
|
|
|
cocos2d::Node* readFileWithCleanUp(bool bCleanUp, CCBAnimationManagerMapPtr am);
|
2013-06-05 15:17:00 +08:00
|
|
|
|
|
|
|
void addOwnerOutletName(std::string name);
|
2013-10-15 18:00:03 +08:00
|
|
|
void addOwnerOutletNode(cocos2d::Node *node);
|
2012-09-19 08:38:33 +08:00
|
|
|
|
2012-09-17 14:27:17 +08:00
|
|
|
private:
|
2013-10-15 18:00:03 +08:00
|
|
|
void cleanUpNodeGraph(cocos2d::Node *pNode);
|
2012-09-17 14:27:17 +08:00
|
|
|
bool readSequences();
|
2013-07-27 21:44:49 +08:00
|
|
|
CCBKeyframe* readKeyframe(PropertyType type);
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
bool readHeader();
|
|
|
|
bool readStringCache();
|
2012-11-26 21:51:05 +08:00
|
|
|
//void readStringCacheEntry();
|
2013-10-15 18:00:03 +08:00
|
|
|
cocos2d::Node* readNodeGraph();
|
|
|
|
cocos2d::Node* readNodeGraph(cocos2d::Node * pParent);
|
2012-09-17 14:27:17 +08:00
|
|
|
|
|
|
|
bool getBit();
|
|
|
|
void alignBits();
|
2012-09-19 08:38:33 +08:00
|
|
|
|
2013-08-12 11:18:07 +08:00
|
|
|
bool init();
|
|
|
|
|
2013-06-20 14:15:53 +08:00
|
|
|
friend class NodeLoader;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
|
|
|
private:
|
2013-12-18 14:58:17 +08:00
|
|
|
std::shared_ptr<cocos2d::Data> _data;
|
2013-07-27 22:31:57 +08:00
|
|
|
unsigned char *_bytes;
|
|
|
|
int _currentByte;
|
|
|
|
int _currentBit;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
2013-07-27 22:31:57 +08:00
|
|
|
std::vector<std::string> _stringCache;
|
|
|
|
std::set<std::string> _loadedSpriteSheets;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
cocos2d::Ref *_owner;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
2013-12-10 13:45:15 +08:00
|
|
|
CCBAnimationManager* _animationManager; //retain
|
|
|
|
CCBAnimationManagerMapPtr _animationManagers;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
2013-07-27 22:31:57 +08:00
|
|
|
std::set<std::string> *_animatedProps;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
2013-07-27 22:31:57 +08:00
|
|
|
NodeLoaderLibrary *_nodeLoaderLibrary;
|
|
|
|
NodeLoaderListener *_nodeLoaderListener;
|
|
|
|
CCBMemberVariableAssigner *_CCBMemberVariableAssigner;
|
|
|
|
CCBSelectorResolver *_CCBSelectorResolver;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
2013-07-27 22:31:57 +08:00
|
|
|
std::vector<std::string> _ownerOutletNames;
|
2013-12-08 22:17:54 +08:00
|
|
|
cocos2d::Vector<cocos2d::Node*> _ownerOutletNodes;
|
|
|
|
cocos2d::Vector<cocos2d::Node*> _nodesWithAnimationManagers;
|
|
|
|
cocos2d::Vector<CCBAnimationManager*> _animationManagersForNodes;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
2013-07-27 22:31:57 +08:00
|
|
|
std::vector<std::string> _ownerCallbackNames;
|
2013-12-08 22:17:54 +08:00
|
|
|
cocos2d::Vector<cocos2d::Node*> _ownerCallbackNodes;
|
|
|
|
cocos2d::ValueVector _ownerOwnerCallbackControlEvents;
|
2013-07-27 22:31:57 +08:00
|
|
|
std::string _CCBRootPath;
|
2013-07-27 21:44:49 +08:00
|
|
|
|
|
|
|
bool _jsControlled;
|
2012-06-14 05:19:13 +08:00
|
|
|
};
|
2012-05-03 11:58:53 +08:00
|
|
|
|
2012-06-20 18:09:11 +08:00
|
|
|
// end of effects group
|
|
|
|
/// @}
|
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
}
|
2012-05-03 14:43:27 +08:00
|
|
|
|
2012-09-19 08:38:33 +08:00
|
|
|
#endif
|