Class ccs.SceneReader
- Defined in: SceneReader.js
- Extends ccs.Class
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}
-
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