3 #ifndef __GAF_ASSET_H__
4 #define __GAF_ASSET_H__
6 #include "cocoa/CCObject.h"
15 using namespace cocos2d;
25 static GAFAsset * create(
const std::string& jsonPath);
26 bool initWithImageData(
const std::string& jsonPath);
30 int animationFramesCount()
const;
33 CCDictionary * objects();
35 CCDictionary * masks();
37 CCDictionary * namedParts();
39 CCDictionary * animationSequences();
43 CCDictionary* getSequences()
const;
47 CCArray * animationFrames();
48 static bool isAssetVersionPlayable(
const char * version);
54 static int desiredCsf();
56 static void setDesiredCsf(
int csf);
60 return _usedAtlasContentScaleFactor;
63 void loadAnimationSequences(CCArray * aSequencesNodes);
64 void loadFramesFromConfigDictionary(CCDictionary * aConfigDictionary);
65 CCArray * objectStatesFromConfigFrame(CCDictionary * configFrame);
68 float _usedAtlasContentScaleFactor;
69 float atlasScaleFromAtlasConfig(CCDictionary * anAtlasConfigDictionary);
74 CCDictionary * _objects;
76 CCDictionary * _masks;
78 CCArray * _interactionObjects;
80 CCArray * _standObjects;
83 CCArray * _animationFrames;
84 CCDictionary * _animationSequences;
86 CCDictionary * _namedParts;
90 #endif // __GAF_ASSET_H__
Definition: GAFAnimatedObject.h:62
float usedAtlasContentScaleFactor() const
used content scale factor
Definition: GAFAsset.h:58
Definition: GAFAnimationSequence.h:11
Definition: GAFAsset.h:21
Definition: GAFTextureAtlas.h:17