#include <CCDataReaderHelper.h>
Public Member Functions | |
| DataReaderHelper () | |
| ctor () | |
| ~DataReaderHelper () | |
| void | addDataFromFile (const char *filePath) |
| void | addDataFromFileAsync (const char *filePath, Object *target, SEL_SCHEDULE selector) |
| void | addDataAsyncCallBack (float dt) |
Static Public Member Functions | |
| static CC_DEPRECATED_ATTRIBUTE DataReaderHelper * | sharedDataReaderHelper () |
| local | sharedDataReaderHelper () |
| static DataReaderHelper * | getInstance () |
| local | getInstance () |
| static void | setPositionReadScale (float scale) |
| Scale the position data, used for multiresolution adapter It won't effect the data already read. More... | |
| local | setPositionReadScale ( local scale) |
| Scale the position data, used for multiresolution adapter It won't effect the data already read. More... | |
| static float | getPositionReadScale () |
| var | getPositionReadScale () |
| local | getPositionReadScale () |
| static void | purge () |
| var | purge () |
| local | purge () |
| static void | clear () |
| var | clear () |
| local | clear () |
| static void | addDataFromCache (const char *pFileContent, DataInfo *dataInfo=NULL) |
| Translate XML export from Dragon Bone flash tool to datas, and save them. More... | |
| var | addDataFromCache ( var pFileContent, var NULL) |
| Translate XML export from Dragon Bone flash tool to datas, and save them. More... | |
| local | addDataFromCache ( local pFileContent, local NULL) |
| Translate XML export from Dragon Bone flash tool to datas, and save them. More... | |
| static ArmatureData * | decodeArmature (tinyxml2::XMLElement *armatureXML) |
| Decode Armature Datas from xml export from Dragon Bone flash tool. More... | |
| var | decodeArmature ( var armatureXML) |
| Decode Armature Datas from xml export from Dragon Bone flash tool. More... | |
| local | decodeArmature ( local armatureXML) |
| Decode Armature Datas from xml export from Dragon Bone flash tool. More... | |
| static BoneData * | decodeBone (tinyxml2::XMLElement *boneXML, tinyxml2::XMLElement *parentXML) |
| local | decodeBone ( local boneXML, local parentXML) |
| static DisplayData * | decodeBoneDisplay (tinyxml2::XMLElement *displayXML) |
| local | decodeBoneDisplay ( local displayXML) |
| static AnimationData * | decodeAnimation (tinyxml2::XMLElement *animationXML) |
| Decode ArmatureAnimation Datas from xml export from Dragon Bone flash tool. More... | |
| local | decodeAnimation ( local animationXML) |
| Decode ArmatureAnimation Datas from xml export from Dragon Bone flash tool. More... | |
| static MovementData * | decodeMovement (tinyxml2::XMLElement *movementXML, ArmatureData *armatureData) |
| local | decodeMovement ( local movementXML, local armatureData) |
| static MovementBoneData * | decodeMovementBone (tinyxml2::XMLElement *movBoneXml, tinyxml2::XMLElement *parentXml, BoneData *boneData) |
| local | decodeMovementBone ( local movBoneXml, local parentXml, local boneData) |
| static FrameData * | decodeFrame (tinyxml2::XMLElement *frameXML, tinyxml2::XMLElement *parentFrameXml, BoneData *boneData) |
| static TextureData * | decodeTexture (tinyxml2::XMLElement *textureXML) |
| Decode Texture Datas from xml export from Dragon Bone flash tool. More... | |
| static ContourData * | decodeContour (tinyxml2::XMLElement *contourXML) |
| Decode Contour Datas from xml export from Dragon Bone flash tool. More... | |
| local | decodeContour ( local contourXML) |
| Decode Contour Datas from xml export from Dragon Bone flash tool. More... | |
| static void | addDataFromJsonCache (const char *fileContent, DataInfo *dataInfo=NULL) |
| var | addDataFromJsonCache ( var fileContent, var NULL) |
| local | addDataFromJsonCache ( local fileContent, local NULL) |
| static ArmatureData * | decodeArmature (cs::JsonDictionary &json) |
| var | decodeArmature ( var json) |
| local | decodeArmature ( local json) |
| static BoneData * | decodeBone (cs::JsonDictionary &json) |
| local | decodeBone ( local json) |
| static DisplayData * | decodeBoneDisplay (cs::JsonDictionary &json) |
| local | decodeBoneDisplay ( local json) |
| static AnimationData * | decodeAnimation (cs::JsonDictionary &json) |
| local | decodeAnimation ( local json) |
| static MovementData * | decodeMovement (cs::JsonDictionary &json) |
| local | decodeMovement ( local json) |
| static MovementBoneData * | decodeMovementBone (cs::JsonDictionary &json) |
| local | decodeMovementBone ( local json) |
| static FrameData * | decodeFrame (cs::JsonDictionary &json) |
| local | decodeFrame ( local json) |
| static TextureData * | decodeTexture (cs::JsonDictionary &json) |
| static ContourData * | decodeContour (cs::JsonDictionary &json) |
| local | decodeContour ( local json) |
| static void | decodeNode (BaseData *node, cs::JsonDictionary &json) |
| var | decodeNode ( var node, var json) |
| local | decodeNode ( local node, local json) |
Protected Types | |
| enum | ConfigType { DragonBone_XML, CocoStudio_JSON } |
Protected Member Functions | |
| void | loadData () |
Protected Attributes | |
| std::condition_variable | _sleepCondition |
| std::thread * | _loadingThread |
| var | _loadingThread |
| local | _loadingThread |
| std::mutex | _sleepMutex |
| var | _sleepMutex |
| local | _sleepMutex |
| std::mutex | _asyncStructQueueMutex |
| var | _asyncStructQueueMutex |
| local | _asyncStructQueueMutex |
| std::mutex | _dataInfoMutex |
| std::mutex | _addDataMutex |
| unsigned long | _asyncRefCount |
| var | _asyncRefCount |
| local | _asyncRefCount |
| unsigned long | _asyncRefTotalCount |
| var | _asyncRefTotalCount |
| local | _asyncRefTotalCount |
| bool | need_quit |
| var | need_quit |
| local | need_quit |
| std::queue< AsyncStruct * > * | _asyncStructQueue |
| var | _asyncStructQueue |
| local | _asyncStructQueue |
| std::queue< DataInfo * > * | _dataQueue |
Static Protected Attributes | |
| static DataReaderHelper * | _dataReaderHelper |
| var | _dataReaderHelper |
| local | _dataReaderHelper |
Additional Inherited Members | |
Private Member Functions inherited from Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| void | release () |
| Release the ownership immediately. More... | |
| void | retain () |
| Retains the ownership. More... | |
| Object * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More... | |
| unsigned int | retainCount () const |
| Returns the object's current reference count. More... | |
| virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More... | |
| virtual void | acceptVisitor (DataVisitor &visitor) |
| virtual void | update (float dt) |
Private Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID More... | |
| int | _luaID |
| Lua reference id. More... | |
| unsigned int | _reference |
| count of references More... | |
| var | _reference |
| count of references More... | |
| local | _reference |
| count of references More... | |
| unsigned int | _autoReleaseCount |
| count of autorelease More... | |
| var | _autoReleaseCount |
| count of autorelease More... | |
| local | _autoReleaseCount |
| count of autorelease More... | |
|
protected |
|
protected |
|
protected |
| DataReaderHelper | ( | ) |
| var ctor | ( | ) |
| local DataReaderHelper | ( | ) |
| ~DataReaderHelper | ( | ) |
| void addDataAsyncCallBack | ( | float | dt) |
| var addDataAsyncCallBack | ( | var | dt) |
| local addDataAsyncCallBack | ( | local | dt) |
Translate XML export from Dragon Bone flash tool to datas, and save them.
When you add a new xml, the data already saved will be keeped.
| xmlPath | The cache of the xml |
|
static |
Translate XML export from Dragon Bone flash tool to datas, and save them.
When you add a new xml, the data already saved will be keeped.
| xmlPath | The cache of the xml |
|
static |
Translate XML export from Dragon Bone flash tool to datas, and save them.
When you add a new xml, the data already saved will be keeped.
| xmlPath | The cache of the xml |
| void addDataFromFile | ( | const char * | filePath) |
| var addDataFromFile | ( | var | filePath) |
| local addDataFromFile | ( | local | filePath) |
| void addDataFromFileAsync | ( | const char * | filePath, |
| Object * | target, | ||
| SEL_SCHEDULE | selector | ||
| ) |
| var addDataFromFileAsync | ( | var | filePath, |
| var | target, | ||
| var | selector | ||
| ) |
| local addDataFromFileAsync | ( | local | filePath, |
| local | target, | ||
| local | selector | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Decode ArmatureAnimation Datas from xml export from Dragon Bone flash tool.
|
static |
Decode ArmatureAnimation Datas from xml export from Dragon Bone flash tool.
|
static |
Decode ArmatureAnimation Datas from xml export from Dragon Bone flash tool.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Decode Contour Datas from xml export from Dragon Bone flash tool.
|
static |
Decode Contour Datas from xml export from Dragon Bone flash tool.
|
static |
Decode Contour Datas from xml export from Dragon Bone flash tool.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Decode Texture Datas from xml export from Dragon Bone flash tool.
|
static |
Decode Texture Datas from xml export from Dragon Bone flash tool.
|
static |
Decode Texture Datas from xml export from Dragon Bone flash tool.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
Scale the position data, used for multiresolution adapter It won't effect the data already read.
|
static |
Scale the position data, used for multiresolution adapter It won't effect the data already read.
|
static |
Scale the position data, used for multiresolution adapter It won't effect the data already read.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |