#include <CCActionTimelineCache.h>
Public Member Functions | |
void | purge () |
var | purge () |
local | purge () |
void | init () |
void | removeAction (const std::string &fileName) |
Remove action with filename, and also remove other resource relate with this file. More... | |
var | removeAction ( var fileName) |
Remove action with filename, and also remove other resource relate with this file. More... | |
local | removeAction ( local fileName) |
Remove action with filename, and also remove other resource relate with this file. More... | |
ActionTimeline * | createActionFromJson (const std::string &fileName) |
Clone a action with the specified name from the container. More... | |
local | createActionFromJson ( local fileName) |
Clone a action with the specified name from the container. More... | |
ActionTimeline * | loadAnimationActionWithFile (const std::string &fileName) |
ActionTimeline * | loadAnimationActionWithContent (const std::string &fileName, const std::string &content) |
local | loadAnimationActionWithContent ( local fileName, local content) |
ActionTimeline * | createActionWithFlatBuffersFile (const std::string &fileName) |
ActionTimeline * | loadAnimationActionWithFlatBuffersFile (const std::string &fileName) |
var | loadAnimationActionWithFlatBuffersFile ( var fileName) |
local | loadAnimationActionWithFlatBuffersFile ( local fileName) |
ActionTimeline * | createActionWithFlatBuffersForSimulator (const std::string &fileName) |
var | createActionWithFlatBuffersForSimulator ( var fileName) |
local | createActionWithFlatBuffersForSimulator ( local fileName) |
Static Public Member Functions | |
static ActionTimelineCache * | getInstance () |
Gets the singleton. More... | |
local | getInstance () |
Gets the singleton. More... | |
static void | destroyInstance () |
Destroys the singleton. More... | |
var | destroyInstance () |
Destroys the singleton. More... | |
local | destroyInstance () |
Destroys the singleton. More... | |
static ActionTimeline * | createAction (const std::string &fileName) |
local | createAction ( local fileName) |
Protected Types | |
typedef std::function< Frame *(const rapidjson::Value &json)> | FrameCreateFunc |
typedef std::pair< std::string, FrameCreateFunc > | Pair |
Protected Attributes | |
std::unordered_map < std::string, FrameCreateFunc > | _funcs |
cocos2d::Map< std::string, ActionTimeline * > | _animationActions |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
ActionTimeline* createActionFromJson |
( | const std::string & | fileName | ) |
Clone a action with the specified name from the container.
var createActionFromJson | ( | var | fileName | ) |
Clone a action with the specified name from the container.
local createActionFromJson | ( | local | fileName | ) |
Clone a action with the specified name from the container.
ActionTimeline* createActionWithFlatBuffersFile |
( | const std::string & | fileName | ) |
var createActionWithFlatBuffersFile | ( | var | fileName | ) |
local createActionWithFlatBuffersFile |
( | local | fileName | ) |
ActionTimeline* createActionWithFlatBuffersForSimulator |
( | const std::string & | fileName | ) |
var createActionWithFlatBuffersForSimulator |
( | var | fileName | ) |
local createActionWithFlatBuffersForSimulator |
( | local | fileName | ) |
|
static |
Destroys the singleton.
|
static |
Destroys the singleton.
|
static |
Destroys the singleton.
|
static |
Gets the singleton.
|
static |
Gets the singleton.
|
static |
Gets the singleton.
void init | ( | ) |
var init | ( | ) |
local init | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
ActionTimeline* loadAnimationActionWithContent |
( | const std::string & | fileName, |
const std::string & | content | ||
) |
var loadAnimationActionWithContent | ( | var | fileName, |
var | content | ||
) |
local loadAnimationActionWithContent |
( | local | fileName, |
local | content | ||
) |
ActionTimeline* loadAnimationActionWithFile |
( | const std::string & | fileName | ) |
var loadAnimationActionWithFile | ( | var | fileName | ) |
local loadAnimationActionWithFile | ( | local | fileName | ) |
ActionTimeline* loadAnimationActionWithFlatBuffersFile |
( | const std::string & | fileName | ) |
var loadAnimationActionWithFlatBuffersFile |
( | var | fileName | ) |
local loadAnimationActionWithFlatBuffersFile |
( | local | fileName | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void purge | ( | ) |
var purge | ( | ) |
local purge | ( | ) |
void removeAction | ( | const std::string & | fileName | ) |
Remove action with filename, and also remove other resource relate with this file.
var removeAction | ( | var | fileName | ) |
Remove action with filename, and also remove other resource relate with this file.
local removeAction | ( | local | fileName | ) |
Remove action with filename, and also remove other resource relate with this file.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |