cocos2d-x  3.0rc1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SceneReader Class Reference

#include <CCSSceneReader.h>

Public Types

enum  AttachComponentType { EMPTY_NODE, RENDER_NODE, DEFAULT = EMPTY_NODE }
 

Public Member Functions

cocos2d::NodecreateNodeWithSceneFile (const std::string &fileName, AttachComponentType attachComponent=AttachComponentType::EMPTY_NODE)
local createNodeWithSceneFile ( local fileName, local EMPTY_NODE)
void setTarget (const std::function< void(cocos2d::Ref *obj, void *doc)> &selector)
cocos2d::NodegetNodeByTag (int nTag)
AttachComponentType getAttachComponentType ()
var getAttachComponentType ()
local getAttachComponentType ()

Static Public Member Functions

static SceneReadergetInstance ()
static void destroyInstance ()
static const char * sceneReaderVersion ()
var sceneReaderVersion ()
local sceneReaderVersion ()

Member Enumeration Documentation

enum AttachComponentType
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.

var AttachComponentType
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.

local AttachComponentType
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.

Member Function Documentation

cocos2d::Node*
createNodeWithSceneFile
( const std::string &  fileName,
AttachComponentType  attachComponent = AttachComponentType::EMPTY_NODE 
)
var createNodeWithSceneFile ( var  fileName,
var  attachComponent = AttachComponentType::EMPTY_NODE 
)
local createNodeWithSceneFile ( local  fileName,
local  attachComponent = AttachComponentType::EMPTY_NODE 
)
static void destroyInstance ( )
static
var purge ( )
static
local destroySceneReader ( )
static
AttachComponentType
getAttachComponentType
( )
inline
var getAttachComponentType ( )
inline
local getAttachComponentType ( )
inline
static SceneReader* getInstance ( )
static
cocos2d::Node* getNodeByTag ( int  nTag)
var getNodeByTag ( var  nTag)
local getNodeByTag ( local  nTag)
static const char*
sceneReaderVersion
( )
static
var sceneReaderVersion ( )
static
local sceneReaderVersion ( )
static
void setTarget ( const std::function< void(cocos2d::Ref *obj, void *doc)> &  selector)
var setTarget ( var  selector)
local setTarget ( local  selector)

The documentation for this class was generated from the following file: