Class ccs.BoneData

ccs.BoneData

Class Summary
Constructor Attributes Constructor Name and Description
 

BoneData used to init a Bone.

Method Summary

Class Detail

ccs.BoneData()

BoneData used to init a Bone.
BoneData keeps a DisplayData list, a Bone can have many display to change.
The display information saved in the DisplayData

Field Detail

{cc.AffineTransform} boneDataTransform
- the bone transform data
{Array} displayDataList
- the display data list
{String} name
- the name of Bone
{String} parentName
- the parent name of bone

Method Detail

  • addDisplayData(displayData)
    Adds display data to list
    Parameters:
    {ccs.DisplayData} displayData
  • ctor()
    Construction of ccs.BoneData
  • {ccs.DisplayData} getDisplayData(index)
    Returns display data with index.
    Parameters:
    {Number} index
    Returns:
    {ccs.DisplayData}
  • {boolean} init()
    Initializes a ccs.BoneData
    Returns:
    {boolean}