|
cocos2d-x
3.3
|
#include <CCSSceneReader.h>
Public Types | |
| enum | AttachComponentType { EMPTY_NODE, RENDER_NODE, DEFAULT = EMPTY_NODE } |
Public Member Functions | |
| cocos2d::Node * | createNodeWithSceneFile (const std::string &fileName, AttachComponentType attachComponent=AttachComponentType::EMPTY_NODE) |
| void | setTarget (const std::function< void(cocos2d::Ref *obj, void *doc)> &selector) |
| cocos2d::Node * | getNodeByTag (int nTag) |
| AttachComponentType | getAttachComponentType () |
| virtual | ~SceneReader (void) |
Static Public Member Functions | |
| static SceneReader * | getInstance () |
| static void | destroyInstance () |
| purge destroySceneReader More... | |
| static const char * | sceneReaderVersion () |
Public Attributes | |
| CC_CONSTRUCTOR_ACCESS | __pad0__: SceneReader(void) |
|
strong |
| Enumerator | |
|---|---|
| EMPTY_NODE |
parent: Empty Node ComRender(Sprite, Armature, TMXTiledMap, ParticleSystemQuad, GUIComponent) ComAttribute ComAudio .... |
| RENDER_NODE |
parent: ComRender(Sprite, Armature, TMXTiledMap, ParticleSystemQuad, GUIComponent) ComAttribute ComAudio .... |
| DEFAULT |
Default AttachComponentType is _EmptyNode. |
|
virtual |
| cocos2d::Node* createNodeWithSceneFile | ( | const std::string & | fileName, |
| AttachComponentType | attachComponent = AttachComponentType::EMPTY_NODE |
||
| ) |
|
static |
purge destroySceneReader
|
inline |
|
static |
| cocos2d::Node* getNodeByTag | ( | int | nTag | ) |
|
static |
| void setTarget | ( | const std::function< void(cocos2d::Ref *obj, void *doc)> & | selector | ) |
| CC_CONSTRUCTOR_ACCESS __pad0__ |