cocos2d-x  3.3rc0
 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 ()
virtual ~SceneReader (void)

Static Public Member Functions

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

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: SceneReader(void)

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.

Constructor & Destructor Documentation

virtual ~SceneReader ( void  )
virtual
var ~SceneReader (   )
virtual
local ~SceneReader (   )
virtual

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
var getInstance ( )
static
local 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)

Member Data Documentation

var __pad0__
local __pad0__

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