diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 01:23:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 01:23:32 +0800 |
commit | 04fa96b7c0abba4d7cca03ed12ff3b65b3912e01 (patch) | |
tree | c0c8a2c0e92d0580280f838ba475875c7f82a73c /meta/3rd/Cocos4.0/library/cc/Action.lua | |
parent | c30c5c2e267f6917600afe4f19e1e0d674bad9c6 (diff) | |
download | lua-language-server-04fa96b7c0abba4d7cca03ed12ff3b65b3912e01.zip |
fix #1431
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc/Action.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/library/cc/Action.lua | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc/Action.lua b/meta/3rd/Cocos4.0/library/cc/Action.lua new file mode 100644 index 00000000..3c41651f --- /dev/null +++ b/meta/3rd/Cocos4.0/library/cc/Action.lua @@ -0,0 +1,84 @@ +---@meta + +---@class cc.Action :cc.Ref +local Action={ } +cc.Action=Action + + + + +---* Called before the action start. It will also set the target. <br> +---* param target A certain target. +---@param target cc.Node +---@return self +function Action:startWithTarget (target) end +---* Set the original target, since target can be nil.<br> +---* Is the target that were used to run the action. Unless you are doing something complex, like ActionManager, you should NOT call this method.<br> +---* The target is 'assigned', it is not 'retained'.<br> +---* since v0.8.2<br> +---* param originalTarget Is 'assigned', it is not 'retained'. +---@param originalTarget cc.Node +---@return self +function Action:setOriginalTarget (originalTarget) end +---* Returns a clone of action.<br> +---* return A clone action. +---@return self +function Action:clone () end +---* Return a original Target. <br> +---* return A original Target. +---@return cc.Node +function Action:getOriginalTarget () end +---* Called after the action has finished. It will set the 'target' to nil.<br> +---* IMPORTANT: You should never call "Action::stop()" manually. Instead, use: "target->stopAction(action);". +---@return self +function Action:stop () end +---* Called once per frame. time a value between 0 and 1.<br> +---* For example:<br> +---* - 0 Means that the action just started.<br> +---* - 0.5 Means that the action is in the middle.<br> +---* - 1 Means that the action is over.<br> +---* param time A value between 0 and 1. +---@param time float +---@return self +function Action:update (time) end +---* Return certain target.<br> +---* return A certain target. +---@return cc.Node +function Action:getTarget () end +---* Returns a flag field that is used to group the actions easily.<br> +---* return A tag. +---@return unsigned_int +function Action:getFlags () end +---* Called every frame with it's delta time, dt in seconds. DON'T override unless you know what you are doing. <br> +---* param dt In seconds. +---@param dt float +---@return self +function Action:step (dt) end +---* Changes the tag that is used to identify the action easily. <br> +---* param tag Used to identify the action easily. +---@param tag int +---@return self +function Action:setTag (tag) end +---* Changes the flag field that is used to group the actions easily.<br> +---* param flags Used to group the actions easily. +---@param flags unsigned_int +---@return self +function Action:setFlags (flags) end +---* Returns a tag that is used to identify the action easily. <br> +---* return A tag. +---@return int +function Action:getTag () end +---* The action will modify the target properties. <br> +---* param target A certain target. +---@param target cc.Node +---@return self +function Action:setTarget (target) end +---* Return true if the action has finished. <br> +---* return Is true if the action has finished. +---@return boolean +function Action:isDone () end +---* Returns a new action that performs the exact reverse of the action. <br> +---* return A new action that performs the exact reverse of the action.<br> +---* js NA +---@return self +function Action:reverse () end
\ No newline at end of file |