save
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Cocos",
|
||||
"files": ["cocos"],
|
||||
"settings": {
|
||||
"Lua.runtime.version": "LuaJIT"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
---@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
|
||||
@@ -0,0 +1,44 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ActionCamera :cc.ActionInterval
|
||||
local ActionCamera = {}
|
||||
cc.ActionCamera = ActionCamera
|
||||
|
||||
---@overload fun(float:float,float:float,float:float):self
|
||||
---@overload fun(float0:vec3_table):self
|
||||
---@param x float
|
||||
---@param y float
|
||||
---@param z float
|
||||
---@return self
|
||||
function ActionCamera:setEye(x, y, z) end
|
||||
---*
|
||||
---@return vec3_table
|
||||
function ActionCamera:getEye() end
|
||||
---*
|
||||
---@param up vec3_table
|
||||
---@return self
|
||||
function ActionCamera:setUp(up) end
|
||||
---*
|
||||
---@return vec3_table
|
||||
function ActionCamera:getCenter() end
|
||||
---*
|
||||
---@param center vec3_table
|
||||
---@return self
|
||||
function ActionCamera:setCenter(center) end
|
||||
---*
|
||||
---@return vec3_table
|
||||
function ActionCamera:getUp() end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionCamera:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function ActionCamera:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function ActionCamera:reverse() end
|
||||
---* js ctor<br>
|
||||
---* lua new
|
||||
---@return self
|
||||
function ActionCamera:ActionCamera() end
|
||||
@@ -0,0 +1,26 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ActionEase :cc.ActionInterval
|
||||
local ActionEase = {}
|
||||
cc.ActionEase = ActionEase
|
||||
|
||||
---* brief Initializes the action.<br>
|
||||
---* return Return true when the initialization success, otherwise return false.
|
||||
---@param action cc.ActionInterval
|
||||
---@return boolean
|
||||
function ActionEase:initWithAction(action) end
|
||||
---* brief Get the pointer of the inner action.<br>
|
||||
---* return The pointer of the inner action.
|
||||
---@return cc.ActionInterval
|
||||
function ActionEase:getInnerAction() end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionEase:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function ActionEase:stop() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function ActionEase:update(time) end
|
||||
@@ -0,0 +1,43 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ActionFloat :cc.ActionInterval
|
||||
local ActionFloat = {}
|
||||
cc.ActionFloat = ActionFloat
|
||||
|
||||
---*
|
||||
---@param duration float
|
||||
---@param from float
|
||||
---@param to float
|
||||
---@param callback function
|
||||
---@return boolean
|
||||
function ActionFloat:initWithDuration(duration, from, to, callback) end
|
||||
---* Creates FloatAction with specified duration, from value, to value and callback to report back<br>
|
||||
---* results<br>
|
||||
---* param duration of the action<br>
|
||||
---* param from value to start from<br>
|
||||
---* param to value to be at the end of the action<br>
|
||||
---* param callback to report back result<br>
|
||||
---* return An autoreleased ActionFloat object
|
||||
---@param duration float
|
||||
---@param from float
|
||||
---@param to float
|
||||
---@param callback function
|
||||
---@return self
|
||||
function ActionFloat:create(duration, from, to, callback) end
|
||||
---* Overridden ActionInterval methods
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionFloat:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function ActionFloat:clone() end
|
||||
---*
|
||||
---@param delta float
|
||||
---@return self
|
||||
function ActionFloat:update(delta) end
|
||||
---*
|
||||
---@return self
|
||||
function ActionFloat:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function ActionFloat:ActionFloat() end
|
||||
@@ -0,0 +1,27 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ActionInstant :cc.FiniteTimeAction
|
||||
local ActionInstant = {}
|
||||
cc.ActionInstant = ActionInstant
|
||||
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionInstant:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function ActionInstant:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function ActionInstant:clone() end
|
||||
---* param time In seconds.
|
||||
---@param time float
|
||||
---@return self
|
||||
function ActionInstant:update(time) end
|
||||
---* param dt In seconds.
|
||||
---@param dt float
|
||||
---@return self
|
||||
function ActionInstant:step(dt) end
|
||||
---*
|
||||
---@return boolean
|
||||
function ActionInstant:isDone() end
|
||||
@@ -0,0 +1,40 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ActionInterval :cc.FiniteTimeAction
|
||||
local ActionInterval = {}
|
||||
cc.ActionInterval = ActionInterval
|
||||
|
||||
---* Gets the amplitude rate, extension in GridAction<br>
|
||||
---* return The amplitude rate.
|
||||
---@return float
|
||||
function ActionInterval:getAmplitudeRate() end
|
||||
---* initializes the action
|
||||
---@param d float
|
||||
---@return boolean
|
||||
function ActionInterval:initWithDuration(d) end
|
||||
---* Sets the amplitude rate, extension in GridAction<br>
|
||||
---* param amp The amplitude rate.
|
||||
---@param amp float
|
||||
---@return self
|
||||
function ActionInterval:setAmplitudeRate(amp) end
|
||||
---* How many seconds had elapsed since the actions started to run.<br>
|
||||
---* return The seconds had elapsed since the actions started to run.
|
||||
---@return float
|
||||
function ActionInterval:getElapsed() end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionInterval:startWithTarget(target) end
|
||||
---* param dt in seconds
|
||||
---@param dt float
|
||||
---@return self
|
||||
function ActionInterval:step(dt) end
|
||||
---*
|
||||
---@return self
|
||||
function ActionInterval:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function ActionInterval:reverse() end
|
||||
---*
|
||||
---@return boolean
|
||||
function ActionInterval:isDone() end
|
||||
@@ -0,0 +1,121 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ActionManager :cc.Ref
|
||||
local ActionManager = {}
|
||||
cc.ActionManager = ActionManager
|
||||
|
||||
---* Gets an action given its tag an a target.<br>
|
||||
---* param tag The action's tag.<br>
|
||||
---* param target A certain target.<br>
|
||||
---* return The Action the with the given tag.
|
||||
---@param tag int
|
||||
---@param target cc.Node
|
||||
---@return cc.Action
|
||||
function ActionManager:getActionByTag(tag, target) end
|
||||
---* Removes an action given its tag and the target.<br>
|
||||
---* param tag The action's tag.<br>
|
||||
---* param target A certain target.
|
||||
---@param tag int
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionManager:removeActionByTag(tag, target) end
|
||||
---* Removes all actions matching at least one bit in flags and the target.<br>
|
||||
---* param flags The flag field to match the actions' flags based on bitwise AND.<br>
|
||||
---* param target A certain target.<br>
|
||||
---* js NA
|
||||
---@param flags unsigned_int
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionManager:removeActionsByFlags(flags, target) end
|
||||
---* Removes all actions from all the targets.
|
||||
---@return self
|
||||
function ActionManager:removeAllActions() end
|
||||
---* Adds an action with a target. <br>
|
||||
---* If the target is already present, then the action will be added to the existing target.<br>
|
||||
---* If the target is not present, a new instance of this target will be created either paused or not, and the action will be added to the newly created target.<br>
|
||||
---* When the target is paused, the queued actions won't be 'ticked'.<br>
|
||||
---* param action A certain action.<br>
|
||||
---* param target The target which need to be added an action.<br>
|
||||
---* param paused Is the target paused or not.
|
||||
---@param action cc.Action
|
||||
---@param target cc.Node
|
||||
---@param paused boolean
|
||||
---@return self
|
||||
function ActionManager:addAction(action, target, paused) end
|
||||
---* Resumes the target. All queued actions will be resumed.<br>
|
||||
---* param target A certain target.
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionManager:resumeTarget(target) end
|
||||
---* Returns the numbers of actions that are running in all targets.<br>
|
||||
---* return The numbers of actions that are running in all target.<br>
|
||||
---* js NA
|
||||
---@return int
|
||||
function ActionManager:getNumberOfRunningActions() end
|
||||
---* Pauses the target: all running actions and newly added actions will be paused.<br>
|
||||
---* param target A certain target.
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionManager:pauseTarget(target) end
|
||||
---* Returns the numbers of actions that are running in a certain target. <br>
|
||||
---* Composable actions are counted as 1 action. Example:<br>
|
||||
---* - If you are running 1 Sequence of 7 actions, it will return 1.<br>
|
||||
---* - If you are running 7 Sequences of 2 actions, it will return 7.<br>
|
||||
---* param target A certain target.<br>
|
||||
---* return The numbers of actions that are running in a certain target.<br>
|
||||
---* js NA
|
||||
---@param target cc.Node
|
||||
---@return int
|
||||
function ActionManager:getNumberOfRunningActionsInTarget(target) end
|
||||
---* Removes all actions from a certain target.<br>
|
||||
---* All the actions that belongs to the target will be removed.<br>
|
||||
---* param target A certain target.
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionManager:removeAllActionsFromTarget(target) end
|
||||
---* Resume a set of targets (convenience function to reverse a pauseAllRunningActions call).<br>
|
||||
---* param targetsToResume A set of targets need to be resumed.
|
||||
---@param targetsToResume array_table
|
||||
---@return self
|
||||
function ActionManager:resumeTargets(targetsToResume) end
|
||||
---* Removes an action given an action reference.<br>
|
||||
---* param action A certain target.
|
||||
---@param action cc.Action
|
||||
---@return self
|
||||
function ActionManager:removeAction(action) end
|
||||
---* Pauses all running actions, returning a list of targets whose actions were paused.<br>
|
||||
---* return A list of targets whose actions were paused.
|
||||
---@return array_table
|
||||
function ActionManager:pauseAllRunningActions() end
|
||||
---* Main loop of ActionManager.<br>
|
||||
---* param dt In seconds.
|
||||
---@param dt float
|
||||
---@return self
|
||||
function ActionManager:update(dt) end
|
||||
---* Removes all actions given its tag and the target.<br>
|
||||
---* param tag The actions' tag.<br>
|
||||
---* param target A certain target.<br>
|
||||
---* js NA
|
||||
---@param tag int
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionManager:removeAllActionsByTag(tag, target) end
|
||||
---* Returns the numbers of actions that are running in a<br>
|
||||
---* certain target with a specific tag.<br>
|
||||
---* Like getNumberOfRunningActionsInTarget Composable actions<br>
|
||||
---* are counted as 1 action. Example:<br>
|
||||
---* - If you are running 1 Sequence of 7 actions, it will return 1.<br>
|
||||
---* - If you are running 7 Sequences of 2 actions, it will return 7.<br>
|
||||
---* param target A certain target.<br>
|
||||
---* param tag Tag that will be searched.<br>
|
||||
---* return The numbers of actions that are running in a certain target<br>
|
||||
---* with a specific tag.<br>
|
||||
---* see getNumberOfRunningActionsInTarget<br>
|
||||
---* js NA
|
||||
---@param target cc.Node
|
||||
---@param tag int
|
||||
---@return unsigned_int
|
||||
function ActionManager:getNumberOfRunningActionsInTargetByTag(target, tag) end
|
||||
---* js ctor
|
||||
---@return self
|
||||
function ActionManager:ActionManager() end
|
||||
@@ -0,0 +1,44 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ActionTween :cc.ActionInterval
|
||||
local ActionTween = {}
|
||||
cc.ActionTween = ActionTween
|
||||
|
||||
---* brief Initializes the action with the property name (key), and the from and to parameters.<br>
|
||||
---* param duration The duration of the ActionTween. It's a value in seconds.<br>
|
||||
---* param key The key of property which should be updated.<br>
|
||||
---* param from The value of the specified property when the action begin.<br>
|
||||
---* param to The value of the specified property when the action end.<br>
|
||||
---* return If the initialization success, return true; otherwise, return false.
|
||||
---@param duration float
|
||||
---@param key string
|
||||
---@param from float
|
||||
---@param to float
|
||||
---@return boolean
|
||||
function ActionTween:initWithDuration(duration, key, from, to) end
|
||||
---* brief Create and initializes the action with the property name (key), and the from and to parameters.<br>
|
||||
---* param duration The duration of the ActionTween. It's a value in seconds.<br>
|
||||
---* param key The key of property which should be updated.<br>
|
||||
---* param from The value of the specified property when the action begin.<br>
|
||||
---* param to The value of the specified property when the action end.<br>
|
||||
---* return If the creation success, return a pointer of ActionTween; otherwise, return nil.
|
||||
---@param duration float
|
||||
---@param key string
|
||||
---@param from float
|
||||
---@param to float
|
||||
---@return self
|
||||
function ActionTween:create(duration, key, from, to) end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function ActionTween:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function ActionTween:clone() end
|
||||
---*
|
||||
---@param dt float
|
||||
---@return self
|
||||
function ActionTween:update(dt) end
|
||||
---*
|
||||
---@return self
|
||||
function ActionTween:reverse() end
|
||||
@@ -0,0 +1,18 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AmbientLight :cc.BaseLight
|
||||
local AmbientLight = {}
|
||||
cc.AmbientLight = AmbientLight
|
||||
|
||||
---* Creates a ambient light.<br>
|
||||
---* param color The light's color.<br>
|
||||
---* return The new ambient light.
|
||||
---@param color color3b_table
|
||||
---@return self
|
||||
function AmbientLight:create(color) end
|
||||
---*
|
||||
---@return int
|
||||
function AmbientLight:getLightType() end
|
||||
---*
|
||||
---@return self
|
||||
function AmbientLight:AmbientLight() end
|
||||
@@ -0,0 +1,49 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Animate :cc.ActionInterval
|
||||
local Animate = {}
|
||||
cc.Animate = Animate
|
||||
|
||||
---* initializes the action with an Animation and will restore the original frame when the animation is over
|
||||
---@param animation cc.Animation
|
||||
---@return boolean
|
||||
function Animate:initWithAnimation(animation) end
|
||||
---@overload fun():self
|
||||
---@overload fun():self
|
||||
---@return cc.Animation
|
||||
function Animate:getAnimation() end
|
||||
---* Gets the index of sprite frame currently displayed.<br>
|
||||
---* return int the index of sprite frame currently displayed.
|
||||
---@return int
|
||||
function Animate:getCurrentFrameIndex() end
|
||||
---* Sets the Animation object to be animated <br>
|
||||
---* param animation certain animation.
|
||||
---@param animation cc.Animation
|
||||
---@return self
|
||||
function Animate:setAnimation(animation) end
|
||||
---* Creates the action with an Animation and will restore the original frame when the animation is over.<br>
|
||||
---* param animation A certain animation.<br>
|
||||
---* return An autoreleased Animate object.
|
||||
---@param animation cc.Animation
|
||||
---@return self
|
||||
function Animate:create(animation) end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function Animate:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function Animate:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function Animate:stop() end
|
||||
---*
|
||||
---@return self
|
||||
function Animate:reverse() end
|
||||
---* param t In seconds.
|
||||
---@param t float
|
||||
---@return self
|
||||
function Animate:update(t) end
|
||||
---*
|
||||
---@return self
|
||||
function Animate:Animate() end
|
||||
@@ -0,0 +1,106 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Animate3D :cc.ActionInterval
|
||||
local Animate3D = {}
|
||||
cc.Animate3D = Animate3D
|
||||
|
||||
---*
|
||||
---@param keyFrame int
|
||||
---@param userInfo map_table
|
||||
---@return self
|
||||
function Animate3D:setKeyFrameUserInfo(keyFrame, userInfo) end
|
||||
---* get & set speed, negative speed means playing reverse
|
||||
---@return float
|
||||
function Animate3D:getSpeed() end
|
||||
---* set animate quality
|
||||
---@param quality int
|
||||
---@return self
|
||||
function Animate3D:setQuality(quality) end
|
||||
---*
|
||||
---@param weight float
|
||||
---@return self
|
||||
function Animate3D:setWeight(weight) end
|
||||
---*
|
||||
---@return self
|
||||
function Animate3D:removeFromMap() end
|
||||
---*
|
||||
---@param animation cc.Animation3D
|
||||
---@param startFrame int
|
||||
---@param endFrame int
|
||||
---@param frameRate float
|
||||
---@return boolean
|
||||
function Animate3D:initWithFrames(animation, startFrame, endFrame, frameRate) end
|
||||
---*
|
||||
---@return float
|
||||
function Animate3D:getOriginInterval() end
|
||||
---*
|
||||
---@param speed float
|
||||
---@return self
|
||||
function Animate3D:setSpeed(speed) end
|
||||
---@overload fun(cc.Animation3D:cc.Animation3D,float:float,float:float):self
|
||||
---@overload fun(cc.Animation3D:cc.Animation3D):self
|
||||
---@param animation cc.Animation3D
|
||||
---@param fromTime float
|
||||
---@param duration float
|
||||
---@return boolean
|
||||
function Animate3D:init(animation, fromTime, duration) end
|
||||
---* get & set origin interval
|
||||
---@param interval float
|
||||
---@return self
|
||||
function Animate3D:setOriginInterval(interval) end
|
||||
---* get & set blend weight, weight must positive
|
||||
---@return float
|
||||
function Animate3D:getWeight() end
|
||||
---* get animate quality
|
||||
---@return int
|
||||
function Animate3D:getQuality() end
|
||||
---@overload fun(cc.Animation3D:cc.Animation3D,float:float,float:float):self
|
||||
---@overload fun(cc.Animation3D:cc.Animation3D):self
|
||||
---@param animation cc.Animation3D
|
||||
---@param fromTime float
|
||||
---@param duration float
|
||||
---@return self
|
||||
function Animate3D:create(animation, fromTime, duration) end
|
||||
---* get animate transition time between 3d animations
|
||||
---@return float
|
||||
function Animate3D:getTransitionTime() end
|
||||
---* create Animate3D by frame section, [startFrame, endFrame)<br>
|
||||
---* param animation used to generate animate3D<br>
|
||||
---* param startFrame<br>
|
||||
---* param endFrame<br>
|
||||
---* param frameRate default is 30 per second<br>
|
||||
---* return Animate3D created using animate
|
||||
---@param animation cc.Animation3D
|
||||
---@param startFrame int
|
||||
---@param endFrame int
|
||||
---@param frameRate float
|
||||
---@return self
|
||||
function Animate3D:createWithFrames(animation, startFrame, endFrame, frameRate) end
|
||||
---* set animate transition time between 3d animations
|
||||
---@param transTime float
|
||||
---@return self
|
||||
function Animate3D:setTransitionTime(transTime) end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function Animate3D:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function Animate3D:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function Animate3D:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function Animate3D:stop() end
|
||||
---*
|
||||
---@param t float
|
||||
---@return self
|
||||
function Animate3D:update(t) end
|
||||
---*
|
||||
---@param dt float
|
||||
---@return self
|
||||
function Animate3D:step(dt) end
|
||||
---*
|
||||
---@return self
|
||||
function Animate3D:Animate3D() end
|
||||
@@ -0,0 +1,107 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Animation :cc.Ref
|
||||
local Animation = {}
|
||||
cc.Animation = Animation
|
||||
|
||||
---* Gets the times the animation is going to loop. 0 means animation is not animated. 1, animation is executed one time, ... <br>
|
||||
---* return The times the animation is going to loop.
|
||||
---@return unsigned_int
|
||||
function Animation:getLoops() end
|
||||
---* Adds a SpriteFrame to a Animation.<br>
|
||||
---* param frame The frame will be added with one "delay unit".
|
||||
---@param frame cc.SpriteFrame
|
||||
---@return self
|
||||
function Animation:addSpriteFrame(frame) end
|
||||
---* Sets whether to restore the original frame when animation finishes. <br>
|
||||
---* param restoreOriginalFrame Whether to restore the original frame when animation finishes.
|
||||
---@param restoreOriginalFrame boolean
|
||||
---@return self
|
||||
function Animation:setRestoreOriginalFrame(restoreOriginalFrame) end
|
||||
---*
|
||||
---@return self
|
||||
function Animation:clone() end
|
||||
---* Gets the duration in seconds of the whole animation. It is the result of totalDelayUnits * delayPerUnit.<br>
|
||||
---* return Result of totalDelayUnits * delayPerUnit.
|
||||
---@return float
|
||||
function Animation:getDuration() end
|
||||
---* Initializes a Animation with AnimationFrame.<br>
|
||||
---* since v2.0
|
||||
---@param arrayOfAnimationFrameNames array_table
|
||||
---@param delayPerUnit float
|
||||
---@param loops unsigned_int
|
||||
---@return boolean
|
||||
function Animation:initWithAnimationFrames(arrayOfAnimationFrameNames, delayPerUnit, loops) end
|
||||
---* Initializes a Animation.
|
||||
---@return boolean
|
||||
function Animation:init() end
|
||||
---* Sets the array of AnimationFrames. <br>
|
||||
---* param frames The array of AnimationFrames.
|
||||
---@param frames array_table
|
||||
---@return self
|
||||
function Animation:setFrames(frames) end
|
||||
---* Gets the array of AnimationFrames.<br>
|
||||
---* return The array of AnimationFrames.
|
||||
---@return array_table
|
||||
function Animation:getFrames() end
|
||||
---* Sets the times the animation is going to loop. 0 means animation is not animated. 1, animation is executed one time, ... <br>
|
||||
---* param loops The times the animation is going to loop.
|
||||
---@param loops unsigned_int
|
||||
---@return self
|
||||
function Animation:setLoops(loops) end
|
||||
---* Sets the delay in seconds of the "delay unit".<br>
|
||||
---* param delayPerUnit The delay in seconds of the "delay unit".
|
||||
---@param delayPerUnit float
|
||||
---@return self
|
||||
function Animation:setDelayPerUnit(delayPerUnit) end
|
||||
---* Adds a frame with an image filename. Internally it will create a SpriteFrame and it will add it.<br>
|
||||
---* The frame will be added with one "delay unit".<br>
|
||||
---* Added to facilitate the migration from v0.8 to v0.9.<br>
|
||||
---* param filename The path of SpriteFrame.
|
||||
---@param filename string
|
||||
---@return self
|
||||
function Animation:addSpriteFrameWithFile(filename) end
|
||||
---* Gets the total Delay units of the Animation. <br>
|
||||
---* return The total Delay units of the Animation.
|
||||
---@return float
|
||||
function Animation:getTotalDelayUnits() end
|
||||
---* Gets the delay in seconds of the "delay unit".<br>
|
||||
---* return The delay in seconds of the "delay unit".
|
||||
---@return float
|
||||
function Animation:getDelayPerUnit() end
|
||||
---* Initializes a Animation with frames and a delay between frames.<br>
|
||||
---* since v0.99.5
|
||||
---@param arrayOfSpriteFrameNames array_table
|
||||
---@param delay float
|
||||
---@param loops unsigned_int
|
||||
---@return boolean
|
||||
function Animation:initWithSpriteFrames(arrayOfSpriteFrameNames, delay, loops) end
|
||||
---* Checks whether to restore the original frame when animation finishes. <br>
|
||||
---* return Restore the original frame when animation finishes.
|
||||
---@return boolean
|
||||
function Animation:getRestoreOriginalFrame() end
|
||||
---* Adds a frame with a texture and a rect. Internally it will create a SpriteFrame and it will add it.<br>
|
||||
---* The frame will be added with one "delay unit".<br>
|
||||
---* Added to facilitate the migration from v0.8 to v0.9.<br>
|
||||
---* param pobTexture A frame with a texture.<br>
|
||||
---* param rect The Texture of rect.
|
||||
---@param pobTexture cc.Texture2D
|
||||
---@param rect rect_table
|
||||
---@return self
|
||||
function Animation:addSpriteFrameWithTexture(pobTexture, rect) end
|
||||
---@overload fun(array_table:array_table,float:float,unsigned_int:unsigned_int):self
|
||||
---@overload fun():self
|
||||
---@param arrayOfAnimationFrameNames array_table
|
||||
---@param delayPerUnit float
|
||||
---@param loops unsigned_int
|
||||
---@return self
|
||||
function Animation:create(arrayOfAnimationFrameNames, delayPerUnit, loops) end
|
||||
---*
|
||||
---@param arrayOfSpriteFrameNames array_table
|
||||
---@param delay float
|
||||
---@param loops unsigned_int
|
||||
---@return self
|
||||
function Animation:createWithSpriteFrames(arrayOfSpriteFrameNames, delay, loops) end
|
||||
---*
|
||||
---@return self
|
||||
function Animation:Animation() end
|
||||
@@ -0,0 +1,26 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Animation3D :cc.Ref
|
||||
local Animation3D = {}
|
||||
cc.Animation3D = Animation3D
|
||||
|
||||
---* init Animation3D with file name and animation name
|
||||
---@param filename string
|
||||
---@param animationName string
|
||||
---@return boolean
|
||||
function Animation3D:initWithFile(filename, animationName) end
|
||||
---* init Animation3D from bundle data
|
||||
---@param data cc.Animation3DData
|
||||
---@return boolean
|
||||
function Animation3D:init(data) end
|
||||
---* get duration
|
||||
---@return float
|
||||
function Animation3D:getDuration() end
|
||||
---* read all animation or only the animation with given animationName? animationName == "" read the first.
|
||||
---@param filename string
|
||||
---@param animationName string
|
||||
---@return self
|
||||
function Animation3D:create(filename, animationName) end
|
||||
---*
|
||||
---@return self
|
||||
function Animation3D:Animation3D() end
|
||||
@@ -0,0 +1,58 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AnimationCache :cc.Ref
|
||||
local AnimationCache = {}
|
||||
cc.AnimationCache = AnimationCache
|
||||
|
||||
---* Returns a Animation that was previously added.<br>
|
||||
---* If the name is not found it will return nil.<br>
|
||||
---* You should retain the returned copy if you are going to use it.<br>
|
||||
---* return A Animation that was previously added. If the name is not found it will return nil.
|
||||
---@param name string
|
||||
---@return cc.Animation
|
||||
function AnimationCache:getAnimation(name) end
|
||||
---* Adds a Animation with a name.<br>
|
||||
---* param animation An animation.<br>
|
||||
---* param name The name of animation.
|
||||
---@param animation cc.Animation
|
||||
---@param name string
|
||||
---@return self
|
||||
function AnimationCache:addAnimation(animation, name) end
|
||||
---*
|
||||
---@return boolean
|
||||
function AnimationCache:init() end
|
||||
---* Adds an animation from an NSDictionary.<br>
|
||||
---* Make sure that the frames were previously loaded in the SpriteFrameCache.<br>
|
||||
---* param dictionary An NSDictionary.<br>
|
||||
---* param plist The path of the relative file,it use to find the plist path for load SpriteFrames.<br>
|
||||
---* since v1.1<br>
|
||||
---* js NA
|
||||
---@param dictionary map_table
|
||||
---@param plist string
|
||||
---@return self
|
||||
function AnimationCache:addAnimationsWithDictionary(dictionary, plist) end
|
||||
---* Deletes a Animation from the cache.<br>
|
||||
---* param name The name of animation.
|
||||
---@param name string
|
||||
---@return self
|
||||
function AnimationCache:removeAnimation(name) end
|
||||
---* Adds an animation from a plist file.<br>
|
||||
---* Make sure that the frames were previously loaded in the SpriteFrameCache.<br>
|
||||
---* since v1.1<br>
|
||||
---* js addAnimations<br>
|
||||
---* lua addAnimations<br>
|
||||
---* param plist An animation from a plist file.
|
||||
---@param plist string
|
||||
---@return self
|
||||
function AnimationCache:addAnimationsWithFile(plist) end
|
||||
---* Purges the cache. It releases all the Animation objects and the shared instance.<br>
|
||||
---* js NA
|
||||
---@return self
|
||||
function AnimationCache:destroyInstance() end
|
||||
---* Returns the shared instance of the Animation cache <br>
|
||||
---* js NA
|
||||
---@return self
|
||||
function AnimationCache:getInstance() end
|
||||
---* js ctor
|
||||
---@return self
|
||||
function AnimationCache:AnimationCache() end
|
||||
@@ -0,0 +1,55 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AnimationFrame :cc.Ref
|
||||
local AnimationFrame = {}
|
||||
cc.AnimationFrame = AnimationFrame
|
||||
|
||||
---* Set the SpriteFrame.<br>
|
||||
---* param frame A SpriteFrame will be used.
|
||||
---@param frame cc.SpriteFrame
|
||||
---@return self
|
||||
function AnimationFrame:setSpriteFrame(frame) end
|
||||
---@overload fun():self
|
||||
---@overload fun():self
|
||||
---@return map_table
|
||||
function AnimationFrame:getUserInfo() end
|
||||
---* Sets the units of time the frame takes.<br>
|
||||
---* param delayUnits The units of time the frame takes.
|
||||
---@param delayUnits float
|
||||
---@return self
|
||||
function AnimationFrame:setDelayUnits(delayUnits) end
|
||||
---*
|
||||
---@return self
|
||||
function AnimationFrame:clone() end
|
||||
---* Return a SpriteFrameName to be used.<br>
|
||||
---* return a SpriteFrameName to be used.
|
||||
---@return cc.SpriteFrame
|
||||
function AnimationFrame:getSpriteFrame() end
|
||||
---* Gets the units of time the frame takes.<br>
|
||||
---* return The units of time the frame takes.
|
||||
---@return float
|
||||
function AnimationFrame:getDelayUnits() end
|
||||
---* Sets user information.<br>
|
||||
---* param userInfo A dictionary as UserInfo.
|
||||
---@param userInfo map_table
|
||||
---@return self
|
||||
function AnimationFrame:setUserInfo(userInfo) end
|
||||
---* initializes the animation frame with a spriteframe, number of delay units and a notification user info
|
||||
---@param spriteFrame cc.SpriteFrame
|
||||
---@param delayUnits float
|
||||
---@param userInfo map_table
|
||||
---@return boolean
|
||||
function AnimationFrame:initWithSpriteFrame(spriteFrame, delayUnits, userInfo) end
|
||||
---* Creates the animation frame with a spriteframe, number of delay units and a notification user info.<br>
|
||||
---* param spriteFrame The animation frame with a spriteframe.<br>
|
||||
---* param delayUnits Number of delay units.<br>
|
||||
---* param userInfo A notification user info.<br>
|
||||
---* since 3.0
|
||||
---@param spriteFrame cc.SpriteFrame
|
||||
---@param delayUnits float
|
||||
---@param userInfo map_table
|
||||
---@return self
|
||||
function AnimationFrame:create(spriteFrame, delayUnits, userInfo) end
|
||||
---* js ctor
|
||||
---@return self
|
||||
function AnimationFrame:AnimationFrame() end
|
||||
@@ -0,0 +1,35 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Application
|
||||
local Application = {}
|
||||
cc.Application = Application
|
||||
|
||||
---* brief Get target platform
|
||||
---@return int
|
||||
function Application:getTargetPlatform() end
|
||||
---* brief Get current language config<br>
|
||||
---* return Current language config
|
||||
---@return int
|
||||
function Application:getCurrentLanguage() end
|
||||
---* brief Get current language iso 639-1 code<br>
|
||||
---* return Current language iso 639-1 code
|
||||
---@return char
|
||||
function Application:getCurrentLanguageCode() end
|
||||
---* brief Open url in default browser<br>
|
||||
---* param String with url to open.<br>
|
||||
---* return true if the resource located by the URL was successfully opened; otherwise false.
|
||||
---@param url string
|
||||
---@return boolean
|
||||
function Application:openURL(url) end
|
||||
---* brief Get application version.
|
||||
---@return string
|
||||
function Application:getVersion() end
|
||||
---* brief Callback by Director to limit FPS.<br>
|
||||
---* param interval The time, expressed in seconds, between current frame and next.
|
||||
---@param interval float
|
||||
---@return self
|
||||
function Application:setAnimationInterval(interval) end
|
||||
---* brief Get current application instance.<br>
|
||||
---* return Current application instance pointer.
|
||||
---@return self
|
||||
function Application:getInstance() end
|
||||
@@ -0,0 +1,66 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AssetsManager :cc.Node
|
||||
local AssetsManager = {}
|
||||
cc.AssetsManager = AssetsManager
|
||||
|
||||
---*
|
||||
---@param storagePath char
|
||||
---@return self
|
||||
function AssetsManager:setStoragePath(storagePath) end
|
||||
---*
|
||||
---@param packageUrl char
|
||||
---@return self
|
||||
function AssetsManager:setPackageUrl(packageUrl) end
|
||||
---*
|
||||
---@return boolean
|
||||
function AssetsManager:checkUpdate() end
|
||||
---*
|
||||
---@return char
|
||||
function AssetsManager:getStoragePath() end
|
||||
---*
|
||||
---@return self
|
||||
function AssetsManager:update() end
|
||||
---* @brief Sets connection time out in seconds
|
||||
---@param timeout unsigned_int
|
||||
---@return self
|
||||
function AssetsManager:setConnectionTimeout(timeout) end
|
||||
---*
|
||||
---@param versionFileUrl char
|
||||
---@return self
|
||||
function AssetsManager:setVersionFileUrl(versionFileUrl) end
|
||||
---*
|
||||
---@return char
|
||||
function AssetsManager:getPackageUrl() end
|
||||
---* @brief Gets connection time out in seconds
|
||||
---@return unsigned_int
|
||||
function AssetsManager:getConnectionTimeout() end
|
||||
---*
|
||||
---@return string
|
||||
function AssetsManager:getVersion() end
|
||||
---*
|
||||
---@return char
|
||||
function AssetsManager:getVersionFileUrl() end
|
||||
---*
|
||||
---@return self
|
||||
function AssetsManager:deleteVersion() end
|
||||
---*
|
||||
---@param packageUrl char
|
||||
---@param versionFileUrl char
|
||||
---@param storagePath char
|
||||
---@param errorCallback function
|
||||
---@param progressCallback function
|
||||
---@param successCallback function
|
||||
---@return self
|
||||
function AssetsManager:create(
|
||||
packageUrl,
|
||||
versionFileUrl,
|
||||
storagePath,
|
||||
errorCallback,
|
||||
progressCallback,
|
||||
successCallback
|
||||
)
|
||||
end
|
||||
---*
|
||||
---@return self
|
||||
function AssetsManager:AssetsManager() end
|
||||
@@ -0,0 +1,60 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AssetsManagerEx :cc.Ref
|
||||
local AssetsManagerEx = {}
|
||||
cc.AssetsManagerEx = AssetsManagerEx
|
||||
|
||||
---* @brief Gets the current update state.
|
||||
---@return int
|
||||
function AssetsManagerEx:getState() end
|
||||
---* @brief Function for retrieving the max concurrent task count
|
||||
---@return int
|
||||
function AssetsManagerEx:getMaxConcurrentTask() end
|
||||
---* @brief Check out if there is a new version of manifest.<br>
|
||||
---* You may use this method before updating, then let user determine whether<br>
|
||||
---* he wants to update resources.
|
||||
---@return self
|
||||
function AssetsManagerEx:checkUpdate() end
|
||||
---* @brief Set the verification function for checking whether downloaded asset is correct, e.g. using md5 verification<br>
|
||||
---* param callback The verify callback function
|
||||
---@param callback function
|
||||
---@return self
|
||||
function AssetsManagerEx:setVerifyCallback(callback) end
|
||||
---* @brief Gets storage path.
|
||||
---@return string
|
||||
function AssetsManagerEx:getStoragePath() end
|
||||
---* @brief Update with the current local manifest.
|
||||
---@return self
|
||||
function AssetsManagerEx:update() end
|
||||
---* @brief Set the handle function for comparing manifests versions<br>
|
||||
---* param handle The compare function
|
||||
---@param handle function
|
||||
---@return self
|
||||
function AssetsManagerEx:setVersionCompareHandle(handle) end
|
||||
---* @brief Function for setting the max concurrent task count
|
||||
---@param max int
|
||||
---@return self
|
||||
function AssetsManagerEx:setMaxConcurrentTask(max) end
|
||||
---* @brief Function for retrieving the local manifest object
|
||||
---@return cc.Manifest
|
||||
function AssetsManagerEx:getLocalManifest() end
|
||||
---* @brief Function for retrieving the remote manifest object
|
||||
---@return cc.Manifest
|
||||
function AssetsManagerEx:getRemoteManifest() end
|
||||
---* @brief Reupdate all failed assets under the current AssetsManagerEx context
|
||||
---@return self
|
||||
function AssetsManagerEx:downloadFailedAssets() end
|
||||
---* @brief Create function for creating a new AssetsManagerEx<br>
|
||||
---* param manifestUrl The url for the local manifest file<br>
|
||||
---* param storagePath The storage path for downloaded assets<br>
|
||||
---* warning The cached manifest in your storage path have higher priority and will be searched first,<br>
|
||||
---* only if it doesn't exist, AssetsManagerEx will use the given manifestUrl.
|
||||
---@param manifestUrl string
|
||||
---@param storagePath string
|
||||
---@return self
|
||||
function AssetsManagerEx:create(manifestUrl, storagePath) end
|
||||
---*
|
||||
---@param manifestUrl string
|
||||
---@param storagePath string
|
||||
---@return self
|
||||
function AssetsManagerEx:AssetsManagerEx(manifestUrl, storagePath) end
|
||||
@@ -0,0 +1,28 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AsyncTaskPool
|
||||
local AsyncTaskPool = {}
|
||||
cc.AsyncTaskPool = AsyncTaskPool
|
||||
|
||||
---@overload fun(int:int,function:function):self
|
||||
---@overload fun(int:int,function:function,void:void,function:function):self
|
||||
---@param type int
|
||||
---@param callback function
|
||||
---@param callbackParam void
|
||||
---@param task function
|
||||
---@return self
|
||||
function AsyncTaskPool:enqueue(type, callback, callbackParam, task) end
|
||||
---* Stop tasks.<br>
|
||||
---* param type Task type you want to stop.
|
||||
---@param type int
|
||||
---@return self
|
||||
function AsyncTaskPool:stopTasks(type) end
|
||||
---* Destroys the async task pool.
|
||||
---@return self
|
||||
function AsyncTaskPool:destroyInstance() end
|
||||
---* Returns the shared instance of the async task pool.
|
||||
---@return self
|
||||
function AsyncTaskPool:getInstance() end
|
||||
---*
|
||||
---@return self
|
||||
function AsyncTaskPool:AsyncTaskPool() end
|
||||
@@ -0,0 +1,95 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AtlasNode :cc.Node@all parent class: Node,TextureProtocol
|
||||
local AtlasNode = {}
|
||||
cc.AtlasNode = AtlasNode
|
||||
|
||||
---* lua NA
|
||||
---@return cc.BlendFunc
|
||||
function AtlasNode:getBlendFunc() end
|
||||
---* Initializes an AtlasNode with an Atlas file the width and height of each item and the quantity of items to render
|
||||
---@param tile string
|
||||
---@param tileWidth int
|
||||
---@param tileHeight int
|
||||
---@param itemsToRender int
|
||||
---@return boolean
|
||||
function AtlasNode:initWithTileFile(tile, tileWidth, tileHeight, itemsToRender) end
|
||||
---* code<br>
|
||||
---* When this function bound into js or lua,the parameter will be changed<br>
|
||||
---* In js: var setBlendFunc(var src, var dst)<br>
|
||||
---* endcode<br>
|
||||
---* lua NA
|
||||
---@param blendFunc cc.BlendFunc
|
||||
---@return self
|
||||
function AtlasNode:setBlendFunc(blendFunc) end
|
||||
---* Set an buffer manager of the texture vertex.
|
||||
---@param textureAtlas cc.TextureAtlas
|
||||
---@return self
|
||||
function AtlasNode:setTextureAtlas(textureAtlas) end
|
||||
---*
|
||||
---@return cc.Texture2D
|
||||
function AtlasNode:getTexture() end
|
||||
---* Return the buffer manager of the texture vertex. <br>
|
||||
---* return Return A TextureAtlas.
|
||||
---@return cc.TextureAtlas
|
||||
function AtlasNode:getTextureAtlas() end
|
||||
---* updates the Atlas (indexed vertex array).<br>
|
||||
---* Shall be overridden in subclasses.
|
||||
---@return self
|
||||
function AtlasNode:updateAtlasValues() end
|
||||
---*
|
||||
---@param texture cc.Texture2D
|
||||
---@return self
|
||||
function AtlasNode:setTexture(texture) end
|
||||
---* Initializes an AtlasNode with a texture the width and height of each item measured in points and the quantity of items to render
|
||||
---@param texture cc.Texture2D
|
||||
---@param tileWidth int
|
||||
---@param tileHeight int
|
||||
---@param itemsToRender int
|
||||
---@return boolean
|
||||
function AtlasNode:initWithTexture(texture, tileWidth, tileHeight, itemsToRender) end
|
||||
---*
|
||||
---@return unsigned_int
|
||||
function AtlasNode:getQuadsToDraw() end
|
||||
---*
|
||||
---@param quadsToDraw int
|
||||
---@return self
|
||||
function AtlasNode:setQuadsToDraw(quadsToDraw) end
|
||||
---* creates a AtlasNode with an Atlas file the width and height of each item and the quantity of items to render.<br>
|
||||
---* param filename The path of Atlas file.<br>
|
||||
---* param tileWidth The width of the item.<br>
|
||||
---* param tileHeight The height of the item.<br>
|
||||
---* param itemsToRender The quantity of items to render.
|
||||
---@param filename string
|
||||
---@param tileWidth int
|
||||
---@param tileHeight int
|
||||
---@param itemsToRender int
|
||||
---@return self
|
||||
function AtlasNode:create(filename, tileWidth, tileHeight, itemsToRender) end
|
||||
---*
|
||||
---@param renderer cc.Renderer
|
||||
---@param transform mat4_table
|
||||
---@param flags unsigned_int
|
||||
---@return self
|
||||
function AtlasNode:draw(renderer, transform, flags) end
|
||||
---*
|
||||
---@return boolean
|
||||
function AtlasNode:isOpacityModifyRGB() end
|
||||
---*
|
||||
---@param color color3b_table
|
||||
---@return self
|
||||
function AtlasNode:setColor(color) end
|
||||
---*
|
||||
---@return color3b_table
|
||||
function AtlasNode:getColor() end
|
||||
---*
|
||||
---@param isOpacityModifyRGB boolean
|
||||
---@return self
|
||||
function AtlasNode:setOpacityModifyRGB(isOpacityModifyRGB) end
|
||||
---*
|
||||
---@param opacity unsigned_char
|
||||
---@return self
|
||||
function AtlasNode:setOpacity(opacity) end
|
||||
---*
|
||||
---@return self
|
||||
function AtlasNode:AtlasNode() end
|
||||
@@ -0,0 +1,29 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AttachNode :cc.Node
|
||||
local AttachNode = {}
|
||||
cc.AttachNode = AttachNode
|
||||
|
||||
---* creates an AttachNode<br>
|
||||
---* param attachBone The bone to which the AttachNode is going to attach, the attacheBone must be a bone of the AttachNode's parent
|
||||
---@param attachBone cc.Bone3D
|
||||
---@return self
|
||||
function AttachNode:create(attachBone) end
|
||||
---*
|
||||
---@param renderer cc.Renderer
|
||||
---@param parentTransform mat4_table
|
||||
---@param parentFlags unsigned_int
|
||||
---@return self
|
||||
function AttachNode:visit(renderer, parentTransform, parentFlags) end
|
||||
---*
|
||||
---@return mat4_table
|
||||
function AttachNode:getWorldToNodeTransform() end
|
||||
---*
|
||||
---@return mat4_table
|
||||
function AttachNode:getNodeToWorldTransform() end
|
||||
---*
|
||||
---@return mat4_table
|
||||
function AttachNode:getNodeToParentTransform() end
|
||||
---*
|
||||
---@return self
|
||||
function AttachNode:AttachNode() end
|
||||
@@ -0,0 +1,148 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AudioEngine
|
||||
local AudioEngine = {}
|
||||
cc.AudioEngine = AudioEngine
|
||||
|
||||
---*
|
||||
---@return boolean
|
||||
function AudioEngine:lazyInit() end
|
||||
---* Sets the current playback position of an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.<br>
|
||||
---* param sec The offset in seconds from the start to seek to.<br>
|
||||
---* return
|
||||
---@param audioID int
|
||||
---@param sec float
|
||||
---@return boolean
|
||||
function AudioEngine:setCurrentTime(audioID, sec) end
|
||||
---* Gets the volume value of an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.<br>
|
||||
---* return Volume value (range from 0.0 to 1.0).
|
||||
---@param audioID int
|
||||
---@return float
|
||||
function AudioEngine:getVolume(audioID) end
|
||||
---* Uncache the audio data from internal buffer.<br>
|
||||
---* AudioEngine cache audio data on ios,mac, and win32 platform.<br>
|
||||
---* warning This can lead to stop related audio first.<br>
|
||||
---* param filePath Audio file path.
|
||||
---@param filePath string
|
||||
---@return self
|
||||
function AudioEngine:uncache(filePath) end
|
||||
---* Resume all suspended audio instances.
|
||||
---@return self
|
||||
function AudioEngine:resumeAll() end
|
||||
---* Stop all audio instances.
|
||||
---@return self
|
||||
function AudioEngine:stopAll() end
|
||||
---* Pause an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.
|
||||
---@param audioID int
|
||||
---@return self
|
||||
function AudioEngine:pause(audioID) end
|
||||
---* Gets the maximum number of simultaneous audio instance of AudioEngine.
|
||||
---@return int
|
||||
function AudioEngine:getMaxAudioInstance() end
|
||||
---* Check whether AudioEngine is enabled.
|
||||
---@return boolean
|
||||
function AudioEngine:isEnabled() end
|
||||
---* Gets the current playback position of an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.<br>
|
||||
---* return The current playback position of an audio instance.
|
||||
---@param audioID int
|
||||
---@return float
|
||||
function AudioEngine:getCurrentTime(audioID) end
|
||||
---* Sets the maximum number of simultaneous audio instance for AudioEngine.<br>
|
||||
---* param maxInstances The maximum number of simultaneous audio instance.
|
||||
---@param maxInstances int
|
||||
---@return boolean
|
||||
function AudioEngine:setMaxAudioInstance(maxInstances) end
|
||||
---* Checks whether an audio instance is loop.<br>
|
||||
---* param audioID An audioID returned by the play2d function.<br>
|
||||
---* return Whether or not an audio instance is loop.
|
||||
---@param audioID int
|
||||
---@return boolean
|
||||
function AudioEngine:isLoop(audioID) end
|
||||
---* Pause all playing audio instances.
|
||||
---@return self
|
||||
function AudioEngine:pauseAll() end
|
||||
---* Uncache all audio data from internal buffer.<br>
|
||||
---* warning All audio will be stopped first.
|
||||
---@return self
|
||||
function AudioEngine:uncacheAll() end
|
||||
---* Sets volume for an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.<br>
|
||||
---* param volume Volume value (range from 0.0 to 1.0).
|
||||
---@param audioID int
|
||||
---@param volume float
|
||||
---@return self
|
||||
function AudioEngine:setVolume(audioID, volume) end
|
||||
---@overload fun(string:string,function:function):self
|
||||
---@overload fun(string:string):self
|
||||
---@param filePath string
|
||||
---@param callback function
|
||||
---@return self
|
||||
function AudioEngine:preload(filePath, callback) end
|
||||
---* Whether to enable playing audios<br>
|
||||
---* note If it's disabled, current playing audios will be stopped and the later 'preload', 'play2d' methods will take no effects.
|
||||
---@param isEnabled boolean
|
||||
---@return self
|
||||
function AudioEngine:setEnabled(isEnabled) end
|
||||
---* Play 2d sound.<br>
|
||||
---* param filePath The path of an audio file.<br>
|
||||
---* param loop Whether audio instance loop or not.<br>
|
||||
---* param volume Volume value (range from 0.0 to 1.0).<br>
|
||||
---* param profile A profile for audio instance. When profile is not specified, default profile will be used.<br>
|
||||
---* return An audio ID. It allows you to dynamically change the behavior of an audio instance on the fly.<br>
|
||||
---* see `AudioProfile`
|
||||
---@param filePath string
|
||||
---@param loop boolean
|
||||
---@param volume float
|
||||
---@param profile cc.AudioProfile
|
||||
---@return int
|
||||
function AudioEngine:play2d(filePath, loop, volume, profile) end
|
||||
---* Returns the state of an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.<br>
|
||||
---* return The status of an audio instance.
|
||||
---@param audioID int
|
||||
---@return int
|
||||
function AudioEngine:getState(audioID) end
|
||||
---* Resume an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.
|
||||
---@param audioID int
|
||||
---@return self
|
||||
function AudioEngine:resume(audioID) end
|
||||
---* Stop an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.
|
||||
---@param audioID int
|
||||
---@return self
|
||||
function AudioEngine:stop(audioID) end
|
||||
---* Release objects relating to AudioEngine.<br>
|
||||
---* warning It must be called before the application exit.<br>
|
||||
---* lua endToLua
|
||||
---@return self
|
||||
function AudioEngine:endToLua() end
|
||||
---* Gets the duration of an audio instance.<br>
|
||||
---* param audioID An audioID returned by the play2d function.<br>
|
||||
---* return The duration of an audio instance.
|
||||
---@param audioID int
|
||||
---@return float
|
||||
function AudioEngine:getDuration(audioID) end
|
||||
---* Sets whether an audio instance loop or not.<br>
|
||||
---* param audioID An audioID returned by the play2d function.<br>
|
||||
---* param loop Whether audio instance loop or not.
|
||||
---@param audioID int
|
||||
---@param loop boolean
|
||||
---@return self
|
||||
function AudioEngine:setLoop(audioID, loop) end
|
||||
---* Gets the default profile of audio instances.<br>
|
||||
---* return The default profile of audio instances.
|
||||
---@return cc.AudioProfile
|
||||
function AudioEngine:getDefaultProfile() end
|
||||
---@overload fun(int0:string):self
|
||||
---@overload fun(int:int):self
|
||||
---@param audioID int
|
||||
---@return cc.AudioProfile
|
||||
function AudioEngine:getProfile(audioID) end
|
||||
---* Gets playing audio count.
|
||||
---@return int
|
||||
function AudioEngine:getPlayingAudioCount() end
|
||||
@@ -0,0 +1,10 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AudioProfile
|
||||
local AudioProfile = {}
|
||||
cc.AudioProfile = AudioProfile
|
||||
|
||||
---* Default constructor<br>
|
||||
---* lua new
|
||||
---@return self
|
||||
function AudioProfile:AudioProfile() end
|
||||
@@ -0,0 +1,13 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.AutoPolygon
|
||||
local AutoPolygon = {}
|
||||
cc.AutoPolygon = AutoPolygon
|
||||
|
||||
---* create an AutoPolygon and initialize it with an image file<br>
|
||||
---* the image must be a 32bit PNG for current version 3.7<br>
|
||||
---* param filename a path to image file, e.g., "scene1/monster.png".<br>
|
||||
---* return an AutoPolygon object;
|
||||
---@param filename string
|
||||
---@return self
|
||||
function AutoPolygon:AutoPolygon(filename) end
|
||||
@@ -0,0 +1,31 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.BaseLight :cc.Node
|
||||
local BaseLight = {}
|
||||
cc.BaseLight = BaseLight
|
||||
|
||||
---* light enabled getter and setter.
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function BaseLight:setEnabled(enabled) end
|
||||
---* intensity getter and setter
|
||||
---@return float
|
||||
function BaseLight:getIntensity() end
|
||||
---*
|
||||
---@return boolean
|
||||
function BaseLight:isEnabled() end
|
||||
---* Get the light type,light type MUST be one of LightType::DIRECTIONAL ,<br>
|
||||
---* LightType::POINT, LightType::SPOT, LightType::AMBIENT.
|
||||
---@return int
|
||||
function BaseLight:getLightType() end
|
||||
---*
|
||||
---@param flag int
|
||||
---@return self
|
||||
function BaseLight:setLightFlag(flag) end
|
||||
---*
|
||||
---@param intensity float
|
||||
---@return self
|
||||
function BaseLight:setIntensity(intensity) end
|
||||
---* light flag getter and setter
|
||||
---@return int
|
||||
function BaseLight:getLightFlag() end
|
||||
@@ -0,0 +1,29 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.BezierBy :cc.ActionInterval
|
||||
local BezierBy = {}
|
||||
cc.BezierBy = BezierBy
|
||||
|
||||
---* initializes the action with a duration and a bezier configuration<br>
|
||||
---* param t in seconds
|
||||
---@param t float
|
||||
---@param c cc._ccBezierConfig
|
||||
---@return boolean
|
||||
function BezierBy:initWithDuration(t, c) end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function BezierBy:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function BezierBy:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function BezierBy:reverse() end
|
||||
---* param time In seconds.
|
||||
---@param time float
|
||||
---@return self
|
||||
function BezierBy:update(time) end
|
||||
---*
|
||||
---@return self
|
||||
function BezierBy:BezierBy() end
|
||||
@@ -0,0 +1,24 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.BezierTo :cc.BezierBy
|
||||
local BezierTo = {}
|
||||
cc.BezierTo = BezierTo
|
||||
|
||||
---* param t In seconds.
|
||||
---@param t float
|
||||
---@param c cc._ccBezierConfig
|
||||
---@return boolean
|
||||
function BezierTo:initWithDuration(t, c) end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function BezierTo:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function BezierTo:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function BezierTo:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function BezierTo:BezierTo() end
|
||||
@@ -0,0 +1,38 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.BillBoard :cc.Sprite
|
||||
local BillBoard = {}
|
||||
cc.BillBoard = BillBoard
|
||||
|
||||
---* Get the billboard rotation mode.
|
||||
---@return int
|
||||
function BillBoard:getMode() end
|
||||
---* Set the billboard rotation mode.
|
||||
---@param mode int
|
||||
---@return self
|
||||
function BillBoard:setMode(mode) end
|
||||
---@overload fun(string:string,rect_table1:int):self
|
||||
---@overload fun(string0:int):self
|
||||
---@overload fun(string:string,rect_table:rect_table,int:int):self
|
||||
---@param filename string
|
||||
---@param rect rect_table
|
||||
---@param mode int
|
||||
---@return self
|
||||
function BillBoard:create(filename, rect, mode) end
|
||||
---* Creates a BillBoard with a Texture2D object.<br>
|
||||
---* After creation, the rect will be the size of the texture, and the offset will be (0,0).<br>
|
||||
---* param texture A pointer to a Texture2D object.<br>
|
||||
---* return An autoreleased BillBoard object
|
||||
---@param texture cc.Texture2D
|
||||
---@param mode int
|
||||
---@return self
|
||||
function BillBoard:createWithTexture(texture, mode) end
|
||||
---* update billboard's transform and turn it towards camera
|
||||
---@param renderer cc.Renderer
|
||||
---@param parentTransform mat4_table
|
||||
---@param parentFlags unsigned_int
|
||||
---@return self
|
||||
function BillBoard:visit(renderer, parentTransform, parentFlags) end
|
||||
---*
|
||||
---@return self
|
||||
function BillBoard:BillBoard() end
|
||||
@@ -0,0 +1,40 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Blink :cc.ActionInterval
|
||||
local Blink = {}
|
||||
cc.Blink = Blink
|
||||
|
||||
---* initializes the action <br>
|
||||
---* param duration in seconds
|
||||
---@param duration float
|
||||
---@param blinks int
|
||||
---@return boolean
|
||||
function Blink:initWithDuration(duration, blinks) end
|
||||
---* Creates the action.<br>
|
||||
---* param duration Duration time, in seconds.<br>
|
||||
---* param blinks Blink times.<br>
|
||||
---* return An autoreleased Blink object.
|
||||
---@param duration float
|
||||
---@param blinks int
|
||||
---@return self
|
||||
function Blink:create(duration, blinks) end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function Blink:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function Blink:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function Blink:stop() end
|
||||
---*
|
||||
---@return self
|
||||
function Blink:reverse() end
|
||||
---* param time In seconds.
|
||||
---@param time float
|
||||
---@return self
|
||||
function Blink:update(time) end
|
||||
---*
|
||||
---@return self
|
||||
function Blink:Blink() end
|
||||
@@ -0,0 +1,56 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Bundle3D
|
||||
local Bundle3D = {}
|
||||
cc.Bundle3D = Bundle3D
|
||||
|
||||
---* load a file. You must load a file first, then call loadMeshData, loadSkinData, and so on<br>
|
||||
---* param path File to be loaded<br>
|
||||
---* return result of load
|
||||
---@param path string
|
||||
---@return boolean
|
||||
function Bundle3D:load(path) end
|
||||
---* load skin data from bundle<br>
|
||||
---* param id The ID of the skin, load the first Skin in the bundle if it is empty
|
||||
---@param id string
|
||||
---@param skindata cc.SkinData
|
||||
---@return boolean
|
||||
function Bundle3D:loadSkinData(id, skindata) end
|
||||
---*
|
||||
---@return self
|
||||
function Bundle3D:clear() end
|
||||
---*
|
||||
---@param materialdatas cc.MaterialDatas
|
||||
---@return boolean
|
||||
function Bundle3D:loadMaterials(materialdatas) end
|
||||
---*
|
||||
---@param nodedatas cc.NodeDatas
|
||||
---@return boolean
|
||||
function Bundle3D:loadNodes(nodedatas) end
|
||||
---* load material data from bundle<br>
|
||||
---* param id The ID of the animation, load the first animation in the bundle if it is empty
|
||||
---@param id string
|
||||
---@param animationdata cc.Animation3DData
|
||||
---@return boolean
|
||||
function Bundle3D:loadAnimationData(id, animationdata) end
|
||||
---* get define data type<br>
|
||||
---* param str The type in string
|
||||
---@param str string
|
||||
---@return int
|
||||
function Bundle3D:parseSamplerAddressMode(str) end
|
||||
---*
|
||||
---@param bundle cc.Bundle3D
|
||||
---@return self
|
||||
function Bundle3D:destroyBundle(bundle) end
|
||||
---* create a new bundle, destroy it when finish using it
|
||||
---@return self
|
||||
function Bundle3D:createBundle() end
|
||||
---* get define data type<br>
|
||||
---* param str The type in string
|
||||
---@param str string
|
||||
---@param size int
|
||||
---@return int
|
||||
function Bundle3D:parseGLDataType(str, size) end
|
||||
---*
|
||||
---@return self
|
||||
function Bundle3D:Bundle3D() end
|
||||
@@ -0,0 +1,65 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CSLoader
|
||||
local CSLoader = {}
|
||||
cc.CSLoader = CSLoader
|
||||
|
||||
---*
|
||||
---@param filename string
|
||||
---@return cc.Node
|
||||
function CSLoader:createNodeFromJson(filename) end
|
||||
---*
|
||||
---@param filename string
|
||||
---@return cc.Node
|
||||
function CSLoader:createNodeWithFlatBuffersFile(filename) end
|
||||
---*
|
||||
---@param fileName string
|
||||
---@return cc.Node
|
||||
function CSLoader:loadNodeWithFile(fileName) end
|
||||
---*
|
||||
---@param callbackName string
|
||||
---@param callbackType string
|
||||
---@param sender ccui.Widget
|
||||
---@param handler cc.Node
|
||||
---@return boolean
|
||||
function CSLoader:bindCallback(callbackName, callbackType, sender, handler) end
|
||||
---*
|
||||
---@param jsonPath string
|
||||
---@return self
|
||||
function CSLoader:setJsonPath(jsonPath) end
|
||||
---*
|
||||
---@return self
|
||||
function CSLoader:init() end
|
||||
---*
|
||||
---@param content string
|
||||
---@return cc.Node
|
||||
function CSLoader:loadNodeWithContent(content) end
|
||||
---*
|
||||
---@return boolean
|
||||
function CSLoader:isRecordJsonPath() end
|
||||
---*
|
||||
---@return string
|
||||
function CSLoader:getJsonPath() end
|
||||
---*
|
||||
---@param record boolean
|
||||
---@return self
|
||||
function CSLoader:setRecordJsonPath(record) end
|
||||
---*
|
||||
---@param filename string
|
||||
---@return cc.Node
|
||||
function CSLoader:createNodeWithFlatBuffersForSimulator(filename) end
|
||||
---*
|
||||
---@return self
|
||||
function CSLoader:destroyInstance() end
|
||||
---@overload fun(string:string,function:function):self
|
||||
---@overload fun(string:string):self
|
||||
---@param filename string
|
||||
---@param callback function
|
||||
---@return cc.Node
|
||||
function CSLoader:createNodeWithVisibleSize(filename, callback) end
|
||||
---*
|
||||
---@return self
|
||||
function CSLoader:getInstance() end
|
||||
---*
|
||||
---@return self
|
||||
function CSLoader:CSLoader() end
|
||||
@@ -0,0 +1,22 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CallFunc :cc.ActionInstant
|
||||
local CallFunc = {}
|
||||
cc.CallFunc = CallFunc
|
||||
|
||||
---* Executes the callback.
|
||||
---@return self
|
||||
function CallFunc:execute() end
|
||||
---*
|
||||
---@return self
|
||||
function CallFunc:clone() end
|
||||
---* param time In seconds.
|
||||
---@param time float
|
||||
---@return self
|
||||
function CallFunc:update(time) end
|
||||
---*
|
||||
---@return self
|
||||
function CallFunc:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function CallFunc:CallFunc() end
|
||||
@@ -0,0 +1,163 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Camera :cc.Node
|
||||
local Camera = {}
|
||||
cc.Camera = Camera
|
||||
|
||||
---* get depth, camera with larger depth is drawn on top of camera with smaller depth, the depth of camera with CameraFlag::DEFAULT is 0, user defined camera is -1 by default
|
||||
---@return char
|
||||
function Camera:getDepth() end
|
||||
---* get view projection matrix
|
||||
---@return mat4_table
|
||||
function Camera:getViewProjectionMatrix() end
|
||||
---*
|
||||
---@return self
|
||||
function Camera:applyViewport() end
|
||||
---* set the background brush. See CameraBackgroundBrush for more information.<br>
|
||||
---* param clearBrush Brush used to clear the background
|
||||
---@param clearBrush cc.CameraBackgroundBrush
|
||||
---@return self
|
||||
function Camera:setBackgroundBrush(clearBrush) end
|
||||
---* Make Camera looks at target<br>
|
||||
---* param target The target camera is point at<br>
|
||||
---* param up The up vector, usually it's Y axis
|
||||
---@param target vec3_table
|
||||
---@param up vec3_table
|
||||
---@return self
|
||||
function Camera:lookAt(target, up) end
|
||||
---* Apply the FBO, RenderTargets and viewport.
|
||||
---@return self
|
||||
function Camera:apply() end
|
||||
---* Get clear brush
|
||||
---@return cc.CameraBackgroundBrush
|
||||
function Camera:getBackgroundBrush() end
|
||||
---* Gets the camera's projection matrix.<br>
|
||||
---* return The camera projection matrix.
|
||||
---@return mat4_table
|
||||
function Camera:getProjectionMatrix() end
|
||||
---*
|
||||
---@return boolean
|
||||
function Camera:isBrushValid() end
|
||||
---* Get object depth towards camera
|
||||
---@param transform mat4_table
|
||||
---@return float
|
||||
function Camera:getDepthInView(transform) end
|
||||
---* Before rendering scene with this camera, the background need to be cleared. It clears the depth buffer with max depth by default. Use setBackgroundBrush to modify the default behavior
|
||||
---@return self
|
||||
function Camera:clearBackground() end
|
||||
---* set additional matrix for the projection matrix, it multiplies mat to projection matrix when called, used by WP8
|
||||
---@param mat mat4_table
|
||||
---@return self
|
||||
function Camera:setAdditionalProjection(mat) end
|
||||
---* init camera
|
||||
---@return boolean
|
||||
function Camera:initDefault() end
|
||||
---* get & set Camera flag
|
||||
---@return int
|
||||
function Camera:getCameraFlag() end
|
||||
---* Gets the type of camera.<br>
|
||||
---* return The camera type.
|
||||
---@return int
|
||||
function Camera:getType() end
|
||||
---*
|
||||
---@param zoomX float
|
||||
---@param zoomY float
|
||||
---@param nearPlane float
|
||||
---@param farPlane float
|
||||
---@return boolean
|
||||
function Camera:initOrthographic(zoomX, zoomY, nearPlane, farPlane) end
|
||||
---* get rendered order
|
||||
---@return int
|
||||
function Camera:getRenderOrder() end
|
||||
---* Is this aabb visible in frustum
|
||||
---@param aabb cc.AABB
|
||||
---@return boolean
|
||||
function Camera:isVisibleInFrustum(aabb) end
|
||||
---* set depth, camera with larger depth is drawn on top of camera with smaller depth, the depth of camera with CameraFlag::DEFAULT is 0, user defined camera is -1 by default
|
||||
---@param depth char
|
||||
---@return self
|
||||
function Camera:setDepth(depth) end
|
||||
---* Set the scene,this method shall not be invoke manually
|
||||
---@param scene cc.Scene
|
||||
---@return self
|
||||
function Camera:setScene(scene) end
|
||||
---*
|
||||
---@param src vec3_table
|
||||
---@return vec2_table
|
||||
function Camera:projectGL(src) end
|
||||
---* Gets the camera's view matrix.<br>
|
||||
---* return The camera view matrix.
|
||||
---@return mat4_table
|
||||
function Camera:getViewMatrix() end
|
||||
---* Get the frustum's near plane.
|
||||
---@return float
|
||||
function Camera:getNearPlane() end
|
||||
---*
|
||||
---@param src vec3_table
|
||||
---@return vec2_table
|
||||
function Camera:project(src) end
|
||||
---*
|
||||
---@param flag int
|
||||
---@return self
|
||||
function Camera:setCameraFlag(flag) end
|
||||
---* Get the frustum's far plane.
|
||||
---@return float
|
||||
function Camera:getFarPlane() end
|
||||
---* Whether or not the viewprojection matrix was updated since the last frame.<br>
|
||||
---* return True if the viewprojection matrix was updated since the last frame.
|
||||
---@return boolean
|
||||
function Camera:isViewProjectionUpdated() end
|
||||
---*
|
||||
---@param fieldOfView float
|
||||
---@param aspectRatio float
|
||||
---@param nearPlane float
|
||||
---@param farPlane float
|
||||
---@return boolean
|
||||
function Camera:initPerspective(fieldOfView, aspectRatio, nearPlane, farPlane) end
|
||||
---* Creates an orthographic camera.<br>
|
||||
---* param zoomX The zoom factor along the X-axis of the orthographic projection (the width of the ortho projection).<br>
|
||||
---* param zoomY The zoom factor along the Y-axis of the orthographic projection (the height of the ortho projection).<br>
|
||||
---* param nearPlane The near plane distance.<br>
|
||||
---* param farPlane The far plane distance.
|
||||
---@param zoomX float
|
||||
---@param zoomY float
|
||||
---@param nearPlane float
|
||||
---@param farPlane float
|
||||
---@return self
|
||||
function Camera:createOrthographic(zoomX, zoomY, nearPlane, farPlane) end
|
||||
---* Get the visiting camera , the visiting camera shall be set on Scene::render
|
||||
---@return self
|
||||
function Camera:getVisitingCamera() end
|
||||
---* create default camera, the camera type depends on Director::getProjection, the depth of the default camera is 0
|
||||
---@return self
|
||||
function Camera:create() end
|
||||
---* Creates a perspective camera.<br>
|
||||
---* param fieldOfView The field of view for the perspective camera (normally in the range of 40-60 degrees).<br>
|
||||
---* param aspectRatio The aspect ratio of the camera (normally the width of the viewport divided by the height of the viewport).<br>
|
||||
---* param nearPlane The near plane distance.<br>
|
||||
---* param farPlane The far plane distance.
|
||||
---@param fieldOfView float
|
||||
---@param aspectRatio float
|
||||
---@param nearPlane float
|
||||
---@param farPlane float
|
||||
---@return self
|
||||
function Camera:createPerspective(fieldOfView, aspectRatio, nearPlane, farPlane) end
|
||||
---*
|
||||
---@return cc.Viewport
|
||||
function Camera:getDefaultViewport() end
|
||||
---*
|
||||
---@param vp cc.Viewport
|
||||
---@return self
|
||||
function Camera:setDefaultViewport(vp) end
|
||||
---* Get the default camera of the current running scene.
|
||||
---@return self
|
||||
function Camera:getDefaultCamera() end
|
||||
---*
|
||||
---@param renderer cc.Renderer
|
||||
---@param parentTransform mat4_table
|
||||
---@param parentFlags unsigned_int
|
||||
---@return self
|
||||
function Camera:visit(renderer, parentTransform, parentFlags) end
|
||||
---*
|
||||
---@return self
|
||||
function Camera:Camera() end
|
||||
@@ -0,0 +1,64 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CameraBackgroundBrush :cc.Ref
|
||||
local CameraBackgroundBrush = {}
|
||||
cc.CameraBackgroundBrush = CameraBackgroundBrush
|
||||
|
||||
---* get brush type<br>
|
||||
---* return BrushType
|
||||
---@return int
|
||||
function CameraBackgroundBrush:getBrushType() end
|
||||
---* draw the background
|
||||
---@param a cc.Camer
|
||||
---@return self
|
||||
function CameraBackgroundBrush:drawBackground(a) end
|
||||
---*
|
||||
---@return boolean
|
||||
function CameraBackgroundBrush:init() end
|
||||
---*
|
||||
---@return boolean
|
||||
function CameraBackgroundBrush:isValid() end
|
||||
---* Creates a Skybox brush with 6 textures.<br>
|
||||
---* param positive_x texture for the right side of the texture cube face.<br>
|
||||
---* param negative_x texture for the up side of the texture cube face.<br>
|
||||
---* param positive_y texture for the top side of the texture cube face<br>
|
||||
---* param negative_y texture for the bottom side of the texture cube face<br>
|
||||
---* param positive_z texture for the forward side of the texture cube face.<br>
|
||||
---* param negative_z texture for the rear side of the texture cube face.<br>
|
||||
---* return A new brush inited with given parameters.
|
||||
---@param positive_x string
|
||||
---@param negative_x string
|
||||
---@param positive_y string
|
||||
---@param negative_y string
|
||||
---@param positive_z string
|
||||
---@param negative_z string
|
||||
---@return cc.CameraBackgroundSkyBoxBrush
|
||||
function CameraBackgroundBrush:createSkyboxBrush(
|
||||
positive_x,
|
||||
negative_x,
|
||||
positive_y,
|
||||
negative_y,
|
||||
positive_z,
|
||||
negative_z
|
||||
)
|
||||
end
|
||||
---* Creates a color brush<br>
|
||||
---* param color Color of brush<br>
|
||||
---* param depth Depth used to clear depth buffer<br>
|
||||
---* return Created brush
|
||||
---@param color color4f_table
|
||||
---@param depth float
|
||||
---@return cc.CameraBackgroundColorBrush
|
||||
function CameraBackgroundBrush:createColorBrush(color, depth) end
|
||||
---* Creates a none brush, it does nothing when clear the background<br>
|
||||
---* return Created brush.
|
||||
---@return self
|
||||
function CameraBackgroundBrush:createNoneBrush() end
|
||||
---* Creates a depth brush, which clears depth buffer with a given depth.<br>
|
||||
---* param depth Depth used to clear depth buffer<br>
|
||||
---* return Created brush
|
||||
---@return cc.CameraBackgroundDepthBrush
|
||||
function CameraBackgroundBrush:createDepthBrush() end
|
||||
---*
|
||||
---@return self
|
||||
function CameraBackgroundBrush:CameraBackgroundBrush() end
|
||||
@@ -0,0 +1,33 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CameraBackgroundColorBrush :cc.CameraBackgroundDepthBrush
|
||||
local CameraBackgroundColorBrush = {}
|
||||
cc.CameraBackgroundColorBrush = CameraBackgroundColorBrush
|
||||
|
||||
---* Set clear color<br>
|
||||
---* param color Color used to clear the color buffer
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function CameraBackgroundColorBrush:setColor(color) end
|
||||
---* Create a color brush<br>
|
||||
---* param color Color used to clear the color buffer<br>
|
||||
---* param depth Depth used to clear the depth buffer<br>
|
||||
---* return Created brush
|
||||
---@param color color4f_table
|
||||
---@param depth float
|
||||
---@return self
|
||||
function CameraBackgroundColorBrush:create(color, depth) end
|
||||
---* Get brush type. Should be BrushType::COLOR<br>
|
||||
---* return brush type
|
||||
---@return int
|
||||
function CameraBackgroundColorBrush:getBrushType() end
|
||||
---* Draw background
|
||||
---@param camera cc.Camera
|
||||
---@return self
|
||||
function CameraBackgroundColorBrush:drawBackground(camera) end
|
||||
---*
|
||||
---@return boolean
|
||||
function CameraBackgroundColorBrush:init() end
|
||||
---*
|
||||
---@return self
|
||||
function CameraBackgroundColorBrush:CameraBackgroundColorBrush() end
|
||||
@@ -0,0 +1,31 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CameraBackgroundDepthBrush :cc.CameraBackgroundBrush
|
||||
local CameraBackgroundDepthBrush = {}
|
||||
cc.CameraBackgroundDepthBrush = CameraBackgroundDepthBrush
|
||||
|
||||
---* Set depth<br>
|
||||
---* param depth Depth used to clear depth buffer
|
||||
---@param depth float
|
||||
---@return self
|
||||
function CameraBackgroundDepthBrush:setDepth(depth) end
|
||||
---* Create a depth brush<br>
|
||||
---* param depth Depth used to clear the depth buffer<br>
|
||||
---* return Created brush
|
||||
---@param depth float
|
||||
---@return self
|
||||
function CameraBackgroundDepthBrush:create(depth) end
|
||||
---* Get brush type. Should be BrushType::DEPTH<br>
|
||||
---* return brush type
|
||||
---@return int
|
||||
function CameraBackgroundDepthBrush:getBrushType() end
|
||||
---* Draw background
|
||||
---@param camera cc.Camera
|
||||
---@return self
|
||||
function CameraBackgroundDepthBrush:drawBackground(camera) end
|
||||
---*
|
||||
---@return boolean
|
||||
function CameraBackgroundDepthBrush:init() end
|
||||
---*
|
||||
---@return self
|
||||
function CameraBackgroundDepthBrush:CameraBackgroundDepthBrush() end
|
||||
@@ -0,0 +1,49 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CameraBackgroundSkyBoxBrush :cc.CameraBackgroundBrush
|
||||
local CameraBackgroundSkyBoxBrush = {}
|
||||
cc.CameraBackgroundSkyBoxBrush = CameraBackgroundSkyBoxBrush
|
||||
|
||||
---*
|
||||
---@param valid boolean
|
||||
---@return self
|
||||
function CameraBackgroundSkyBoxBrush:setTextureValid(valid) end
|
||||
---* Set skybox texture <br>
|
||||
---* param texture Skybox texture
|
||||
---@param texture cc.TextureCube
|
||||
---@return self
|
||||
function CameraBackgroundSkyBoxBrush:setTexture(texture) end
|
||||
---*
|
||||
---@param actived boolean
|
||||
---@return self
|
||||
function CameraBackgroundSkyBoxBrush:setActived(actived) end
|
||||
---*
|
||||
---@return boolean
|
||||
function CameraBackgroundSkyBoxBrush:isActived() end
|
||||
---@overload fun():self
|
||||
---@overload fun(string:string,string:string,string:string,string:string,string:string,string:string):self
|
||||
---@param positive_x string
|
||||
---@param negative_x string
|
||||
---@param positive_y string
|
||||
---@param negative_y string
|
||||
---@param positive_z string
|
||||
---@param negative_z string
|
||||
---@return self
|
||||
function CameraBackgroundSkyBoxBrush:create(positive_x, negative_x, positive_y, negative_y, positive_z, negative_z) end
|
||||
---* Get brush type. Should be BrushType::SKYBOX<br>
|
||||
---* return brush type
|
||||
---@return int
|
||||
function CameraBackgroundSkyBoxBrush:getBrushType() end
|
||||
---* Draw background
|
||||
---@param camera cc.Camera
|
||||
---@return self
|
||||
function CameraBackgroundSkyBoxBrush:drawBackground(camera) end
|
||||
---* init Skybox.
|
||||
---@return boolean
|
||||
function CameraBackgroundSkyBoxBrush:init() end
|
||||
---*
|
||||
---@return boolean
|
||||
function CameraBackgroundSkyBoxBrush:isValid() end
|
||||
---*
|
||||
---@return self
|
||||
function CameraBackgroundSkyBoxBrush:CameraBackgroundSkyBoxBrush() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CardinalSplineBy :cc.CardinalSplineTo
|
||||
local CardinalSplineBy = {}
|
||||
cc.CardinalSplineBy = CardinalSplineBy
|
||||
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function CardinalSplineBy:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function CardinalSplineBy:clone() end
|
||||
---*
|
||||
---@param newPos vec2_table
|
||||
---@return self
|
||||
function CardinalSplineBy:updatePosition(newPos) end
|
||||
---*
|
||||
---@return self
|
||||
function CardinalSplineBy:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function CardinalSplineBy:CardinalSplineBy() end
|
||||
@@ -0,0 +1,42 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CardinalSplineTo :cc.ActionInterval
|
||||
local CardinalSplineTo = {}
|
||||
cc.CardinalSplineTo = CardinalSplineTo
|
||||
|
||||
---* Return a PointArray.<br>
|
||||
---* return A PointArray.
|
||||
---@return point_table
|
||||
function CardinalSplineTo:getPoints() end
|
||||
---* It will update the target position and change the _previousPosition to newPos<br>
|
||||
---* param newPos The new position.
|
||||
---@param newPos vec2_table
|
||||
---@return self
|
||||
function CardinalSplineTo:updatePosition(newPos) end
|
||||
---* Initializes the action with a duration and an array of points.<br>
|
||||
---* param duration In seconds.<br>
|
||||
---* param points An PointArray.<br>
|
||||
---* param tension Goodness of fit.
|
||||
---@param duration float
|
||||
---@param points point_table
|
||||
---@param tension float
|
||||
---@return boolean
|
||||
function CardinalSplineTo:initWithDuration(duration, points, tension) end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@return self
|
||||
function CardinalSplineTo:startWithTarget(target) end
|
||||
---*
|
||||
---@return self
|
||||
function CardinalSplineTo:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function CardinalSplineTo:reverse() end
|
||||
---* param time In seconds.
|
||||
---@param time float
|
||||
---@return self
|
||||
function CardinalSplineTo:update(time) end
|
||||
---* js ctor<br>
|
||||
---* lua NA
|
||||
---@return self
|
||||
function CardinalSplineTo:CardinalSplineTo() end
|
||||
@@ -0,0 +1,19 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CatmullRomBy :cc.CardinalSplineBy
|
||||
local CatmullRomBy = {}
|
||||
cc.CatmullRomBy = CatmullRomBy
|
||||
|
||||
---* Initializes the action with a duration and an array of points.<br>
|
||||
---* param dt In seconds.<br>
|
||||
---* param points An PointArray.
|
||||
---@param dt float
|
||||
---@param points point_table
|
||||
---@return boolean
|
||||
function CatmullRomBy:initWithDuration(dt, points) end
|
||||
---*
|
||||
---@return self
|
||||
function CatmullRomBy:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function CatmullRomBy:reverse() end
|
||||
@@ -0,0 +1,19 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.CatmullRomTo :cc.CardinalSplineTo
|
||||
local CatmullRomTo = {}
|
||||
cc.CatmullRomTo = CatmullRomTo
|
||||
|
||||
---* Initializes the action with a duration and an array of points.<br>
|
||||
---* param dt In seconds.<br>
|
||||
---* param points An PointArray.
|
||||
---@param dt float
|
||||
---@param points point_table
|
||||
---@return boolean
|
||||
function CatmullRomTo:initWithDuration(dt, points) end
|
||||
---*
|
||||
---@return self
|
||||
function CatmullRomTo:clone() end
|
||||
---*
|
||||
---@return self
|
||||
function CatmullRomTo:reverse() end
|
||||
@@ -0,0 +1,74 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ClippingNode :cc.Node
|
||||
local ClippingNode = {}
|
||||
cc.ClippingNode = ClippingNode
|
||||
|
||||
---* If stencil has no children it will not be drawn.<br>
|
||||
---* If you have custom stencil-based node with stencil drawing mechanics other then children-based,<br>
|
||||
---* then this method should return true every time you wish stencil to be visited.<br>
|
||||
---* By default returns true if has any children attached.<br>
|
||||
---* return If you have custom stencil-based node with stencil drawing mechanics other then children-based,<br>
|
||||
---* then this method should return true every time you wish stencil to be visited.<br>
|
||||
---* By default returns true if has any children attached.<br>
|
||||
---* js NA
|
||||
---@return boolean
|
||||
function ClippingNode:hasContent() end
|
||||
---* Set the ClippingNode whether or not invert.<br>
|
||||
---* param inverted A bool Type,to set the ClippingNode whether or not invert.
|
||||
---@param inverted boolean
|
||||
---@return self
|
||||
function ClippingNode:setInverted(inverted) end
|
||||
---* Set the Node to use as a stencil to do the clipping.<br>
|
||||
---* param stencil The Node to use as a stencil to do the clipping.
|
||||
---@param stencil cc.Node
|
||||
---@return self
|
||||
function ClippingNode:setStencil(stencil) end
|
||||
---* The alpha threshold.<br>
|
||||
---* The content is drawn only where the stencil have pixel with alpha greater than the alphaThreshold.<br>
|
||||
---* Should be a float between 0 and 1.<br>
|
||||
---* This default to 1 (so alpha test is disabled).<br>
|
||||
---* return The alpha threshold value,Should be a float between 0 and 1.
|
||||
---@return float
|
||||
function ClippingNode:getAlphaThreshold() end
|
||||
---* Initializes a clipping node with an other node as its stencil.<br>
|
||||
---* The stencil node will be retained, and its parent will be set to this clipping node.
|
||||
---@param stencil cc.Node
|
||||
---@return boolean
|
||||
function ClippingNode:init(stencil) end
|
||||
---* The Node to use as a stencil to do the clipping.<br>
|
||||
---* The stencil node will be retained.<br>
|
||||
---* This default to nil.<br>
|
||||
---* return The stencil node.
|
||||
---@return cc.Node
|
||||
function ClippingNode:getStencil() end
|
||||
---* Set the alpha threshold. <br>
|
||||
---* param alphaThreshold The alpha threshold.
|
||||
---@param alphaThreshold float
|
||||
---@return self
|
||||
function ClippingNode:setAlphaThreshold(alphaThreshold) end
|
||||
---* Inverted. If this is set to true,<br>
|
||||
---* the stencil is inverted, so the content is drawn where the stencil is NOT drawn.<br>
|
||||
---* This default to false.<br>
|
||||
---* return If the clippingNode is Inverted, it will be return true.
|
||||
---@return boolean
|
||||
function ClippingNode:isInverted() end
|
||||
---@overload fun(cc.Node:cc.Node):self
|
||||
---@overload fun():self
|
||||
---@param stencil cc.Node
|
||||
---@return self
|
||||
function ClippingNode:create(stencil) end
|
||||
---*
|
||||
---@param mask unsigned short
|
||||
---@param applyChildren boolean
|
||||
---@return self
|
||||
function ClippingNode:setCameraMask(mask, applyChildren) end
|
||||
---*
|
||||
---@param renderer cc.Renderer
|
||||
---@param parentTransform mat4_table
|
||||
---@param parentFlags unsigned_int
|
||||
---@return self
|
||||
function ClippingNode:visit(renderer, parentTransform, parentFlags) end
|
||||
---* Initializes a clipping node without a stencil.
|
||||
---@return boolean
|
||||
function ClippingNode:init() end
|
||||
@@ -0,0 +1,35 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ClippingRectangleNode :cc.Node
|
||||
local ClippingRectangleNode = {}
|
||||
cc.ClippingRectangleNode = ClippingRectangleNode
|
||||
|
||||
---* brief Get whether the clipping is enabled or not.<br>
|
||||
---* return Whether the clipping is enabled or not. Default is true.
|
||||
---@return boolean
|
||||
function ClippingRectangleNode:isClippingEnabled() end
|
||||
---* brief Enable/Disable the clipping.<br>
|
||||
---* param enabled Pass true to enable clipping. Pass false to disable clipping.
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ClippingRectangleNode:setClippingEnabled(enabled) end
|
||||
---* brief Get the clipping rectangle.<br>
|
||||
---* return The clipping rectangle.
|
||||
---@return rect_table
|
||||
function ClippingRectangleNode:getClippingRegion() end
|
||||
---* brief Set the clipping rectangle.<br>
|
||||
---* param clippingRegion Specify the clipping rectangle.
|
||||
---@param clippingRegion rect_table
|
||||
---@return self
|
||||
function ClippingRectangleNode:setClippingRegion(clippingRegion) end
|
||||
---@overload fun():self
|
||||
---@overload fun(rect_table:rect_table):self
|
||||
---@param clippingRegion rect_table
|
||||
---@return self
|
||||
function ClippingRectangleNode:create(clippingRegion) end
|
||||
---*
|
||||
---@param renderer cc.Renderer
|
||||
---@param parentTransform mat4_table
|
||||
---@param parentFlags unsigned_int
|
||||
---@return self
|
||||
function ClippingRectangleNode:visit(renderer, parentTransform, parentFlags) end
|
||||
@@ -0,0 +1,43 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Component :cc.Ref
|
||||
local Component = {}
|
||||
cc.Component = Component
|
||||
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function Component:setEnabled(enabled) end
|
||||
---*
|
||||
---@return self
|
||||
function Component:onRemove() end
|
||||
---*
|
||||
---@param name string
|
||||
---@return self
|
||||
function Component:setName(name) end
|
||||
---*
|
||||
---@return boolean
|
||||
function Component:isEnabled() end
|
||||
---*
|
||||
---@param delta float
|
||||
---@return self
|
||||
function Component:update(delta) end
|
||||
---*
|
||||
---@return cc.Node
|
||||
function Component:getOwner() end
|
||||
---*
|
||||
---@return boolean
|
||||
function Component:init() end
|
||||
---*
|
||||
---@param owner cc.Node
|
||||
---@return self
|
||||
function Component:setOwner(owner) end
|
||||
---*
|
||||
---@return string
|
||||
function Component:getName() end
|
||||
---*
|
||||
---@return self
|
||||
function Component:onAdd() end
|
||||
---*
|
||||
---@return self
|
||||
function Component:create() end
|
||||
@@ -0,0 +1,21 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ComponentLua :cc.Component
|
||||
local ComponentLua = {}
|
||||
cc.ComponentLua = ComponentLua
|
||||
|
||||
---* This function is used to be invoked from lua side to get the corresponding script object of this component.
|
||||
---@return void
|
||||
function ComponentLua:getScriptObject() end
|
||||
---*
|
||||
---@param dt float
|
||||
---@return self
|
||||
function ComponentLua:update(dt) end
|
||||
---*
|
||||
---@param scriptFileName string
|
||||
---@return self
|
||||
function ComponentLua:create(scriptFileName) end
|
||||
---*
|
||||
---@param scriptFileName string
|
||||
---@return self
|
||||
function ComponentLua:ComponentLua(scriptFileName) end
|
||||
@@ -0,0 +1,37 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Console :cc.Ref
|
||||
local Console = {}
|
||||
cc.Console = Console
|
||||
|
||||
---* starts listening to specified TCP port
|
||||
---@param port int
|
||||
---@return boolean
|
||||
function Console:listenOnTCP(port) end
|
||||
---* log something in the console
|
||||
---@param buf char
|
||||
---@return self
|
||||
function Console:log(buf) end
|
||||
---* delete custom command
|
||||
---@param cmdName string
|
||||
---@return self
|
||||
function Console:delCommand(cmdName) end
|
||||
---* stops the Console. 'stop' will be called at destruction time as well
|
||||
---@return self
|
||||
function Console:stop() end
|
||||
---* starts listening to specified file descriptor
|
||||
---@param fd int
|
||||
---@return boolean
|
||||
function Console:listenOnFileDescriptor(fd) end
|
||||
---*
|
||||
---@param var char
|
||||
---@return self
|
||||
function Console:setCommandSeparator(var) end
|
||||
---* set bind address<br>
|
||||
---* address : 127.0.0.1
|
||||
---@param address string
|
||||
---@return self
|
||||
function Console:setBindAddress(address) end
|
||||
---* Checks whether the server for console is bound with ipv6 address
|
||||
---@return boolean
|
||||
function Console:isIpv6Server() end
|
||||
@@ -0,0 +1,91 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Control :cc.Layer
|
||||
local Control = {}
|
||||
cc.Control = Control
|
||||
|
||||
---* Tells whether the control is enabled.
|
||||
---@param bEnabled boolean
|
||||
---@return self
|
||||
function Control:setEnabled(bEnabled) end
|
||||
---*
|
||||
---@return int
|
||||
function Control:getState() end
|
||||
---* Sends action messages for the given control events.<br>
|
||||
---* param controlEvents A bitmask whose set flags specify the control events for<br>
|
||||
---* which action messages are sent. See "CCControlEvent" for bitmask constants.
|
||||
---@param controlEvents int
|
||||
---@return self
|
||||
function Control:sendActionsForControlEvents(controlEvents) end
|
||||
---* A Boolean value that determines the control selected state.
|
||||
---@param bSelected boolean
|
||||
---@return self
|
||||
function Control:setSelected(bSelected) end
|
||||
---*
|
||||
---@return boolean
|
||||
function Control:isEnabled() end
|
||||
---* Updates the control layout using its current internal state.
|
||||
---@return self
|
||||
function Control:needsLayout() end
|
||||
---*
|
||||
---@return boolean
|
||||
function Control:hasVisibleParents() end
|
||||
---*
|
||||
---@return boolean
|
||||
function Control:isSelected() end
|
||||
---* Returns a boolean value that indicates whether a touch is inside the bounds<br>
|
||||
---* of the receiver. The given touch must be relative to the world.<br>
|
||||
---* param touch A Touch object that represents a touch.<br>
|
||||
---* return Whether a touch is inside the receiver's rect.
|
||||
---@param touch cc.Touch
|
||||
---@return boolean
|
||||
function Control:isTouchInside(touch) end
|
||||
---* A Boolean value that determines whether the control is highlighted.
|
||||
---@param bHighlighted boolean
|
||||
---@return self
|
||||
function Control:setHighlighted(bHighlighted) end
|
||||
---* Returns a point corresponding to the touch location converted into the<br>
|
||||
---* control space coordinates.<br>
|
||||
---* param touch A Touch object that represents a touch.
|
||||
---@param touch cc.Touch
|
||||
---@return vec2_table
|
||||
function Control:getTouchLocation(touch) end
|
||||
---*
|
||||
---@return boolean
|
||||
function Control:isHighlighted() end
|
||||
---* Creates a Control object
|
||||
---@return self
|
||||
function Control:create() end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param event cc.Event
|
||||
---@return self
|
||||
function Control:onTouchMoved(touch, event) end
|
||||
---*
|
||||
---@return boolean
|
||||
function Control:isOpacityModifyRGB() end
|
||||
---*
|
||||
---@param bOpacityModifyRGB boolean
|
||||
---@return self
|
||||
function Control:setOpacityModifyRGB(bOpacityModifyRGB) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param event cc.Event
|
||||
---@return self
|
||||
function Control:onTouchCancelled(touch, event) end
|
||||
---*
|
||||
---@return boolean
|
||||
function Control:init() end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param event cc.Event
|
||||
---@return self
|
||||
function Control:onTouchEnded(touch, event) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param event cc.Event
|
||||
---@return boolean
|
||||
function Control:onTouchBegan(touch, event) end
|
||||
---* js ctor
|
||||
---@return self
|
||||
function Control:Control() end
|
||||
@@ -0,0 +1,260 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ControlButton :cc.Control
|
||||
local ControlButton = {}
|
||||
cc.ControlButton = ControlButton
|
||||
|
||||
---*
|
||||
---@return boolean
|
||||
function ControlButton:isPushed() end
|
||||
---* Sets the title label to use for the specified state.<br>
|
||||
---* If a property is not specified for a state, the default is to use<br>
|
||||
---* the ButtonStateNormal value.<br>
|
||||
---* param label The title label to use for the specified state.<br>
|
||||
---* param state The state that uses the specified title. The values are described<br>
|
||||
---* in "CCControlState".
|
||||
---@param label cc.Node
|
||||
---@param state int
|
||||
---@return self
|
||||
function ControlButton:setTitleLabelForState(label, state) end
|
||||
---*
|
||||
---@param adjustBackgroundImage boolean
|
||||
---@return self
|
||||
function ControlButton:setAdjustBackgroundImage(adjustBackgroundImage) end
|
||||
---* Sets the title string to use for the specified state.<br>
|
||||
---* If a property is not specified for a state, the default is to use<br>
|
||||
---* the ButtonStateNormal value.<br>
|
||||
---* param title The title string to use for the specified state.<br>
|
||||
---* param state The state that uses the specified title. The values are described<br>
|
||||
---* in "CCControlState".
|
||||
---@param title string
|
||||
---@param state int
|
||||
---@return self
|
||||
function ControlButton:setTitleForState(title, state) end
|
||||
---*
|
||||
---@param var vec2_table
|
||||
---@return self
|
||||
function ControlButton:setLabelAnchorPoint(var) end
|
||||
---*
|
||||
---@return vec2_table
|
||||
function ControlButton:getLabelAnchorPoint() end
|
||||
---*
|
||||
---@param sprite ccui.Scale9Sprite
|
||||
---@return boolean
|
||||
function ControlButton:initWithBackgroundSprite(sprite) end
|
||||
---*
|
||||
---@param state int
|
||||
---@return float
|
||||
function ControlButton:getTitleTTFSizeForState(state) end
|
||||
---*
|
||||
---@param fntFile string
|
||||
---@param state int
|
||||
---@return self
|
||||
function ControlButton:setTitleTTFForState(fntFile, state) end
|
||||
---*
|
||||
---@param size float
|
||||
---@param state int
|
||||
---@return self
|
||||
function ControlButton:setTitleTTFSizeForState(size, state) end
|
||||
---*
|
||||
---@param var cc.Node
|
||||
---@return self
|
||||
function ControlButton:setTitleLabel(var) end
|
||||
---*
|
||||
---@param var size_table
|
||||
---@return self
|
||||
function ControlButton:setPreferredSize(var) end
|
||||
---*
|
||||
---@return color3b_table
|
||||
function ControlButton:getCurrentTitleColor() end
|
||||
---*
|
||||
---@param var boolean
|
||||
---@return self
|
||||
function ControlButton:setZoomOnTouchDown(var) end
|
||||
---*
|
||||
---@param var ccui.Scale9Sprite
|
||||
---@return self
|
||||
function ControlButton:setBackgroundSprite(var) end
|
||||
---* Returns the background sprite used for a state.<br>
|
||||
---* param state The state that uses the background sprite. Possible values are<br>
|
||||
---* described in "CCControlState".
|
||||
---@param state int
|
||||
---@return ccui.Scale9Sprite
|
||||
function ControlButton:getBackgroundSpriteForState(state) end
|
||||
---*
|
||||
---@return int
|
||||
function ControlButton:getHorizontalOrigin() end
|
||||
---*
|
||||
---@param title string
|
||||
---@param fontName string
|
||||
---@param fontSize float
|
||||
---@return boolean
|
||||
function ControlButton:initWithTitleAndFontNameAndFontSize(title, fontName, fontSize) end
|
||||
---* Sets the font of the label, changes the label to a BMFont if necessary.<br>
|
||||
---* param fntFile The name of the font to change to<br>
|
||||
---* param state The state that uses the specified fntFile. The values are described<br>
|
||||
---* in "CCControlState".
|
||||
---@param fntFile string
|
||||
---@param state int
|
||||
---@return self
|
||||
function ControlButton:setTitleBMFontForState(fntFile, state) end
|
||||
---*
|
||||
---@return float
|
||||
function ControlButton:getScaleRatio() end
|
||||
---*
|
||||
---@param state int
|
||||
---@return string
|
||||
function ControlButton:getTitleTTFForState(state) end
|
||||
---*
|
||||
---@return ccui.Scale9Sprite
|
||||
function ControlButton:getBackgroundSprite() end
|
||||
---* Returns the title color used for a state.<br>
|
||||
---* param state The state that uses the specified color. The values are described<br>
|
||||
---* in "CCControlState".<br>
|
||||
---* return The color of the title for the specified state.
|
||||
---@param state int
|
||||
---@return color3b_table
|
||||
function ControlButton:getTitleColorForState(state) end
|
||||
---* Sets the color of the title to use for the specified state.<br>
|
||||
---* param color The color of the title to use for the specified state.<br>
|
||||
---* param state The state that uses the specified color. The values are described<br>
|
||||
---* in "CCControlState".
|
||||
---@param color color3b_table
|
||||
---@param state int
|
||||
---@return self
|
||||
function ControlButton:setTitleColorForState(color, state) end
|
||||
---* Adjust the background image. YES by default. If the property is set to NO, the<br>
|
||||
---* background will use the preferred size of the background image.
|
||||
---@return boolean
|
||||
function ControlButton:doesAdjustBackgroundImage() end
|
||||
---* Sets the background spriteFrame to use for the specified button state.<br>
|
||||
---* param spriteFrame The background spriteFrame to use for the specified state.<br>
|
||||
---* param state The state that uses the specified image. The values are described<br>
|
||||
---* in "CCControlState".
|
||||
---@param spriteFrame cc.SpriteFrame
|
||||
---@param state int
|
||||
---@return self
|
||||
function ControlButton:setBackgroundSpriteFrameForState(spriteFrame, state) end
|
||||
---* Sets the background sprite to use for the specified button state.<br>
|
||||
---* param sprite The background sprite to use for the specified state.<br>
|
||||
---* param state The state that uses the specified image. The values are described<br>
|
||||
---* in "CCControlState".
|
||||
---@param sprite ccui.Scale9Sprite
|
||||
---@param state int
|
||||
---@return self
|
||||
function ControlButton:setBackgroundSpriteForState(sprite, state) end
|
||||
---*
|
||||
---@param var float
|
||||
---@return self
|
||||
function ControlButton:setScaleRatio(var) end
|
||||
---*
|
||||
---@param state int
|
||||
---@return string
|
||||
function ControlButton:getTitleBMFontForState(state) end
|
||||
---*
|
||||
---@return cc.Node
|
||||
function ControlButton:getTitleLabel() end
|
||||
---*
|
||||
---@return size_table
|
||||
function ControlButton:getPreferredSize() end
|
||||
---*
|
||||
---@return int
|
||||
function ControlButton:getVerticalMargin() end
|
||||
---* Returns the title label used for a state.<br>
|
||||
---* param state The state that uses the title label. Possible values are described<br>
|
||||
---* in "CCControlState".
|
||||
---@param state int
|
||||
---@return cc.Node
|
||||
function ControlButton:getTitleLabelForState(state) end
|
||||
---*
|
||||
---@param marginH int
|
||||
---@param marginV int
|
||||
---@return self
|
||||
function ControlButton:setMargins(marginH, marginV) end
|
||||
---@overload fun():self
|
||||
---@overload fun():self
|
||||
---@return string
|
||||
function ControlButton:getCurrentTitle() end
|
||||
---*
|
||||
---@param label cc.Node
|
||||
---@param backgroundSprite ccui.Scale9Sprite
|
||||
---@param adjustBackGroundSize boolean
|
||||
---@return boolean
|
||||
function ControlButton:initWithLabelAndBackgroundSprite(label, backgroundSprite, adjustBackGroundSize) end
|
||||
---*
|
||||
---@return boolean
|
||||
function ControlButton:getZoomOnTouchDown() end
|
||||
---* Returns the title used for a state.<br>
|
||||
---* param state The state that uses the title. Possible values are described in<br>
|
||||
---* "CCControlState".<br>
|
||||
---* return The title for the specified state.
|
||||
---@param state int
|
||||
---@return string
|
||||
function ControlButton:getTitleForState(state) end
|
||||
---@overload fun(cc.Node0:ccui.Scale9Sprite):self
|
||||
---@overload fun():self
|
||||
---@overload fun(cc.Node:cc.Node,ccui.Scale9Sprite:ccui.Scale9Sprite):self
|
||||
---@overload fun(cc.Node0:string,ccui.Scale9Sprite1:string,boolean2:float):self
|
||||
---@overload fun(cc.Node:cc.Node,ccui.Scale9Sprite:ccui.Scale9Sprite,boolean:boolean):self
|
||||
---@param label cc.Node
|
||||
---@param backgroundSprite ccui.Scale9Sprite
|
||||
---@param adjustBackGroundSize boolean
|
||||
---@return self
|
||||
function ControlButton:create(label, backgroundSprite, adjustBackGroundSize) end
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ControlButton:setEnabled(enabled) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param event cc.Event
|
||||
---@return self
|
||||
function ControlButton:onTouchEnded(touch, event) end
|
||||
---*
|
||||
---@param e color3b_tabl
|
||||
---@return self
|
||||
function ControlButton:setColor(e) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param event cc.Event
|
||||
---@return self
|
||||
function ControlButton:onTouchMoved(touch, event) end
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ControlButton:setSelected(enabled) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param event cc.Event
|
||||
---@return self
|
||||
function ControlButton:onTouchCancelled(touch, event) end
|
||||
---*
|
||||
---@return self
|
||||
function ControlButton:needsLayout() end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param event cc.Event
|
||||
---@return boolean
|
||||
function ControlButton:onTouchBegan(touch, event) end
|
||||
---*
|
||||
---@param parentOpacity unsigned_char
|
||||
---@return self
|
||||
function ControlButton:updateDisplayedOpacity(parentOpacity) end
|
||||
---*
|
||||
---@return boolean
|
||||
function ControlButton:init() end
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ControlButton:setHighlighted(enabled) end
|
||||
---*
|
||||
---@param parentColor color3b_table
|
||||
---@return self
|
||||
function ControlButton:updateDisplayedColor(parentColor) end
|
||||
---*
|
||||
---@param var unsigned_char
|
||||
---@return self
|
||||
function ControlButton:setOpacity(var) end
|
||||
---* js ctor
|
||||
---@return self
|
||||
function ControlButton:ControlButton() end
|
||||
@@ -0,0 +1,55 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ControlColourPicker :cc.Control
|
||||
local ControlColourPicker = {}
|
||||
cc.ControlColourPicker = ControlColourPicker
|
||||
|
||||
---*
|
||||
---@param sender cc.Ref
|
||||
---@param controlEvent int
|
||||
---@return self
|
||||
function ControlColourPicker:hueSliderValueChanged(sender, controlEvent) end
|
||||
---*
|
||||
---@return cc.ControlHuePicker
|
||||
function ControlColourPicker:getHuePicker() end
|
||||
---*
|
||||
---@return cc.ControlSaturationBrightnessPicker
|
||||
function ControlColourPicker:getcolourPicker() end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlColourPicker:setBackground(var) end
|
||||
---*
|
||||
---@param var cc.ControlSaturationBrightnessPicker
|
||||
---@return self
|
||||
function ControlColourPicker:setcolourPicker(var) end
|
||||
---*
|
||||
---@param sender cc.Ref
|
||||
---@param controlEvent int
|
||||
---@return self
|
||||
function ControlColourPicker:colourSliderValueChanged(sender, controlEvent) end
|
||||
---*
|
||||
---@param var cc.ControlHuePicker
|
||||
---@return self
|
||||
function ControlColourPicker:setHuePicker(var) end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlColourPicker:getBackground() end
|
||||
---*
|
||||
---@return self
|
||||
function ControlColourPicker:create() end
|
||||
---*
|
||||
---@param bEnabled boolean
|
||||
---@return self
|
||||
function ControlColourPicker:setEnabled(bEnabled) end
|
||||
---*
|
||||
---@return boolean
|
||||
function ControlColourPicker:init() end
|
||||
---*
|
||||
---@param colorValue color3b_table
|
||||
---@return self
|
||||
function ControlColourPicker:setColor(colorValue) end
|
||||
---* js ctor<br>
|
||||
---* lua new
|
||||
---@return self
|
||||
function ControlColourPicker:ControlColourPicker() end
|
||||
@@ -0,0 +1,64 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ControlHuePicker :cc.Control
|
||||
local ControlHuePicker = {}
|
||||
cc.ControlHuePicker = ControlHuePicker
|
||||
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@param pos vec2_table
|
||||
---@return boolean
|
||||
function ControlHuePicker:initWithTargetAndPos(target, pos) end
|
||||
---*
|
||||
---@param val float
|
||||
---@return self
|
||||
function ControlHuePicker:setHue(val) end
|
||||
---*
|
||||
---@return vec2_table
|
||||
function ControlHuePicker:getStartPos() end
|
||||
---*
|
||||
---@return float
|
||||
function ControlHuePicker:getHue() end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlHuePicker:getSlider() end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlHuePicker:setBackground(var) end
|
||||
---*
|
||||
---@param val float
|
||||
---@return self
|
||||
function ControlHuePicker:setHuePercentage(val) end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlHuePicker:getBackground() end
|
||||
---*
|
||||
---@return float
|
||||
function ControlHuePicker:getHuePercentage() end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlHuePicker:setSlider(var) end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@param pos vec2_table
|
||||
---@return self
|
||||
function ControlHuePicker:create(target, pos) end
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ControlHuePicker:setEnabled(enabled) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return self
|
||||
function ControlHuePicker:onTouchMoved(pTouch, pEvent) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return boolean
|
||||
function ControlHuePicker:onTouchBegan(touch, pEvent) end
|
||||
---* js ctor
|
||||
---@return self
|
||||
function ControlHuePicker:ControlHuePicker() end
|
||||
@@ -0,0 +1,119 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ControlPotentiometer :cc.Control
|
||||
local ControlPotentiometer = {}
|
||||
cc.ControlPotentiometer = ControlPotentiometer
|
||||
|
||||
---*
|
||||
---@param var vec2_table
|
||||
---@return self
|
||||
function ControlPotentiometer:setPreviousLocation(var) end
|
||||
---*
|
||||
---@param value float
|
||||
---@return self
|
||||
function ControlPotentiometer:setValue(value) end
|
||||
---*
|
||||
---@return cc.ProgressTimer
|
||||
function ControlPotentiometer:getProgressTimer() end
|
||||
---*
|
||||
---@return float
|
||||
function ControlPotentiometer:getMaximumValue() end
|
||||
---* Returns the angle in degree between line1 and line2.
|
||||
---@param beginLineA vec2_table
|
||||
---@param endLineA vec2_table
|
||||
---@param beginLineB vec2_table
|
||||
---@param endLineB vec2_table
|
||||
---@return float
|
||||
function ControlPotentiometer:angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint(
|
||||
beginLineA,
|
||||
endLineA,
|
||||
beginLineB,
|
||||
endLineB
|
||||
)
|
||||
end
|
||||
---* Factorize the event dispatch into these methods.
|
||||
---@param location vec2_table
|
||||
---@return self
|
||||
function ControlPotentiometer:potentiometerBegan(location) end
|
||||
---*
|
||||
---@param maximumValue float
|
||||
---@return self
|
||||
function ControlPotentiometer:setMaximumValue(maximumValue) end
|
||||
---*
|
||||
---@return float
|
||||
function ControlPotentiometer:getMinimumValue() end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlPotentiometer:setThumbSprite(var) end
|
||||
---*
|
||||
---@return float
|
||||
function ControlPotentiometer:getValue() end
|
||||
---* Returns the distance between the point1 and point2.
|
||||
---@param point1 vec2_table
|
||||
---@param point2 vec2_table
|
||||
---@return float
|
||||
function ControlPotentiometer:distanceBetweenPointAndPoint(point1, point2) end
|
||||
---*
|
||||
---@param location vec2_table
|
||||
---@return self
|
||||
function ControlPotentiometer:potentiometerEnded(location) end
|
||||
---*
|
||||
---@return vec2_table
|
||||
function ControlPotentiometer:getPreviousLocation() end
|
||||
---*
|
||||
---@param var cc.ProgressTimer
|
||||
---@return self
|
||||
function ControlPotentiometer:setProgressTimer(var) end
|
||||
---*
|
||||
---@param minimumValue float
|
||||
---@return self
|
||||
function ControlPotentiometer:setMinimumValue(minimumValue) end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlPotentiometer:getThumbSprite() end
|
||||
---* Initializes a potentiometer with a track sprite and a progress bar.<br>
|
||||
---* param trackSprite Sprite, that is used as a background.<br>
|
||||
---* param progressTimer ProgressTimer, that is used as a progress bar.
|
||||
---@param trackSprite cc.Sprite
|
||||
---@param progressTimer cc.ProgressTimer
|
||||
---@param thumbSprite cc.Sprite
|
||||
---@return boolean
|
||||
function ControlPotentiometer:initWithTrackSprite_ProgressTimer_ThumbSprite(trackSprite, progressTimer, thumbSprite) end
|
||||
---*
|
||||
---@param location vec2_table
|
||||
---@return self
|
||||
function ControlPotentiometer:potentiometerMoved(location) end
|
||||
---* Creates potentiometer with a track filename and a progress filename.
|
||||
---@param backgroundFile char
|
||||
---@param progressFile char
|
||||
---@param thumbFile char
|
||||
---@return self
|
||||
function ControlPotentiometer:create(backgroundFile, progressFile, thumbFile) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@return boolean
|
||||
function ControlPotentiometer:isTouchInside(touch) end
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ControlPotentiometer:setEnabled(enabled) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return self
|
||||
function ControlPotentiometer:onTouchMoved(pTouch, pEvent) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return self
|
||||
function ControlPotentiometer:onTouchEnded(pTouch, pEvent) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return boolean
|
||||
function ControlPotentiometer:onTouchBegan(pTouch, pEvent) end
|
||||
---* js ctor<br>
|
||||
---* lua new
|
||||
---@return self
|
||||
function ControlPotentiometer:ControlPotentiometer() end
|
||||
@@ -0,0 +1,44 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ControlSaturationBrightnessPicker :cc.Control
|
||||
local ControlSaturationBrightnessPicker = {}
|
||||
cc.ControlSaturationBrightnessPicker = ControlSaturationBrightnessPicker
|
||||
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlSaturationBrightnessPicker:getShadow() end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@param pos vec2_table
|
||||
---@return boolean
|
||||
function ControlSaturationBrightnessPicker:initWithTargetAndPos(target, pos) end
|
||||
---*
|
||||
---@return vec2_table
|
||||
function ControlSaturationBrightnessPicker:getStartPos() end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlSaturationBrightnessPicker:getOverlay() end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlSaturationBrightnessPicker:getSlider() end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlSaturationBrightnessPicker:getBackground() end
|
||||
---*
|
||||
---@return float
|
||||
function ControlSaturationBrightnessPicker:getSaturation() end
|
||||
---*
|
||||
---@return float
|
||||
function ControlSaturationBrightnessPicker:getBrightness() end
|
||||
---*
|
||||
---@param target cc.Node
|
||||
---@param pos vec2_table
|
||||
---@return self
|
||||
function ControlSaturationBrightnessPicker:create(target, pos) end
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ControlSaturationBrightnessPicker:setEnabled(enabled) end
|
||||
---* js ctor
|
||||
---@return self
|
||||
function ControlSaturationBrightnessPicker:ControlSaturationBrightnessPicker() end
|
||||
@@ -0,0 +1,106 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ControlSlider :cc.Control
|
||||
local ControlSlider = {}
|
||||
cc.ControlSlider = ControlSlider
|
||||
|
||||
---*
|
||||
---@return float
|
||||
function ControlSlider:getMaximumAllowedValue() end
|
||||
---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite):self
|
||||
---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite):self
|
||||
---@param backgroundSprite cc.Sprite
|
||||
---@param progressSprite cc.Sprite
|
||||
---@param thumbSprite cc.Sprite
|
||||
---@param selectedThumbSprite cc.Sprite
|
||||
---@return boolean
|
||||
function ControlSlider:initWithSprites(backgroundSprite, progressSprite, thumbSprite, selectedThumbSprite) end
|
||||
---*
|
||||
---@return float
|
||||
function ControlSlider:getMinimumAllowedValue() end
|
||||
---*
|
||||
---@return float
|
||||
function ControlSlider:getMaximumValue() end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlSlider:getSelectedThumbSprite() end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlSlider:setProgressSprite(var) end
|
||||
---*
|
||||
---@param val float
|
||||
---@return self
|
||||
function ControlSlider:setMaximumValue(val) end
|
||||
---*
|
||||
---@return float
|
||||
function ControlSlider:getMinimumValue() end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlSlider:setThumbSprite(var) end
|
||||
---*
|
||||
---@return float
|
||||
function ControlSlider:getValue() end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlSlider:getBackgroundSprite() end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlSlider:getThumbSprite() end
|
||||
---*
|
||||
---@param val float
|
||||
---@return self
|
||||
function ControlSlider:setValue(val) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@return vec2_table
|
||||
function ControlSlider:locationFromTouch(touch) end
|
||||
---*
|
||||
---@param val float
|
||||
---@return self
|
||||
function ControlSlider:setMinimumValue(val) end
|
||||
---*
|
||||
---@param var float
|
||||
---@return self
|
||||
function ControlSlider:setMinimumAllowedValue(var) end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlSlider:getProgressSprite() end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlSlider:setSelectedThumbSprite(var) end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlSlider:setBackgroundSprite(var) end
|
||||
---*
|
||||
---@param var float
|
||||
---@return self
|
||||
function ControlSlider:setMaximumAllowedValue(var) end
|
||||
---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite):self
|
||||
---@overload fun(cc.Sprite0:char,cc.Sprite1:char,cc.Sprite2:char):self
|
||||
---@overload fun(cc.Sprite0:char,cc.Sprite1:char,cc.Sprite2:char,cc.Sprite3:char):self
|
||||
---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite):self
|
||||
---@param backgroundSprite cc.Sprite
|
||||
---@param pogressSprite cc.Sprite
|
||||
---@param thumbSprite cc.Sprite
|
||||
---@param selectedThumbSprite cc.Sprite
|
||||
---@return self
|
||||
function ControlSlider:create(backgroundSprite, pogressSprite, thumbSprite, selectedThumbSprite) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@return boolean
|
||||
function ControlSlider:isTouchInside(touch) end
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ControlSlider:setEnabled(enabled) end
|
||||
---*
|
||||
---@return self
|
||||
function ControlSlider:needsLayout() end
|
||||
---* js ctor<br>
|
||||
---* lua new
|
||||
---@return self
|
||||
function ControlSlider:ControlSlider() end
|
||||
@@ -0,0 +1,108 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ControlStepper :cc.Control
|
||||
local ControlStepper = {}
|
||||
cc.ControlStepper = ControlStepper
|
||||
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlStepper:getMinusSprite() end
|
||||
---*
|
||||
---@param value double
|
||||
---@return self
|
||||
function ControlStepper:setValue(value) end
|
||||
---*
|
||||
---@param stepValue double
|
||||
---@return self
|
||||
function ControlStepper:setStepValue(stepValue) end
|
||||
---*
|
||||
---@param minusSprite cc.Sprite
|
||||
---@param plusSprite cc.Sprite
|
||||
---@return boolean
|
||||
function ControlStepper:initWithMinusSpriteAndPlusSprite(minusSprite, plusSprite) end
|
||||
---* Set the numeric value of the stepper. If send is true, the Control::EventType::VALUE_CHANGED is sent.
|
||||
---@param value double
|
||||
---@param send boolean
|
||||
---@return self
|
||||
function ControlStepper:setValueWithSendingEvent(value, send) end
|
||||
---*
|
||||
---@param maximumValue double
|
||||
---@return self
|
||||
function ControlStepper:setMaximumValue(maximumValue) end
|
||||
---*
|
||||
---@return cc.Label
|
||||
function ControlStepper:getMinusLabel() end
|
||||
---*
|
||||
---@return cc.Label
|
||||
function ControlStepper:getPlusLabel() end
|
||||
---*
|
||||
---@param wraps boolean
|
||||
---@return self
|
||||
function ControlStepper:setWraps(wraps) end
|
||||
---*
|
||||
---@param var cc.Label
|
||||
---@return self
|
||||
function ControlStepper:setMinusLabel(var) end
|
||||
---* Start the autorepeat increment/decrement.
|
||||
---@return self
|
||||
function ControlStepper:startAutorepeat() end
|
||||
---* Update the layout of the stepper with the given touch location.
|
||||
---@param location vec2_table
|
||||
---@return self
|
||||
function ControlStepper:updateLayoutUsingTouchLocation(location) end
|
||||
---*
|
||||
---@return boolean
|
||||
function ControlStepper:isContinuous() end
|
||||
---* Stop the autorepeat.
|
||||
---@return self
|
||||
function ControlStepper:stopAutorepeat() end
|
||||
---*
|
||||
---@param minimumValue double
|
||||
---@return self
|
||||
function ControlStepper:setMinimumValue(minimumValue) end
|
||||
---*
|
||||
---@param var cc.Label
|
||||
---@return self
|
||||
function ControlStepper:setPlusLabel(var) end
|
||||
---*
|
||||
---@return double
|
||||
function ControlStepper:getValue() end
|
||||
---*
|
||||
---@return cc.Sprite
|
||||
function ControlStepper:getPlusSprite() end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlStepper:setPlusSprite(var) end
|
||||
---*
|
||||
---@param var cc.Sprite
|
||||
---@return self
|
||||
function ControlStepper:setMinusSprite(var) end
|
||||
---*
|
||||
---@param minusSprite cc.Sprite
|
||||
---@param plusSprite cc.Sprite
|
||||
---@return self
|
||||
function ControlStepper:create(minusSprite, plusSprite) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return self
|
||||
function ControlStepper:onTouchMoved(pTouch, pEvent) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return self
|
||||
function ControlStepper:onTouchEnded(pTouch, pEvent) end
|
||||
---*
|
||||
---@param dt float
|
||||
---@return self
|
||||
function ControlStepper:update(dt) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return boolean
|
||||
function ControlStepper:onTouchBegan(pTouch, pEvent) end
|
||||
---* js ctor<br>
|
||||
---* lua new
|
||||
---@return self
|
||||
function ControlStepper:ControlStepper() end
|
||||
@@ -0,0 +1,70 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.ControlSwitch :cc.Control
|
||||
local ControlSwitch = {}
|
||||
cc.ControlSwitch = ControlSwitch
|
||||
|
||||
---@overload fun(boolean:boolean):self
|
||||
---@overload fun(boolean:boolean,boolean:boolean):self
|
||||
---@param isOn boolean
|
||||
---@param animated boolean
|
||||
---@return self
|
||||
function ControlSwitch:setOn(isOn, animated) end
|
||||
---*
|
||||
---@param touch cc.Touch
|
||||
---@return vec2_table
|
||||
function ControlSwitch:locationFromTouch(touch) end
|
||||
---*
|
||||
---@return boolean
|
||||
function ControlSwitch:isOn() end
|
||||
---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Label:cc.Label,cc.Label:cc.Label):self
|
||||
---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite):self
|
||||
---@param maskSprite cc.Sprite
|
||||
---@param onSprite cc.Sprite
|
||||
---@param offSprite cc.Sprite
|
||||
---@param thumbSprite cc.Sprite
|
||||
---@param onLabel cc.Label
|
||||
---@param offLabel cc.Label
|
||||
---@return boolean
|
||||
function ControlSwitch:initWithMaskSprite(maskSprite, onSprite, offSprite, thumbSprite, onLabel, offLabel) end
|
||||
---*
|
||||
---@return boolean
|
||||
function ControlSwitch:hasMoved() end
|
||||
---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite):self
|
||||
---@overload fun(cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Sprite:cc.Sprite,cc.Label:cc.Label,cc.Label:cc.Label):self
|
||||
---@param maskSprite cc.Sprite
|
||||
---@param onSprite cc.Sprite
|
||||
---@param offSprite cc.Sprite
|
||||
---@param thumbSprite cc.Sprite
|
||||
---@param onLabel cc.Label
|
||||
---@param offLabel cc.Label
|
||||
---@return self
|
||||
function ControlSwitch:create(maskSprite, onSprite, offSprite, thumbSprite, onLabel, offLabel) end
|
||||
---*
|
||||
---@param enabled boolean
|
||||
---@return self
|
||||
function ControlSwitch:setEnabled(enabled) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return self
|
||||
function ControlSwitch:onTouchMoved(pTouch, pEvent) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return self
|
||||
function ControlSwitch:onTouchEnded(pTouch, pEvent) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return self
|
||||
function ControlSwitch:onTouchCancelled(pTouch, pEvent) end
|
||||
---*
|
||||
---@param pTouch cc.Touch
|
||||
---@param pEvent cc.Event
|
||||
---@return boolean
|
||||
function ControlSwitch:onTouchBegan(pTouch, pEvent) end
|
||||
---* js ctor<br>
|
||||
---* lua new
|
||||
---@return self
|
||||
function ControlSwitch:ControlSwitch() end
|
||||
@@ -0,0 +1,53 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Controller
|
||||
local Controller = {}
|
||||
cc.Controller = Controller
|
||||
|
||||
---* Activate receives key event from external key. e.g. back,menu.<br>
|
||||
---* Controller receives only standard key which contained within enum Key by default.<br>
|
||||
---* warning The API only work on the android platform for support diversified game controller.<br>
|
||||
---* param externalKeyCode External key code.<br>
|
||||
---* param receive True if external key event on this controller should be receive, false otherwise.
|
||||
---@param externalKeyCode int
|
||||
---@param receive boolean
|
||||
---@return self
|
||||
function Controller:receiveExternalKeyEvent(externalKeyCode, receive) end
|
||||
---* Gets the name of this Controller object.
|
||||
---@return string
|
||||
function Controller:getDeviceName() end
|
||||
---* Indicates whether the Controller is connected.
|
||||
---@return boolean
|
||||
function Controller:isConnected() end
|
||||
---* Gets the Controller id.
|
||||
---@return int
|
||||
function Controller:getDeviceId() end
|
||||
---* Changes the tag that is used to identify the controller easily.<br>
|
||||
---* param tag A integer that identifies the controller.
|
||||
---@param tag int
|
||||
---@return self
|
||||
function Controller:setTag(tag) end
|
||||
---* Returns a tag that is used to identify the controller easily.<br>
|
||||
---* return An integer that identifies the controller.
|
||||
---@return int
|
||||
function Controller:getTag() end
|
||||
---* Start discovering new controllers.<br>
|
||||
---* warning The API has an empty implementation on Android.
|
||||
---@return self
|
||||
function Controller:startDiscoveryController() end
|
||||
---* Stop the discovery process.<br>
|
||||
---* warning The API has an empty implementation on Android.
|
||||
---@return self
|
||||
function Controller:stopDiscoveryController() end
|
||||
---* Gets a Controller object with device ID.<br>
|
||||
---* param deviceId A unique identifier to find the controller.<br>
|
||||
---* return A Controller object.
|
||||
---@param deviceId int
|
||||
---@return self
|
||||
function Controller:getControllerByDeviceId(deviceId) end
|
||||
---* Gets a Controller object with tag.<br>
|
||||
---* param tag An identifier to find the controller.<br>
|
||||
---* return A Controller object.
|
||||
---@param tag int
|
||||
---@return self
|
||||
function Controller:getControllerByTag(tag) end
|
||||
@@ -0,0 +1,25 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.DelayTime :cc.ActionInterval
|
||||
local DelayTime = {}
|
||||
cc.DelayTime = DelayTime
|
||||
|
||||
---* Creates the action.<br>
|
||||
---* param d Duration time, in seconds.<br>
|
||||
---* return An autoreleased DelayTime object.
|
||||
---@param d float
|
||||
---@return self
|
||||
function DelayTime:create(d) end
|
||||
---*
|
||||
---@return self
|
||||
function DelayTime:clone() end
|
||||
---* param time In seconds.
|
||||
---@param time float
|
||||
---@return self
|
||||
function DelayTime:update(time) end
|
||||
---*
|
||||
---@return self
|
||||
function DelayTime:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function DelayTime:DelayTime() end
|
||||
@@ -0,0 +1,31 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Device
|
||||
local Device = {}
|
||||
cc.Device = Device
|
||||
|
||||
---* To enable or disable accelerometer.
|
||||
---@param isEnabled boolean
|
||||
---@return self
|
||||
function Device:setAccelerometerEnabled(isEnabled) end
|
||||
---* Sets the interval of accelerometer.
|
||||
---@param interval float
|
||||
---@return self
|
||||
function Device:setAccelerometerInterval(interval) end
|
||||
---* Controls whether the screen should remain on.<br>
|
||||
---* param keepScreenOn One flag indicating that the screen should remain on.
|
||||
---@param keepScreenOn boolean
|
||||
---@return self
|
||||
function Device:setKeepScreenOn(keepScreenOn) end
|
||||
---* Vibrate for the specified amount of time.<br>
|
||||
---* If vibrate is not supported, then invoking this method has no effect.<br>
|
||||
---* Some platforms limit to a maximum duration of 5 seconds.<br>
|
||||
---* Duration is ignored on iOS due to API limitations.<br>
|
||||
---* param duration The duration in seconds.
|
||||
---@param duration float
|
||||
---@return self
|
||||
function Device:vibrate(duration) end
|
||||
---* Gets the DPI of device<br>
|
||||
---* return The DPI of device.
|
||||
---@return int
|
||||
function Device:getDPI() end
|
||||
@@ -0,0 +1,31 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.DirectionLight :cc.BaseLight
|
||||
local DirectionLight = {}
|
||||
cc.DirectionLight = DirectionLight
|
||||
|
||||
---* Returns the Direction in parent.
|
||||
---@return vec3_table
|
||||
function DirectionLight:getDirection() end
|
||||
---* Returns direction in world.
|
||||
---@return vec3_table
|
||||
function DirectionLight:getDirectionInWorld() end
|
||||
---* Sets the Direction in parent.<br>
|
||||
---* param dir The Direction in parent.
|
||||
---@param dir vec3_table
|
||||
---@return self
|
||||
function DirectionLight:setDirection(dir) end
|
||||
---* Creates a direction light.<br>
|
||||
---* param direction The light's direction<br>
|
||||
---* param color The light's color.<br>
|
||||
---* return The new direction light.
|
||||
---@param direction vec3_table
|
||||
---@param color color3b_table
|
||||
---@return self
|
||||
function DirectionLight:create(direction, color) end
|
||||
---*
|
||||
---@return int
|
||||
function DirectionLight:getLightType() end
|
||||
---*
|
||||
---@return self
|
||||
function DirectionLight:DirectionLight() end
|
||||
@@ -0,0 +1,306 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Director
|
||||
local Director = {}
|
||||
cc.Director = Director
|
||||
|
||||
---* Pauses the running scene.<br>
|
||||
---* The running scene will be _drawed_ but all scheduled timers will be paused.<br>
|
||||
---* While paused, the draw rate will be 4 FPS to reduce CPU consumption.
|
||||
---@return self
|
||||
function Director:pause() end
|
||||
---* Sets the EventDispatcher associated with this director.<br>
|
||||
---* since v3.0<br>
|
||||
---* js NA
|
||||
---@param dispatcher cc.EventDispatcher
|
||||
---@return self
|
||||
function Director:setEventDispatcher(dispatcher) end
|
||||
---* The size in pixels of the surface. It could be different than the screen size.<br>
|
||||
---* High-res devices might have a higher surface size than the screen size.<br>
|
||||
---* Only available when compiled using SDK >= 4.0.<br>
|
||||
---* since v0.99.4
|
||||
---@param scaleFactor float
|
||||
---@return self
|
||||
function Director:setContentScaleFactor(scaleFactor) end
|
||||
---*
|
||||
---@return float
|
||||
function Director:getDeltaTime() end
|
||||
---* Gets content scale factor.<br>
|
||||
---* see Director::setContentScaleFactor()
|
||||
---@return float
|
||||
function Director:getContentScaleFactor() end
|
||||
---* Returns the size of the OpenGL view in pixels.
|
||||
---@return size_table
|
||||
function Director:getWinSizeInPixels() end
|
||||
---* Returns safe area rectangle of the OpenGL view in points.
|
||||
---@return rect_table
|
||||
function Director:getSafeAreaRect() end
|
||||
---* Sets the OpenGL default values.<br>
|
||||
---* It will enable alpha blending, disable depth test.<br>
|
||||
---* js NA
|
||||
---@return self
|
||||
function Director:setGLDefaultValues() end
|
||||
---* Sets the ActionManager associated with this director.<br>
|
||||
---* since v2.0
|
||||
---@param actionManager cc.ActionManager
|
||||
---@return self
|
||||
function Director:setActionManager(actionManager) end
|
||||
---* Pops out all scenes from the stack until the root scene in the queue.<br>
|
||||
---* This scene will replace the running one.<br>
|
||||
---* Internally it will call `popToSceneStackLevel(1)`.
|
||||
---@return self
|
||||
function Director:popToRootScene() end
|
||||
---* Adds a matrix to the top of specified type of matrix stack.<br>
|
||||
---* param type Matrix type.<br>
|
||||
---* param mat The matrix that to be added.<br>
|
||||
---* js NA
|
||||
---@param type int
|
||||
---@param mat mat4_table
|
||||
---@return self
|
||||
function Director:loadMatrix(type, mat) end
|
||||
---* This object will be visited after the main scene is visited.<br>
|
||||
---* This object MUST implement the "visit" function.<br>
|
||||
---* Useful to hook a notification object, like Notifications (http:github.com/manucorporat/CCNotifications)<br>
|
||||
---* since v0.99.5
|
||||
---@return cc.Node
|
||||
function Director:getNotificationNode() end
|
||||
---* Returns the size of the OpenGL view in points.
|
||||
---@return size_table
|
||||
function Director:getWinSize() end
|
||||
---*
|
||||
---@return cc.TextureCache
|
||||
function Director:getTextureCache() end
|
||||
---* Whether or not the replaced scene will receive the cleanup message.<br>
|
||||
---* If the new scene is pushed, then the old scene won't receive the "cleanup" message.<br>
|
||||
---* If the new scene replaces the old one, the it will receive the "cleanup" message.<br>
|
||||
---* since v0.99.0
|
||||
---@return boolean
|
||||
function Director:isSendCleanupToScene() end
|
||||
---* Returns visible origin coordinate of the OpenGL view in points.
|
||||
---@return vec2_table
|
||||
function Director:getVisibleOrigin() end
|
||||
---@overload fun(float:float):self
|
||||
---@overload fun():self
|
||||
---@param dt float
|
||||
---@return self
|
||||
function Director:mainLoop(dt) end
|
||||
---* Gets Frame Rate.<br>
|
||||
---* js NA
|
||||
---@return float
|
||||
function Director:getFrameRate() end
|
||||
---* Get seconds per frame.
|
||||
---@return float
|
||||
function Director:getSecondsPerFrame() end
|
||||
---* Clear all types of matrix stack, and add identity matrix to these matrix stacks.<br>
|
||||
---* js NA
|
||||
---@return self
|
||||
function Director:resetMatrixStack() end
|
||||
---* Converts an OpenGL coordinate to a screen coordinate.<br>
|
||||
---* Useful to convert node points to window points for calls such as glScissor.
|
||||
---@param point vec2_table
|
||||
---@return vec2_table
|
||||
function Director:convertToUI(point) end
|
||||
---* Clones a specified type matrix and put it to the top of specified type of matrix stack.<br>
|
||||
---* js NA
|
||||
---@param type int
|
||||
---@return self
|
||||
function Director:pushMatrix(type) end
|
||||
---* Sets the default values based on the Configuration info.
|
||||
---@return self
|
||||
function Director:setDefaultValues() end
|
||||
---*
|
||||
---@return boolean
|
||||
function Director:init() end
|
||||
---* Sets the Scheduler associated with this director.<br>
|
||||
---* since v2.0
|
||||
---@param scheduler cc.Scheduler
|
||||
---@return self
|
||||
function Director:setScheduler(scheduler) end
|
||||
---* Gets the top matrix of specified type of matrix stack.<br>
|
||||
---* js NA
|
||||
---@param type int
|
||||
---@return mat4_table
|
||||
function Director:getMatrix(type) end
|
||||
---* returns whether or not the Director is in a valid state
|
||||
---@return boolean
|
||||
function Director:isValid() end
|
||||
---* The main loop is triggered again.<br>
|
||||
---* Call this function only if [stopAnimation] was called earlier.<br>
|
||||
---* warning Don't call this function to start the main loop. To run the main loop call runWithScene.
|
||||
---@return self
|
||||
function Director:startAnimation() end
|
||||
---* Returns the Renderer associated with this director.<br>
|
||||
---* since v3.0
|
||||
---@return cc.Renderer
|
||||
function Director:getRenderer() end
|
||||
---* Get the GLView.<br>
|
||||
---* lua NA
|
||||
---@return cc.GLView
|
||||
function Director:getOpenGLView() end
|
||||
---* Gets current running Scene. Director can only run one Scene at a time.
|
||||
---@return cc.Scene
|
||||
function Director:getRunningScene() end
|
||||
---* Sets the glViewport.
|
||||
---@return self
|
||||
function Director:setViewport() end
|
||||
---* Stops the animation. Nothing will be drawn. The main loop won't be triggered anymore.<br>
|
||||
---* If you don't want to pause your animation call [pause] instead.
|
||||
---@return self
|
||||
function Director:stopAnimation() end
|
||||
---* Pops out all scenes from the stack until it reaches `level`.<br>
|
||||
---* If level is 0, it will end the director.<br>
|
||||
---* If level is 1, it will pop all scenes until it reaches to root scene.<br>
|
||||
---* If level is <= than the current stack level, it won't do anything.
|
||||
---@param level int
|
||||
---@return self
|
||||
function Director:popToSceneStackLevel(level) end
|
||||
---* Resumes the paused scene.<br>
|
||||
---* The scheduled timers will be activated again.<br>
|
||||
---* The "delta time" will be 0 (as if the game wasn't paused).
|
||||
---@return self
|
||||
function Director:resume() end
|
||||
---* Whether or not `_nextDeltaTimeZero` is set to 0.
|
||||
---@return boolean
|
||||
function Director:isNextDeltaTimeZero() end
|
||||
---* Sets clear values for the color buffers,<br>
|
||||
---* value range of each element is [0.0, 1.0].<br>
|
||||
---* js NA
|
||||
---@param clearColor color4f_table
|
||||
---@return self
|
||||
function Director:setClearColor(clearColor) end
|
||||
---* Ends the execution, releases the running scene.<br>
|
||||
---* lua endToLua
|
||||
---@return self
|
||||
function Director:endToLua() end
|
||||
---* Sets the GLView. <br>
|
||||
---* lua NA
|
||||
---@param openGLView cc.GLView
|
||||
---@return self
|
||||
function Director:setOpenGLView(openGLView) end
|
||||
---* Converts a screen coordinate to an OpenGL coordinate.<br>
|
||||
---* Useful to convert (multi) touch coordinates to the current layout (portrait or landscape).
|
||||
---@param point vec2_table
|
||||
---@return vec2_table
|
||||
function Director:convertToGL(point) end
|
||||
---* Removes all cocos2d cached data.<br>
|
||||
---* It will purge the TextureCache, SpriteFrameCache, LabelBMFont cache<br>
|
||||
---* since v0.99.3
|
||||
---@return self
|
||||
function Director:purgeCachedData() end
|
||||
---* How many frames were called since the director started
|
||||
---@return unsigned_int
|
||||
function Director:getTotalFrames() end
|
||||
---* Enters the Director's main loop with the given Scene.<br>
|
||||
---* Call it to run only your FIRST scene.<br>
|
||||
---* Don't call it if there is already a running scene.<br>
|
||||
---* It will call pushScene: and then it will call startAnimation<br>
|
||||
---* js NA
|
||||
---@param scene cc.Scene
|
||||
---@return self
|
||||
function Director:runWithScene(scene) end
|
||||
---* Sets the notification node.<br>
|
||||
---* see Director::getNotificationNode()
|
||||
---@param node cc.Node
|
||||
---@return self
|
||||
function Director:setNotificationNode(node) end
|
||||
---* Draw the scene.<br>
|
||||
---* This method is called every frame. Don't call it manually.
|
||||
---@return self
|
||||
function Director:drawScene() end
|
||||
---*
|
||||
---@return self
|
||||
function Director:restart() end
|
||||
---* Pops out a scene from the stack.<br>
|
||||
---* This scene will replace the running one.<br>
|
||||
---* The running scene will be deleted. If there are no more scenes in the stack the execution is terminated.<br>
|
||||
---* ONLY call it if there is a running scene.
|
||||
---@return self
|
||||
function Director:popScene() end
|
||||
---* Adds an identity matrix to the top of specified type of matrix stack.<br>
|
||||
---* js NA
|
||||
---@param type int
|
||||
---@return self
|
||||
function Director:loadIdentityMatrix(type) end
|
||||
---* Whether or not displaying the FPS on the bottom-left corner of the screen.
|
||||
---@return boolean
|
||||
function Director:isDisplayStats() end
|
||||
---* Sets OpenGL projection.
|
||||
---@param projection int
|
||||
---@return self
|
||||
function Director:setProjection(projection) end
|
||||
---* Returns the Console associated with this director.<br>
|
||||
---* since v3.0<br>
|
||||
---* js NA
|
||||
---@return cc.Console
|
||||
function Director:getConsole() end
|
||||
---* Multiplies a matrix to the top of specified type of matrix stack.<br>
|
||||
---* param type Matrix type.<br>
|
||||
---* param mat The matrix that to be multiplied.<br>
|
||||
---* js NA
|
||||
---@param type int
|
||||
---@param mat mat4_table
|
||||
---@return self
|
||||
function Director:multiplyMatrix(type, mat) end
|
||||
---* Gets the distance between camera and near clipping frame.<br>
|
||||
---* It is correct for default camera that near clipping frame is same as the screen.
|
||||
---@return float
|
||||
function Director:getZEye() end
|
||||
---* Sets the delta time between current frame and next frame is 0.<br>
|
||||
---* This value will be used in Schedule, and will affect all functions that are using frame delta time, such as Actions.<br>
|
||||
---* This value will take effect only one time.
|
||||
---@param nextDeltaTimeZero boolean
|
||||
---@return self
|
||||
function Director:setNextDeltaTimeZero(nextDeltaTimeZero) end
|
||||
---* Pops the top matrix of the specified type of matrix stack.<br>
|
||||
---* js NA
|
||||
---@param type int
|
||||
---@return self
|
||||
function Director:popMatrix(type) end
|
||||
---* Returns visible size of the OpenGL view in points.<br>
|
||||
---* The value is equal to `Director::getWinSize()` if don't invoke `GLView::setDesignResolutionSize()`.
|
||||
---@return size_table
|
||||
function Director:getVisibleSize() end
|
||||
---* Gets the Scheduler associated with this director.<br>
|
||||
---* since v2.0
|
||||
---@return cc.Scheduler
|
||||
function Director:getScheduler() end
|
||||
---* Suspends the execution of the running scene, pushing it on the stack of suspended scenes.<br>
|
||||
---* The new scene will be executed.<br>
|
||||
---* Try to avoid big stacks of pushed scenes to reduce memory allocation. <br>
|
||||
---* ONLY call it if there is a running scene.
|
||||
---@param scene cc.Scene
|
||||
---@return self
|
||||
function Director:pushScene(scene) end
|
||||
---* Gets the FPS value.
|
||||
---@return float
|
||||
function Director:getAnimationInterval() end
|
||||
---* Whether or not the Director is paused.
|
||||
---@return boolean
|
||||
function Director:isPaused() end
|
||||
---* Display the FPS on the bottom-left corner of the screen.
|
||||
---@param displayStats boolean
|
||||
---@return self
|
||||
function Director:setDisplayStats(displayStats) end
|
||||
---* Gets the EventDispatcher associated with this director.<br>
|
||||
---* since v3.0<br>
|
||||
---* js NA
|
||||
---@return cc.EventDispatcher
|
||||
function Director:getEventDispatcher() end
|
||||
---* Replaces the running scene with a new one. The running scene is terminated.<br>
|
||||
---* ONLY call it if there is a running scene.<br>
|
||||
---* js NA
|
||||
---@param scene cc.Scene
|
||||
---@return self
|
||||
function Director:replaceScene(scene) end
|
||||
---* Sets the FPS value. FPS = 1/interval.
|
||||
---@param interval float
|
||||
---@return self
|
||||
function Director:setAnimationInterval(interval) end
|
||||
---* Gets the ActionManager associated with this director.<br>
|
||||
---* since v2.0
|
||||
---@return cc.ActionManager
|
||||
function Director:getActionManager() end
|
||||
---* Returns a shared instance of the director. <br>
|
||||
---* js _getInstance
|
||||
---@return self
|
||||
function Director:getInstance() end
|
||||
@@ -0,0 +1,182 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.DrawNode :cc.Node
|
||||
local DrawNode = {}
|
||||
cc.DrawNode = DrawNode
|
||||
|
||||
---* Draw an line from origin to destination with color. <br>
|
||||
---* param origin The line origin.<br>
|
||||
---* param destination The line destination.<br>
|
||||
---* param color The line color.<br>
|
||||
---* js NA
|
||||
---@param origin vec2_table
|
||||
---@param destination vec2_table
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawLine(origin, destination, color) end
|
||||
---* When isolated is set, the position of the node is no longer affected by parent nodes.<br>
|
||||
---* Which means it will be drawn just like a root node.
|
||||
---@param isolated boolean
|
||||
---@return self
|
||||
function DrawNode:setIsolated(isolated) end
|
||||
---@overload fun(vec2_table:vec2_table,vec2_table:vec2_table,vec2_table:vec2_table,vec2_table:vec2_table,color4f_table:color4f_table):self
|
||||
---@overload fun(vec2_table:vec2_table,vec2_table:vec2_table,vec2_table2:color4f_table):self
|
||||
---@param p1 vec2_table
|
||||
---@param p2 vec2_table
|
||||
---@param p3 vec2_table
|
||||
---@param p4 vec2_table
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawRect(p1, p2, p3, p4, color) end
|
||||
---@overload fun(vec2_table:vec2_table,float:float,float:float,unsigned_int:unsigned_int,float4:color4f_table):self
|
||||
---@overload fun(vec2_table:vec2_table,float:float,float:float,unsigned_int:unsigned_int,float:float,float:float,color4f_table:color4f_table):self
|
||||
---@param center vec2_table
|
||||
---@param radius float
|
||||
---@param angle float
|
||||
---@param segments unsigned_int
|
||||
---@param scaleX float
|
||||
---@param scaleY float
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawSolidCircle(center, radius, angle, segments, scaleX, scaleY, color) end
|
||||
---*
|
||||
---@param lineWidth float
|
||||
---@return self
|
||||
function DrawNode:setLineWidth(lineWidth) end
|
||||
---* draw a dot at a position, with a given radius and color. <br>
|
||||
---* param pos The dot center.<br>
|
||||
---* param radius The dot radius.<br>
|
||||
---* param color The dot color.
|
||||
---@param pos vec2_table
|
||||
---@param radius float
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawDot(pos, radius, color) end
|
||||
---* draw a segment with a radius and color. <br>
|
||||
---* param from The segment origin.<br>
|
||||
---* param to The segment destination.<br>
|
||||
---* param radius The segment radius.<br>
|
||||
---* param color The segment color.
|
||||
---@param from vec2_table
|
||||
---@param to vec2_table
|
||||
---@param radius float
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawSegment(from, to, radius, color) end
|
||||
---* Get the color mixed mode.<br>
|
||||
---* lua NA
|
||||
---@return cc.BlendFunc
|
||||
function DrawNode:getBlendFunc() end
|
||||
---@overload fun(vec2_table:vec2_table,float:float,float:float,unsigned_int:unsigned_int,boolean:boolean,float5:color4f_table):self
|
||||
---@overload fun(vec2_table:vec2_table,float:float,float:float,unsigned_int:unsigned_int,boolean:boolean,float:float,float:float,color4f_table:color4f_table):self
|
||||
---@param center vec2_table
|
||||
---@param radius float
|
||||
---@param angle float
|
||||
---@param segments unsigned_int
|
||||
---@param drawLineToCenter boolean
|
||||
---@param scaleX float
|
||||
---@param scaleY float
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawCircle(center, radius, angle, segments, drawLineToCenter, scaleX, scaleY, color) end
|
||||
---* Draws a quad bezier path.<br>
|
||||
---* param origin The origin of the bezier path.<br>
|
||||
---* param control The control of the bezier path.<br>
|
||||
---* param destination The destination of the bezier path.<br>
|
||||
---* param segments The number of segments.<br>
|
||||
---* param color Set the quad bezier color.
|
||||
---@param origin vec2_table
|
||||
---@param control vec2_table
|
||||
---@param destination vec2_table
|
||||
---@param segments unsigned_int
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawQuadBezier(origin, control, destination, segments, color) end
|
||||
---* draw a triangle with color. <br>
|
||||
---* param p1 The triangle vertex point.<br>
|
||||
---* param p2 The triangle vertex point.<br>
|
||||
---* param p3 The triangle vertex point.<br>
|
||||
---* param color The triangle color.<br>
|
||||
---* js NA
|
||||
---@param p1 vec2_table
|
||||
---@param p2 vec2_table
|
||||
---@param p3 vec2_table
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawTriangle(p1, p2, p3, color) end
|
||||
---* Set the color mixed mode.<br>
|
||||
---* code<br>
|
||||
---* When this function bound into js or lua,the parameter will be changed<br>
|
||||
---* In js: var setBlendFunc(var src, var dst)<br>
|
||||
---* endcode<br>
|
||||
---* lua NA
|
||||
---@param blendFunc cc.BlendFunc
|
||||
---@return self
|
||||
function DrawNode:setBlendFunc(blendFunc) end
|
||||
---* Clear the geometry in the node's buffer.
|
||||
---@return self
|
||||
function DrawNode:clear() end
|
||||
---* Draws a solid rectangle given the origin and destination point measured in points.<br>
|
||||
---* The origin and the destination can not have the same x and y coordinate.<br>
|
||||
---* param origin The rectangle origin.<br>
|
||||
---* param destination The rectangle destination.<br>
|
||||
---* param color The rectangle color.<br>
|
||||
---* js NA
|
||||
---@param origin vec2_table
|
||||
---@param destination vec2_table
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawSolidRect(origin, destination, color) end
|
||||
---*
|
||||
---@return float
|
||||
function DrawNode:getLineWidth() end
|
||||
---* Draw a point.<br>
|
||||
---* param point A Vec2 used to point.<br>
|
||||
---* param pointSize The point size.<br>
|
||||
---* param color The point color.<br>
|
||||
---* js NA
|
||||
---@param point vec2_table
|
||||
---@param pointSize float
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawPoint(point, pointSize, color) end
|
||||
---*
|
||||
---@return boolean
|
||||
function DrawNode:isIsolated() end
|
||||
---* Draw a cubic bezier curve with color and number of segments<br>
|
||||
---* param origin The origin of the bezier path.<br>
|
||||
---* param control1 The first control of the bezier path.<br>
|
||||
---* param control2 The second control of the bezier path.<br>
|
||||
---* param destination The destination of the bezier path.<br>
|
||||
---* param segments The number of segments.<br>
|
||||
---* param color Set the cubic bezier color.
|
||||
---@param origin vec2_table
|
||||
---@param control1 vec2_table
|
||||
---@param control2 vec2_table
|
||||
---@param destination vec2_table
|
||||
---@param segments unsigned_int
|
||||
---@param color color4f_table
|
||||
---@return self
|
||||
function DrawNode:drawCubicBezier(origin, control1, control2, destination, segments, color) end
|
||||
---* creates and initialize a DrawNode node.<br>
|
||||
---* return Return an autorelease object.
|
||||
---@return self
|
||||
function DrawNode:create() end
|
||||
---*
|
||||
---@param renderer cc.Renderer
|
||||
---@param transform mat4_table
|
||||
---@param flags unsigned_int
|
||||
---@return self
|
||||
function DrawNode:draw(renderer, transform, flags) end
|
||||
---*
|
||||
---@param renderer cc.Renderer
|
||||
---@param parentTransform mat4_table
|
||||
---@param parentFlags unsigned_int
|
||||
---@return self
|
||||
function DrawNode:visit(renderer, parentTransform, parentFlags) end
|
||||
---*
|
||||
---@return boolean
|
||||
function DrawNode:init() end
|
||||
---*
|
||||
---@return self
|
||||
function DrawNode:DrawNode() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseBackIn :cc.ActionEase
|
||||
local EaseBackIn = {}
|
||||
cc.EaseBackIn = EaseBackIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseBackIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBackIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseBackIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseBackIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBackIn:EaseBackIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseBackInOut :cc.ActionEase
|
||||
local EaseBackInOut = {}
|
||||
cc.EaseBackInOut = EaseBackInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseBackInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBackInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseBackInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseBackInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBackInOut:EaseBackInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseBackOut :cc.ActionEase
|
||||
local EaseBackOut = {}
|
||||
cc.EaseBackOut = EaseBackOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseBackOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBackOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseBackOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseBackOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBackOut:EaseBackOut() end
|
||||
@@ -0,0 +1,32 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseBezierAction :cc.ActionEase
|
||||
local EaseBezierAction = {}
|
||||
cc.EaseBezierAction = EaseBezierAction
|
||||
|
||||
---* brief Set the bezier parameters.
|
||||
---@param p0 float
|
||||
---@param p1 float
|
||||
---@param p2 float
|
||||
---@param p3 float
|
||||
---@return self
|
||||
function EaseBezierAction:setBezierParamer(p0, p1, p2, p3) end
|
||||
---* brief Create the action with the inner action.<br>
|
||||
---* param action The pointer of the inner action.<br>
|
||||
---* return A pointer of EaseBezierAction action. If creation failed, return nil.
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseBezierAction:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBezierAction:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseBezierAction:update(time) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBezierAction:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBezierAction:EaseBezierAction() end
|
||||
@@ -0,0 +1,5 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseBounce :cc.ActionEase
|
||||
local EaseBounce = {}
|
||||
cc.EaseBounce = EaseBounce
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseBounceIn :cc.ActionEase
|
||||
local EaseBounceIn = {}
|
||||
cc.EaseBounceIn = EaseBounceIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseBounceIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBounceIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseBounceIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseBounceIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBounceIn:EaseBounceIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseBounceInOut :cc.ActionEase
|
||||
local EaseBounceInOut = {}
|
||||
cc.EaseBounceInOut = EaseBounceInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseBounceInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBounceInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseBounceInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseBounceInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBounceInOut:EaseBounceInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseBounceOut :cc.ActionEase
|
||||
local EaseBounceOut = {}
|
||||
cc.EaseBounceOut = EaseBounceOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseBounceOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBounceOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseBounceOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseBounceOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseBounceOut:EaseBounceOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseCircleActionIn :cc.ActionEase
|
||||
local EaseCircleActionIn = {}
|
||||
cc.EaseCircleActionIn = EaseCircleActionIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseCircleActionIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCircleActionIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseCircleActionIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseCircleActionIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCircleActionIn:EaseCircleActionIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseCircleActionInOut :cc.ActionEase
|
||||
local EaseCircleActionInOut = {}
|
||||
cc.EaseCircleActionInOut = EaseCircleActionInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseCircleActionInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCircleActionInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseCircleActionInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseCircleActionInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCircleActionInOut:EaseCircleActionInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseCircleActionOut :cc.ActionEase
|
||||
local EaseCircleActionOut = {}
|
||||
cc.EaseCircleActionOut = EaseCircleActionOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseCircleActionOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCircleActionOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseCircleActionOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseCircleActionOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCircleActionOut:EaseCircleActionOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseCubicActionIn :cc.ActionEase
|
||||
local EaseCubicActionIn = {}
|
||||
cc.EaseCubicActionIn = EaseCubicActionIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseCubicActionIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCubicActionIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseCubicActionIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseCubicActionIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCubicActionIn:EaseCubicActionIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseCubicActionInOut :cc.ActionEase
|
||||
local EaseCubicActionInOut = {}
|
||||
cc.EaseCubicActionInOut = EaseCubicActionInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseCubicActionInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCubicActionInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseCubicActionInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseCubicActionInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCubicActionInOut:EaseCubicActionInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseCubicActionOut :cc.ActionEase
|
||||
local EaseCubicActionOut = {}
|
||||
cc.EaseCubicActionOut = EaseCubicActionOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseCubicActionOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCubicActionOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseCubicActionOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseCubicActionOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseCubicActionOut:EaseCubicActionOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseElastic :cc.ActionEase
|
||||
local EaseElastic = {}
|
||||
cc.EaseElastic = EaseElastic
|
||||
|
||||
---* brief Set period of the wave in radians.<br>
|
||||
---* param fPeriod The value will be set.
|
||||
---@param fPeriod float
|
||||
---@return self
|
||||
function EaseElastic:setPeriod(fPeriod) end
|
||||
---* brief Initializes the action with the inner action and the period in radians.<br>
|
||||
---* param action The pointer of the inner action.<br>
|
||||
---* param period Period of the wave in radians. Default is 0.3.<br>
|
||||
---* return Return true when the initialization success, otherwise return false.
|
||||
---@param action cc.ActionInterval
|
||||
---@param period float
|
||||
---@return boolean
|
||||
function EaseElastic:initWithAction(action, period) end
|
||||
---* brief Get period of the wave in radians. Default value is 0.3.<br>
|
||||
---* return Return the period of the wave in radians.
|
||||
---@return float
|
||||
function EaseElastic:getPeriod() end
|
||||
@@ -0,0 +1,24 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseElasticIn :cc.EaseElastic
|
||||
local EaseElasticIn = {}
|
||||
cc.EaseElasticIn = EaseElasticIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@param rate float
|
||||
---@return self
|
||||
function EaseElasticIn:create(action, rate) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseElasticIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseElasticIn:update(time) end
|
||||
---*
|
||||
---@return cc.EaseElastic
|
||||
function EaseElasticIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseElasticIn:EaseElasticIn() end
|
||||
@@ -0,0 +1,24 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseElasticInOut :cc.EaseElastic
|
||||
local EaseElasticInOut = {}
|
||||
cc.EaseElasticInOut = EaseElasticInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@param rate float
|
||||
---@return self
|
||||
function EaseElasticInOut:create(action, rate) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseElasticInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseElasticInOut:update(time) end
|
||||
---*
|
||||
---@return cc.EaseElastic
|
||||
function EaseElasticInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseElasticInOut:EaseElasticInOut() end
|
||||
@@ -0,0 +1,24 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseElasticOut :cc.EaseElastic
|
||||
local EaseElasticOut = {}
|
||||
cc.EaseElasticOut = EaseElasticOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@param rate float
|
||||
---@return self
|
||||
function EaseElasticOut:create(action, rate) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseElasticOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseElasticOut:update(time) end
|
||||
---*
|
||||
---@return cc.EaseElastic
|
||||
function EaseElasticOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseElasticOut:EaseElasticOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseExponentialIn :cc.ActionEase
|
||||
local EaseExponentialIn = {}
|
||||
cc.EaseExponentialIn = EaseExponentialIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseExponentialIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseExponentialIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseExponentialIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseExponentialIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseExponentialIn:EaseExponentialIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseExponentialInOut :cc.ActionEase
|
||||
local EaseExponentialInOut = {}
|
||||
cc.EaseExponentialInOut = EaseExponentialInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseExponentialInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseExponentialInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseExponentialInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseExponentialInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseExponentialInOut:EaseExponentialInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseExponentialOut :cc.ActionEase
|
||||
local EaseExponentialOut = {}
|
||||
cc.EaseExponentialOut = EaseExponentialOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseExponentialOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseExponentialOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseExponentialOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseExponentialOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseExponentialOut:EaseExponentialOut() end
|
||||
@@ -0,0 +1,24 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseIn :cc.EaseRateAction
|
||||
local EaseIn = {}
|
||||
cc.EaseIn = EaseIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@param rate float
|
||||
---@return self
|
||||
function EaseIn:create(action, rate) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseIn:update(time) end
|
||||
---*
|
||||
---@return cc.EaseRateAction
|
||||
function EaseIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseIn:EaseIn() end
|
||||
@@ -0,0 +1,24 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseInOut :cc.EaseRateAction
|
||||
local EaseInOut = {}
|
||||
cc.EaseInOut = EaseInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@param rate float
|
||||
---@return self
|
||||
function EaseInOut:create(action, rate) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseInOut:update(time) end
|
||||
---*
|
||||
---@return cc.EaseRateAction
|
||||
function EaseInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseInOut:EaseInOut() end
|
||||
@@ -0,0 +1,24 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseOut :cc.EaseRateAction
|
||||
local EaseOut = {}
|
||||
cc.EaseOut = EaseOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@param rate float
|
||||
---@return self
|
||||
function EaseOut:create(action, rate) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseOut:update(time) end
|
||||
---*
|
||||
---@return cc.EaseRateAction
|
||||
function EaseOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseOut:EaseOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuadraticActionIn :cc.ActionEase
|
||||
local EaseQuadraticActionIn = {}
|
||||
cc.EaseQuadraticActionIn = EaseQuadraticActionIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuadraticActionIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuadraticActionIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuadraticActionIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuadraticActionIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuadraticActionIn:EaseQuadraticActionIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuadraticActionInOut :cc.ActionEase
|
||||
local EaseQuadraticActionInOut = {}
|
||||
cc.EaseQuadraticActionInOut = EaseQuadraticActionInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuadraticActionInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuadraticActionInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuadraticActionInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuadraticActionInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuadraticActionInOut:EaseQuadraticActionInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuadraticActionOut :cc.ActionEase
|
||||
local EaseQuadraticActionOut = {}
|
||||
cc.EaseQuadraticActionOut = EaseQuadraticActionOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuadraticActionOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuadraticActionOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuadraticActionOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuadraticActionOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuadraticActionOut:EaseQuadraticActionOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuarticActionIn :cc.ActionEase
|
||||
local EaseQuarticActionIn = {}
|
||||
cc.EaseQuarticActionIn = EaseQuarticActionIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuarticActionIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuarticActionIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuarticActionIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuarticActionIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuarticActionIn:EaseQuarticActionIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuarticActionInOut :cc.ActionEase
|
||||
local EaseQuarticActionInOut = {}
|
||||
cc.EaseQuarticActionInOut = EaseQuarticActionInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuarticActionInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuarticActionInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuarticActionInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuarticActionInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuarticActionInOut:EaseQuarticActionInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuarticActionOut :cc.ActionEase
|
||||
local EaseQuarticActionOut = {}
|
||||
cc.EaseQuarticActionOut = EaseQuarticActionOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuarticActionOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuarticActionOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuarticActionOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuarticActionOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuarticActionOut:EaseQuarticActionOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuinticActionIn :cc.ActionEase
|
||||
local EaseQuinticActionIn = {}
|
||||
cc.EaseQuinticActionIn = EaseQuinticActionIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuinticActionIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuinticActionIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuinticActionIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuinticActionIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuinticActionIn:EaseQuinticActionIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuinticActionInOut :cc.ActionEase
|
||||
local EaseQuinticActionInOut = {}
|
||||
cc.EaseQuinticActionInOut = EaseQuinticActionInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuinticActionInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuinticActionInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuinticActionInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuinticActionInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuinticActionInOut:EaseQuinticActionInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseQuinticActionOut :cc.ActionEase
|
||||
local EaseQuinticActionOut = {}
|
||||
cc.EaseQuinticActionOut = EaseQuinticActionOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseQuinticActionOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuinticActionOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseQuinticActionOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseQuinticActionOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseQuinticActionOut:EaseQuinticActionOut() end
|
||||
@@ -0,0 +1,28 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseRateAction :cc.ActionEase
|
||||
local EaseRateAction = {}
|
||||
cc.EaseRateAction = EaseRateAction
|
||||
|
||||
---* brief Set the rate value for the ease rate action.<br>
|
||||
---* param rate The value will be set.
|
||||
---@param rate float
|
||||
---@return self
|
||||
function EaseRateAction:setRate(rate) end
|
||||
---* brief Initializes the action with the inner action and the rate parameter.<br>
|
||||
---* param pAction The pointer of the inner action.<br>
|
||||
---* param fRate The value of the rate parameter.<br>
|
||||
---* return Return true when the initialization success, otherwise return false.
|
||||
---@param pAction cc.ActionInterval
|
||||
---@param fRate float
|
||||
---@return boolean
|
||||
function EaseRateAction:initWithAction(pAction, fRate) end
|
||||
---* brief Get the rate value of the ease rate action.<br>
|
||||
---* return Return the rate value of the ease rate action.
|
||||
---@return float
|
||||
function EaseRateAction:getRate() end
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@param rate float
|
||||
---@return self
|
||||
function EaseRateAction:create(action, rate) end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseSineIn :cc.ActionEase
|
||||
local EaseSineIn = {}
|
||||
cc.EaseSineIn = EaseSineIn
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseSineIn:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseSineIn:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseSineIn:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseSineIn:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseSineIn:EaseSineIn() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseSineInOut :cc.ActionEase
|
||||
local EaseSineInOut = {}
|
||||
cc.EaseSineInOut = EaseSineInOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseSineInOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseSineInOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseSineInOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseSineInOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseSineInOut:EaseSineInOut() end
|
||||
@@ -0,0 +1,23 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.EaseSineOut :cc.ActionEase
|
||||
local EaseSineOut = {}
|
||||
cc.EaseSineOut = EaseSineOut
|
||||
|
||||
---*
|
||||
---@param action cc.ActionInterval
|
||||
---@return self
|
||||
function EaseSineOut:create(action) end
|
||||
---*
|
||||
---@return self
|
||||
function EaseSineOut:clone() end
|
||||
---*
|
||||
---@param time float
|
||||
---@return self
|
||||
function EaseSineOut:update(time) end
|
||||
---*
|
||||
---@return cc.ActionEase
|
||||
function EaseSineOut:reverse() end
|
||||
---*
|
||||
---@return self
|
||||
function EaseSineOut:EaseSineOut() end
|
||||
@@ -0,0 +1,27 @@
|
||||
---@meta
|
||||
|
||||
---@class cc.Event :cc.Ref
|
||||
local Event = {}
|
||||
cc.Event = Event
|
||||
|
||||
---* Checks whether the event has been stopped.<br>
|
||||
---* return True if the event has been stopped.
|
||||
---@return boolean
|
||||
function Event:isStopped() end
|
||||
---* Gets the event type.<br>
|
||||
---* return The event type.
|
||||
---@return int
|
||||
function Event:getType() end
|
||||
---* Gets current target of the event.<br>
|
||||
---* return The target with which the event associates.<br>
|
||||
---* note It's only available when the event listener is associated with node.<br>
|
||||
---* It returns 0 when the listener is associated with fixed priority.
|
||||
---@return cc.Node
|
||||
function Event:getCurrentTarget() end
|
||||
---* Stops propagation for current event.
|
||||
---@return self
|
||||
function Event:stopPropagation() end
|
||||
---* Constructor
|
||||
---@param type int
|
||||
---@return self
|
||||
function Event:Event(type) end
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user