format and manage armature configuration and armature animation More...
#include <CCArmatureDataManager.h>
Public Member Functions | |
| virtual bool | init () |
| Init ArmatureDataManager. More... | |
| void | addArmatureData (const std::string &id, ArmatureData *armatureData, const std::string &configFilePath="") |
| Add armature data. More... | |
| ArmatureData * | getArmatureData (const std::string &id) |
| get armature data More... | |
| void | removeArmatureData (const std::string &id) |
| remove armature data More... | |
| var | removeArmatureData ( var id) |
| remove armature data More... | |
| local | removeArmatureData ( local id) |
| remove armature data More... | |
| void | addAnimationData (const std::string &id, AnimationData *animationData, const std::string &configFilePath="") |
| add animation data More... | |
| var | addAnimationData ( var id, var animationData) |
| add animation data More... | |
| local | addAnimationData ( local id, local animationData) |
| add animation data More... | |
| AnimationData * | getAnimationData (const std::string &id) |
| get animation data from _animationDatas(Dictionary) More... | |
| void | removeAnimationData (const std::string &id) |
| remove animation data More... | |
| void | addTextureData (const std::string &id, TextureData *textureData, const std::string &configFilePath="") |
| add texture data More... | |
| TextureData * | getTextureData (const std::string &id) |
| get texture data More... | |
| void | removeTextureData (const std::string &id) |
| remove texture data More... | |
| local | removeTextureData ( local id) |
| remove texture data More... | |
| void | addArmatureFileInfo (const std::string &configFilePath) |
| Add ArmatureFileInfo, it is managed by ArmatureDataManager. More... | |
| void | addArmatureFileInfoAsync (const std::string &configFilePath, cocos2d::Ref *target, cocos2d::SEL_SCHEDULE selector) |
| Add ArmatureFileInfo, it is managed by ArmatureDataManager. More... | |
| var | addArmatureFileInfoAsync ( var configFilePath, var target, var selector) |
| Add ArmatureFileInfo, it is managed by ArmatureDataManager. More... | |
| local | addArmatureFileInfoAsync ( local configFilePath, local target, local selector) |
| Add ArmatureFileInfo, it is managed by ArmatureDataManager. More... | |
| void | addArmatureFileInfo (const std::string &imagePath, const std::string &plistPath, const std::string &configFilePath) |
| Add ArmatureFileInfo, it is managed by ArmatureDataManager. More... | |
| void | addArmatureFileInfoAsync (const std::string &imagePath, const std::string &plistPath, const std::string &configFilePath, cocos2d::Ref *target, cocos2d::SEL_SCHEDULE selector) |
| Add ArmatureFileInfo, it is managed by ArmatureDataManager. More... | |
| void | addSpriteFrameFromFile (const std::string &plistPath, const std::string &imagePath, const std::string &configFilePath="") |
| Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name. More... | |
| virtual void | removeArmatureFileInfo (const std::string &configFilePath) |
| bool | isAutoLoadSpriteFile () |
| Juge whether or not need auto load sprite file. More... | |
| const cocos2d::Map < std::string, ArmatureData * > & | getArmatureDatas () const |
| local | getArmatureDatas () |
| const cocos2d::Map < std::string, AnimationData * > & | getAnimationDatas () const |
| const cocos2d::Map < std::string, TextureData * > & | getTextureDatas () const |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
Static Public Member Functions | |
| static ArmatureDataManager * | sharedArmatureDataManager () |
| local | sharedArmatureDataManager () |
| static void | purge () |
| static ArmatureDataManager * | getInstance () |
| local | getInstance () |
| static void | destroyInstance () |
Protected Member Functions | |
| void | addRelativeData (const std::string &configFilePath) |
| RelativeData * | getRelativeData (const std::string &configFilePath) |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| Ref () | |
| Constructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| var | _referenceCount |
| count of references More... | |
| local | _referenceCount |
| count of references More... | |
format and manage armature configuration and armature animation
| void addAnimationData | ( | const std::string & | id, |
| AnimationData * | animationData, | ||
| const std::string & | configFilePath = "" |
||
| ) |
| var addAnimationData | ( | var | id, |
| var | animationData, | ||
| var | configFilePath = "" |
||
| ) |
| local addAnimationData | ( | local | id, |
| local | animationData, | ||
| local | configFilePath = "" |
||
| ) |
| void addArmatureData | ( | const std::string & | id, |
| ArmatureData * | armatureData, | ||
| const std::string & | configFilePath = "" |
||
| ) |
Add armature data.
| id | The id of the armature data |
| armatureData | ArmatureData * |
| var addArmatureData | ( | var | id, |
| var | armatureData, | ||
| var | configFilePath = "" |
||
| ) |
Add armature data.
| id | The id of the armature data |
| armatureData | ArmatureData * |
| local addArmatureData | ( | local | id, |
| local | armatureData, | ||
| local | configFilePath = "" |
||
| ) |
Add armature data.
| id | The id of the armature data |
| armatureData | ArmatureData * |
| void addArmatureFileInfo | ( | const std::string & | configFilePath | ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
| var addArmatureFileInfo | ( | var | configFilePath | ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
| local addArmatureFileInfo | ( | local | configFilePath | ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
| void addArmatureFileInfo | ( | const std::string & | imagePath, |
| const std::string & | plistPath, | ||
| const std::string & | configFilePath | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
| var addArmatureFileInfo | ( | var | imagePath, |
| var | plistPath, | ||
| var | configFilePath | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
| local addArmatureFileInfo | ( | local | imagePath, |
| local | plistPath, | ||
| local | configFilePath | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
| void addArmatureFileInfoAsync | ( | const std::string & | configFilePath, |
| cocos2d::Ref * | target, | ||
| cocos2d::SEL_SCHEDULE | selector | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
It will load data in a new thread
| var addArmatureFileInfoAsync | ( | var | configFilePath, |
| var | target, | ||
| var | selector | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
It will load data in a new thread
| local addArmatureFileInfoAsync | ( | local | configFilePath, |
| local | target, | ||
| local | selector | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
It will load data in a new thread
| void addArmatureFileInfoAsync | ( | const std::string & | imagePath, |
| const std::string & | plistPath, | ||
| const std::string & | configFilePath, | ||
| cocos2d::Ref * | target, | ||
| cocos2d::SEL_SCHEDULE | selector | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
It will load data in a new thread
| var addArmatureFileInfoAsync | ( | var | imagePath, |
| var | plistPath, | ||
| var | configFilePath, | ||
| var | target, | ||
| var | selector | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
It will load data in a new thread
| local addArmatureFileInfoAsync | ( | local | imagePath, |
| local | plistPath, | ||
| local | configFilePath, | ||
| local | target, | ||
| local | selector | ||
| ) |
Add ArmatureFileInfo, it is managed by ArmatureDataManager.
It will load data in a new thread
|
protected |
|
protected |
|
protected |
| void addSpriteFrameFromFile | ( | const std::string & | plistPath, |
| const std::string & | imagePath, | ||
| const std::string & | configFilePath = "" |
||
| ) |
Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name.
| var addSpriteFrameFromFile | ( | var | plistPath, |
| var | imagePath, | ||
| var | configFilePath = "" |
||
| ) |
Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name.
| local addSpriteFrameFromFile | ( | local | plistPath, |
| local | imagePath, | ||
| local | configFilePath = "" |
||
| ) |
Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name.
| void addTextureData | ( | const std::string & | id, |
| TextureData * | textureData, | ||
| const std::string & | configFilePath = "" |
||
| ) |
| var addTextureData | ( | var | id, |
| var | textureData, | ||
| var | configFilePath = "" |
||
| ) |
| local addTextureData | ( | local | id, |
| local | textureData, | ||
| local | configFilePath = "" |
||
| ) |
|
static |
|
static |
|
static |
| AnimationData* getAnimationData | ( | const std::string & | id | ) |
get animation data from _animationDatas(Dictionary)
| id | the id of the animation data you want to get |
| var getAnimationData | ( | var | id | ) |
get animation data from _animationDatas(Dictionary)
| id | the id of the animation data you want to get |
| local getAnimationData | ( | local | id | ) |
get animation data from _animationDatas(Dictionary)
| id | the id of the animation data you want to get |
| const cocos2d::Map<std::string, AnimationData*> & getAnimationDatas |
( | ) | const |
| var getAnimationDatas | ( | ) |
| local getAnimationDatas | ( | ) |
| ArmatureData* getArmatureData | ( | const std::string & | id | ) |
| var getArmatureData | ( | var | id | ) |
| local getArmatureData | ( | local | id | ) |
| const cocos2d::Map<std::string, ArmatureData*> & getArmatureDatas |
( | ) | const |
| var getArmatureDatas | ( | ) |
| local getArmatureDatas | ( | ) |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
| TextureData* getTextureData | ( | const std::string & | id | ) |
| var getTextureData | ( | var | id | ) |
| local getTextureData | ( | local | id | ) |
| const cocos2d::Map<std::string, TextureData*>& getTextureDatas |
( | ) | const |
| var getTextureDatas | ( | ) |
| local getTextureDatas | ( | ) |
|
virtual |
Init ArmatureDataManager.
|
virtual |
Init ArmatureDataManager.
|
virtual |
Init ArmatureDataManager.
| bool isAutoLoadSpriteFile | ( | ) |
Juge whether or not need auto load sprite file.
| var isAutoLoadSpriteFile | ( | ) |
Juge whether or not need auto load sprite file.
| local isAutoLoadSpriteFile | ( | ) |
Juge whether or not need auto load sprite file.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| void removeAnimationData | ( | const std::string & | id | ) |
remove animation data
| id | the id of the animation data |
| var removeAnimationData | ( | var | id | ) |
remove animation data
| id | the id of the animation data |
| local removeAnimationData | ( | local | id | ) |
remove animation data
| id | the id of the animation data |
| void removeArmatureData | ( | const std::string & | id | ) |
remove armature data
| id | the id of the armature data you want to get |
| var removeArmatureData | ( | var | id | ) |
remove armature data
| id | the id of the armature data you want to get |
| local removeArmatureData | ( | local | id | ) |
remove armature data
| id | the id of the armature data you want to get |
|
virtual |
|
virtual |
|
virtual |
| void removeTextureData | ( | const std::string & | id | ) |
remove texture data
| id | the id of the texture data you want to get |
| var removeTextureData | ( | var | id | ) |
remove texture data
| id | the id of the texture data you want to get |
| local removeTextureData | ( | local | id | ) |
remove texture data
| id | the id of the texture data you want to get |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |