Class ccs.SceneReader

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for ccs.SceneReader

Method Summary

Class Detail

ccs.SceneReader()
Base class for ccs.SceneReader

Method Detail

  • {cc.Node} createNodeWithSceneFile(pszFileName)
    create node with json file that exported by cocostudio scene editor
    Parameters:
    pszFileName
    Returns:
    {cc.Node}
  • {cc.Node} createObject(inputFiles, parenet)
    create object from data
    Parameters:
    {Object} inputFiles
    {cc.Node} parenet
    Returns:
    {cc.Node}
  • <static> {ccs.SceneReader} ccs.SceneReader.getInstance()
    get a singleton SceneReader
    Returns:
    {ccs.SceneReader}
  • <static> ccs.SceneReader.purge()
    purge instance
  • purge()
    purge instance
  • setPropertyFromJsonDict(node, dict)
    set property
    Parameters:
    {cc.Node} node
    {Object} dict