Skip to content

Commit f3d009d

Browse files
committed
Added ccs.AnimationInfo struct
1 parent 570e2a3 commit f3d009d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frameworks/js-bindings/bindings/script/studio/jsb_cocos2d_studio.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ ccs.InnerActionType = {
4444
SingleFrame: 2
4545
};
4646

47+
ccs.AnimationInfo = function (name, startIndex, endIndex) {
48+
this.name = name || "";
49+
this.startIndex = startIndex != undefined ? startIndex : 0;
50+
this.endIndex = endIndex != undefined ? endIndex : 0;
51+
};
52+
4753
// Armature
4854
if(ccs.Armature){
4955
ccs.Armature.prototype.setBody = function( body ) {

0 commit comments

Comments
 (0)