1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
---@meta
---@class ccs.ActionTimeline :cc.Action@all parent class: Action,PlayableProtocol
local ActionTimeline={ }
ccs.ActionTimeline=ActionTimeline
---*
---@return self
function ActionTimeline:clearFrameEndCallFuncs () end
---* add a frame end call back to animation's end frame<br>
---* param animationName @addFrameEndCallFunc, make the animationName as funcKey<br>
---* param func the callback function
---@param animationName string
---@param func function
---@return self
function ActionTimeline:setAnimationEndCallFunc (animationName,func) end
---* add Timeline to ActionTimeline
---@param timeline ccs.Timeline
---@return self
function ActionTimeline:addTimeline (timeline) end
---* Get current frame.
---@return int
function ActionTimeline:getCurrentFrame () end
---* Start frame index of this action
---@return int
function ActionTimeline:getStartFrame () end
---* Pause the animation.
---@return self
function ActionTimeline:pause () end
---* / @{/ @name implement Playable Protocol
---@return self
function ActionTimeline:start () end
---*
---@return boolean
function ActionTimeline:init () end
---*
---@param timeline ccs.Timeline
---@return self
function ActionTimeline:removeTimeline (timeline) end
---*
---@return self
function ActionTimeline:clearFrameEventCallFunc () end
---* Last frame callback will call when arriving last frame
---@param listener function
---@return self
function ActionTimeline:setLastFrameCallFunc (listener) end
---*
---@return array_table
function ActionTimeline:getTimelines () end
---*
---@param animationName string
---@param loop boolean
---@return self
function ActionTimeline:play (animationName,loop) end
---*
---@param animationName string
---@return ccs.AnimationInfo
function ActionTimeline:getAnimationInfo (animationName) end
---* Resume the animation.
---@return self
function ActionTimeline:resume () end
---* add a callback function after played frameIndex<br>
---* param frameIndex the frame index call back after<br>
---* param funcKey for identity the callback function<br>
---* param func the callback function
---@param frameIndex int
---@param funcKey string
---@param func function
---@return self
function ActionTimeline:addFrameEndCallFunc (frameIndex,funcKey,func) end
---*
---@param animationName string
---@return self
function ActionTimeline:removeAnimationInfo (animationName) end
---* Get current animation speed.
---@return float
function ActionTimeline:getTimeSpeed () end
---* AnimationInfo
---@param animationInfo ccs.AnimationInfo
---@return self
function ActionTimeline:addAnimationInfo (animationInfo) end
---*
---@return int
function ActionTimeline:getDuration () end
---* Goto the specified frame index, and pause at this index.<br>
---* param startIndex The animation will pause at this index.
---@param startIndex int
---@return self
function ActionTimeline:gotoFrameAndPause (startIndex) end
---* Whether or not Action is playing.
---@return boolean
function ActionTimeline:isPlaying () end
---*
---@param frameIndex int
---@return self
function ActionTimeline:removeFrameEndCallFuncs (frameIndex) end
---@overload fun(int:int,int1:boolean):self
---@overload fun(int:int):self
---@overload fun(int:int,int:int,int2:boolean):self
---@overload fun(int:int,int:int,int:int,boolean:boolean):self
---@param startIndex int
---@param endIndex int
---@param currentFrameIndex int
---@param loop boolean
---@return self
function ActionTimeline:gotoFrameAndPlay (startIndex,endIndex,currentFrameIndex,loop) end
---*
---@param animationName string
---@return boolean
function ActionTimeline:IsAnimationInfoExists (animationName) end
---* End frame of this action.<br>
---* When action play to this frame, if action is not loop, then it will stop, <br>
---* or it will play from start frame again.
---@return int
function ActionTimeline:getEndFrame () end
---* Set the animation speed, this will speed up or slow down the speed.
---@param speed float
---@return self
function ActionTimeline:setTimeSpeed (speed) end
---*
---@return self
function ActionTimeline:clearLastFrameCallFunc () end
---* duration of the whole action
---@param duration int
---@return self
function ActionTimeline:setDuration (duration) end
---* Set current frame index, this will cause action plays to this frame.
---@param frameIndex int
---@return self
function ActionTimeline:setCurrentFrame (frameIndex) end
---*
---@param frameIndex int
---@param funcKey string
---@return self
function ActionTimeline:removeFrameEndCallFunc (frameIndex,funcKey) end
---*
---@return self
function ActionTimeline:create () end
---*
---@param target cc.Node
---@return self
function ActionTimeline:startWithTarget (target) end
---* Returns a reverse of ActionTimeline. <br>
---* Not implement yet.
---@return self
function ActionTimeline:reverse () end
---* Returns a clone of ActionTimeline
---@return self
function ActionTimeline:clone () end
---*
---@return self
function ActionTimeline:stop () end
---*
---@param delta float
---@return self
function ActionTimeline:step (delta) end
---*
---@return boolean
function ActionTimeline:isDone () end
---*
---@return self
function ActionTimeline:ActionTimeline () end
|