summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.Follow.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
commit8fefb8f3e100976235dc83d6ae3785952d11c710 (patch)
tree459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.Follow.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.Follow.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.Follow.lua88
1 files changed, 88 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.Follow.lua b/meta/3rd/Cocos4.0/library/cc.Follow.lua
new file mode 100644
index 00000000..88ab9fb7
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.Follow.lua
@@ -0,0 +1,88 @@
+---@meta
+
+---@class cc.Follow :cc.Action
+local Follow={ }
+cc.Follow=Follow
+
+
+
+
+---* Alter behavior - turn on/off boundary. <br>
+---* param value Turn on/off boundary.
+---@param value boolean
+---@return self
+function Follow:setBoundarySet (value) end
+---* Initializes the action with a set boundary or with no boundary.<br>
+---* param followedNode The node to be followed.<br>
+---* param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br>
+---* with no boundary.
+---@param followedNode cc.Node
+---@param rect rect_table
+---@return boolean
+function Follow:initWithTarget (followedNode,rect) end
+---* Initializes the action with a set boundary or with no boundary with offsets.<br>
+---* param followedNode The node to be followed.<br>
+---* param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br>
+---* with no boundary.<br>
+---* param xOffset The horizontal offset from the center of the screen from which the<br>
+---* node is to be followed.It can be positive,negative or zero.If<br>
+---* set to zero the node will be horizontally centered followed.<br>
+---* param yOffset The vertical offset from the center of the screen from which the<br>
+---* node is to be followed.It can be positive,negative or zero.<br>
+---* If set to zero the node will be vertically centered followed.<br>
+---* If both xOffset and yOffset are set to zero,then the node will be horizontally and vertically centered followed.
+---@param followedNode cc.Node
+---@param xOffset float
+---@param yOffset float
+---@param rect rect_table
+---@return boolean
+function Follow:initWithTargetAndOffset (followedNode,xOffset,yOffset,rect) end
+---* Return boundarySet.<br>
+---* return Return boundarySet.
+---@return boolean
+function Follow:isBoundarySet () end
+---* Creates the action with a set boundary or with no boundary.<br>
+---* param followedNode The node to be followed.<br>
+---* param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br>
+---* with no boundary.
+---@param followedNode cc.Node
+---@param rect rect_table
+---@return self
+function Follow:create (followedNode,rect) end
+---* Creates the action with a set boundary or with no boundary with offsets.<br>
+---* param followedNode The node to be followed.<br>
+---* param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br>
+---* with no boundary.<br>
+---* param xOffset The horizontal offset from the center of the screen from which the<br>
+---* node is to be followed.It can be positive,negative or zero.If<br>
+---* set to zero the node will be horizontally centered followed.<br>
+---* param yOffset The vertical offset from the center of the screen from which the<br>
+---* node is to be followed.It can be positive,negative or zero.<br>
+---* If set to zero the node will be vertically centered followed.<br>
+---* If both xOffset and yOffset are set to zero,then the node will be horizontally and vertically centered followed.
+---@param followedNode cc.Node
+---@param xOffset float
+---@param yOffset float
+---@param rect rect_table
+---@return self
+function Follow:createWithOffset (followedNode,xOffset,yOffset,rect) end
+---* param dt in seconds.<br>
+---* js NA
+---@param dt float
+---@return self
+function Follow:step (dt) end
+---*
+---@return self
+function Follow:clone () end
+---*
+---@return self
+function Follow:stop () end
+---*
+---@return self
+function Follow:reverse () end
+---*
+---@return boolean
+function Follow:isDone () end
+---* js ctor
+---@return self
+function Follow:Follow () end \ No newline at end of file