Class ccs.ArmatureData
ccs.ArmatureData
- Defined in: CCDatas.js
- Extends ccs.Class
Constructor Attributes | Constructor Name and Description |
---|---|
ArmatureData saved the Armature name and BoneData needed for the CCBones in this Armature |
Method Summary
Class Detail
ccs.ArmatureData()
ArmatureData saved the Armature name and BoneData needed for the CCBones in this Armature
When we create a Armature, we need to get each Bone's BoneData as it's init information.
So we can get a BoneData from the Dictionary saved in the ArmatureData.
Method Detail
-
addBoneData(boneData)adds bone data to dictionary
- Parameters:
- {ccs.BoneData} boneData
-
{ccs.BoneData} getBoneData(boneName)get bone data by bone name
- Parameters:
- {String} boneName
- Returns:
- {ccs.BoneData}
-
{Object} getBoneDataDic()gets bone data dictionary
- Returns:
- {Object}