diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
commit | 52097b6ee7cc8f5a770eb851902560b5b8592218 (patch) | |
tree | 6dcbb53ac0104912e950747a37aac6b25039e862 /meta/3rd | |
parent | 6839cd530c53387df4d5db61f0cb2e5ed1a87298 (diff) | |
download | lua-language-server-52097b6ee7cc8f5a770eb851902560b5b8592218.zip |
add meta/3rd with acknowledgement
Diffstat (limited to 'meta/3rd')
519 files changed, 46104 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.Action.lua b/meta/3rd/Cocos4.0/cc.Action.lua new file mode 100644 index 00000000..6088cf8b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Action.lua @@ -0,0 +1,83 @@ + +---@class cc.Action :cc.Ref +local Action={ } +cc.Action=Action + + + + +---* Called before the action start. It will also set the target. <br> +---* param target A certain target. +---@param target cc.Node +---@return self +function Action:startWithTarget (target) end +---* Set the original target, since target can be nil.<br> +---* Is the target that were used to run the action. Unless you are doing something complex, like ActionManager, you should NOT call this method.<br> +---* The target is 'assigned', it is not 'retained'.<br> +---* since v0.8.2<br> +---* param originalTarget Is 'assigned', it is not 'retained'. +---@param originalTarget cc.Node +---@return self +function Action:setOriginalTarget (originalTarget) end +---* Returns a clone of action.<br> +---* return A clone action. +---@return self +function Action:clone () end +---* Return a original Target. <br> +---* return A original Target. +---@return cc.Node +function Action:getOriginalTarget () end +---* Called after the action has finished. It will set the 'target' to nil.<br> +---* IMPORTANT: You should never call "Action::stop()" manually. Instead, use: "target->stopAction(action);". +---@return self +function Action:stop () end +---* Called once per frame. time a value between 0 and 1.<br> +---* For example:<br> +---* - 0 Means that the action just started.<br> +---* - 0.5 Means that the action is in the middle.<br> +---* - 1 Means that the action is over.<br> +---* param time A value between 0 and 1. +---@param time float +---@return self +function Action:update (time) end +---* Return certain target.<br> +---* return A certain target. +---@return cc.Node +function Action:getTarget () end +---* Returns a flag field that is used to group the actions easily.<br> +---* return A tag. +---@return unsigned_int +function Action:getFlags () end +---* Called every frame with it's delta time, dt in seconds. DON'T override unless you know what you are doing. <br> +---* param dt In seconds. +---@param dt float +---@return self +function Action:step (dt) end +---* Changes the tag that is used to identify the action easily. <br> +---* param tag Used to identify the action easily. +---@param tag int +---@return self +function Action:setTag (tag) end +---* Changes the flag field that is used to group the actions easily.<br> +---* param flags Used to group the actions easily. +---@param flags unsigned_int +---@return self +function Action:setFlags (flags) end +---* Returns a tag that is used to identify the action easily. <br> +---* return A tag. +---@return int +function Action:getTag () end +---* The action will modify the target properties. <br> +---* param target A certain target. +---@param target cc.Node +---@return self +function Action:setTarget (target) end +---* Return true if the action has finished. <br> +---* return Is true if the action has finished. +---@return boolean +function Action:isDone () end +---* Returns a new action that performs the exact reverse of the action. <br> +---* return A new action that performs the exact reverse of the action.<br> +---* js NA +---@return self +function Action:reverse () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ActionCamera.lua b/meta/3rd/Cocos4.0/cc.ActionCamera.lua new file mode 100644 index 00000000..34d2ec97 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ActionCamera.lua @@ -0,0 +1,46 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ActionEase.lua b/meta/3rd/Cocos4.0/cc.ActionEase.lua new file mode 100644 index 00000000..ef79fc04 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ActionEase.lua @@ -0,0 +1,28 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ActionFloat.lua b/meta/3rd/Cocos4.0/cc.ActionFloat.lua new file mode 100644 index 00000000..add4c86f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ActionFloat.lua @@ -0,0 +1,45 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ActionInstant.lua b/meta/3rd/Cocos4.0/cc.ActionInstant.lua new file mode 100644 index 00000000..3f437efc --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ActionInstant.lua @@ -0,0 +1,29 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ActionInterval.lua b/meta/3rd/Cocos4.0/cc.ActionInterval.lua new file mode 100644 index 00000000..66117f02 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ActionInterval.lua @@ -0,0 +1,42 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ActionManager.lua b/meta/3rd/Cocos4.0/cc.ActionManager.lua new file mode 100644 index 00000000..9c76b31c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ActionManager.lua @@ -0,0 +1,123 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ActionTween.lua b/meta/3rd/Cocos4.0/cc.ActionTween.lua new file mode 100644 index 00000000..7c3899a0 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ActionTween.lua @@ -0,0 +1,46 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AmbientLight.lua b/meta/3rd/Cocos4.0/cc.AmbientLight.lua new file mode 100644 index 00000000..6e0f8809 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AmbientLight.lua @@ -0,0 +1,20 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Animate.lua b/meta/3rd/Cocos4.0/cc.Animate.lua new file mode 100644 index 00000000..34de7a6a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Animate.lua @@ -0,0 +1,51 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Animate3D.lua b/meta/3rd/Cocos4.0/cc.Animate3D.lua new file mode 100644 index 00000000..5114d712 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Animate3D.lua @@ -0,0 +1,108 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Animation.lua b/meta/3rd/Cocos4.0/cc.Animation.lua new file mode 100644 index 00000000..509f8bf5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Animation.lua @@ -0,0 +1,109 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Animation3D.lua b/meta/3rd/Cocos4.0/cc.Animation3D.lua new file mode 100644 index 00000000..be3af785 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Animation3D.lua @@ -0,0 +1,28 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AnimationCache.lua b/meta/3rd/Cocos4.0/cc.AnimationCache.lua new file mode 100644 index 00000000..a2651959 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AnimationCache.lua @@ -0,0 +1,60 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AnimationFrame.lua b/meta/3rd/Cocos4.0/cc.AnimationFrame.lua new file mode 100644 index 00000000..1f9b9f40 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AnimationFrame.lua @@ -0,0 +1,57 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Application.lua b/meta/3rd/Cocos4.0/cc.Application.lua new file mode 100644 index 00000000..5e8191fa --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Application.lua @@ -0,0 +1,37 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AssetsManager.lua b/meta/3rd/Cocos4.0/cc.AssetsManager.lua new file mode 100644 index 00000000..afa3764a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AssetsManager.lua @@ -0,0 +1,60 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AssetsManagerEx.lua b/meta/3rd/Cocos4.0/cc.AssetsManagerEx.lua new file mode 100644 index 00000000..8b27e0a8 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AssetsManagerEx.lua @@ -0,0 +1,62 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AsyncTaskPool.lua b/meta/3rd/Cocos4.0/cc.AsyncTaskPool.lua new file mode 100644 index 00000000..9ddbad68 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AsyncTaskPool.lua @@ -0,0 +1,30 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AtlasNode.lua b/meta/3rd/Cocos4.0/cc.AtlasNode.lua new file mode 100644 index 00000000..b79d5b84 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AtlasNode.lua @@ -0,0 +1,97 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AttachNode.lua b/meta/3rd/Cocos4.0/cc.AttachNode.lua new file mode 100644 index 00000000..51b49997 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AttachNode.lua @@ -0,0 +1,31 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AudioEngine.lua b/meta/3rd/Cocos4.0/cc.AudioEngine.lua new file mode 100644 index 00000000..d0db8ff4 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AudioEngine.lua @@ -0,0 +1,150 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AudioProfile.lua b/meta/3rd/Cocos4.0/cc.AudioProfile.lua new file mode 100644 index 00000000..daf15a78 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AudioProfile.lua @@ -0,0 +1,12 @@ + +---@class cc.AudioProfile +local AudioProfile={ } +cc.AudioProfile=AudioProfile + + + + +---* Default constructor<br> +---* lua new +---@return self +function AudioProfile:AudioProfile () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.AutoPolygon.lua b/meta/3rd/Cocos4.0/cc.AutoPolygon.lua new file mode 100644 index 00000000..8c87ae82 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AutoPolygon.lua @@ -0,0 +1,15 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.BaseLight.lua b/meta/3rd/Cocos4.0/cc.BaseLight.lua new file mode 100644 index 00000000..3fc6f7a7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.BaseLight.lua @@ -0,0 +1,33 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.BezierBy.lua b/meta/3rd/Cocos4.0/cc.BezierBy.lua new file mode 100644 index 00000000..163d98af --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.BezierBy.lua @@ -0,0 +1,31 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.BezierTo.lua b/meta/3rd/Cocos4.0/cc.BezierTo.lua new file mode 100644 index 00000000..ade640aa --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.BezierTo.lua @@ -0,0 +1,26 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.BillBoard.lua b/meta/3rd/Cocos4.0/cc.BillBoard.lua new file mode 100644 index 00000000..97443db7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.BillBoard.lua @@ -0,0 +1,40 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Blink.lua b/meta/3rd/Cocos4.0/cc.Blink.lua new file mode 100644 index 00000000..b6aaf5a5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Blink.lua @@ -0,0 +1,42 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Bundle3D.lua b/meta/3rd/Cocos4.0/cc.Bundle3D.lua new file mode 100644 index 00000000..faa71b3c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Bundle3D.lua @@ -0,0 +1,58 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CSLoader.lua b/meta/3rd/Cocos4.0/cc.CSLoader.lua new file mode 100644 index 00000000..c7cba804 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CSLoader.lua @@ -0,0 +1,67 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CallFunc.lua b/meta/3rd/Cocos4.0/cc.CallFunc.lua new file mode 100644 index 00000000..6620306d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CallFunc.lua @@ -0,0 +1,24 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Camera.lua b/meta/3rd/Cocos4.0/cc.Camera.lua new file mode 100644 index 00000000..b404bdf4 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Camera.lua @@ -0,0 +1,165 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CameraBackgroundBrush.lua b/meta/3rd/Cocos4.0/cc.CameraBackgroundBrush.lua new file mode 100644 index 00000000..a8ec0a2c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CameraBackgroundBrush.lua @@ -0,0 +1,58 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CameraBackgroundColorBrush.lua b/meta/3rd/Cocos4.0/cc.CameraBackgroundColorBrush.lua new file mode 100644 index 00000000..4f8e7c18 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CameraBackgroundColorBrush.lua @@ -0,0 +1,35 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CameraBackgroundDepthBrush.lua b/meta/3rd/Cocos4.0/cc.CameraBackgroundDepthBrush.lua new file mode 100644 index 00000000..ccba5f69 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CameraBackgroundDepthBrush.lua @@ -0,0 +1,33 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CameraBackgroundSkyBoxBrush.lua b/meta/3rd/Cocos4.0/cc.CameraBackgroundSkyBoxBrush.lua new file mode 100644 index 00000000..6e186ba9 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CameraBackgroundSkyBoxBrush.lua @@ -0,0 +1,51 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CardinalSplineBy.lua b/meta/3rd/Cocos4.0/cc.CardinalSplineBy.lua new file mode 100644 index 00000000..8132ef4d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CardinalSplineBy.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CardinalSplineTo.lua b/meta/3rd/Cocos4.0/cc.CardinalSplineTo.lua new file mode 100644 index 00000000..c3335cb2 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CardinalSplineTo.lua @@ -0,0 +1,44 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CatmullRomBy.lua b/meta/3rd/Cocos4.0/cc.CatmullRomBy.lua new file mode 100644 index 00000000..6456e54d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CatmullRomBy.lua @@ -0,0 +1,21 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.CatmullRomTo.lua b/meta/3rd/Cocos4.0/cc.CatmullRomTo.lua new file mode 100644 index 00000000..cf5b2257 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.CatmullRomTo.lua @@ -0,0 +1,21 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ClippingNode.lua b/meta/3rd/Cocos4.0/cc.ClippingNode.lua new file mode 100644 index 00000000..8f8ca618 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ClippingNode.lua @@ -0,0 +1,76 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ClippingRectangleNode.lua b/meta/3rd/Cocos4.0/cc.ClippingRectangleNode.lua new file mode 100644 index 00000000..b760b2d4 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ClippingRectangleNode.lua @@ -0,0 +1,37 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Component.lua b/meta/3rd/Cocos4.0/cc.Component.lua new file mode 100644 index 00000000..88e0e4f9 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Component.lua @@ -0,0 +1,45 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ComponentLua.lua b/meta/3rd/Cocos4.0/cc.ComponentLua.lua new file mode 100644 index 00000000..3d7965f2 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ComponentLua.lua @@ -0,0 +1,23 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Console.lua b/meta/3rd/Cocos4.0/cc.Console.lua new file mode 100644 index 00000000..44c4d2e4 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Console.lua @@ -0,0 +1,39 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Control.lua b/meta/3rd/Cocos4.0/cc.Control.lua new file mode 100644 index 00000000..e3411b6b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Control.lua @@ -0,0 +1,93 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ControlButton.lua b/meta/3rd/Cocos4.0/cc.ControlButton.lua new file mode 100644 index 00000000..0ea90d99 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ControlButton.lua @@ -0,0 +1,262 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ControlColourPicker.lua b/meta/3rd/Cocos4.0/cc.ControlColourPicker.lua new file mode 100644 index 00000000..427bad7f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ControlColourPicker.lua @@ -0,0 +1,57 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ControlHuePicker.lua b/meta/3rd/Cocos4.0/cc.ControlHuePicker.lua new file mode 100644 index 00000000..2ab4a9c1 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ControlHuePicker.lua @@ -0,0 +1,66 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ControlPotentiometer.lua b/meta/3rd/Cocos4.0/cc.ControlPotentiometer.lua new file mode 100644 index 00000000..b11a5694 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ControlPotentiometer.lua @@ -0,0 +1,115 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ControlSaturationBrightnessPicker.lua b/meta/3rd/Cocos4.0/cc.ControlSaturationBrightnessPicker.lua new file mode 100644 index 00000000..2b1e8497 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ControlSaturationBrightnessPicker.lua @@ -0,0 +1,46 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ControlSlider.lua b/meta/3rd/Cocos4.0/cc.ControlSlider.lua new file mode 100644 index 00000000..b05c1312 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ControlSlider.lua @@ -0,0 +1,108 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ControlStepper.lua b/meta/3rd/Cocos4.0/cc.ControlStepper.lua new file mode 100644 index 00000000..84c50803 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ControlStepper.lua @@ -0,0 +1,110 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ControlSwitch.lua b/meta/3rd/Cocos4.0/cc.ControlSwitch.lua new file mode 100644 index 00000000..bb13cf7d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ControlSwitch.lua @@ -0,0 +1,72 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Controller.lua b/meta/3rd/Cocos4.0/cc.Controller.lua new file mode 100644 index 00000000..e88c16f0 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Controller.lua @@ -0,0 +1,55 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.DelayTime.lua b/meta/3rd/Cocos4.0/cc.DelayTime.lua new file mode 100644 index 00000000..889f18bc --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.DelayTime.lua @@ -0,0 +1,27 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Device.lua b/meta/3rd/Cocos4.0/cc.Device.lua new file mode 100644 index 00000000..79a2622c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Device.lua @@ -0,0 +1,33 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.DirectionLight.lua b/meta/3rd/Cocos4.0/cc.DirectionLight.lua new file mode 100644 index 00000000..887dc206 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.DirectionLight.lua @@ -0,0 +1,33 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Director.lua b/meta/3rd/Cocos4.0/cc.Director.lua new file mode 100644 index 00000000..bcbd89fb --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Director.lua @@ -0,0 +1,308 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.DrawNode.lua b/meta/3rd/Cocos4.0/cc.DrawNode.lua new file mode 100644 index 00000000..9cc16926 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.DrawNode.lua @@ -0,0 +1,184 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseBackIn.lua b/meta/3rd/Cocos4.0/cc.EaseBackIn.lua new file mode 100644 index 00000000..5a66fa9b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseBackIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseBackInOut.lua b/meta/3rd/Cocos4.0/cc.EaseBackInOut.lua new file mode 100644 index 00000000..cac8125b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseBackInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseBackOut.lua b/meta/3rd/Cocos4.0/cc.EaseBackOut.lua new file mode 100644 index 00000000..ec60837e --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseBackOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseBezierAction.lua b/meta/3rd/Cocos4.0/cc.EaseBezierAction.lua new file mode 100644 index 00000000..2a208223 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseBezierAction.lua @@ -0,0 +1,34 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseBounce.lua b/meta/3rd/Cocos4.0/cc.EaseBounce.lua new file mode 100644 index 00000000..92f7c81d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseBounce.lua @@ -0,0 +1,7 @@ + +---@class cc.EaseBounce :cc.ActionEase +local EaseBounce={ } +cc.EaseBounce=EaseBounce + + + diff --git a/meta/3rd/Cocos4.0/cc.EaseBounceIn.lua b/meta/3rd/Cocos4.0/cc.EaseBounceIn.lua new file mode 100644 index 00000000..265d5154 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseBounceIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseBounceInOut.lua b/meta/3rd/Cocos4.0/cc.EaseBounceInOut.lua new file mode 100644 index 00000000..1a039898 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseBounceInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseBounceOut.lua b/meta/3rd/Cocos4.0/cc.EaseBounceOut.lua new file mode 100644 index 00000000..abf7c3e4 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseBounceOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseCircleActionIn.lua b/meta/3rd/Cocos4.0/cc.EaseCircleActionIn.lua new file mode 100644 index 00000000..47dc9fba --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseCircleActionIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseCircleActionInOut.lua b/meta/3rd/Cocos4.0/cc.EaseCircleActionInOut.lua new file mode 100644 index 00000000..2410ee06 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseCircleActionInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseCircleActionOut.lua b/meta/3rd/Cocos4.0/cc.EaseCircleActionOut.lua new file mode 100644 index 00000000..ce37b4e7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseCircleActionOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseCubicActionIn.lua b/meta/3rd/Cocos4.0/cc.EaseCubicActionIn.lua new file mode 100644 index 00000000..1d020d7c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseCubicActionIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseCubicActionInOut.lua b/meta/3rd/Cocos4.0/cc.EaseCubicActionInOut.lua new file mode 100644 index 00000000..67f050d7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseCubicActionInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseCubicActionOut.lua b/meta/3rd/Cocos4.0/cc.EaseCubicActionOut.lua new file mode 100644 index 00000000..501ed4ed --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseCubicActionOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseElastic.lua b/meta/3rd/Cocos4.0/cc.EaseElastic.lua new file mode 100644 index 00000000..bb81ad56 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseElastic.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseElasticIn.lua b/meta/3rd/Cocos4.0/cc.EaseElasticIn.lua new file mode 100644 index 00000000..1a0f9b5a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseElasticIn.lua @@ -0,0 +1,26 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseElasticInOut.lua b/meta/3rd/Cocos4.0/cc.EaseElasticInOut.lua new file mode 100644 index 00000000..fe49f18e --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseElasticInOut.lua @@ -0,0 +1,26 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseElasticOut.lua b/meta/3rd/Cocos4.0/cc.EaseElasticOut.lua new file mode 100644 index 00000000..5081dbf7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseElasticOut.lua @@ -0,0 +1,26 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseExponentialIn.lua b/meta/3rd/Cocos4.0/cc.EaseExponentialIn.lua new file mode 100644 index 00000000..d6a07f4e --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseExponentialIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseExponentialInOut.lua b/meta/3rd/Cocos4.0/cc.EaseExponentialInOut.lua new file mode 100644 index 00000000..fe6789bd --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseExponentialInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseExponentialOut.lua b/meta/3rd/Cocos4.0/cc.EaseExponentialOut.lua new file mode 100644 index 00000000..73d64c09 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseExponentialOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseIn.lua b/meta/3rd/Cocos4.0/cc.EaseIn.lua new file mode 100644 index 00000000..54ac8471 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseIn.lua @@ -0,0 +1,26 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseInOut.lua b/meta/3rd/Cocos4.0/cc.EaseInOut.lua new file mode 100644 index 00000000..83273d73 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseInOut.lua @@ -0,0 +1,26 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseOut.lua b/meta/3rd/Cocos4.0/cc.EaseOut.lua new file mode 100644 index 00000000..414b3cbd --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseOut.lua @@ -0,0 +1,26 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuadraticActionIn.lua b/meta/3rd/Cocos4.0/cc.EaseQuadraticActionIn.lua new file mode 100644 index 00000000..8513d6f9 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuadraticActionIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuadraticActionInOut.lua b/meta/3rd/Cocos4.0/cc.EaseQuadraticActionInOut.lua new file mode 100644 index 00000000..8a9bdedf --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuadraticActionInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuadraticActionOut.lua b/meta/3rd/Cocos4.0/cc.EaseQuadraticActionOut.lua new file mode 100644 index 00000000..03143a70 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuadraticActionOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuarticActionIn.lua b/meta/3rd/Cocos4.0/cc.EaseQuarticActionIn.lua new file mode 100644 index 00000000..2c965471 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuarticActionIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuarticActionInOut.lua b/meta/3rd/Cocos4.0/cc.EaseQuarticActionInOut.lua new file mode 100644 index 00000000..ab02760e --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuarticActionInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuarticActionOut.lua b/meta/3rd/Cocos4.0/cc.EaseQuarticActionOut.lua new file mode 100644 index 00000000..325ba50b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuarticActionOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuinticActionIn.lua b/meta/3rd/Cocos4.0/cc.EaseQuinticActionIn.lua new file mode 100644 index 00000000..f4e6ee26 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuinticActionIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuinticActionInOut.lua b/meta/3rd/Cocos4.0/cc.EaseQuinticActionInOut.lua new file mode 100644 index 00000000..4d6ac890 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuinticActionInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseQuinticActionOut.lua b/meta/3rd/Cocos4.0/cc.EaseQuinticActionOut.lua new file mode 100644 index 00000000..4cf11818 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseQuinticActionOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseRateAction.lua b/meta/3rd/Cocos4.0/cc.EaseRateAction.lua new file mode 100644 index 00000000..1b340e3b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseRateAction.lua @@ -0,0 +1,30 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseSineIn.lua b/meta/3rd/Cocos4.0/cc.EaseSineIn.lua new file mode 100644 index 00000000..d87a7b77 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseSineIn.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseSineInOut.lua b/meta/3rd/Cocos4.0/cc.EaseSineInOut.lua new file mode 100644 index 00000000..f62a5099 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseSineInOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EaseSineOut.lua b/meta/3rd/Cocos4.0/cc.EaseSineOut.lua new file mode 100644 index 00000000..906c2fb5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EaseSineOut.lua @@ -0,0 +1,25 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Event.lua b/meta/3rd/Cocos4.0/cc.Event.lua new file mode 100644 index 00000000..463c9b2f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Event.lua @@ -0,0 +1,29 @@ + +---@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
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventAcceleration.lua b/meta/3rd/Cocos4.0/cc.EventAcceleration.lua new file mode 100644 index 00000000..66bd56f2 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventAcceleration.lua @@ -0,0 +1,7 @@ + +---@class cc.EventAcceleration :cc.Event +local EventAcceleration={ } +cc.EventAcceleration=EventAcceleration + + + diff --git a/meta/3rd/Cocos4.0/cc.EventAssetsManagerEx.lua b/meta/3rd/Cocos4.0/cc.EventAssetsManagerEx.lua new file mode 100644 index 00000000..b513c92d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventAssetsManagerEx.lua @@ -0,0 +1,44 @@ + +---@class cc.EventAssetsManagerEx :cc.EventCustom +local EventAssetsManagerEx={ } +cc.EventAssetsManagerEx=EventAssetsManagerEx + + + + +---* +---@return cc.AssetsManagerEx +function EventAssetsManagerEx:getAssetsManagerEx () end +---* +---@return string +function EventAssetsManagerEx:getAssetId () end +---* +---@return int +function EventAssetsManagerEx:getCURLECode () end +---* +---@return string +function EventAssetsManagerEx:getMessage () end +---* +---@return int +function EventAssetsManagerEx:getCURLMCode () end +---* +---@return float +function EventAssetsManagerEx:getPercentByFile () end +---* +---@return int +function EventAssetsManagerEx:getEventCode () end +---* +---@return float +function EventAssetsManagerEx:getPercent () end +---* Constructor +---@param eventName string +---@param manager cc.AssetsManagerEx +---@param code int +---@param percent float +---@param percentByFile float +---@param assetId string +---@param message string +---@param curle_code int +---@param curlm_code int +---@return self +function EventAssetsManagerEx:EventAssetsManagerEx (eventName,manager,code,percent,percentByFile,assetId,message,curle_code,curlm_code) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventController.lua b/meta/3rd/Cocos4.0/cc.EventController.lua new file mode 100644 index 00000000..8ce256a4 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventController.lua @@ -0,0 +1,39 @@ + +---@class cc.EventController :cc.Event +local EventController={ } +cc.EventController=EventController + + + + +---* Gets the event type of the controller.<br> +---* return The event type of the controller. +---@return int +function EventController:getControllerEventType () end +---* Sets the connect status.<br> +---* param True if it's connected. +---@param isConnected boolean +---@return self +function EventController:setConnectStatus (isConnected) end +---* Gets the connect status.<br> +---* return True if it's connected. +---@return boolean +function EventController:isConnected () end +---* +---@param keyCode int +---@return self +function EventController:setKeyCode (keyCode) end +---* +---@return cc.Controller +function EventController:getController () end +---* Gets the key code of the controller.<br> +---* return The key code of the controller. +---@return int +function EventController:getKeyCode () end +---@overload fun(int:int,cc.Controller:cc.Controller,int2:boolean):self +---@overload fun(int:int,cc.Controller:cc.Controller,int:int):self +---@param type int +---@param controller cc.Controller +---@param keyCode int +---@return self +function EventController:EventController (type,controller,keyCode) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventCustom.lua b/meta/3rd/Cocos4.0/cc.EventCustom.lua new file mode 100644 index 00000000..c22bf161 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventCustom.lua @@ -0,0 +1,18 @@ + +---@class cc.EventCustom :cc.Event +local EventCustom={ } +cc.EventCustom=EventCustom + + + + +---* Gets event name.<br> +---* return The name of the event. +---@return string +function EventCustom:getEventName () end +---* Constructor.<br> +---* param eventName A given name of the custom event.<br> +---* js ctor +---@param eventName string +---@return self +function EventCustom:EventCustom (eventName) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventDispatcher.lua b/meta/3rd/Cocos4.0/cc.EventDispatcher.lua new file mode 100644 index 00000000..22a11ca9 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventDispatcher.lua @@ -0,0 +1,113 @@ + +---@class cc.EventDispatcher :cc.Ref +local EventDispatcher={ } +cc.EventDispatcher=EventDispatcher + + + + +---* Pauses all listeners which are associated the specified target.<br> +---* param target A given target node.<br> +---* param recursive True if pause recursively, the default value is false. +---@param target cc.Node +---@param recursive boolean +---@return self +function EventDispatcher:pauseEventListenersForTarget (target,recursive) end +---* Adds a event listener for a specified event with the priority of scene graph.<br> +---* param listener The listener of a specified event.<br> +---* param node The priority of the listener is based on the draw order of this node.<br> +---* note The priority of scene graph will be fixed value 0. So the order of listener item<br> +---* in the vector will be ' <0, scene graph (0 priority), >0'. +---@param listener cc.EventListener +---@param node cc.Node +---@return self +function EventDispatcher:addEventListenerWithSceneGraphPriority (listener,node) end +---* Whether to enable dispatching events.<br> +---* param isEnabled True if enable dispatching events. +---@param isEnabled boolean +---@return self +function EventDispatcher:setEnabled (isEnabled) end +---* Adds a event listener for a specified event with the fixed priority.<br> +---* param listener The listener of a specified event.<br> +---* param fixedPriority The fixed priority of the listener.<br> +---* note A lower priority will be called before the ones that have a higher value.<br> +---* 0 priority is forbidden for fixed priority since it's used for scene graph based priority. +---@param listener cc.EventListener +---@param fixedPriority int +---@return self +function EventDispatcher:addEventListenerWithFixedPriority (listener,fixedPriority) end +---* Remove a listener.<br> +---* param listener The specified event listener which needs to be removed. +---@param listener cc.EventListener +---@return self +function EventDispatcher:removeEventListener (listener) end +---* Dispatches a Custom Event with a event name an optional user data.<br> +---* param eventName The name of the event which needs to be dispatched.<br> +---* param optionalUserData The optional user data, it's a void*, the default value is nullptr. +---@param eventName string +---@param optionalUserData void +---@return self +function EventDispatcher:dispatchCustomEvent (eventName,optionalUserData) end +---* Resumes all listeners which are associated the specified target.<br> +---* param target A given target node.<br> +---* param recursive True if resume recursively, the default value is false. +---@param target cc.Node +---@param recursive boolean +---@return self +function EventDispatcher:resumeEventListenersForTarget (target,recursive) end +---* Removes all listeners which are associated with the specified target.<br> +---* param target A given target node.<br> +---* param recursive True if remove recursively, the default value is false. +---@param target cc.Node +---@param recursive boolean +---@return self +function EventDispatcher:removeEventListenersForTarget (target,recursive) end +---* Sets listener's priority with fixed value.<br> +---* param listener A given listener.<br> +---* param fixedPriority The fixed priority value. +---@param listener cc.EventListener +---@param fixedPriority int +---@return self +function EventDispatcher:setPriority (listener,fixedPriority) end +---* Adds a Custom event listener.<br> +---* It will use a fixed priority of 1.<br> +---* param eventName A given name of the event.<br> +---* param callback A given callback method that associated the event name.<br> +---* return the generated event. Needed in order to remove the event from the dispatcher +---@param eventName string +---@param callback function +---@return cc.EventListenerCustom +function EventDispatcher:addCustomEventListener (eventName,callback) end +---* Dispatches the event.<br> +---* Also removes all EventListeners marked for deletion from the<br> +---* event dispatcher list.<br> +---* param event The event needs to be dispatched. +---@param event cc.Event +---@return self +function EventDispatcher:dispatchEvent (event) end +---* Query whether the specified event listener id has been added.<br> +---* param listenerID The listenerID of the event listener id.<br> +---* return True if dispatching events is exist +---@param listenerID string +---@return boolean +function EventDispatcher:hasEventListener (listenerID) end +---* Removes all listeners. +---@return self +function EventDispatcher:removeAllEventListeners () end +---* Removes all custom listeners with the same event name.<br> +---* param customEventName A given event listener name which needs to be removed. +---@param customEventName string +---@return self +function EventDispatcher:removeCustomEventListeners (customEventName) end +---* Checks whether dispatching events is enabled.<br> +---* return True if dispatching events is enabled. +---@return boolean +function EventDispatcher:isEnabled () end +---* Removes all listeners with the same event listener type.<br> +---* param listenerType A given event listener type which needs to be removed. +---@param listenerType int +---@return self +function EventDispatcher:removeEventListenersForType (listenerType) end +---* Constructor of EventDispatcher. +---@return self +function EventDispatcher:EventDispatcher () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventFocus.lua b/meta/3rd/Cocos4.0/cc.EventFocus.lua new file mode 100644 index 00000000..462f3fbb --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventFocus.lua @@ -0,0 +1,16 @@ + +---@class cc.EventFocus :cc.Event +local EventFocus={ } +cc.EventFocus=EventFocus + + + + +---* Constructor.<br> +---* param widgetLoseFocus The widget which lose focus.<br> +---* param widgetGetFocus The widget which get focus.<br> +---* js ctor +---@param widgetLoseFocus ccui.Widget +---@param widgetGetFocus ccui.Widget +---@return self +function EventFocus:EventFocus (widgetLoseFocus,widgetGetFocus) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventKeyboard.lua b/meta/3rd/Cocos4.0/cc.EventKeyboard.lua new file mode 100644 index 00000000..73e7b640 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventKeyboard.lua @@ -0,0 +1,16 @@ + +---@class cc.EventKeyboard :cc.Event +local EventKeyboard={ } +cc.EventKeyboard=EventKeyboard + + + + +---* Constructor.<br> +---* param keyCode A given keycode.<br> +---* param isPressed True if the key is pressed.<br> +---* js ctor +---@param keyCode int +---@param isPressed boolean +---@return self +function EventKeyboard:EventKeyboard (keyCode,isPressed) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListener.lua b/meta/3rd/Cocos4.0/cc.EventListener.lua new file mode 100644 index 00000000..bb7dcb06 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListener.lua @@ -0,0 +1,28 @@ + +---@class cc.EventListener :cc.Ref +local EventListener={ } +cc.EventListener=EventListener + + + + +---* Enables or disables the listener.<br> +---* note Only listeners with `enabled` state will be able to receive events.<br> +---* When an listener was initialized, it's enabled by default.<br> +---* An event listener can receive events when it is enabled and is not paused.<br> +---* paused state is always false when it is a fixed priority listener.<br> +---* param enabled True if enables the listener. +---@param enabled boolean +---@return self +function EventListener:setEnabled (enabled) end +---* Checks whether the listener is enabled.<br> +---* return True if the listener is enabled. +---@return boolean +function EventListener:isEnabled () end +---* Clones the listener, its subclasses have to override this method. +---@return self +function EventListener:clone () end +---* Checks whether the listener is available.<br> +---* return True if the listener is available. +---@return boolean +function EventListener:checkAvailable () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerAcceleration.lua b/meta/3rd/Cocos4.0/cc.EventListenerAcceleration.lua new file mode 100644 index 00000000..efe1c560 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerAcceleration.lua @@ -0,0 +1,21 @@ + +---@class cc.EventListenerAcceleration :cc.EventListener +local EventListenerAcceleration={ } +cc.EventListenerAcceleration=EventListenerAcceleration + + + + +---* +---@param callback function +---@return boolean +function EventListenerAcceleration:init (callback) end +---* / Overrides +---@return self +function EventListenerAcceleration:clone () end +---* +---@return boolean +function EventListenerAcceleration:checkAvailable () end +---* +---@return self +function EventListenerAcceleration:EventListenerAcceleration () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerAssetsManagerEx.lua b/meta/3rd/Cocos4.0/cc.EventListenerAssetsManagerEx.lua new file mode 100644 index 00000000..0f9efbb3 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerAssetsManagerEx.lua @@ -0,0 +1,22 @@ + +---@class cc.EventListenerAssetsManagerEx :cc.EventListenerCustom +local EventListenerAssetsManagerEx={ } +cc.EventListenerAssetsManagerEx=EventListenerAssetsManagerEx + + + + +---* Initializes event with type and callback function +---@param AssetsManagerEx cc.AssetsManagerEx +---@param callback function +---@return boolean +function EventListenerAssetsManagerEx:init (AssetsManagerEx,callback) end +---* +---@return self +function EventListenerAssetsManagerEx:clone () end +---* / Overrides +---@return boolean +function EventListenerAssetsManagerEx:checkAvailable () end +---* Constructor +---@return self +function EventListenerAssetsManagerEx:EventListenerAssetsManagerEx () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerController.lua b/meta/3rd/Cocos4.0/cc.EventListenerController.lua new file mode 100644 index 00000000..5a463e03 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerController.lua @@ -0,0 +1,18 @@ + +---@class cc.EventListenerController :cc.EventListener +local EventListenerController={ } +cc.EventListenerController=EventListenerController + + + + +---* Create a controller event listener.<br> +---* return An autoreleased EventListenerController object. +---@return self +function EventListenerController:create () end +---* +---@return self +function EventListenerController:clone () end +---* / Overrides +---@return boolean +function EventListenerController:checkAvailable () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerCustom.lua b/meta/3rd/Cocos4.0/cc.EventListenerCustom.lua new file mode 100644 index 00000000..344e5699 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerCustom.lua @@ -0,0 +1,17 @@ + +---@class cc.EventListenerCustom :cc.EventListener +local EventListenerCustom={ } +cc.EventListenerCustom=EventListenerCustom + + + + +---* +---@return self +function EventListenerCustom:clone () end +---* / Overrides +---@return boolean +function EventListenerCustom:checkAvailable () end +---* Constructor +---@return self +function EventListenerCustom:EventListenerCustom () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerFocus.lua b/meta/3rd/Cocos4.0/cc.EventListenerFocus.lua new file mode 100644 index 00000000..d40b83ae --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerFocus.lua @@ -0,0 +1,20 @@ + +---@class cc.EventListenerFocus :cc.EventListener +local EventListenerFocus={ } +cc.EventListenerFocus=EventListenerFocus + + + + +---* +---@return boolean +function EventListenerFocus:init () end +---* / Overrides +---@return self +function EventListenerFocus:clone () end +---* +---@return boolean +function EventListenerFocus:checkAvailable () end +---* +---@return self +function EventListenerFocus:EventListenerFocus () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerKeyboard.lua b/meta/3rd/Cocos4.0/cc.EventListenerKeyboard.lua new file mode 100644 index 00000000..876e6e07 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerKeyboard.lua @@ -0,0 +1,20 @@ + +---@class cc.EventListenerKeyboard :cc.EventListener +local EventListenerKeyboard={ } +cc.EventListenerKeyboard=EventListenerKeyboard + + + + +---* +---@return boolean +function EventListenerKeyboard:init () end +---* / Overrides +---@return self +function EventListenerKeyboard:clone () end +---* +---@return boolean +function EventListenerKeyboard:checkAvailable () end +---* +---@return self +function EventListenerKeyboard:EventListenerKeyboard () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerMouse.lua b/meta/3rd/Cocos4.0/cc.EventListenerMouse.lua new file mode 100644 index 00000000..a95cd4d6 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerMouse.lua @@ -0,0 +1,20 @@ + +---@class cc.EventListenerMouse :cc.EventListener +local EventListenerMouse={ } +cc.EventListenerMouse=EventListenerMouse + + + + +---* +---@return boolean +function EventListenerMouse:init () end +---* / Overrides +---@return self +function EventListenerMouse:clone () end +---* +---@return boolean +function EventListenerMouse:checkAvailable () end +---* +---@return self +function EventListenerMouse:EventListenerMouse () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContact.lua b/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContact.lua new file mode 100644 index 00000000..361faae7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContact.lua @@ -0,0 +1,18 @@ + +---@class cc.EventListenerPhysicsContact :cc.EventListenerCustom +local EventListenerPhysicsContact={ } +cc.EventListenerPhysicsContact=EventListenerPhysicsContact + + + + +---* Create the listener. +---@return self +function EventListenerPhysicsContact:create () end +---* Clone an object from this listener. +---@return self +function EventListenerPhysicsContact:clone () end +---* Check the listener is available.<br> +---* return True if there's one available callback function at least, false if there's no one. +---@return boolean +function EventListenerPhysicsContact:checkAvailable () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithBodies.lua b/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithBodies.lua new file mode 100644 index 00000000..d9b0b50f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithBodies.lua @@ -0,0 +1,21 @@ + +---@class cc.EventListenerPhysicsContactWithBodies :cc.EventListenerPhysicsContact +local EventListenerPhysicsContactWithBodies={ } +cc.EventListenerPhysicsContactWithBodies=EventListenerPhysicsContactWithBodies + + + + +---* +---@param shapeA cc.PhysicsShape +---@param shapeB cc.PhysicsShape +---@return boolean +function EventListenerPhysicsContactWithBodies:hitTest (shapeA,shapeB) end +---* Create the listener. +---@param bodyA cc.PhysicsBody +---@param bodyB cc.PhysicsBody +---@return self +function EventListenerPhysicsContactWithBodies:create (bodyA,bodyB) end +---* +---@return self +function EventListenerPhysicsContactWithBodies:clone () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithGroup.lua b/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithGroup.lua new file mode 100644 index 00000000..e4414027 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithGroup.lua @@ -0,0 +1,20 @@ + +---@class cc.EventListenerPhysicsContactWithGroup :cc.EventListenerPhysicsContact +local EventListenerPhysicsContactWithGroup={ } +cc.EventListenerPhysicsContactWithGroup=EventListenerPhysicsContactWithGroup + + + + +---* +---@param shapeA cc.PhysicsShape +---@param shapeB cc.PhysicsShape +---@return boolean +function EventListenerPhysicsContactWithGroup:hitTest (shapeA,shapeB) end +---* Create the listener. +---@param group int +---@return self +function EventListenerPhysicsContactWithGroup:create (group) end +---* +---@return self +function EventListenerPhysicsContactWithGroup:clone () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithShapes.lua b/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithShapes.lua new file mode 100644 index 00000000..47f94978 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerPhysicsContactWithShapes.lua @@ -0,0 +1,21 @@ + +---@class cc.EventListenerPhysicsContactWithShapes :cc.EventListenerPhysicsContact +local EventListenerPhysicsContactWithShapes={ } +cc.EventListenerPhysicsContactWithShapes=EventListenerPhysicsContactWithShapes + + + + +---* +---@param shapeA cc.PhysicsShape +---@param shapeB cc.PhysicsShape +---@return boolean +function EventListenerPhysicsContactWithShapes:hitTest (shapeA,shapeB) end +---* Create the listener. +---@param shapeA cc.PhysicsShape +---@param shapeB cc.PhysicsShape +---@return self +function EventListenerPhysicsContactWithShapes:create (shapeA,shapeB) end +---* +---@return self +function EventListenerPhysicsContactWithShapes:clone () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerTouchAllAtOnce.lua b/meta/3rd/Cocos4.0/cc.EventListenerTouchAllAtOnce.lua new file mode 100644 index 00000000..3d85377d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerTouchAllAtOnce.lua @@ -0,0 +1,20 @@ + +---@class cc.EventListenerTouchAllAtOnce :cc.EventListener +local EventListenerTouchAllAtOnce={ } +cc.EventListenerTouchAllAtOnce=EventListenerTouchAllAtOnce + + + + +---* +---@return boolean +function EventListenerTouchAllAtOnce:init () end +---* / Overrides +---@return self +function EventListenerTouchAllAtOnce:clone () end +---* +---@return boolean +function EventListenerTouchAllAtOnce:checkAvailable () end +---* +---@return self +function EventListenerTouchAllAtOnce:EventListenerTouchAllAtOnce () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventListenerTouchOneByOne.lua b/meta/3rd/Cocos4.0/cc.EventListenerTouchOneByOne.lua new file mode 100644 index 00000000..3bc2f756 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventListenerTouchOneByOne.lua @@ -0,0 +1,29 @@ + +---@class cc.EventListenerTouchOneByOne :cc.EventListener +local EventListenerTouchOneByOne={ } +cc.EventListenerTouchOneByOne=EventListenerTouchOneByOne + + + + +---* Is swall touches or not.<br> +---* return True if needs to swall touches. +---@return boolean +function EventListenerTouchOneByOne:isSwallowTouches () end +---* Whether or not to swall touches.<br> +---* param needSwallow True if needs to swall touches. +---@param needSwallow boolean +---@return self +function EventListenerTouchOneByOne:setSwallowTouches (needSwallow) end +---* +---@return boolean +function EventListenerTouchOneByOne:init () end +---* / Overrides +---@return self +function EventListenerTouchOneByOne:clone () end +---* +---@return boolean +function EventListenerTouchOneByOne:checkAvailable () end +---* +---@return self +function EventListenerTouchOneByOne:EventListenerTouchOneByOne () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventMouse.lua b/meta/3rd/Cocos4.0/cc.EventMouse.lua new file mode 100644 index 00000000..543e8ea1 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventMouse.lua @@ -0,0 +1,90 @@ + +---@class cc.EventMouse :cc.Event +local EventMouse={ } +cc.EventMouse=EventMouse + + + + +---* Returns the previous touch location in screen coordinates.<br> +---* return The previous touch location in screen coordinates.<br> +---* js NA +---@return vec2_table +function EventMouse:getPreviousLocationInView () end +---* Returns the current touch location in OpenGL coordinates.<br> +---* return The current touch location in OpenGL coordinates. +---@return vec2_table +function EventMouse:getLocation () end +---* Get mouse button.<br> +---* return The mouse button.<br> +---* js getButton +---@return int +function EventMouse:getMouseButton () end +---* Returns the previous touch location in OpenGL coordinates.<br> +---* return The previous touch location in OpenGL coordinates.<br> +---* js NA +---@return vec2_table +function EventMouse:getPreviousLocation () end +---* Returns the delta of 2 current touches locations in screen coordinates.<br> +---* return The delta of 2 current touches locations in screen coordinates. +---@return vec2_table +function EventMouse:getDelta () end +---* Set mouse scroll data.<br> +---* param scrollX The scroll data of x axis.<br> +---* param scrollY The scroll data of y axis. +---@param scrollX float +---@param scrollY float +---@return self +function EventMouse:setScrollData (scrollX,scrollY) end +---* Returns the start touch location in screen coordinates.<br> +---* return The start touch location in screen coordinates.<br> +---* js NA +---@return vec2_table +function EventMouse:getStartLocationInView () end +---* Returns the start touch location in OpenGL coordinates.<br> +---* return The start touch location in OpenGL coordinates.<br> +---* js NA +---@return vec2_table +function EventMouse:getStartLocation () end +---* Set mouse button.<br> +---* param button a given mouse button.<br> +---* js setButton +---@param button int +---@return self +function EventMouse:setMouseButton (button) end +---* Returns the current touch location in screen coordinates.<br> +---* return The current touch location in screen coordinates. +---@return vec2_table +function EventMouse:getLocationInView () end +---* Get mouse scroll data of y axis.<br> +---* return The scroll data of y axis. +---@return float +function EventMouse:getScrollY () end +---* Get mouse scroll data of x axis.<br> +---* return The scroll data of x axis. +---@return float +function EventMouse:getScrollX () end +---* Get the cursor position of x axis.<br> +---* return The x coordinate of cursor position.<br> +---* js getLocationX +---@return float +function EventMouse:getCursorX () end +---* Get the cursor position of y axis.<br> +---* return The y coordinate of cursor position.<br> +---* js getLocationY +---@return float +function EventMouse:getCursorY () end +---* Set the cursor position.<br> +---* param x The x coordinate of cursor position.<br> +---* param y The y coordinate of cursor position.<br> +---* js setLocation +---@param x float +---@param y float +---@return self +function EventMouse:setCursorPosition (x,y) end +---* Constructor.<br> +---* param mouseEventCode A given mouse event type.<br> +---* js ctor +---@param mouseEventCode int +---@return self +function EventMouse:EventMouse (mouseEventCode) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.EventTouch.lua b/meta/3rd/Cocos4.0/cc.EventTouch.lua new file mode 100644 index 00000000..3902d364 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.EventTouch.lua @@ -0,0 +1,21 @@ + +---@class cc.EventTouch :cc.Event +local EventTouch={ } +cc.EventTouch=EventTouch + + + + +---* Get event code.<br> +---* return The code of the event. +---@return int +function EventTouch:getEventCode () end +---* Set the event code.<br> +---* param eventCode A given EventCode. +---@param eventCode int +---@return self +function EventTouch:setEventCode (eventCode) end +---* Constructor.<br> +---* js NA +---@return self +function EventTouch:EventTouch () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FadeIn.lua b/meta/3rd/Cocos4.0/cc.FadeIn.lua new file mode 100644 index 00000000..c6573a51 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FadeIn.lua @@ -0,0 +1,31 @@ + +---@class cc.FadeIn :cc.FadeTo +local FadeIn={ } +cc.FadeIn=FadeIn + + + + +---* js NA +---@param ac cc.FadeTo +---@return self +function FadeIn:setReverseAction (ac) end +---* Creates the action.<br> +---* param d Duration time, in seconds.<br> +---* return An autoreleased FadeIn object. +---@param d float +---@return self +function FadeIn:create (d) end +---* +---@param target cc.Node +---@return self +function FadeIn:startWithTarget (target) end +---* +---@return self +function FadeIn:clone () end +---* +---@return cc.FadeTo +function FadeIn:reverse () end +---* +---@return self +function FadeIn:FadeIn () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FadeOut.lua b/meta/3rd/Cocos4.0/cc.FadeOut.lua new file mode 100644 index 00000000..a2685701 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FadeOut.lua @@ -0,0 +1,30 @@ + +---@class cc.FadeOut :cc.FadeTo +local FadeOut={ } +cc.FadeOut=FadeOut + + + + +---* js NA +---@param ac cc.FadeTo +---@return self +function FadeOut:setReverseAction (ac) end +---* Creates the action.<br> +---* param d Duration time, in seconds. +---@param d float +---@return self +function FadeOut:create (d) end +---* +---@param target cc.Node +---@return self +function FadeOut:startWithTarget (target) end +---* +---@return self +function FadeOut:clone () end +---* +---@return cc.FadeTo +function FadeOut:reverse () end +---* +---@return self +function FadeOut:FadeOut () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FadeOutBLTiles.lua b/meta/3rd/Cocos4.0/cc.FadeOutBLTiles.lua new file mode 100644 index 00000000..4ba3c6e2 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FadeOutBLTiles.lua @@ -0,0 +1,27 @@ + +---@class cc.FadeOutBLTiles :cc.FadeOutTRTiles +local FadeOutBLTiles={ } +cc.FadeOutBLTiles=FadeOutBLTiles + + + + +---* brief Create the action with the grid size and the duration.<br> +---* param duration Specify the duration of the FadeOutBLTiles action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* return If the creation success, return a pointer of FadeOutBLTiles action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@return self +function FadeOutBLTiles:create (duration,gridSize) end +---* +---@return self +function FadeOutBLTiles:clone () end +---* +---@param pos size_table +---@param time float +---@return float +function FadeOutBLTiles:testFunc (pos,time) end +---* +---@return self +function FadeOutBLTiles:FadeOutBLTiles () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FadeOutDownTiles.lua b/meta/3rd/Cocos4.0/cc.FadeOutDownTiles.lua new file mode 100644 index 00000000..27435d59 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FadeOutDownTiles.lua @@ -0,0 +1,27 @@ + +---@class cc.FadeOutDownTiles :cc.FadeOutUpTiles +local FadeOutDownTiles={ } +cc.FadeOutDownTiles=FadeOutDownTiles + + + + +---* brief Create the action with the grid size and the duration.<br> +---* param duration Specify the duration of the FadeOutDownTiles action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* return If the creation success, return a pointer of FadeOutDownTiles action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@return self +function FadeOutDownTiles:create (duration,gridSize) end +---* +---@return self +function FadeOutDownTiles:clone () end +---* +---@param pos size_table +---@param time float +---@return float +function FadeOutDownTiles:testFunc (pos,time) end +---* +---@return self +function FadeOutDownTiles:FadeOutDownTiles () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FadeOutTRTiles.lua b/meta/3rd/Cocos4.0/cc.FadeOutTRTiles.lua new file mode 100644 index 00000000..0d52f283 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FadeOutTRTiles.lua @@ -0,0 +1,51 @@ + +---@class cc.FadeOutTRTiles :cc.TiledGrid3DAction +local FadeOutTRTiles={ } +cc.FadeOutTRTiles=FadeOutTRTiles + + + + +---* brief Show the tile at specified position.<br> +---* param pos The position index of the tile should be shown. +---@param pos vec2_table +---@return self +function FadeOutTRTiles:turnOnTile (pos) end +---* brief Hide the tile at specified position.<br> +---* param pos The position index of the tile should be hide. +---@param pos vec2_table +---@return self +function FadeOutTRTiles:turnOffTile (pos) end +---* brief Show part of the tile.<br> +---* param pos The position index of the tile should be shown.<br> +---* param distance The percentage that the tile should be shown. +---@param pos vec2_table +---@param distance float +---@return self +function FadeOutTRTiles:transformTile (pos,distance) end +---* brief Calculate the percentage a tile should be shown.<br> +---* param pos The position index of the tile.<br> +---* param time The current percentage of the action.<br> +---* return Return the percentage the tile should be shown. +---@param pos size_table +---@param time float +---@return float +function FadeOutTRTiles:testFunc (pos,time) end +---* brief Create the action with the grid size and the duration.<br> +---* param duration Specify the duration of the FadeOutTRTiles action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* return If the creation success, return a pointer of FadeOutTRTiles action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@return self +function FadeOutTRTiles:create (duration,gridSize) end +---* +---@return self +function FadeOutTRTiles:clone () end +---* +---@param time float +---@return self +function FadeOutTRTiles:update (time) end +---* +---@return self +function FadeOutTRTiles:FadeOutTRTiles () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FadeOutUpTiles.lua b/meta/3rd/Cocos4.0/cc.FadeOutUpTiles.lua new file mode 100644 index 00000000..2bd44098 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FadeOutUpTiles.lua @@ -0,0 +1,32 @@ + +---@class cc.FadeOutUpTiles :cc.FadeOutTRTiles +local FadeOutUpTiles={ } +cc.FadeOutUpTiles=FadeOutUpTiles + + + + +---* brief Create the action with the grid size and the duration.<br> +---* param duration Specify the duration of the FadeOutUpTiles action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* return If the creation success, return a pointer of FadeOutUpTiles action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@return self +function FadeOutUpTiles:create (duration,gridSize) end +---* +---@return self +function FadeOutUpTiles:clone () end +---* +---@param pos vec2_table +---@param distance float +---@return self +function FadeOutUpTiles:transformTile (pos,distance) end +---* +---@param pos size_table +---@param time float +---@return float +function FadeOutUpTiles:testFunc (pos,time) end +---* +---@return self +function FadeOutUpTiles:FadeOutUpTiles () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FadeTo.lua b/meta/3rd/Cocos4.0/cc.FadeTo.lua new file mode 100644 index 00000000..7d5d5403 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FadeTo.lua @@ -0,0 +1,39 @@ + +---@class cc.FadeTo :cc.ActionInterval +local FadeTo={ } +cc.FadeTo=FadeTo + + + + +---* initializes the action with duration and opacity <br> +---* param duration in seconds +---@param duration float +---@param opacity unsigned_char +---@return boolean +function FadeTo:initWithDuration (duration,opacity) end +---* Creates an action with duration and opacity.<br> +---* param duration Duration time, in seconds.<br> +---* param opacity A certain opacity, the range is from 0 to 255.<br> +---* return An autoreleased FadeTo object. +---@param duration float +---@param opacity unsigned_char +---@return self +function FadeTo:create (duration,opacity) end +---* +---@param target cc.Node +---@return self +function FadeTo:startWithTarget (target) end +---* +---@return self +function FadeTo:clone () end +---* +---@return self +function FadeTo:reverse () end +---* param time In seconds. +---@param time float +---@return self +function FadeTo:update (time) end +---* +---@return self +function FadeTo:FadeTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FastTMXLayer.lua b/meta/3rd/Cocos4.0/cc.FastTMXLayer.lua new file mode 100644 index 00000000..0af2160c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FastTMXLayer.lua @@ -0,0 +1,134 @@ + +---@class cc.FastTMXLayer :cc.Node +local FastTMXLayer={ } +cc.FastTMXLayer=FastTMXLayer + + + + +---* Returns the position in points of a given tile coordinate.<br> +---* param tileCoordinate The tile Coordinate.<br> +---* return The position in points of a given tile coordinate. +---@param tileCoordinate vec2_table +---@return vec2_table +function FastTMXLayer:getPositionAt (tileCoordinate) end +---* Set Layer orientation, which is the same as the map orientation. <br> +---* param orientation Layer orientation, which is the same as the map orientation. +---@param orientation int +---@return self +function FastTMXLayer:setLayerOrientation (orientation) end +---* Size of the layer in tiles.<br> +---* return Size of the layer in tiles. +---@return size_table +function FastTMXLayer:getLayerSize () end +---* Set the size of the map's tile. <br> +---* param size The new size of the map's tile. +---@param size size_table +---@return self +function FastTMXLayer:setMapTileSize (size) end +---* Layer orientation, which is the same as the map orientation.<br> +---* return Layer orientation, which is the same as the map orientation. +---@return int +function FastTMXLayer:getLayerOrientation () end +---* Set the properties to the layer.<br> +---* param properties The properties to the layer. +---@param properties map_table +---@return self +function FastTMXLayer:setProperties (properties) end +---* Set the tile layer name.<br> +---* param layerName The new layer name. +---@param layerName string +---@return self +function FastTMXLayer:setLayerName (layerName) end +---* Removes a tile at given tile coordinate.<br> +---* param tileCoordinate The tile Coordinate. +---@param tileCoordinate vec2_table +---@return self +function FastTMXLayer:removeTileAt (tileCoordinate) end +---@overload fun():self +---@overload fun():self +---@return map_table +function FastTMXLayer:getProperties () end +---* Creates the tiles. +---@return self +function FastTMXLayer:setupTiles () end +---* Set an sprite to the tile,with the tile coordinate and gid.<br> +---* param sprite A Sprite.<br> +---* param pos The tile coordinate.<br> +---* param gid The tile gid. +---@param sprite cc.Sprite +---@param pos vec2_table +---@param gid unsigned_int +---@return self +function FastTMXLayer:setupTileSprite (sprite,pos,gid) end +---@overload fun(int:int,vec2_table:vec2_table,int:int):self +---@overload fun(int:int,vec2_table:vec2_table):self +---@param gid int +---@param tileCoordinate vec2_table +---@param flags int +---@return self +function FastTMXLayer:setTileGID (gid,tileCoordinate,flags) end +---* Size of the map's tile (could be different from the tile's size).<br> +---* return Size of the map's tile (could be different from the tile's size). +---@return size_table +function FastTMXLayer:getMapTileSize () end +---* Return the value for the specific property name.<br> +---* param propertyName The value for the specific property name.<br> +---* return The value for the specific property name. +---@param propertyName string +---@return cc.Value +function FastTMXLayer:getProperty (propertyName) end +---* Set the size of the layer in tiles. <br> +---* param size The new size of the layer in tiles. +---@param size size_table +---@return self +function FastTMXLayer:setLayerSize (size) end +---* Get the tile layer name.<br> +---* return The tile layer name. +---@return string +function FastTMXLayer:getLayerName () end +---* Set the tileset information for the layer. <br> +---* param info The new tileset information for the layer. +---@param info cc.TMXTilesetInfo +---@return self +function FastTMXLayer:setTileSet (info) end +---* Tileset information for the layer.<br> +---* return Tileset information for the layer. +---@return cc.TMXTilesetInfo +function FastTMXLayer:getTileSet () end +---* Returns the tile (Sprite) at a given a tile coordinate.<br> +---* The returned Sprite will be already added to the TMXLayer. Don't add it again.<br> +---* The Sprite can be treated like any other Sprite: rotated, scaled, translated, opacity, color, etc.<br> +---* You can remove either by calling:<br> +---* - layer->removeChild(sprite, cleanup);<br> +---* return Returns the tile (Sprite) at a given a tile coordinate. +---@param tileCoordinate vec2_table +---@return cc.Sprite +function FastTMXLayer:getTileAt (tileCoordinate) end +---* Creates a FastTMXLayer with an tileset info, a layer info and a map info.<br> +---* param tilesetInfo An tileset info.<br> +---* param layerInfo A layer info.<br> +---* param mapInfo A map info.<br> +---* return Return an autorelease object. +---@param tilesetInfo cc.TMXTilesetInfo +---@param layerInfo cc.TMXLayerInfo +---@param mapInfo cc.TMXMapInfo +---@return self +function FastTMXLayer:create (tilesetInfo,layerInfo,mapInfo) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function FastTMXLayer:removeChild (child,cleanup) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function FastTMXLayer:draw (renderer,transform,flags) end +---* +---@return string +function FastTMXLayer:getDescription () end +---* js ctor +---@return self +function FastTMXLayer:FastTMXLayer () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FastTMXTiledMap.lua b/meta/3rd/Cocos4.0/cc.FastTMXTiledMap.lua new file mode 100644 index 00000000..e17d742f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FastTMXTiledMap.lua @@ -0,0 +1,89 @@ + +---@class cc.FastTMXTiledMap :cc.Node +local FastTMXTiledMap={ } +cc.FastTMXTiledMap=FastTMXTiledMap + + + + +---* Set object groups. <br> +---* param groups An object groups. +---@param groups array_table +---@return self +function FastTMXTiledMap:setObjectGroups (groups) end +---* Return the value for the specific property name.<br> +---* return Return the value for the specific property name. +---@param propertyName string +---@return cc.Value +function FastTMXTiledMap:getProperty (propertyName) end +---* Set the map's size property measured in tiles.<br> +---* param mapSize The map's size property measured in tiles. +---@param mapSize size_table +---@return self +function FastTMXTiledMap:setMapSize (mapSize) end +---* Return the TMXObjectGroup for the specific group. <br> +---* return Return the TMXObjectGroup for the specific group. +---@param groupName string +---@return cc.TMXObjectGroup +function FastTMXTiledMap:getObjectGroup (groupName) end +---@overload fun():self +---@overload fun():self +---@return array_table +function FastTMXTiledMap:getObjectGroups () end +---* The tiles's size property measured in pixels.<br> +---* return The tiles's size property measured in pixels. +---@return size_table +function FastTMXTiledMap:getTileSize () end +---* The map's size property measured in tiles. <br> +---* return The map's size property measured in tiles. +---@return size_table +function FastTMXTiledMap:getMapSize () end +---* Get properties.<br> +---* return Properties. +---@return map_table +function FastTMXTiledMap:getProperties () end +---* Return properties dictionary for tile GID.<br> +---* return Return properties dictionary for tile GID. +---@param GID int +---@return cc.Value +function FastTMXTiledMap:getPropertiesForGID (GID) end +---* Set the tiles's size property measured in pixels. <br> +---* param tileSize The tiles's size property measured in pixels. +---@param tileSize size_table +---@return self +function FastTMXTiledMap:setTileSize (tileSize) end +---* Set properties. <br> +---* param properties An ValueMap Properties. +---@param properties map_table +---@return self +function FastTMXTiledMap:setProperties (properties) end +---* Return the FastTMXLayer for the specific layer. <br> +---* return Return the FastTMXLayer for the specific layer. +---@param layerName string +---@return cc.FastTMXLayer +function FastTMXTiledMap:getLayer (layerName) end +---* Get map orientation. <br> +---* return The map orientation. +---@return int +function FastTMXTiledMap:getMapOrientation () end +---* Set map orientation. <br> +---* param mapOrientation The map orientation. +---@param mapOrientation int +---@return self +function FastTMXTiledMap:setMapOrientation (mapOrientation) end +---* Creates a TMX Tiled Map with a TMX file.<br> +---* return An autorelease object. +---@param tmxFile string +---@return self +function FastTMXTiledMap:create (tmxFile) end +---* Initializes a TMX Tiled Map with a TMX formatted XML string and a path to TMX resources. <br> +---* param tmxString A TMX formatted XML string.<br> +---* param resourcePath A path to TMX resources.<br> +---* return An autorelease object. +---@param tmxString string +---@param resourcePath string +---@return self +function FastTMXTiledMap:createWithXML (tmxString,resourcePath) end +---* +---@return string +function FastTMXTiledMap:getDescription () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FileUtils.lua b/meta/3rd/Cocos4.0/cc.FileUtils.lua new file mode 100644 index 00000000..8d179067 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FileUtils.lua @@ -0,0 +1,342 @@ + +---@class cc.FileUtils +local FileUtils={ } +cc.FileUtils=FileUtils + + + + +---* Returns the fullpath for a given filename.<br> +---* First it will try to get a new filename from the "filenameLookup" dictionary.<br> +---* If a new filename can't be found on the dictionary, it will use the original filename.<br> +---* Then it will try to obtain the full path of the filename using the FileUtils search rules: resolutions, and search paths.<br> +---* The file search is based on the array element order of search paths and resolution directories.<br> +---* For instance:<br> +---* We set two elements("/mnt/sdcard/", "internal_dir/") to search paths vector by setSearchPaths,<br> +---* and set three elements("resources-ipadhd/", "resources-ipad/", "resources-iphonehd")<br> +---* to resolutions vector by setSearchResolutionsOrder. The "internal_dir" is relative to "Resources/".<br> +---* If we have a file named 'sprite.png', the mapping in fileLookup dictionary contains `key: sprite.png -> value: sprite.pvr.gz`.<br> +---* Firstly, it will replace 'sprite.png' with 'sprite.pvr.gz', then searching the file sprite.pvr.gz as follows:<br> +---* /mnt/sdcard/resources-ipadhd/sprite.pvr.gz (if not found, search next)<br> +---* /mnt/sdcard/resources-ipad/sprite.pvr.gz (if not found, search next)<br> +---* /mnt/sdcard/resources-iphonehd/sprite.pvr.gz (if not found, search next)<br> +---* /mnt/sdcard/sprite.pvr.gz (if not found, search next)<br> +---* internal_dir/resources-ipadhd/sprite.pvr.gz (if not found, search next)<br> +---* internal_dir/resources-ipad/sprite.pvr.gz (if not found, search next)<br> +---* internal_dir/resources-iphonehd/sprite.pvr.gz (if not found, search next)<br> +---* internal_dir/sprite.pvr.gz (if not found, return "sprite.png")<br> +---* If the filename contains relative path like "gamescene/uilayer/sprite.png",<br> +---* and the mapping in fileLookup dictionary contains `key: gamescene/uilayer/sprite.png -> value: gamescene/uilayer/sprite.pvr.gz`.<br> +---* The file search order will be:<br> +---* /mnt/sdcard/gamescene/uilayer/resources-ipadhd/sprite.pvr.gz (if not found, search next)<br> +---* /mnt/sdcard/gamescene/uilayer/resources-ipad/sprite.pvr.gz (if not found, search next)<br> +---* /mnt/sdcard/gamescene/uilayer/resources-iphonehd/sprite.pvr.gz (if not found, search next)<br> +---* /mnt/sdcard/gamescene/uilayer/sprite.pvr.gz (if not found, search next)<br> +---* internal_dir/gamescene/uilayer/resources-ipadhd/sprite.pvr.gz (if not found, search next)<br> +---* internal_dir/gamescene/uilayer/resources-ipad/sprite.pvr.gz (if not found, search next)<br> +---* internal_dir/gamescene/uilayer/resources-iphonehd/sprite.pvr.gz (if not found, search next)<br> +---* internal_dir/gamescene/uilayer/sprite.pvr.gz (if not found, return "gamescene/uilayer/sprite.png")<br> +---* If the new file can't be found on the file system, it will return the parameter filename directly.<br> +---* This method was added to simplify multiplatform support. Whether you are using cocos2d-js or any cross-compilation toolchain like StellaSDK or Apportable,<br> +---* you might need to load different resources for a given file in the different platforms.<br> +---* since v2.1 +---@param filename string +---@return string +function FileUtils:fullPathForFilename (filename) end +---@overload fun(string:string,function:function):self +---@overload fun(string:string):self +---@param path string +---@param callback function +---@return self +function FileUtils:getStringFromFile (path,callback) end +---* Sets the filenameLookup dictionary.<br> +---* param filenameLookupDict The dictionary for replacing filename.<br> +---* since v2.1 +---@param filenameLookupDict map_table +---@return self +function FileUtils:setFilenameLookupDictionary (filenameLookupDict) end +---@overload fun(string:string,function:function):self +---@overload fun(string:string):self +---@param filepath string +---@param callback function +---@return self +function FileUtils:removeFile (filepath,callback) end +---* List all files recursively in a directory, async off the main cocos thread.<br> +---* param dirPath The path of the directory, it could be a relative or an absolute path.<br> +---* param callback The callback to be called once the list operation is complete. <br> +---* Will be called on the main cocos thread.<br> +---* js NA<br> +---* lua NA +---@param dirPath string +---@param callback function +---@return self +function FileUtils:listFilesRecursivelyAsync (dirPath,callback) end +---* Checks whether the path is an absolute path.<br> +---* note On Android, if the parameter passed in is relative to "assets/", this method will treat it as an absolute path.<br> +---* Also on Blackberry, path starts with "app/native/Resources/" is treated as an absolute path.<br> +---* param path The path that needs to be checked.<br> +---* return True if it's an absolute path, false if not. +---@param path string +---@return boolean +function FileUtils:isAbsolutePath (path) end +---@overload fun(string:string,string:string,string:string,function:function):self +---@overload fun(string:string,string:string,string:string):self +---@overload fun(string:string,string:string):self +---@overload fun(string:string,string:string,string2:function):self +---@param path string +---@param oldname string +---@param name string +---@param callback function +---@return self +function FileUtils:renameFile (path,oldname,name,callback) end +---* Get default resource root path. +---@return string +function FileUtils:getDefaultResourceRootPath () end +---* Loads the filenameLookup dictionary from the contents of a filename.<br> +---* note The plist file name should follow the format below:<br> +---* code<br> +---* <?xml version="1.0" encoding="UTF-8"?><br> +---* <!DOCTYPE plist PUBLIC "-AppleDTD PLIST 1.0EN" "http:www.apple.com/DTDs/PropertyList-1.0.dtd"><br> +---* <plist version="1.0"><br> +---* <dict><br> +---* <key>filenames</key><br> +---* <dict><br> +---* <key>sounds/click.wav</key><br> +---* <string>sounds/click.caf</string><br> +---* <key>sounds/endgame.wav</key><br> +---* <string>sounds/endgame.caf</string><br> +---* <key>sounds/gem-0.wav</key><br> +---* <string>sounds/gem-0.caf</string><br> +---* </dict><br> +---* <key>metadata</key><br> +---* <dict><br> +---* <key>version</key><br> +---* <integer>1</integer><br> +---* </dict><br> +---* </dict><br> +---* </plist><br> +---* endcode<br> +---* param filename The plist file name.<br> +---* since v2.1<br> +---* js loadFilenameLookup<br> +---* lua loadFilenameLookup +---@param filename string +---@return self +function FileUtils:loadFilenameLookupDictionaryFromFile (filename) end +---* Checks whether to pop up a message box when failed to load an image.<br> +---* return True if pop up a message box when failed to load an image, false if not. +---@return boolean +function FileUtils:isPopupNotify () end +---* +---@param filename string +---@return array_table +function FileUtils:getValueVectorFromFile (filename) end +---* Gets the array of search paths.<br> +---* return The array of search paths which may contain the prefix of default resource root path. <br> +---* note In best practise, getter function should return the value of setter function passes in.<br> +---* But since we should not break the compatibility, we keep using the old logic. <br> +---* Therefore, If you want to get the original search paths, please call 'getOriginalSearchPaths()' instead.<br> +---* see fullPathForFilename(const char*).<br> +---* lua NA +---@return array_table +function FileUtils:getSearchPaths () end +---* write a ValueMap into a plist file<br> +---* param dict the ValueMap want to save<br> +---* param fullPath The full path to the file you want to save a string<br> +---* return bool +---@param dict map_table +---@param fullPath string +---@return boolean +function FileUtils:writeToFile (dict,fullPath) end +---* Gets the original search path array set by 'setSearchPaths' or 'addSearchPath'.<br> +---* return The array of the original search paths +---@return array_table +function FileUtils:getOriginalSearchPaths () end +---* Gets the new filename from the filename lookup dictionary.<br> +---* It is possible to have a override names.<br> +---* param filename The original filename.<br> +---* return The new filename after searching in the filename lookup dictionary.<br> +---* If the original filename wasn't in the dictionary, it will return the original filename. +---@param filename string +---@return string +function FileUtils:getNewFilename (filename) end +---* List all files in a directory.<br> +---* param dirPath The path of the directory, it could be a relative or an absolute path.<br> +---* return File paths in a string vector +---@param dirPath string +---@return array_table +function FileUtils:listFiles (dirPath) end +---* Converts the contents of a file to a ValueMap.<br> +---* param filename The filename of the file to gets content.<br> +---* return ValueMap of the file contents.<br> +---* note This method is used internally. +---@param filename string +---@return map_table +function FileUtils:getValueMapFromFile (filename) end +---@overload fun(string:string,function:function):self +---@overload fun(string:string):self +---@param filepath string +---@param callback function +---@return self +function FileUtils:getFileSize (filepath,callback) end +---* Converts the contents of a file to a ValueMap.<br> +---* This method is used internally. +---@param filedata char +---@param filesize int +---@return map_table +function FileUtils:getValueMapFromData (filedata,filesize) end +---@overload fun(string:string,function:function):self +---@overload fun(string:string):self +---@param dirPath string +---@param callback function +---@return self +function FileUtils:removeDirectory (dirPath,callback) end +---* Sets the array of search paths.<br> +---* You can use this array to modify the search path of the resources.<br> +---* If you want to use "themes" or search resources in the "cache", you can do it easily by adding new entries in this array.<br> +---* note This method could access relative path and absolute path.<br> +---* If the relative path was passed to the vector, FileUtils will add the default resource directory before the relative path.<br> +---* For instance:<br> +---* On Android, the default resource root path is "assets/".<br> +---* If "/mnt/sdcard/" and "resources-large" were set to the search paths vector,<br> +---* "resources-large" will be converted to "assets/resources-large" since it was a relative path.<br> +---* param searchPaths The array contains search paths.<br> +---* see fullPathForFilename(const char*)<br> +---* since v2.1<br> +---* In js:var setSearchPaths(var jsval);<br> +---* lua NA +---@param searchPaths array_table +---@return self +function FileUtils:setSearchPaths (searchPaths) end +---@overload fun(string:string,string:string,function:function):self +---@overload fun(string:string,string:string):self +---@param dataStr string +---@param fullPath string +---@param callback function +---@return self +function FileUtils:writeStringToFile (dataStr,fullPath,callback) end +---* Sets the array that contains the search order of the resources.<br> +---* param searchResolutionsOrder The source array that contains the search order of the resources.<br> +---* see getSearchResolutionsOrder(), fullPathForFilename(const char*).<br> +---* since v2.1<br> +---* In js:var setSearchResolutionsOrder(var jsval)<br> +---* lua NA +---@param searchResolutionsOrder array_table +---@return self +function FileUtils:setSearchResolutionsOrder (searchResolutionsOrder) end +---* Append search order of the resources.<br> +---* see setSearchResolutionsOrder(), fullPathForFilename().<br> +---* since v2.1 +---@param order string +---@param front boolean +---@return self +function FileUtils:addSearchResolutionsOrder (order,front) end +---* Add search path.<br> +---* since v2.1 +---@param path string +---@param front boolean +---@return self +function FileUtils:addSearchPath (path,front) end +---@overload fun(array_table:array_table,string:string,function:function):self +---@overload fun(array_table:array_table,string:string):self +---@param vecData array_table +---@param fullPath string +---@param callback function +---@return self +function FileUtils:writeValueVectorToFile (vecData,fullPath,callback) end +---@overload fun(string:string,function:function):self +---@overload fun(string:string):self +---@param filename string +---@param callback function +---@return self +function FileUtils:isFileExist (filename,callback) end +---* Purges full path caches. +---@return self +function FileUtils:purgeCachedEntries () end +---* Gets full path from a file name and the path of the relative file.<br> +---* param filename The file name.<br> +---* param relativeFile The path of the relative file.<br> +---* return The full path.<br> +---* e.g. filename: hello.png, pszRelativeFile: /User/path1/path2/hello.plist<br> +---* Return: /User/path1/path2/hello.pvr (If there a a key(hello.png)-value(hello.pvr) in FilenameLookup dictionary. ) +---@param filename string +---@param relativeFile string +---@return string +function FileUtils:fullPathFromRelativeFile (filename,relativeFile) end +---* Windows fopen can't support UTF-8 filename<br> +---* Need convert all parameters fopen and other 3rd-party libs<br> +---* param filenameUtf8 std::string name file for conversion from utf-8<br> +---* return std::string ansi filename in current locale +---@param filenameUtf8 string +---@return string +function FileUtils:getSuitableFOpen (filenameUtf8) end +---@overload fun(map_table:map_table,string:string,function:function):self +---@overload fun(map_table:map_table,string:string):self +---@param dict map_table +---@param fullPath string +---@param callback function +---@return self +function FileUtils:writeValueMapToFile (dict,fullPath,callback) end +---* Gets filename extension is a suffix (separated from the base filename by a dot) in lower case.<br> +---* Examples of filename extensions are .png, .jpeg, .exe, .dmg and .txt.<br> +---* param filePath The path of the file, it could be a relative or absolute path.<br> +---* return suffix for filename in lower case or empty if a dot not found. +---@param filePath string +---@return string +function FileUtils:getFileExtension (filePath) end +---* Sets writable path. +---@param writablePath string +---@return self +function FileUtils:setWritablePath (writablePath) end +---* Sets whether to pop-up a message box when failed to load an image. +---@param notify boolean +---@return self +function FileUtils:setPopupNotify (notify) end +---@overload fun(string:string,function:function):self +---@overload fun(string:string):self +---@param fullPath string +---@param callback function +---@return self +function FileUtils:isDirectoryExist (fullPath,callback) end +---* Set default resource root path. +---@param path string +---@return self +function FileUtils:setDefaultResourceRootPath (path) end +---* Gets the array that contains the search order of the resources.<br> +---* see setSearchResolutionsOrder(const std::vector<std::string>&), fullPathForFilename(const char*).<br> +---* since v2.1<br> +---* lua NA +---@return array_table +function FileUtils:getSearchResolutionsOrder () end +---@overload fun(string:string,function:function):self +---@overload fun(string:string):self +---@param dirPath string +---@param callback function +---@return self +function FileUtils:createDirectory (dirPath,callback) end +---* List all files in a directory async, off of the main cocos thread.<br> +---* param dirPath The path of the directory, it could be a relative or an absolute path.<br> +---* param callback The callback to be called once the list operation is complete. Will be called on the main cocos thread.<br> +---* js NA<br> +---* lua NA +---@param dirPath string +---@param callback function +---@return self +function FileUtils:listFilesAsync (dirPath,callback) end +---* Gets the writable path.<br> +---* return The path that can be write/read a file in +---@return string +function FileUtils:getWritablePath () end +---* List all files recursively in a directory.<br> +---* param dirPath The path of the directory, it could be a relative or an absolute path.<br> +---* return File paths in a string vector +---@param dirPath string +---@param files array_table +---@return self +function FileUtils:listFilesRecursively (dirPath,files) end +---* Destroys the instance of FileUtils. +---@return self +function FileUtils:destroyInstance () end +---* Gets the instance of FileUtils. +---@return self +function FileUtils:getInstance () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FiniteTimeAction.lua b/meta/3rd/Cocos4.0/cc.FiniteTimeAction.lua new file mode 100644 index 00000000..71cba17e --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FiniteTimeAction.lua @@ -0,0 +1,23 @@ + +---@class cc.FiniteTimeAction :cc.Action +local FiniteTimeAction={ } +cc.FiniteTimeAction=FiniteTimeAction + + + + +---* Set duration in seconds of the action. <br> +---* param duration In seconds of the action. +---@param duration float +---@return self +function FiniteTimeAction:setDuration (duration) end +---* Get duration in seconds of the action. <br> +---* return The duration in seconds of the action. +---@return float +function FiniteTimeAction:getDuration () end +---* +---@return self +function FiniteTimeAction:clone () end +---* +---@return self +function FiniteTimeAction:reverse () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FlipX.lua b/meta/3rd/Cocos4.0/cc.FlipX.lua new file mode 100644 index 00000000..9af7f480 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FlipX.lua @@ -0,0 +1,31 @@ + +---@class cc.FlipX :cc.ActionInstant +local FlipX={ } +cc.FlipX=FlipX + + + + +---* init the action +---@param x boolean +---@return boolean +function FlipX:initWithFlipX (x) end +---* Create the action.<br> +---* param x Flips the sprite horizontally if true.<br> +---* return An autoreleased FlipX object. +---@param x boolean +---@return self +function FlipX:create (x) end +---* +---@return self +function FlipX:clone () end +---* param time In seconds. +---@param time float +---@return self +function FlipX:update (time) end +---* +---@return self +function FlipX:reverse () end +---* +---@return self +function FlipX:FlipX () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FlipX3D.lua b/meta/3rd/Cocos4.0/cc.FlipX3D.lua new file mode 100644 index 00000000..772c1355 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FlipX3D.lua @@ -0,0 +1,38 @@ + +---@class cc.FlipX3D :cc.Grid3DAction +local FlipX3D={ } +cc.FlipX3D=FlipX3D + + + + +---* brief Initializes an action with duration and grid size.<br> +---* param gridSize Specify the grid size of the FlipX3D action.<br> +---* param duration Specify the duration of the FlipX3D action. It's a value in seconds.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param gridSize size_table +---@param duration float +---@return boolean +function FlipX3D:initWithSize (gridSize,duration) end +---* brief Initializes an action with duration.<br> +---* param duration Specify the duration of the FlipX3D action. It's a value in seconds.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@return boolean +function FlipX3D:initWithDuration (duration) end +---* brief Create the action with duration.<br> +---* param duration Specify the duration of the FilpX3D action. It's a value in seconds.<br> +---* return If the creation success, return a pointer of FilpX3D action; otherwise, return nil. +---@param duration float +---@return self +function FlipX3D:create (duration) end +---* +---@return self +function FlipX3D:clone () end +---* +---@param time float +---@return self +function FlipX3D:update (time) end +---* +---@return self +function FlipX3D:FlipX3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FlipY.lua b/meta/3rd/Cocos4.0/cc.FlipY.lua new file mode 100644 index 00000000..aeabe39e --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FlipY.lua @@ -0,0 +1,31 @@ + +---@class cc.FlipY :cc.ActionInstant +local FlipY={ } +cc.FlipY=FlipY + + + + +---* init the action +---@param y boolean +---@return boolean +function FlipY:initWithFlipY (y) end +---* Create the action.<br> +---* param y Flips the sprite vertically if true.<br> +---* return An autoreleased FlipY object. +---@param y boolean +---@return self +function FlipY:create (y) end +---* +---@return self +function FlipY:clone () end +---* param time In seconds. +---@param time float +---@return self +function FlipY:update (time) end +---* +---@return self +function FlipY:reverse () end +---* +---@return self +function FlipY:FlipY () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.FlipY3D.lua b/meta/3rd/Cocos4.0/cc.FlipY3D.lua new file mode 100644 index 00000000..f85d56d5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.FlipY3D.lua @@ -0,0 +1,24 @@ + +---@class cc.FlipY3D :cc.FlipX3D +local FlipY3D={ } +cc.FlipY3D=FlipY3D + + + + +---* brief Create the action with duration.<br> +---* param duration Specify the duration of the FlipY3D action. It's a value in seconds.<br> +---* return If the creation success, return a pointer of FlipY3D action; otherwise, return nil. +---@param duration float +---@return self +function FlipY3D:create (duration) end +---* +---@return self +function FlipY3D:clone () end +---* +---@param time float +---@return self +function FlipY3D:update (time) end +---* +---@return self +function FlipY3D:FlipY3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Follow.lua b/meta/3rd/Cocos4.0/cc.Follow.lua new file mode 100644 index 00000000..92e8f1be --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Follow.lua @@ -0,0 +1,87 @@ + +---@class cc.Follow :cc.Action +local Follow={ } +cc.Follow=Follow + + + + +---* Alter behavior - turn on/off boundary. <br> +---* param value Turn on/off boundary. +---@param value boolean +---@return self +function Follow:setBoundarySet (value) end +---* Initializes the action with a set boundary or with no boundary.<br> +---* param followedNode The node to be followed.<br> +---* param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br> +---* with no boundary. +---@param followedNode cc.Node +---@param rect rect_table +---@return boolean +function Follow:initWithTarget (followedNode,rect) end +---* Initializes the action with a set boundary or with no boundary with offsets.<br> +---* param followedNode The node to be followed.<br> +---* param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br> +---* with no boundary.<br> +---* param xOffset The horizontal offset from the center of the screen from which the<br> +---* node is to be followed.It can be positive,negative or zero.If<br> +---* set to zero the node will be horizontally centered followed.<br> +---* param yOffset The vertical offset from the center of the screen from which the<br> +---* node is to be followed.It can be positive,negative or zero.<br> +---* If set to zero the node will be vertically centered followed.<br> +---* If both xOffset and yOffset are set to zero,then the node will be horizontally and vertically centered followed. +---@param followedNode cc.Node +---@param xOffset float +---@param yOffset float +---@param rect rect_table +---@return boolean +function Follow:initWithTargetAndOffset (followedNode,xOffset,yOffset,rect) end +---* Return boundarySet.<br> +---* return Return boundarySet. +---@return boolean +function Follow:isBoundarySet () end +---* Creates the action with a set boundary or with no boundary.<br> +---* param followedNode The node to be followed.<br> +---* param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br> +---* with no boundary. +---@param followedNode cc.Node +---@param rect rect_table +---@return self +function Follow:create (followedNode,rect) end +---* Creates the action with a set boundary or with no boundary with offsets.<br> +---* param followedNode The node to be followed.<br> +---* param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br> +---* with no boundary.<br> +---* param xOffset The horizontal offset from the center of the screen from which the<br> +---* node is to be followed.It can be positive,negative or zero.If<br> +---* set to zero the node will be horizontally centered followed.<br> +---* param yOffset The vertical offset from the center of the screen from which the<br> +---* node is to be followed.It can be positive,negative or zero.<br> +---* If set to zero the node will be vertically centered followed.<br> +---* If both xOffset and yOffset are set to zero,then the node will be horizontally and vertically centered followed. +---@param followedNode cc.Node +---@param xOffset float +---@param yOffset float +---@param rect rect_table +---@return self +function Follow:createWithOffset (followedNode,xOffset,yOffset,rect) end +---* param dt in seconds.<br> +---* js NA +---@param dt float +---@return self +function Follow:step (dt) end +---* +---@return self +function Follow:clone () end +---* +---@return self +function Follow:stop () end +---* +---@return self +function Follow:reverse () end +---* +---@return boolean +function Follow:isDone () end +---* js ctor +---@return self +function Follow:Follow () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.GLView.lua b/meta/3rd/Cocos4.0/cc.GLView.lua new file mode 100644 index 00000000..2387cf64 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.GLView.lua @@ -0,0 +1,186 @@ + +---@class cc.GLView :cc.Ref +local GLView={ } +cc.GLView=GLView + + + + +---* Set the frame size of EGL view.<br> +---* param width The width of the fram size.<br> +---* param height The height of the fram size. +---@param width float +---@param height float +---@return self +function GLView:setFrameSize (width,height) end +---* Get the opengl view port rectangle.<br> +---* return Return the opengl view port rectangle. +---@return rect_table +function GLView:getViewPortRect () end +---* Get scale factor of the vertical direction.<br> +---* return Scale factor of the vertical direction. +---@return float +function GLView:getScaleY () end +---* Only works on ios platform. Set Content Scale of the Factor. +---@param t floa +---@return boolean +function GLView:setContentScaleFactor (t) end +---* Only works on ios platform. Get Content Scale of the Factor. +---@return float +function GLView:getContentScaleFactor () end +---* Open or close IME keyboard , subclass must implement this method. <br> +---* param open Open or close IME keyboard. +---@param open boolean +---@return self +function GLView:setIMEKeyboardState (open) end +---* Gets safe area rectangle +---@return rect_table +function GLView:getSafeAreaRect () end +---* Set Scissor rectangle with points.<br> +---* param x Set the points of x.<br> +---* param y Set the points of y.<br> +---* param w Set the width of the view port<br> +---* param h Set the Height of the view port. +---@param x float +---@param y float +---@param w float +---@param h float +---@return self +function GLView:setScissorInPoints (x,y,w,h) end +---* Get the view name.<br> +---* return The view name. +---@return string +function GLView:getViewName () end +---* Get whether opengl render system is ready, subclass must implement this method. +---@return boolean +function GLView:isOpenGLReady () end +---* Hide or Show the mouse cursor if there is one.<br> +---* param isVisible Hide or Show the mouse cursor if there is one. +---@param l boo +---@return self +function GLView:setCursorVisible (l) end +---* Get the frame size of EGL view.<br> +---* In general, it returns the screen size since the EGL view is a fullscreen view.<br> +---* return The frame size of EGL view. +---@return size_table +function GLView:getFrameSize () end +---* Set default window icon (implemented for windows and linux).<br> +---* On windows it will use icon from .exe file (if included).<br> +---* On linux it will use default window icon. +---@return self +function GLView:setDefaultIcon () end +---* Get scale factor of the horizontal direction.<br> +---* return Scale factor of the horizontal direction. +---@return float +function GLView:getScaleX () end +---* Get the visible origin point of opengl viewport.<br> +---* return The visible origin point of opengl viewport. +---@return vec2_table +function GLView:getVisibleOrigin () end +---* Set zoom factor for frame. This methods are for<br> +---* debugging big resolution (e.g.new ipad) app on desktop.<br> +---* param zoomFactor The zoom factor for frame. +---@param t floa +---@return self +function GLView:setFrameZoomFactor (t) end +---* Get zoom factor for frame. This methods are for<br> +---* debugging big resolution (e.g.new ipad) app on desktop.<br> +---* return The zoom factor for frame. +---@return float +function GLView:getFrameZoomFactor () end +---* Get design resolution size.<br> +---* Default resolution size is the same as 'getFrameSize'.<br> +---* return The design resolution size. +---@return size_table +function GLView:getDesignResolutionSize () end +---@overload fun(string0:array_table):self +---@overload fun(string:string):self +---@param filename string +---@return self +function GLView:setIcon (filename) end +---* When the window is closed, it will return false if the platforms is Ios or Android.<br> +---* If the platforms is windows or Mac,it will return true.<br> +---* return In ios and android it will return false,if in windows or Mac it will return true. +---@return boolean +function GLView:windowShouldClose () end +---* Exchanges the front and back buffers, subclass must implement this method. +---@return self +function GLView:swapBuffers () end +---* Set the design resolution size.<br> +---* param width Design resolution width.<br> +---* param height Design resolution height.<br> +---* param resolutionPolicy The resolution policy desired, you may choose:<br> +---* [1] EXACT_FIT Fill screen by stretch-to-fit: if the design resolution ratio of width to height is different from the screen resolution ratio, your game view will be stretched.<br> +---* [2] NO_BORDER Full screen without black border: if the design resolution ratio of width to height is different from the screen resolution ratio, two areas of your game view will be cut.<br> +---* [3] SHOW_ALL Full screen with black border: if the design resolution ratio of width to height is different from the screen resolution ratio, two black borders will be shown. +---@param width float +---@param height float +---@param resolutionPolicy int +---@return self +function GLView:setDesignResolutionSize (width,height,resolutionPolicy) end +---* Returns the current Resolution policy.<br> +---* return The current Resolution policy. +---@return int +function GLView:getResolutionPolicy () end +---* Force destroying EGL view, subclass must implement this method. <br> +---* lua endToLua +---@return self +function GLView:endToLua () end +---* Returns whether or not the view is in Retina Display mode.<br> +---* return Returns whether or not the view is in Retina Display mode. +---@return boolean +function GLView:isRetinaDisplay () end +---* Renders a Scene with a Renderer<br> +---* This method is called directly by the Director +---@param scene cc.Scene +---@param renderer cc.Renderer +---@return self +function GLView:renderScene (scene,renderer) end +---* Set opengl view port rectangle with points.<br> +---* param x Set the points of x.<br> +---* param y Set the points of y.<br> +---* param w Set the width of the view port<br> +---* param h Set the Height of the view port. +---@param x float +---@param y float +---@param w float +---@param h float +---@return self +function GLView:setViewPortInPoints (x,y,w,h) end +---* Get the current scissor rectangle.<br> +---* return The current scissor rectangle. +---@return rect_table +function GLView:getScissorRect () end +---* Get retina factor.<br> +---* return The retina factor. +---@return int +function GLView:getRetinaFactor () end +---* Set the view name. <br> +---* param viewname A string will be set to the view as name. +---@param viewname string +---@return self +function GLView:setViewName (viewname) end +---* Get the visible rectangle of opengl viewport.<br> +---* return The visible rectangle of opengl viewport. +---@return rect_table +function GLView:getVisibleRect () end +---* Get the visible area size of opengl viewport.<br> +---* return The visible area size of opengl viewport. +---@return size_table +function GLView:getVisibleSize () end +---* Get whether GL_SCISSOR_TEST is enable.<br> +---* return Whether GL_SCISSOR_TEST is enable. +---@return boolean +function GLView:isScissorEnabled () end +---* Polls the events. +---@return self +function GLView:pollEvents () end +---* Static method and member so that we can modify it on all platforms before create OpenGL context. <br> +---* param glContextAttrs The OpenGL context attrs. +---@param glContextAttrs GLContextAttrs +---@return self +function GLView:setGLContextAttrs (glContextAttrs) end +---* Return the OpenGL context attrs. <br> +---* return Return the OpenGL context attrs. +---@return GLContextAttrs +function GLView:getGLContextAttrs () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.GLViewImpl.lua b/meta/3rd/Cocos4.0/cc.GLViewImpl.lua new file mode 100644 index 00000000..c4a0a550 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.GLViewImpl.lua @@ -0,0 +1,32 @@ + +---@class cc.GLViewImpl :cc.GLView +local GLViewImpl={ } +cc.GLViewImpl=GLViewImpl + + + + +---* +---@param viewName string +---@param rect rect_table +---@param frameZoomFactor float +---@return self +function GLViewImpl:createWithRect (viewName,rect,frameZoomFactor) end +---* +---@param viewname string +---@return self +function GLViewImpl:create (viewname) end +---* +---@param viewName string +---@return self +function GLViewImpl:createWithFullScreen (viewName) end +---* +---@param bOpen boolean +---@return self +function GLViewImpl:setIMEKeyboardState (bOpen) end +---* +---@return boolean +function GLViewImpl:isOpenGLReady () end +---* +---@return rect_table +function GLViewImpl:getSafeAreaRect () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Grid3D.lua b/meta/3rd/Cocos4.0/cc.Grid3D.lua new file mode 100644 index 00000000..f15e7c1f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Grid3D.lua @@ -0,0 +1,45 @@ + +---@class cc.Grid3D :cc.GridBase +local Grid3D={ } +cc.Grid3D=Grid3D + + + + +---* +---@return boolean +function Grid3D:getNeedDepthTestForBlit () end +---* Getter and Setter for depth test state when blit.<br> +---* js NA +---@param neededDepthTest boolean +---@return self +function Grid3D:setNeedDepthTestForBlit (neededDepthTest) end +---@overload fun(size_table:size_table,cc.Texture2D1:rect_table):self +---@overload fun(size_table:size_table):self +---@overload fun(size_table:size_table,cc.Texture2D:cc.Texture2D,boolean:boolean):self +---@overload fun(size_table:size_table,cc.Texture2D:cc.Texture2D,boolean:boolean,rect_table:rect_table):self +---@param gridSize size_table +---@param texture cc.Texture2D +---@param flipped boolean +---@param rect rect_table +---@return self +function Grid3D:create (gridSize,texture,flipped,rect) end +---* +---@return self +function Grid3D:calculateVertexPoints () end +---* Implementations for interfaces in base class. +---@return self +function Grid3D:beforeBlit () end +---* +---@return self +function Grid3D:afterBlit () end +---* +---@return self +function Grid3D:reuse () end +---* +---@return self +function Grid3D:blit () end +---* Constructor.<br> +---* js ctor +---@return self +function Grid3D:Grid3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Grid3DAction.lua b/meta/3rd/Cocos4.0/cc.Grid3DAction.lua new file mode 100644 index 00000000..b4948e64 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Grid3DAction.lua @@ -0,0 +1,18 @@ + +---@class cc.Grid3DAction :cc.GridAction +local Grid3DAction={ } +cc.Grid3DAction=Grid3DAction + + + + +---* brief Get the effect grid rect.<br> +---* return Return the effect grid rect. +---@return rect_table +function Grid3DAction:getGridRect () end +---* +---@return self +function Grid3DAction:clone () end +---* +---@return cc.GridBase +function Grid3DAction:getGrid () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.GridAction.lua b/meta/3rd/Cocos4.0/cc.GridAction.lua new file mode 100644 index 00000000..88cc5be5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.GridAction.lua @@ -0,0 +1,30 @@ + +---@class cc.GridAction :cc.ActionInterval +local GridAction={ } +cc.GridAction=GridAction + + + + +---* brief Get the pointer of GridBase.<br> +---* return The pointer of GridBase. +---@return cc.GridBase +function GridAction:getGrid () end +---* brief Initializes the action with size and duration.<br> +---* param duration The duration of the GridAction. It's a value in seconds.<br> +---* param gridSize The size of the GridAction should be.<br> +---* return Return true when the initialization success, otherwise return false. +---@param duration float +---@param gridSize size_table +---@return boolean +function GridAction:initWithDuration (duration,gridSize) end +---* +---@param target cc.Node +---@return self +function GridAction:startWithTarget (target) end +---* +---@return self +function GridAction:clone () end +---* +---@return self +function GridAction:reverse () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.GridBase.lua b/meta/3rd/Cocos4.0/cc.GridBase.lua new file mode 100644 index 00000000..56b2054c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.GridBase.lua @@ -0,0 +1,88 @@ + +---@class cc.GridBase :cc.Ref +local GridBase={ } +cc.GridBase=GridBase + + + + +---* Set the size of the grid. +---@param gridSize size_table +---@return self +function GridBase:setGridSize (gridSize) end +---* brief Set the effect grid rect.<br> +---* param rect The effect grid rect. +---@param rect rect_table +---@return self +function GridBase:setGridRect (rect) end +---* Interface, Calculate the vertices used for the blit. +---@return self +function GridBase:calculateVertexPoints () end +---* Interface, Reuse the grid vertices. +---@return self +function GridBase:reuse () end +---* Init and reset the status when render effects by using the grid. +---@return self +function GridBase:beforeDraw () end +---* brief Get the effect grid rect.<br> +---* return Return the effect grid rect. +---@return rect_table +function GridBase:getGridRect () end +---* is texture flipped. +---@return boolean +function GridBase:isTextureFlipped () end +---* Size of the grid. +---@return size_table +function GridBase:getGridSize () end +---* +---@return self +function GridBase:afterBlit () end +---* Change projection to 2D for grabbing. +---@return self +function GridBase:set2DProjection () end +---* Pixels between the grids. +---@return vec2_table +function GridBase:getStep () end +---* Get the pixels between the grids. +---@param step vec2_table +---@return self +function GridBase:setStep (step) end +---* Set the texture flipped or not. +---@param flipped boolean +---@return self +function GridBase:setTextureFlipped (flipped) end +---* Interface used to blit the texture with grid to screen. +---@return self +function GridBase:blit () end +---* +---@param active boolean +---@return self +function GridBase:setActive (active) end +---* Get number of times that the grid will be reused. +---@return int +function GridBase:getReuseGrid () end +---@overload fun(size_table:size_table,cc.Texture2D1:rect_table):self +---@overload fun(size_table:size_table):self +---@overload fun(size_table:size_table,cc.Texture2D:cc.Texture2D,boolean:boolean):self +---@overload fun(size_table:size_table,cc.Texture2D:cc.Texture2D,boolean:boolean,rect_table:rect_table):self +---@param gridSize size_table +---@param texture cc.Texture2D +---@param flipped boolean +---@param rect rect_table +---@return boolean +function GridBase:initWithSize (gridSize,texture,flipped,rect) end +---* Interface for custom action when before or after draw.<br> +---* js NA +---@return self +function GridBase:beforeBlit () end +---* Set number of times that the grid will be reused. +---@param reuseGrid int +---@return self +function GridBase:setReuseGrid (reuseGrid) end +---* Getter and setter of the active state of the grid. +---@return boolean +function GridBase:isActive () end +---* +---@param target cc.Node +---@return self +function GridBase:afterDraw (target) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Hide.lua b/meta/3rd/Cocos4.0/cc.Hide.lua new file mode 100644 index 00000000..80ff957f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Hide.lua @@ -0,0 +1,25 @@ + +---@class cc.Hide :cc.ActionInstant +local Hide={ } +cc.Hide=Hide + + + + +---* Allocates and initializes the action.<br> +---* return An autoreleased Hide object. +---@return self +function Hide:create () end +---* +---@return self +function Hide:clone () end +---* param time In seconds. +---@param time float +---@return self +function Hide:update (time) end +---* +---@return cc.ActionInstant +function Hide:reverse () end +---* +---@return self +function Hide:Hide () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Image.lua b/meta/3rd/Cocos4.0/cc.Image.lua new file mode 100644 index 00000000..e9556e6a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Image.lua @@ -0,0 +1,72 @@ + +---@class cc.Image :cc.Ref +local Image={ } +cc.Image=Image + + + + +---* +---@return boolean +function Image:hasPremultipliedAlpha () end +---* +---@return self +function Image:reversePremultipliedAlpha () end +---* +---@return boolean +function Image:isCompressed () end +---* +---@return boolean +function Image:hasAlpha () end +---* +---@return int +function Image:getPixelFormat () end +---* +---@return int +function Image:getHeight () end +---* +---@return self +function Image:premultiplyAlpha () end +---* brief Load the image from the specified path.<br> +---* param path the absolute file path.<br> +---* return true if loaded correctly. +---@param path string +---@return boolean +function Image:initWithImageFile (path) end +---* +---@return int +function Image:getWidth () end +---* +---@return int +function Image:getBitPerPixel () end +---* +---@return int +function Image:getFileType () end +---* +---@return string +function Image:getFilePath () end +---* +---@return int +function Image:getNumberOfMipmaps () end +---* brief Save Image data to the specified file, with specified format.<br> +---* param filePath the file's absolute path, including file suffix.<br> +---* param isToRGB whether the image is saved as RGB format. +---@param filename string +---@param isToRGB boolean +---@return boolean +function Image:saveToFile (filename,isToRGB) end +---* treats (or not) PVR files as if they have alpha premultiplied.<br> +---* Since it is impossible to know at runtime if the PVR images have the alpha channel premultiplied, it is<br> +---* possible load them as if they have (or not) the alpha channel premultiplied.<br> +---* By default it is disabled. +---@param haveAlphaPremultiplied boolean +---@return self +function Image:setPVRImagesHavePremultipliedAlpha (haveAlphaPremultiplied) end +---* Enables or disables premultiplied alpha for PNG files.<br> +---* param enabled (default: true) +---@param enabled boolean +---@return self +function Image:setPNGPremultipliedAlphaEnabled (enabled) end +---* js ctor +---@return self +function Image:Image () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.JumpBy.lua b/meta/3rd/Cocos4.0/cc.JumpBy.lua new file mode 100644 index 00000000..beb7e5f8 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.JumpBy.lua @@ -0,0 +1,45 @@ + +---@class cc.JumpBy :cc.ActionInterval +local JumpBy={ } +cc.JumpBy=JumpBy + + + + +---* initializes the action<br> +---* param duration in seconds +---@param duration float +---@param position vec2_table +---@param height float +---@param jumps int +---@return boolean +function JumpBy:initWithDuration (duration,position,height,jumps) end +---* Creates the action.<br> +---* param duration Duration time, in seconds.<br> +---* param position The jumping distance.<br> +---* param height The jumping height.<br> +---* param jumps The jumping times.<br> +---* return An autoreleased JumpBy object. +---@param duration float +---@param position vec2_table +---@param height float +---@param jumps int +---@return self +function JumpBy:create (duration,position,height,jumps) end +---* +---@param target cc.Node +---@return self +function JumpBy:startWithTarget (target) end +---* +---@return self +function JumpBy:clone () end +---* +---@return self +function JumpBy:reverse () end +---* param time In seconds. +---@param time float +---@return self +function JumpBy:update (time) end +---* +---@return self +function JumpBy:JumpBy () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.JumpTiles3D.lua b/meta/3rd/Cocos4.0/cc.JumpTiles3D.lua new file mode 100644 index 00000000..1580cfa6 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.JumpTiles3D.lua @@ -0,0 +1,60 @@ + +---@class cc.JumpTiles3D :cc.TiledGrid3DAction +local JumpTiles3D={ } +cc.JumpTiles3D=JumpTiles3D + + + + +---* brief Set the amplitude rate of the effect.<br> +---* param amplitudeRate The value of amplitude rate will be set. +---@param amplitudeRate float +---@return self +function JumpTiles3D:setAmplitudeRate (amplitudeRate) end +---* brief Initializes the action with the number of jumps, the sin amplitude, the grid size and the duration.<br> +---* param duration Specify the duration of the JumpTiles3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param numberOfJumps Specify the jump tiles count.<br> +---* param amplitude Specify the amplitude of the JumpTiles3D action.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param numberOfJumps unsigned_int +---@param amplitude float +---@return boolean +function JumpTiles3D:initWithDuration (duration,gridSize,numberOfJumps,amplitude) end +---* brief Get the amplitude of the effect.<br> +---* return Return the amplitude of the effect. +---@return float +function JumpTiles3D:getAmplitude () end +---* brief Get the amplitude rate of the effect.<br> +---* return Return the amplitude rate of the effect. +---@return float +function JumpTiles3D:getAmplitudeRate () end +---* brief Set the amplitude to the effect.<br> +---* param amplitude The value of amplitude will be set. +---@param amplitude float +---@return self +function JumpTiles3D:setAmplitude (amplitude) end +---* brief Create the action with the number of jumps, the sin amplitude, the grid size and the duration.<br> +---* param duration Specify the duration of the JumpTiles3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param numberOfJumps Specify the jump tiles count.<br> +---* param amplitude Specify the amplitude of the JumpTiles3D action.<br> +---* return If the creation success, return a pointer of JumpTiles3D action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param numberOfJumps unsigned_int +---@param amplitude float +---@return self +function JumpTiles3D:create (duration,gridSize,numberOfJumps,amplitude) end +---* +---@return self +function JumpTiles3D:clone () end +---* +---@param time float +---@return self +function JumpTiles3D:update (time) end +---* +---@return self +function JumpTiles3D:JumpTiles3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.JumpTo.lua b/meta/3rd/Cocos4.0/cc.JumpTo.lua new file mode 100644 index 00000000..2c79e3bf --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.JumpTo.lua @@ -0,0 +1,41 @@ + +---@class cc.JumpTo :cc.JumpBy +local JumpTo={ } +cc.JumpTo=JumpTo + + + + +---* initializes the action<br> +---* param duration In seconds. +---@param duration float +---@param position vec2_table +---@param height float +---@param jumps int +---@return boolean +function JumpTo:initWithDuration (duration,position,height,jumps) end +---* Creates the action.<br> +---* param duration Duration time, in seconds.<br> +---* param position The jumping destination position.<br> +---* param height The jumping height.<br> +---* param jumps The jumping times.<br> +---* return An autoreleased JumpTo object. +---@param duration float +---@param position vec2_table +---@param height float +---@param jumps int +---@return self +function JumpTo:create (duration,position,height,jumps) end +---* +---@param target cc.Node +---@return self +function JumpTo:startWithTarget (target) end +---* +---@return self +function JumpTo:clone () end +---* +---@return self +function JumpTo:reverse () end +---* +---@return self +function JumpTo:JumpTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Label.lua b/meta/3rd/Cocos4.0/cc.Label.lua new file mode 100644 index 00000000..14898b0c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Label.lua @@ -0,0 +1,399 @@ + +---@class cc.Label :cc.Node@all parent class: Node,LabelProtocol,BlendProtocol +local Label={ } +cc.Label=Label + + + + +---* +---@return boolean +function Label:isClipMarginEnabled () end +---* Enable shadow effect to Label.<br> +---* todo Support blur for shadow effect. +---@return self +function Label:enableShadow () end +---* Sets the untransformed size of the Label in a more efficient way. +---@param width float +---@param height float +---@return self +function Label:setDimensions (width,height) end +---* +---@return float +function Label:getWidth () end +---* Return the text the Label is currently displaying. +---@return string +function Label:getString () end +---* +---@return float +function Label:getHeight () end +---@overload fun(int:int):self +---@overload fun():self +---@param effect int +---@return self +function Label:disableEffect (effect) end +---* Sets a new TTF configuration to Label.<br> +---* see `TTFConfig` +---@param ttfConfig cc._ttfConfig +---@return boolean +function Label:setTTFConfig (ttfConfig) end +---* Returns type of label<br> +---* warning Not support system font.<br> +---* return the type of label<br> +---* since v3.18.0 +---@return int +function Label:getLabelType () end +---* Returns the text color of the Label. +---@return color4b_table +function Label:getTextColor () end +---* +---@return cc.BlendFunc +function Label:getBlendFunc () end +---* Toggle wrap option of the label.<br> +---* Note: System font doesn't support manually toggle wrap.<br> +---* param enable Set true to enable wrap and false to disable wrap. +---@param enable boolean +---@return self +function Label:enableWrap (enable) end +---* Makes the Label exactly this untransformed width.<br> +---* The Label's width be used for text align if the value not equal zero. +---@param width float +---@return self +function Label:setWidth (width) end +---* Returns the additional kerning of the Label.<br> +---* warning Not support system font.<br> +---* since v3.2.0 +---@return float +function Label:getAdditionalKerning () end +---* Return the user define BMFont size.<br> +---* return The BMFont size in float value. +---@return float +function Label:getBMFontSize () end +---* +---@return float +function Label:getMaxLineWidth () end +---* Returns the Label's text horizontal alignment. +---@return int +function Label:getHorizontalAlignment () end +---* Return shadow effect offset value. +---@return size_table +function Label:getShadowOffset () end +---* +---@return float +function Label:getLineSpacing () end +---* Clips upper and lower margin to reduce height of Label. +---@param clipEnabled boolean +---@return self +function Label:setClipMarginEnabled (clipEnabled) end +---* Sets the text that this Label is to display. +---@param text string +---@return self +function Label:setString (text) end +---* Sets a new system font to Label.<br> +---* param font A font file or a font family name.<br> +---* warning +---@param font string +---@return self +function Label:setSystemFontName (font) end +---* Query the wrap is enabled or not.<br> +---* Note: System font will always return true. +---@return boolean +function Label:isWrapEnabled () end +---* Return the outline effect size value. +---@return float +function Label:getOutlineSize () end +---* Sets a new bitmap font to Label +---@param bmfontFilePath string +---@param imageOffset vec2_table +---@param fontSize float +---@return boolean +function Label:setBMFontFilePath (bmfontFilePath,imageOffset,fontSize) end +---@overload fun(string0:cc._ttfConfig,string:string,float2:int,size_table3:int):self +---@overload fun(string:string,string:string,float:float,size_table:size_table,int:int,int:int):self +---@param text string +---@param fontFilePath string +---@param fontSize float +---@param dimensions size_table +---@param hAlignment int +---@param vAlignment int +---@return boolean +function Label:initWithTTF (text,fontFilePath,fontSize,dimensions,hAlignment,vAlignment) end +---* +---@return cc.FontAtlas +function Label:getFontAtlas () end +---* Sets the line height of the Label.<br> +---* warning Not support system font.<br> +---* since v3.2.0 +---@param height float +---@return self +function Label:setLineHeight (height) end +---* +---@param fontSize float +---@return self +function Label:setSystemFontSize (fontSize) end +---* Change the label's Overflow type, currently only TTF and BMFont support all the valid Overflow type.<br> +---* Char Map font supports all the Overflow type except for SHRINK, because we can't measure it's font size.<br> +---* System font only support Overflow::Normal and Overflow::RESIZE_HEIGHT.<br> +---* param overflow see `Overflow` +---@param overflow int +---@return self +function Label:setOverflow (overflow) end +---* Enables strikethrough.<br> +---* Underline and Strikethrough cannot be enabled at the same time.<br> +---* Strikethrough is like an underline but at the middle of the glyph +---@return self +function Label:enableStrikethrough () end +---* Update content immediately. +---@return self +function Label:updateContent () end +---* Return length of string. +---@return int +function Label:getStringLength () end +---* Specify what happens when a line is too long for Label.<br> +---* param breakWithoutSpace Lines are automatically broken between words if this value is false. +---@param breakWithoutSpace boolean +---@return self +function Label:setLineBreakWithoutSpace (breakWithoutSpace) end +---* Return the number of lines of text. +---@return int +function Label:getStringNumLines () end +---* Enable outline effect to Label.<br> +---* warning Limiting use to only when the Label created with true type font or system font. +---@param outlineColor color4b_table +---@param outlineSize int +---@return self +function Label:enableOutline (outlineColor,outlineSize) end +---* Return the shadow effect blur radius. +---@return float +function Label:getShadowBlurRadius () end +---* Return current effect color value. +---@return color4f_table +function Label:getEffectColor () end +---* +---@param cleanup boolean +---@return self +function Label:removeAllChildrenWithCleanup (cleanup) end +---@overload fun(string0:cc.Texture2D,int:int,int:int,int:int):self +---@overload fun(string:string,int:int,int:int,int:int):self +---@overload fun(string:string):self +---@param charMapFile string +---@param itemWidth int +---@param itemHeight int +---@param startCharMap int +---@return boolean +function Label:setCharMap (charMapFile,itemWidth,itemHeight,startCharMap) end +---* +---@return size_table +function Label:getDimensions () end +---* Makes the Label at most this line untransformed width.<br> +---* The Label's max line width be used for force line breaks if the value not equal zero. +---@param maxLineWidth float +---@return self +function Label:setMaxLineWidth (maxLineWidth) end +---* Returns the system font used by the Label. +---@return string +function Label:getSystemFontName () end +---* Sets the Label's text vertical alignment. +---@param vAlignment int +---@return self +function Label:setVerticalAlignment (vAlignment) end +---* +---@param height float +---@return self +function Label:setLineSpacing (height) end +---* Returns font size +---@return float +function Label:getRenderingFontSize () end +---* Returns the line height of this Label.<br> +---* warning Not support system font.<br> +---* since v3.2.0 +---@return float +function Label:getLineHeight () end +---* Return the shadow effect color value. +---@return color4f_table +function Label:getShadowColor () end +---* Returns the TTF configuration object used by the Label.<br> +---* see `TTFConfig` +---@return cc._ttfConfig +function Label:getTTFConfig () end +---* Enable italics rendering +---@return self +function Label:enableItalics () end +---* Sets the text color of Label.<br> +---* The text color is different from the color of Node.<br> +---* warning Limiting use to only when the Label created with true type font or system font. +---@param color color4b_table +---@return self +function Label:setTextColor (color) end +---* Provides a way to treat each character like a Sprite.<br> +---* warning No support system font. +---@param lettetIndex int +---@return cc.Sprite +function Label:getLetter (lettetIndex) end +---* Makes the Label exactly this untransformed height.<br> +---* The Label's height be used for text align if the value not equal zero.<br> +---* The text will display incomplete if the size of Label is not large enough to display all text. +---@param height float +---@return self +function Label:setHeight (height) end +---* Return whether the shadow effect is enabled. +---@return boolean +function Label:isShadowEnabled () end +---* Enable glow effect to Label.<br> +---* warning Limiting use to only when the Label created with true type font. +---@param glowColor color4b_table +---@return self +function Label:enableGlow (glowColor) end +---* Query the label's Overflow type.<br> +---* return see `Overflow` +---@return int +function Label:getOverflow () end +---* Returns the Label's text vertical alignment. +---@return int +function Label:getVerticalAlignment () end +---* Sets the additional kerning of the Label.<br> +---* warning Not support system font.<br> +---* since v3.2.0 +---@param space float +---@return self +function Label:setAdditionalKerning (space) end +---* Returns the bitmap font path used by the Label. +---@return float +function Label:getSystemFontSize () end +---* +---@param blendFunc cc.BlendFunc +---@return self +function Label:setBlendFunc (blendFunc) end +---* Returns the Label's text horizontal alignment. +---@return int +function Label:getTextAlignment () end +---* Returns the bitmap font used by the Label. +---@return string +function Label:getBMFontFilePath () end +---* Sets the Label's text horizontal alignment. +---@param hAlignment int +---@return self +function Label:setHorizontalAlignment (hAlignment) end +---* Enable bold rendering +---@return self +function Label:enableBold () end +---* Enable underline +---@return self +function Label:enableUnderline () end +---* Return current effect type. +---@return int +function Label:getLabelEffectType () end +---@overload fun(int:int,int:int):self +---@overload fun(int:int):self +---@param hAlignment int +---@param vAlignment int +---@return self +function Label:setAlignment (hAlignment,vAlignment) end +---* warning This method is not recommended for game developers. +---@return self +function Label:requestSystemFontRefresh () end +---* Change font size of label type BMFONT<br> +---* Note: This function only scale the BMFONT letter to mimic the font size change effect.<br> +---* param fontSize The desired font size in float. +---@param fontSize float +---@return self +function Label:setBMFontSize (fontSize) end +---* Allocates and initializes a Label, with a bitmap font file.<br> +---* param bmfontPath A bitmap font file, it's a FNT format.<br> +---* param text The initial text.<br> +---* param hAlignment Text horizontal alignment.<br> +---* param maxLineWidth The max line width.<br> +---* param imageOffset<br> +---* return An automatically released Label object.<br> +---* see setBMFontFilePath setMaxLineWidth +---@param bmfontPath string +---@param text string +---@param hAlignment int +---@param maxLineWidth int +---@param imageOffset vec2_table +---@return self +function Label:createWithBMFont (bmfontPath,text,hAlignment,maxLineWidth,imageOffset) end +---* Allocates and initializes a Label, with default settings.<br> +---* return An automatically released Label object. +---@return self +function Label:create () end +---@overload fun(string0:cc.Texture2D,int:int,int:int,int:int):self +---@overload fun(string:string,int:int,int:int,int:int):self +---@overload fun(string:string):self +---@param charMapFile string +---@param itemWidth int +---@param itemHeight int +---@param startCharMap int +---@return self +function Label:createWithCharMap (charMapFile,itemWidth,itemHeight,startCharMap) end +---* Allocates and initializes a Label, base on platform-dependent API.<br> +---* param text The initial text.<br> +---* param font A font file or a font family name.<br> +---* param fontSize The font size. This value must be > 0.<br> +---* param dimensions<br> +---* param hAlignment The text horizontal alignment.<br> +---* param vAlignment The text vertical alignment.<br> +---* warning It will generate texture by the platform-dependent code.<br> +---* return An automatically released Label object. +---@param text string +---@param font string +---@param fontSize float +---@param dimensions size_table +---@param hAlignment int +---@param vAlignment int +---@return self +function Label:createWithSystemFont (text,font,fontSize,dimensions,hAlignment,vAlignment) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function Label:draw (renderer,transform,flags) end +---* +---@return boolean +function Label:isOpacityModifyRGB () end +---* +---@param mask unsigned short +---@param applyChildren boolean +---@return self +function Label:setCameraMask (mask,applyChildren) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function Label:removeChild (child,cleanup) end +---* +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function Label:visit (renderer,parentTransform,parentFlags) end +---* +---@return string +function Label:getDescription () end +---* +---@param isOpacityModifyRGB boolean +---@return self +function Label:setOpacityModifyRGB (isOpacityModifyRGB) end +---* +---@param parentOpacity unsigned_char +---@return self +function Label:updateDisplayedOpacity (parentOpacity) end +---* set ProgramState of current render command +---@param programState cc.backend.ProgramState +---@return self +function Label:setProgramState (programState) end +---* +---@return size_table +function Label:getContentSize () end +---* +---@return rect_table +function Label:getBoundingBox () end +---* +---@param parentColor color3b_table +---@return self +function Label:updateDisplayedColor (parentColor) end +---* +---@param globalZOrder float +---@return self +function Label:setGlobalZOrder (globalZOrder) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.LabelAtlas.lua b/meta/3rd/Cocos4.0/cc.LabelAtlas.lua new file mode 100644 index 00000000..f30aaf7d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.LabelAtlas.lua @@ -0,0 +1,44 @@ + +---@class cc.LabelAtlas :cc.AtlasNode@all parent class: AtlasNode,LabelProtocol +local LabelAtlas={ } +cc.LabelAtlas=LabelAtlas + + + + +---* +---@param label string +---@return self +function LabelAtlas:setString (label) end +---@overload fun(string:string,cc.Texture2D1:string):self +---@overload fun(string:string,cc.Texture2D1:string,int:int,int:int,int:int):self +---@overload fun(string:string,cc.Texture2D:cc.Texture2D,int:int,int:int,int:int):self +---@param string string +---@param texture cc.Texture2D +---@param itemWidth int +---@param itemHeight int +---@param startCharMap int +---@return boolean +function LabelAtlas:initWithString (string,texture,itemWidth,itemHeight,startCharMap) end +---* +---@return string +function LabelAtlas:getString () end +---@overload fun(string:string,string:string,int:int,int:int,int:int):self +---@overload fun():self +---@overload fun(string:string,string:string):self +---@param string string +---@param charMapFile string +---@param itemWidth int +---@param itemHeight int +---@param startCharMap int +---@return self +function LabelAtlas:create (string,charMapFile,itemWidth,itemHeight,startCharMap) end +---* +---@return self +function LabelAtlas:updateAtlasValues () end +---* js NA +---@return string +function LabelAtlas:getDescription () end +---* +---@return self +function LabelAtlas:LabelAtlas () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Layer.lua b/meta/3rd/Cocos4.0/cc.Layer.lua new file mode 100644 index 00000000..459c5b85 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Layer.lua @@ -0,0 +1,21 @@ + +---@class cc.Layer :cc.Node +local Layer={ } +cc.Layer=Layer + + + + +---* Creates a fullscreen black layer.<br> +---* return An autoreleased Layer object. +---@return self +function Layer:create () end +---* +---@return boolean +function Layer:init () end +---* +---@return string +function Layer:getDescription () end +---* +---@return self +function Layer:Layer () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.LayerColor.lua b/meta/3rd/Cocos4.0/cc.LayerColor.lua new file mode 100644 index 00000000..e827dc4a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.LayerColor.lua @@ -0,0 +1,69 @@ + +---@class cc.LayerColor :cc.Layer@all parent class: Layer,BlendProtocol +local LayerColor={ } +cc.LayerColor=LayerColor + + + + +---* Change width and height in Points.<br> +---* param w The width of layer.<br> +---* param h The Height of layer.<br> +---* since v0.8 +---@param w float +---@param h float +---@return self +function LayerColor:changeWidthAndHeight (w,h) end +---* BlendFunction. Conforms to BlendProtocol protocol <br> +---* lua NA +---@return cc.BlendFunc +function LayerColor:getBlendFunc () 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> +---* In lua: local setBlendFunc(local src, local dst)<br> +---* endcode +---@param blendFunc cc.BlendFunc +---@return self +function LayerColor:setBlendFunc (blendFunc) end +---* Change width in Points.<br> +---* param w The width of layer. +---@param w float +---@return self +function LayerColor:changeWidth (w) end +---@overload fun(color4b_table:color4b_table):self +---@overload fun(color4b_table:color4b_table,float:float,float:float):self +---@param color color4b_table +---@param width float +---@param height float +---@return boolean +function LayerColor:initWithColor (color,width,height) end +---* Change height in Points.<br> +---* param h The height of layer. +---@param h float +---@return self +function LayerColor:changeHeight (h) end +---@overload fun(color4b_table:color4b_table,float:float,float:float):self +---@overload fun():self +---@overload fun(color4b_table:color4b_table):self +---@param color color4b_table +---@param width float +---@param height float +---@return self +function LayerColor:create (color,width,height) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function LayerColor:draw (renderer,transform,flags) end +---* +---@return boolean +function LayerColor:init () end +---* +---@param var size_table +---@return self +function LayerColor:setContentSize (var) end +---* +---@return self +function LayerColor:LayerColor () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.LayerGradient.lua b/meta/3rd/Cocos4.0/cc.LayerGradient.lua new file mode 100644 index 00000000..fe28a572 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.LayerGradient.lua @@ -0,0 +1,88 @@ + +---@class cc.LayerGradient :cc.LayerColor +local LayerGradient={ } +cc.LayerGradient=LayerGradient + + + + +---* Returns the start color of the gradient.<br> +---* return The start color. +---@return color3b_table +function LayerGradient:getStartColor () end +---* Get the compressedInterpolation<br> +---* return The interpolation will be compressed if true. +---@return boolean +function LayerGradient:isCompressedInterpolation () end +---* Returns the start opacity of the gradient.<br> +---* return The start opacity. +---@return unsigned_char +function LayerGradient:getStartOpacity () end +---* Sets the directional vector that will be used for the gradient.<br> +---* The default value is vertical direction (0,-1). <br> +---* param alongVector The direction of gradient. +---@param alongVector vec2_table +---@return self +function LayerGradient:setVector (alongVector) end +---* Returns the start opacity of the gradient.<br> +---* param startOpacity The start opacity, from 0 to 255. +---@param startOpacity unsigned_char +---@return self +function LayerGradient:setStartOpacity (startOpacity) end +---* Whether or not the interpolation will be compressed in order to display all the colors of the gradient both in canonical and non canonical vectors.<br> +---* Default: true.<br> +---* param compressedInterpolation The interpolation will be compressed if true. +---@param compressedInterpolation boolean +---@return self +function LayerGradient:setCompressedInterpolation (compressedInterpolation) end +---* Returns the end opacity of the gradient.<br> +---* param endOpacity The end opacity, from 0 to 255. +---@param endOpacity unsigned_char +---@return self +function LayerGradient:setEndOpacity (endOpacity) end +---* Returns the directional vector used for the gradient.<br> +---* return The direction of gradient. +---@return vec2_table +function LayerGradient:getVector () end +---* Sets the end color of the gradient.<br> +---* param endColor The end color. +---@param endColor color3b_table +---@return self +function LayerGradient:setEndColor (endColor) end +---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table,vec2_table:vec2_table):self +---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table):self +---@param start color4b_table +---@param _end color4b_table +---@param v vec2_table +---@return boolean +function LayerGradient:initWithColor (start,_end,v) end +---* Returns the end color of the gradient.<br> +---* return The end color. +---@return color3b_table +function LayerGradient:getEndColor () end +---* Returns the end opacity of the gradient.<br> +---* return The end opacity. +---@return unsigned_char +function LayerGradient:getEndOpacity () end +---* Sets the start color of the gradient.<br> +---* param startColor The start color. +---@param startColor color3b_table +---@return self +function LayerGradient:setStartColor (startColor) end +---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table):self +---@overload fun():self +---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table,vec2_table:vec2_table):self +---@param start color4b_table +---@param _end color4b_table +---@param v vec2_table +---@return self +function LayerGradient:create (start,_end,v) end +---* +---@return boolean +function LayerGradient:init () end +---* +---@return string +function LayerGradient:getDescription () end +---* +---@return self +function LayerGradient:LayerGradient () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.LayerMultiplex.lua b/meta/3rd/Cocos4.0/cc.LayerMultiplex.lua new file mode 100644 index 00000000..69e99871 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.LayerMultiplex.lua @@ -0,0 +1,39 @@ + +---@class cc.LayerMultiplex :cc.Layer +local LayerMultiplex={ } +cc.LayerMultiplex=LayerMultiplex + + + + +---* initializes a MultiplexLayer with an array of layers<br> +---* since v2.1 +---@param arrayOfLayers array_table +---@return boolean +function LayerMultiplex:initWithArray (arrayOfLayers) end +---* release the current layer and switches to another layer indexed by n.<br> +---* The current (old) layer will be removed from it's parent with 'cleanup=true'.<br> +---* param n The layer indexed by n will display. +---@param n int +---@return self +function LayerMultiplex:switchToAndReleaseMe (n) end +---* Add a certain layer to LayerMultiplex.<br> +---* param layer A layer need to be added to the LayerMultiplex. +---@param layer cc.Layer +---@return self +function LayerMultiplex:addLayer (layer) end +---@overload fun(int:int,boolean:boolean):self +---@overload fun(int:int):self +---@param n int +---@param cleanup boolean +---@return self +function LayerMultiplex:switchTo (n,cleanup) end +---* +---@return boolean +function LayerMultiplex:init () end +---* +---@return string +function LayerMultiplex:getDescription () end +---* js ctor +---@return self +function LayerMultiplex:LayerMultiplex () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.LayerRadialGradient.lua b/meta/3rd/Cocos4.0/cc.LayerRadialGradient.lua new file mode 100644 index 00000000..dba7b6ef --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.LayerRadialGradient.lua @@ -0,0 +1,102 @@ + +---@class cc.LayerRadialGradient :cc.Layer +local LayerRadialGradient={ } +cc.LayerRadialGradient=LayerRadialGradient + + + + +---* +---@return color4b_table +function LayerRadialGradient:getStartColor () end +---* +---@return cc.BlendFunc +function LayerRadialGradient:getBlendFunc () end +---* +---@return color3b_table +function LayerRadialGradient:getStartColor3B () end +---* +---@return unsigned_char +function LayerRadialGradient:getStartOpacity () end +---* +---@param center vec2_table +---@return self +function LayerRadialGradient:setCenter (center) end +---* +---@return color4b_table +function LayerRadialGradient:getEndColor () end +---* +---@param opacity unsigned_char +---@return self +function LayerRadialGradient:setStartOpacity (opacity) end +---* +---@return vec2_table +function LayerRadialGradient:getCenter () end +---* +---@param opacity unsigned_char +---@return self +function LayerRadialGradient:setEndOpacity (opacity) end +---* +---@param expand float +---@return self +function LayerRadialGradient:setExpand (expand) end +---* +---@return unsigned_char +function LayerRadialGradient:getEndOpacity () end +---* +---@param startColor color4b_table +---@param endColor color4b_table +---@param radius float +---@param center vec2_table +---@param expand float +---@return boolean +function LayerRadialGradient:initWithColor (startColor,endColor,radius,center,expand) end +---@overload fun(color3b_table0:color4b_table):self +---@overload fun(color3b_table:color3b_table):self +---@param color color3b_table +---@return self +function LayerRadialGradient:setEndColor (color) end +---* +---@return color3b_table +function LayerRadialGradient:getEndColor3B () end +---* +---@param radius float +---@return self +function LayerRadialGradient:setRadius (radius) end +---@overload fun(color3b_table0:color4b_table):self +---@overload fun(color3b_table:color3b_table):self +---@param color color3b_table +---@return self +function LayerRadialGradient:setStartColor (color) end +---* +---@return float +function LayerRadialGradient:getExpand () end +---* +---@param blendFunc cc.BlendFunc +---@return self +function LayerRadialGradient:setBlendFunc (blendFunc) end +---* +---@return float +function LayerRadialGradient:getRadius () end +---@overload fun():self +---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table,float:float,vec2_table:vec2_table,float:float):self +---@param startColor color4b_table +---@param endColor color4b_table +---@param radius float +---@param center vec2_table +---@param expand float +---@return self +function LayerRadialGradient:create (startColor,endColor,radius,center,expand) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function LayerRadialGradient:draw (renderer,transform,flags) end +---* +---@param size size_table +---@return self +function LayerRadialGradient:setContentSize (size) end +---* +---@return self +function LayerRadialGradient:LayerRadialGradient () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Lens3D.lua b/meta/3rd/Cocos4.0/cc.Lens3D.lua new file mode 100644 index 00000000..569662fc --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Lens3D.lua @@ -0,0 +1,65 @@ + +---@class cc.Lens3D :cc.Grid3DAction +local Lens3D={ } +cc.Lens3D=Lens3D + + + + +---* brief Set whether lens is concave.<br> +---* param concave Whether lens is concave. +---@param concave boolean +---@return self +function Lens3D:setConcave (concave) end +---* brief Initializes the action with center position, radius, grid size and duration.<br> +---* param duration Specify the duration of the Lens3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param position Specify the center position of the lens effect.<br> +---* param radius Specify the radius of the lens effect.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param position vec2_table +---@param radius float +---@return boolean +function Lens3D:initWithDuration (duration,gridSize,position,radius) end +---* brief Set the value of lens effect.<br> +---* param lensEffect The value of lens effect will be set. +---@param lensEffect float +---@return self +function Lens3D:setLensEffect (lensEffect) end +---* brief Get the value of lens effect. Default value is 0.7.<br> +---* return The value of lens effect. +---@return float +function Lens3D:getLensEffect () end +---* brief Set the center position of lens effect.<br> +---* param position The center position will be set. +---@param position vec2_table +---@return self +function Lens3D:setPosition (position) end +---* brief Get the center position of lens effect.<br> +---* return The center position of lens effect. +---@return vec2_table +function Lens3D:getPosition () end +---* brief Create the action with center position, radius, a grid size and duration.<br> +---* param duration Specify the duration of the Lens3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param position Specify the center position of the lens.<br> +---* param radius Specify the radius of the lens.<br> +---* return If the creation success, return a pointer of Lens3D action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param position vec2_table +---@param radius float +---@return self +function Lens3D:create (duration,gridSize,position,radius) end +---* +---@return self +function Lens3D:clone () end +---* +---@param time float +---@return self +function Lens3D:update (time) end +---* +---@return self +function Lens3D:Lens3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Liquid.lua b/meta/3rd/Cocos4.0/cc.Liquid.lua new file mode 100644 index 00000000..54e91250 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Liquid.lua @@ -0,0 +1,60 @@ + +---@class cc.Liquid :cc.Grid3DAction +local Liquid={ } +cc.Liquid=Liquid + + + + +---* brief Set the amplitude rate of the effect.<br> +---* param amplitudeRate The value of amplitude rate will be set. +---@param amplitudeRate float +---@return self +function Liquid:setAmplitudeRate (amplitudeRate) end +---* brief Initializes the action with amplitude, grid size, waves count and duration.<br> +---* param duration Specify the duration of the Liquid action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param waves Specify the waves count of the Liquid action.<br> +---* param amplitude Specify the amplitude of the Liquid action.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param waves unsigned_int +---@param amplitude float +---@return boolean +function Liquid:initWithDuration (duration,gridSize,waves,amplitude) end +---* brief Get the amplitude of the effect.<br> +---* return Return the amplitude of the effect. +---@return float +function Liquid:getAmplitude () end +---* brief Get the amplitude rate of the effect.<br> +---* return Return the amplitude rate of the effect. +---@return float +function Liquid:getAmplitudeRate () end +---* brief Set the amplitude to the effect.<br> +---* param amplitude The value of amplitude will be set. +---@param amplitude float +---@return self +function Liquid:setAmplitude (amplitude) end +---* brief Create the action with amplitude, grid size, waves count and duration.<br> +---* param duration Specify the duration of the Liquid action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param waves Specify the waves count of the Liquid action.<br> +---* param amplitude Specify the amplitude of the Liquid action.<br> +---* return If the creation success, return a pointer of Liquid action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param waves unsigned_int +---@param amplitude float +---@return self +function Liquid:create (duration,gridSize,waves,amplitude) end +---* +---@return self +function Liquid:clone () end +---* +---@param time float +---@return self +function Liquid:update (time) end +---* +---@return self +function Liquid:Liquid () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Manifest.lua b/meta/3rd/Cocos4.0/cc.Manifest.lua new file mode 100644 index 00000000..c707bbee --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Manifest.lua @@ -0,0 +1,29 @@ + +---@class cc.Manifest :cc.Ref +local Manifest={ } +cc.Manifest=Manifest + + + + +---* @brief Gets remote manifest file url. +---@return string +function Manifest:getManifestFileUrl () end +---* @brief Check whether the version informations have been fully loaded +---@return boolean +function Manifest:isVersionLoaded () end +---* @brief Check whether the manifest have been fully loaded +---@return boolean +function Manifest:isLoaded () end +---* @brief Gets remote package url. +---@return string +function Manifest:getPackageUrl () end +---* @brief Gets manifest version. +---@return string +function Manifest:getVersion () end +---* @brief Gets remote version file url. +---@return string +function Manifest:getVersionFileUrl () end +---* @brief Get the search paths list related to the Manifest. +---@return array_table +function Manifest:getSearchPaths () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Material.lua b/meta/3rd/Cocos4.0/cc.Material.lua new file mode 100644 index 00000000..a29ab976 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Material.lua @@ -0,0 +1,80 @@ + +---@class cc.Material :cc.Ref +local Material={ } +cc.Material=Material + + + + +---* returns a clone (deep-copy) of the material +---@return self +function Material:clone () end +---* +---@param meshCommand cc.MeshCommand +---@param globalZOrder float +---@param vertexBuffer cc.backend.Buffer +---@param indexBuffer cc.backend.Buffer +---@param primitive int +---@param indexFormat int +---@param indexCount unsigned_int +---@param modelView mat4_table +---@return self +function Material:draw (meshCommand,globalZOrder,vertexBuffer,indexBuffer,primitive,indexFormat,indexCount,modelView) end +---* +---@return cc.RenderState +function Material:getRenderState () end +---* / sets the material name +---@param name string +---@return self +function Material:setName (name) end +---* Returns a Technique by index. <br> +---* returns `nullptr` if the index is invalid. +---@param index int +---@return cc.Technique +function Material:getTechniqueByIndex (index) end +---* / returns the material name +---@return string +function Material:getName () end +---* Returns the list of Techniques +---@return array_table +function Material:getTechniques () end +---* Returns the number of Techniques in the Material. +---@return int +function Material:getTechniqueCount () end +---* Sets the current technique +---@param techniqueName string +---@return self +function Material:setTechnique (techniqueName) end +---* Returns a Technique by its name.<br> +---* returns `nullptr` if the Technique can't be found. +---@param name string +---@return cc.Technique +function Material:getTechniqueByName (name) end +---* Adds a Technique into the Material +---@param technique cc.Technique +---@return self +function Material:addTechnique (technique) end +---* Returns the Technique used by the Material +---@return cc.Technique +function Material:getTechnique () end +---* Creates a Material using the data from the Properties object defined at the specified URL,<br> +---* where the URL is of the format "<file-path>.<extension>#<namespace-id>/<namespace-id>/.../<namespace-id>"<br> +---* (and "#<namespace-id>/<namespace-id>/.../<namespace-id>" is optional).<br> +---* param url The URL pointing to the Properties object defining the material.<br> +---* return A new Material or NULL if there was an error. +---@param path string +---@return self +function Material:createWithFilename (path) end +---* Creates a material from the specified properties object.<br> +---* param materialProperties The properties object defining the<br> +---* material (must have namespace equal to 'material').<br> +---* return A new Material. +---@param materialProperties cc.Properties +---@return self +function Material:createWithProperties (materialProperties) end +---* Creates a Material with a GLProgramState.<br> +---* It will only contain one Technique and one Pass.<br> +---* Added in order to support legacy code. +---@param programState cc.backend.ProgramState +---@return self +function Material:createWithProgramState (programState) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Menu.lua b/meta/3rd/Cocos4.0/cc.Menu.lua new file mode 100644 index 00000000..01a309c8 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Menu.lua @@ -0,0 +1,70 @@ + +---@class cc.Menu :cc.Layer +local Menu={ } +cc.Menu=Menu + + + + +---* initializes a Menu with a NSArray of MenuItem objects +---@param arrayOfItems array_table +---@return boolean +function Menu:initWithArray (arrayOfItems) end +---* Set whether the menu is enabled. If set to false, interacting with the menu<br> +---* will have no effect.<br> +---* The default value is true, a menu is enabled by default.<br> +---* param value true if menu is to be enabled, false if menu is to be disabled. +---@param value boolean +---@return self +function Menu:setEnabled (value) end +---* Align items vertically. +---@return self +function Menu:alignItemsVertically () end +---* Determines if the menu is enabled.<br> +---* see `setEnabled(bool)`.<br> +---* return whether the menu is enabled or not. +---@return boolean +function Menu:isEnabled () end +---* Align items horizontally. +---@return self +function Menu:alignItemsHorizontally () end +---* Align items horizontally with padding.<br> +---* since v0.7.2 +---@param padding float +---@return self +function Menu:alignItemsHorizontallyWithPadding (padding) end +---* Align items vertically with padding.<br> +---* since v0.7.2 +---@param padding float +---@return self +function Menu:alignItemsVerticallyWithPadding (padding) end +---@overload fun(cc.Node:cc.Node,int:int):self +---@overload fun(cc.Node:cc.Node):self +---@overload fun(cc.Node:cc.Node,int:int,string2:int):self +---@overload fun(cc.Node:cc.Node,int:int,string:string):self +---@param child cc.Node +---@param zOrder int +---@param name string +---@return self +function Menu:addChild (child,zOrder,name) end +---* +---@return string +function Menu:getDescription () end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function Menu:removeChild (child,cleanup) end +---* initializes an empty Menu +---@return boolean +function Menu:init () end +---* +---@param value boolean +---@return self +function Menu:setOpacityModifyRGB (value) end +---* +---@return boolean +function Menu:isOpacityModifyRGB () end +---* js ctor +---@return self +function Menu:Menu () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MenuItem.lua b/meta/3rd/Cocos4.0/cc.MenuItem.lua new file mode 100644 index 00000000..e1153e88 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MenuItem.lua @@ -0,0 +1,36 @@ + +---@class cc.MenuItem :cc.Node +local MenuItem={ } +cc.MenuItem=MenuItem + + + + +---* Enables or disables the item. +---@param value boolean +---@return self +function MenuItem:setEnabled (value) end +---* Activate the item. +---@return self +function MenuItem:activate () end +---* Returns whether or not the item is enabled. +---@return boolean +function MenuItem:isEnabled () end +---* The item was selected (not activated), similar to "mouse-over". +---@return self +function MenuItem:selected () end +---* Returns whether or not the item is selected. +---@return boolean +function MenuItem:isSelected () end +---* The item was unselected. +---@return self +function MenuItem:unselected () end +---* Returns the outside box. +---@return rect_table +function MenuItem:rect () end +---* js NA +---@return string +function MenuItem:getDescription () end +---* js ctor +---@return self +function MenuItem:MenuItem () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MenuItemAtlasFont.lua b/meta/3rd/Cocos4.0/cc.MenuItemAtlasFont.lua new file mode 100644 index 00000000..026a58b1 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MenuItemAtlasFont.lua @@ -0,0 +1,20 @@ + +---@class cc.MenuItemAtlasFont :cc.MenuItemLabel +local MenuItemAtlasFont={ } +cc.MenuItemAtlasFont=MenuItemAtlasFont + + + + +---* Initializes a menu item from a string and atlas with a target/selector. +---@param value string +---@param charMapFile string +---@param itemWidth int +---@param itemHeight int +---@param startCharMap char +---@param callback function +---@return boolean +function MenuItemAtlasFont:initWithString (value,charMapFile,itemWidth,itemHeight,startCharMap,callback) end +---* js ctor +---@return self +function MenuItemAtlasFont:MenuItemAtlasFont () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MenuItemFont.lua b/meta/3rd/Cocos4.0/cc.MenuItemFont.lua new file mode 100644 index 00000000..584dfa70 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MenuItemFont.lua @@ -0,0 +1,56 @@ + +---@class cc.MenuItemFont :cc.MenuItemLabel +local MenuItemFont={ } +cc.MenuItemFont=MenuItemFont + + + + +---* Returns the name of the Font.<br> +---* js getFontNameObj<br> +---* js NA +---@return string +function MenuItemFont:getFontNameObj () end +---* Set the font name .<br> +---* c++ can not overload static and non-static member functions with the same parameter types.<br> +---* so change the name to setFontNameObj.<br> +---* js setFontName<br> +---* js NA +---@param name string +---@return self +function MenuItemFont:setFontNameObj (name) end +---* Initializes a menu item from a string with a target/selector. +---@param value string +---@param callback function +---@return boolean +function MenuItemFont:initWithString (value,callback) end +---* get font size .<br> +---* js getFontSize<br> +---* js NA +---@return int +function MenuItemFont:getFontSizeObj () end +---* Set font size.<br> +---* c++ can not overload static and non-static member functions with the same parameter types.<br> +---* so change the name to setFontSizeObj.<br> +---* js setFontSize<br> +---* js NA +---@param size int +---@return self +function MenuItemFont:setFontSizeObj (size) end +---* Set the default font name. +---@param name string +---@return self +function MenuItemFont:setFontName (name) end +---* Get default font size. +---@return int +function MenuItemFont:getFontSize () end +---* Get the default font name. +---@return string +function MenuItemFont:getFontName () end +---* Set default font size. +---@param size int +---@return self +function MenuItemFont:setFontSize (size) end +---* js ctor +---@return self +function MenuItemFont:MenuItemFont () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MenuItemImage.lua b/meta/3rd/Cocos4.0/cc.MenuItemImage.lua new file mode 100644 index 00000000..c32fbd7a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MenuItemImage.lua @@ -0,0 +1,33 @@ + +---@class cc.MenuItemImage :cc.MenuItemSprite +local MenuItemImage={ } +cc.MenuItemImage=MenuItemImage + + + + +---* Sets the sprite frame for the disabled image. +---@param frame cc.SpriteFrame +---@return self +function MenuItemImage:setDisabledSpriteFrame (frame) end +---* Sets the sprite frame for the selected image. +---@param frame cc.SpriteFrame +---@return self +function MenuItemImage:setSelectedSpriteFrame (frame) end +---* Sets the sprite frame for the normal image. +---@param frame cc.SpriteFrame +---@return self +function MenuItemImage:setNormalSpriteFrame (frame) end +---* +---@return boolean +function MenuItemImage:init () end +---* Initializes a menu item with a normal, selected and disabled image with a callable object. +---@param normalImage string +---@param selectedImage string +---@param disabledImage string +---@param callback function +---@return boolean +function MenuItemImage:initWithNormalImage (normalImage,selectedImage,disabledImage,callback) end +---* js ctor +---@return self +function MenuItemImage:MenuItemImage () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MenuItemLabel.lua b/meta/3rd/Cocos4.0/cc.MenuItemLabel.lua new file mode 100644 index 00000000..c46d7084 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MenuItemLabel.lua @@ -0,0 +1,50 @@ + +---@class cc.MenuItemLabel :cc.MenuItem +local MenuItemLabel={ } +cc.MenuItemLabel=MenuItemLabel + + + + +---* Sets the label that is rendered. +---@param node cc.Node +---@return self +function MenuItemLabel:setLabel (node) end +---* Get the inner string of the inner label. +---@return string +function MenuItemLabel:getString () end +---* Gets the color that will be used when the item is disabled. +---@return color3b_table +function MenuItemLabel:getDisabledColor () end +---* Sets a new string to the inner label. +---@param label string +---@return self +function MenuItemLabel:setString (label) end +---* Initializes a MenuItemLabel with a Label, target and selector. +---@param label cc.Node +---@param callback function +---@return boolean +function MenuItemLabel:initWithLabel (label,callback) end +---* Sets the color that will be used when the item is disabled. +---@param color color3b_table +---@return self +function MenuItemLabel:setDisabledColor (color) end +---* Gets the label that is rendered. +---@return cc.Node +function MenuItemLabel:getLabel () end +---* +---@param enabled boolean +---@return self +function MenuItemLabel:setEnabled (enabled) end +---* +---@return self +function MenuItemLabel:activate () end +---* +---@return self +function MenuItemLabel:unselected () end +---* +---@return self +function MenuItemLabel:selected () end +---* js ctor +---@return self +function MenuItemLabel:MenuItemLabel () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MenuItemSprite.lua b/meta/3rd/Cocos4.0/cc.MenuItemSprite.lua new file mode 100644 index 00000000..0c6a0557 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MenuItemSprite.lua @@ -0,0 +1,50 @@ + +---@class cc.MenuItemSprite :cc.MenuItem +local MenuItemSprite={ } +cc.MenuItemSprite=MenuItemSprite + + + + +---* Enables or disables the item. +---@param bEnabled boolean +---@return self +function MenuItemSprite:setEnabled (bEnabled) end +---* The item was selected (not activated), similar to "mouse-over".<br> +---* since v0.99.5 +---@return self +function MenuItemSprite:selected () end +---* Sets the image used when the item is not selected. +---@param image cc.Node +---@return self +function MenuItemSprite:setNormalImage (image) end +---* Sets the image used when the item is disabled. +---@param image cc.Node +---@return self +function MenuItemSprite:setDisabledImage (image) end +---* Initializes a menu item with a normal, selected and disabled image with a callable object. +---@param normalSprite cc.Node +---@param selectedSprite cc.Node +---@param disabledSprite cc.Node +---@param callback function +---@return boolean +function MenuItemSprite:initWithNormalSprite (normalSprite,selectedSprite,disabledSprite,callback) end +---* Sets the image used when the item is selected. +---@param image cc.Node +---@return self +function MenuItemSprite:setSelectedImage (image) end +---* Gets the image used when the item is disabled. +---@return cc.Node +function MenuItemSprite:getDisabledImage () end +---* Gets the image used when the item is selected. +---@return cc.Node +function MenuItemSprite:getSelectedImage () end +---* Gets the image used when the item is not selected. +---@return cc.Node +function MenuItemSprite:getNormalImage () end +---* The item was unselected. +---@return self +function MenuItemSprite:unselected () end +---* +---@return self +function MenuItemSprite:MenuItemSprite () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MenuItemToggle.lua b/meta/3rd/Cocos4.0/cc.MenuItemToggle.lua new file mode 100644 index 00000000..ea7b86f5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MenuItemToggle.lua @@ -0,0 +1,49 @@ + +---@class cc.MenuItemToggle :cc.MenuItem +local MenuItemToggle={ } +cc.MenuItemToggle=MenuItemToggle + + + + +---* Sets the array that contains the subitems. +---@param items array_table +---@return self +function MenuItemToggle:setSubItems (items) end +---* Initializes a menu item with a item. +---@param item cc.MenuItem +---@return boolean +function MenuItemToggle:initWithItem (item) end +---* Gets the index of the selected item. +---@return unsigned_int +function MenuItemToggle:getSelectedIndex () end +---* Add more menu item. +---@param item cc.MenuItem +---@return self +function MenuItemToggle:addSubItem (item) end +---* Return the selected item. +---@return cc.MenuItem +function MenuItemToggle:getSelectedItem () end +---* Sets the index of the selected item. +---@param index unsigned_int +---@return self +function MenuItemToggle:setSelectedIndex (index) end +---* +---@param var boolean +---@return self +function MenuItemToggle:setEnabled (var) end +---* +---@return self +function MenuItemToggle:cleanup () end +---* +---@return self +function MenuItemToggle:activate () end +---* +---@return self +function MenuItemToggle:unselected () end +---* +---@return self +function MenuItemToggle:selected () end +---* js ctor +---@return self +function MenuItemToggle:MenuItemToggle () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Mesh.lua b/meta/3rd/Cocos4.0/cc.Mesh.lua new file mode 100644 index 00000000..47959ae6 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Mesh.lua @@ -0,0 +1,84 @@ + +---@class cc.Mesh :cc.Ref +local Mesh={ } +cc.Mesh=Mesh + + + + +---* Returns the Material being used by the Mesh +---@return cc.Material +function Mesh:getMaterial () end +---* get per vertex size in bytes +---@return int +function Mesh:getVertexSizeInBytes () end +---* Sets a new ProgramState for the Mesh<br> +---* A new Material will be created for it +---@param programState cc.backend.ProgramState +---@return self +function Mesh:setProgramState (programState) end +---* Sets a new Material to the Mesh +---@param material cc.Material +---@return self +function Mesh:setMaterial (material) end +---* name getter +---@return string +function Mesh:getName () end +---* get MeshVertexAttribute by index +---@param idx int +---@return cc.MeshVertexAttrib +function Mesh:getMeshVertexAttribute (idx) end +---* calculate the AABB of the mesh<br> +---* note the AABB is in the local space, not the world space +---@return self +function Mesh:calculateAABB () end +---* +---@param renderer cc.Renderer +---@param globalZ float +---@param transform mat4_table +---@param flags unsigned_int +---@param lightMask unsigned_int +---@param color vec4_table +---@param forceDepthWrite boolean +---@return self +function Mesh:draw (renderer,globalZ,transform,flags,lightMask,color,forceDepthWrite) end +---* +---@return cc.BlendFunc +function Mesh:getBlendFunc () end +---* name setter +---@param name string +---@return self +function Mesh:setName (name) end +---* Mesh index data setter +---@param indexdata cc.MeshIndexData +---@return self +function Mesh:setMeshIndexData (indexdata) end +---* get ProgramState<br> +---* lua NA +---@return cc.backend.ProgramState +function Mesh:getProgramState () end +---* get mesh vertex attribute count +---@return int +function Mesh:getMeshVertexAttribCount () end +---* +---@param blendFunc cc.BlendFunc +---@return self +function Mesh:setBlendFunc (blendFunc) end +---* force set this Sprite3D to 2D render queue +---@param force2D boolean +---@return self +function Mesh:setForce2DQueue (force2D) end +---* skin setter +---@param skin cc.MeshSkin +---@return self +function Mesh:setSkin (skin) end +---* +---@return boolean +function Mesh:isVisible () end +---* visible getter and setter +---@param visible boolean +---@return self +function Mesh:setVisible (visible) end +---* +---@return self +function Mesh:Mesh () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MotionStreak.lua b/meta/3rd/Cocos4.0/cc.MotionStreak.lua new file mode 100644 index 00000000..3fe56254 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MotionStreak.lua @@ -0,0 +1,123 @@ + +---@class cc.MotionStreak :cc.Node@all parent class: Node,TextureProtocol +local MotionStreak={ } +cc.MotionStreak=MotionStreak + + + + +---* Remove all living segments of the ribbon. +---@return self +function MotionStreak:reset () end +---* js NA<br> +---* lua NA +---@return cc.BlendFunc +function MotionStreak:getBlendFunc () end +---* js NA<br> +---* lua NA +---@param blendFunc cc.BlendFunc +---@return self +function MotionStreak:setBlendFunc (blendFunc) end +---* Color used for the tint.<br> +---* param colors The color used for the tint. +---@param colors color3b_table +---@return self +function MotionStreak:tintWithColor (colors) end +---* +---@return cc.Texture2D +function MotionStreak:getTexture () end +---* Sets the starting position initialized or not.<br> +---* param bStartingPositionInitialized True if initialized the starting position. +---@param bStartingPositionInitialized boolean +---@return self +function MotionStreak:setStartingPositionInitialized (bStartingPositionInitialized) end +---* +---@param texture cc.Texture2D +---@return self +function MotionStreak:setTexture (texture) end +---* Is the starting position initialized or not.<br> +---* return True if the starting position is initialized. +---@return boolean +function MotionStreak:isStartingPositionInitialized () end +---* When fast mode is enabled, new points are added faster but with lower precision. <br> +---* return True if fast mode is enabled. +---@return boolean +function MotionStreak:isFastMode () end +---* Get stroke.<br> +---* return float stroke. +---@return float +function MotionStreak:getStroke () end +---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string4:cc.Texture2D):self +---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string:string):self +---@param fade float +---@param minSeg float +---@param stroke float +---@param color color3b_table +---@param path string +---@return boolean +function MotionStreak:initWithFade (fade,minSeg,stroke,color,path) end +---* Sets fast mode or not.<br> +---* param bFastMode True if enabled fast mode. +---@param bFastMode boolean +---@return self +function MotionStreak:setFastMode (bFastMode) end +---* Set stroke.<br> +---* param stroke The width of stroke. +---@param stroke float +---@return self +function MotionStreak:setStroke (stroke) end +---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string4:cc.Texture2D):self +---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string:string):self +---@param timeToFade float +---@param minSeg float +---@param strokeWidth float +---@param strokeColor color3b_table +---@param imagePath string +---@return self +function MotionStreak:create (timeToFade,minSeg,strokeWidth,strokeColor,imagePath) end +---* +---@return boolean +function MotionStreak:isOpacityModifyRGB () end +---* +---@param opacity unsigned_char +---@return self +function MotionStreak:setOpacity (opacity) end +---* +---@param y float +---@return self +function MotionStreak:setPositionY (y) end +---* +---@param x float +---@return self +function MotionStreak:setPositionX (x) end +---* +---@return float +function MotionStreak:getPositionY () end +---* +---@return float +function MotionStreak:getPositionX () end +---* +---@return vec3_table +function MotionStreak:getPosition3D () end +---* +---@param value boolean +---@return self +function MotionStreak:setOpacityModifyRGB (value) end +---* +---@return unsigned_char +function MotionStreak:getOpacity () end +---@overload fun(float:float,float:float):self +---@overload fun(float0:vec2_table):self +---@param x float +---@param y float +---@return self +function MotionStreak:setPosition (x,y) end +---@overload fun(float:float,float:float):self +---@overload fun():self +---@param x float +---@param y float +---@return self +function MotionStreak:getPosition (x,y) end +---* +---@return self +function MotionStreak:MotionStreak () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MotionStreak3D.lua b/meta/3rd/Cocos4.0/cc.MotionStreak3D.lua new file mode 100644 index 00000000..532bb807 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MotionStreak3D.lua @@ -0,0 +1,145 @@ + +---@class cc.MotionStreak3D :cc.Node@all parent class: Node,TextureProtocol +local MotionStreak3D={ } +cc.MotionStreak3D=MotionStreak3D + + + + +---* Remove all living segments of the ribbon. +---@return self +function MotionStreak3D:reset () end +---* +---@param texture cc.Texture2D +---@return self +function MotionStreak3D:setTexture (texture) end +---* +---@return cc.Texture2D +function MotionStreak3D:getTexture () end +---* Color used for the tint.<br> +---* param colors The color used for the tint. +---@param colors color3b_table +---@return self +function MotionStreak3D:tintWithColor (colors) end +---* Get the direction of sweeping line segment +---@return vec3_table +function MotionStreak3D:getSweepAxis () end +---* js NA<br> +---* lua NA +---@param blendFunc cc.BlendFunc +---@return self +function MotionStreak3D:setBlendFunc (blendFunc) end +---* Sets the starting position initialized or not.<br> +---* param bStartingPositionInitialized True if initialized the starting position. +---@param bStartingPositionInitialized boolean +---@return self +function MotionStreak3D:setStartingPositionInitialized (bStartingPositionInitialized) end +---* js NA<br> +---* lua NA +---@return cc.BlendFunc +function MotionStreak3D:getBlendFunc () end +---* Is the starting position initialized or not.<br> +---* return True if the starting position is initialized. +---@return boolean +function MotionStreak3D:isStartingPositionInitialized () end +---* Get stroke.<br> +---* return float stroke. +---@return float +function MotionStreak3D:getStroke () end +---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string4:cc.Texture2D):self +---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string:string):self +---@param fade float +---@param minSeg float +---@param stroke float +---@param color color3b_table +---@param path string +---@return boolean +function MotionStreak3D:initWithFade (fade,minSeg,stroke,color,path) end +---* Set the direction of sweeping line segment.<br> +---* param sweepAxis Direction of sweeping line segment +---@param sweepAxis vec3_table +---@return self +function MotionStreak3D:setSweepAxis (sweepAxis) end +---* Set stroke.<br> +---* param stroke The width of stroke. +---@param stroke float +---@return self +function MotionStreak3D:setStroke (stroke) end +---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string4:cc.Texture2D):self +---@overload fun(float:float,float:float,float:float,color3b_table:color3b_table,string:string):self +---@param fade float +---@param minSeg float +---@param stroke float +---@param color color3b_table +---@param path string +---@return self +function MotionStreak3D:create (fade,minSeg,stroke,color,path) end +---* js NA<br> +---* lua NA +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function MotionStreak3D:draw (renderer,transform,flags) end +---* +---@param value boolean +---@return self +function MotionStreak3D:setOpacityModifyRGB (value) end +---* +---@param y float +---@return self +function MotionStreak3D:setPositionY (y) end +---* +---@param rotation vec3_table +---@return self +function MotionStreak3D:setRotation3D (rotation) end +---* +---@param x float +---@return self +function MotionStreak3D:setPositionX (x) end +---* +---@param position vec3_table +---@return self +function MotionStreak3D:setPosition3D (position) end +---* +---@return float +function MotionStreak3D:getPositionY () end +---* +---@return float +function MotionStreak3D:getPositionX () end +---* +---@return vec3_table +function MotionStreak3D:getPosition3D () end +---* +---@param opacity unsigned_char +---@return self +function MotionStreak3D:setOpacity (opacity) end +---* lua NA +---@param delta float +---@return self +function MotionStreak3D:update (delta) end +---* +---@param quat cc.Quaternion +---@return self +function MotionStreak3D:setRotationQuat (quat) end +---* +---@return unsigned_char +function MotionStreak3D:getOpacity () end +---@overload fun(float:float,float:float):self +---@overload fun(float0:vec2_table):self +---@param x float +---@param y float +---@return self +function MotionStreak3D:setPosition (x,y) end +---@overload fun(float:float,float:float):self +---@overload fun():self +---@param x float +---@param y float +---@return self +function MotionStreak3D:getPosition (x,y) end +---* +---@return boolean +function MotionStreak3D:isOpacityModifyRGB () end +---* +---@return self +function MotionStreak3D:MotionStreak3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MoveBy.lua b/meta/3rd/Cocos4.0/cc.MoveBy.lua new file mode 100644 index 00000000..5580a534 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MoveBy.lua @@ -0,0 +1,37 @@ + +---@class cc.MoveBy :cc.ActionInterval +local MoveBy={ } +cc.MoveBy=MoveBy + + + + +---@overload fun(float:float,vec2_table1:vec3_table):self +---@overload fun(float:float,vec2_table:vec2_table):self +---@param duration float +---@param deltaPosition vec2_table +---@return boolean +function MoveBy:initWithDuration (duration,deltaPosition) end +---@overload fun(float:float,vec2_table1:vec3_table):self +---@overload fun(float:float,vec2_table:vec2_table):self +---@param duration float +---@param deltaPosition vec2_table +---@return self +function MoveBy:create (duration,deltaPosition) end +---* +---@param target cc.Node +---@return self +function MoveBy:startWithTarget (target) end +---* +---@return self +function MoveBy:clone () end +---* +---@return self +function MoveBy:reverse () end +---* param time in seconds +---@param time float +---@return self +function MoveBy:update (time) end +---* +---@return self +function MoveBy:MoveBy () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.MoveTo.lua b/meta/3rd/Cocos4.0/cc.MoveTo.lua new file mode 100644 index 00000000..1fbab1f3 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.MoveTo.lua @@ -0,0 +1,33 @@ + +---@class cc.MoveTo :cc.MoveBy +local MoveTo={ } +cc.MoveTo=MoveTo + + + + +---@overload fun(float:float,vec2_table1:vec3_table):self +---@overload fun(float:float,vec2_table:vec2_table):self +---@param duration float +---@param position vec2_table +---@return boolean +function MoveTo:initWithDuration (duration,position) end +---@overload fun(float:float,vec2_table1:vec3_table):self +---@overload fun(float:float,vec2_table:vec2_table):self +---@param duration float +---@param position vec2_table +---@return self +function MoveTo:create (duration,position) end +---* +---@param target cc.Node +---@return self +function MoveTo:startWithTarget (target) end +---* +---@return self +function MoveTo:clone () end +---* +---@return self +function MoveTo:reverse () end +---* +---@return self +function MoveTo:MoveTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.NavMesh.lua b/meta/3rd/Cocos4.0/cc.NavMesh.lua new file mode 100644 index 00000000..df75130d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.NavMesh.lua @@ -0,0 +1,49 @@ + +---@class cc.NavMesh :cc.Ref +local NavMesh={ } +cc.NavMesh=NavMesh + + + + +---* remove a obstacle from navmesh. +---@param obstacle cc.NavMeshObstacle +---@return self +function NavMesh:removeNavMeshObstacle (obstacle) end +---* remove a agent from navmesh. +---@param agent cc.NavMeshAgent +---@return self +function NavMesh:removeNavMeshAgent (agent) end +---* update navmesh. +---@param dt float +---@return self +function NavMesh:update (dt) end +---* Check enabled debug draw. +---@return boolean +function NavMesh:isDebugDrawEnabled () end +---* add a agent to navmesh. +---@param agent cc.NavMeshAgent +---@return self +function NavMesh:addNavMeshAgent (agent) end +---* add a obstacle to navmesh. +---@param obstacle cc.NavMeshObstacle +---@return self +function NavMesh:addNavMeshObstacle (obstacle) end +---* Enable debug draw or disable. +---@param enable boolean +---@return self +function NavMesh:setDebugDrawEnable (enable) end +---* Internal method, the updater of debug drawing, need called each frame. +---@param renderer cc.Renderer +---@return self +function NavMesh:debugDraw (renderer) end +---* Create navmesh<br> +---* param navFilePath The NavMesh File path.<br> +---* param geomFilePath The geometry File Path,include offmesh information,etc. +---@param navFilePath string +---@param geomFilePath string +---@return self +function NavMesh:create (navFilePath,geomFilePath) end +---* +---@return self +function NavMesh:NavMesh () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.NavMeshAgent.lua b/meta/3rd/Cocos4.0/cc.NavMeshAgent.lua new file mode 100644 index 00000000..6e4b9828 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.NavMeshAgent.lua @@ -0,0 +1,124 @@ + +---@class cc.NavMeshAgent :cc.Component +local NavMeshAgent={ } +cc.NavMeshAgent=NavMeshAgent + + + + +---* set maximal speed of agent +---@param maxSpeed float +---@return self +function NavMeshAgent:setMaxSpeed (maxSpeed) end +---* synchronize parameter to node. +---@return self +function NavMeshAgent:syncToNode () end +---* Traverse OffMeshLink manually +---@return self +function NavMeshAgent:completeOffMeshLink () end +---* get separation weight +---@return float +function NavMeshAgent:getSeparationWeight () end +---* Set automatic Traverse OffMeshLink +---@param isAuto boolean +---@return self +function NavMeshAgent:setAutoTraverseOffMeshLink (isAuto) end +---* get current velocity +---@return vec3_table +function NavMeshAgent:getCurrentVelocity () end +---* synchronize parameter to agent. +---@return self +function NavMeshAgent:syncToAgent () end +---* Check agent arrived OffMeshLink +---@return boolean +function NavMeshAgent:isOnOffMeshLink () end +---* set separation weight +---@param weight float +---@return self +function NavMeshAgent:setSeparationWeight (weight) end +---* pause movement +---@return self +function NavMeshAgent:pause () end +---* +---@return void +function NavMeshAgent:getUserData () end +---* Set automatic Orientation +---@param isAuto boolean +---@return self +function NavMeshAgent:setAutoOrientation (isAuto) end +---* get agent height +---@return float +function NavMeshAgent:getHeight () end +---* get maximal speed of agent +---@return float +function NavMeshAgent:getMaxSpeed () end +---* Get current OffMeshLink information +---@return cc.OffMeshLinkData +function NavMeshAgent:getCurrentOffMeshLinkData () end +---* get agent radius +---@return float +function NavMeshAgent:getRadius () end +---* synchronization between node and agent is time consuming, you can skip some synchronization using this function +---@param flag int +---@return self +function NavMeshAgent:setSyncFlag (flag) end +---* +---@return int +function NavMeshAgent:getSyncFlag () end +---* resume movement +---@return self +function NavMeshAgent:resume () end +---* stop movement +---@return self +function NavMeshAgent:stop () end +---* set maximal acceleration of agent +---@param maxAcceleration float +---@return self +function NavMeshAgent:setMaxAcceleration (maxAcceleration) end +---* Set the reference axes of agent's orientation<br> +---* param rotRefAxes The value of reference axes in local coordinate system. +---@param rotRefAxes vec3_table +---@return self +function NavMeshAgent:setOrientationRefAxes (rotRefAxes) end +---* get maximal acceleration of agent +---@return float +function NavMeshAgent:getMaxAcceleration () end +---* set agent height +---@param height float +---@return self +function NavMeshAgent:setHeight (height) end +---* +---@param data void +---@return self +function NavMeshAgent:setUserData (data) end +---* get obstacle avoidance type +---@return unsigned_char +function NavMeshAgent:getObstacleAvoidanceType () end +---* get current velocity +---@return vec3_table +function NavMeshAgent:getVelocity () end +---* set agent radius +---@param radius float +---@return self +function NavMeshAgent:setRadius (radius) end +---* set obstacle avoidance type +---@param type unsigned_char +---@return self +function NavMeshAgent:setObstacleAvoidanceType (type) end +---* +---@return string +function NavMeshAgent:getNavMeshAgentComponentName () end +---* Create agent<br> +---* param param The parameters of agent. +---@param param cc.NavMeshAgentParam +---@return self +function NavMeshAgent:create (param) end +---* +---@return self +function NavMeshAgent:onEnter () end +---* +---@return self +function NavMeshAgent:onExit () end +---* +---@return self +function NavMeshAgent:NavMeshAgent () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.NavMeshObstacle.lua b/meta/3rd/Cocos4.0/cc.NavMeshObstacle.lua new file mode 100644 index 00000000..ac7c2458 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.NavMeshObstacle.lua @@ -0,0 +1,51 @@ + +---@class cc.NavMeshObstacle :cc.Component +local NavMeshObstacle={ } +cc.NavMeshObstacle=NavMeshObstacle + + + + +---* +---@return int +function NavMeshObstacle:getSyncFlag () end +---* +---@param radius float +---@param height float +---@return boolean +function NavMeshObstacle:initWith (radius,height) end +---* synchronize parameter to obstacle. +---@return self +function NavMeshObstacle:syncToObstacle () end +---* synchronize parameter to node. +---@return self +function NavMeshObstacle:syncToNode () end +---* Get height of obstacle +---@return float +function NavMeshObstacle:getHeight () end +---* synchronization between node and obstacle is time consuming, you can skip some synchronization using this function +---@param flag int +---@return self +function NavMeshObstacle:setSyncFlag (flag) end +---* Get radius of obstacle +---@return float +function NavMeshObstacle:getRadius () end +---* Create obstacle, shape is cylinder<br> +---* param radius The radius of obstacle.<br> +---* param height The height of obstacle. +---@param radius float +---@param height float +---@return self +function NavMeshObstacle:create (radius,height) end +---* +---@return string +function NavMeshObstacle:getNavMeshObstacleComponentName () end +---* +---@return self +function NavMeshObstacle:onEnter () end +---* +---@return self +function NavMeshObstacle:onExit () end +---* +---@return self +function NavMeshObstacle:NavMeshObstacle () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Node.lua b/meta/3rd/Cocos4.0/cc.Node.lua new file mode 100644 index 00000000..9bfb752d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Node.lua @@ -0,0 +1,804 @@ + +---@class cc.Node :cc.Ref +local Node={ } +cc.Node=Node + + + + +---@overload fun(cc.Node:cc.Node,int:int):self +---@overload fun(cc.Node:cc.Node):self +---@overload fun(cc.Node:cc.Node,int:int,string2:int):self +---@overload fun(cc.Node:cc.Node,int:int,string:string):self +---@param child cc.Node +---@param localZOrder int +---@param name string +---@return self +function Node:addChild (child,localZOrder,name) end +---@overload fun(string0:cc.Component):self +---@overload fun(string:string):self +---@param name string +---@return boolean +function Node:removeComponent (name) end +---* +---@param physicsBody cc.PhysicsBody +---@return self +function Node:setPhysicsBody (physicsBody) end +---* Get the callback of event ExitTransitionDidStart.<br> +---* return std::function<void()> +---@return function +function Node:getOnExitTransitionDidStartCallback () end +---* Gets the description string. It makes debugging easier.<br> +---* return A string<br> +---* js NA<br> +---* lua NA +---@return string +function Node:getDescription () end +---* Sets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew.<br> +---* The difference between `setRotationalSkew()` and `setSkew()` is that the first one simulate Flash's skew functionality,<br> +---* while the second one uses the real skew function.<br> +---* 0 is the default rotation angle.<br> +---* Positive values rotate node clockwise, and negative values for anti-clockwise.<br> +---* param rotationY The Y rotation in degrees.<br> +---* warning The physics body doesn't support this.<br> +---* js setRotationY +---@param rotationY float +---@return self +function Node:setRotationSkewY (rotationY) end +---* If you want the opacity affect the color property, then set to true.<br> +---* param value A boolean value. +---@param value boolean +---@return self +function Node:setOpacityModifyRGB (value) end +---* Change node's cascadeOpacity property.<br> +---* param cascadeOpacityEnabled True to enable cascadeOpacity, false otherwise. +---@param cascadeOpacityEnabled boolean +---@return self +function Node:setCascadeOpacityEnabled (cascadeOpacityEnabled) end +---@overload fun():self +---@overload fun():self +---@return array_table +function Node:getChildren () end +---* Set the callback of event onExit.<br> +---* param callback A std::function<void()> callback. +---@param callback function +---@return self +function Node:setOnExitCallback (callback) end +---* Sets the ActionManager object that is used by all actions.<br> +---* warning If you set a new ActionManager, then previously created actions will be removed.<br> +---* param actionManager A ActionManager object that is used by all actions. +---@param actionManager cc.ActionManager +---@return self +function Node:setActionManager (actionManager) end +---* Converts a local Vec2 to world space coordinates.The result is in Points.<br> +---* treating the returned/received node point as anchor relative.<br> +---* param nodePoint A given coordinate.<br> +---* return A point in world space coordinates, anchor relative. +---@param nodePoint vec2_table +---@return vec2_table +function Node:convertToWorldSpaceAR (nodePoint) end +---* Gets whether the anchor point will be (0,0) when you position this node.<br> +---* see `setIgnoreAnchorPointForPosition(bool)`<br> +---* return true if the anchor point will be (0,0) when you position this node. +---@return boolean +function Node:isIgnoreAnchorPointForPosition () end +---* Gets a child from the container with its name.<br> +---* param name An identifier to find the child node.<br> +---* return a Node object whose name equals to the input parameter.<br> +---* since v3.2 +---@param name string +---@return self +function Node:getChildByName (name) end +---* Update the displayed opacity of node with it's parent opacity;<br> +---* param parentOpacity The opacity of parent node. +---@param parentOpacity unsigned_char +---@return self +function Node:updateDisplayedOpacity (parentOpacity) end +---* +---@return boolean +function Node:init () end +---* get & set camera mask, the node is visible by the camera whose camera flag & node's camera mask is true +---@return unsigned short +function Node:getCameraMask () end +---* Sets the rotation (angle) of the node in degrees.<br> +---* 0 is the default rotation angle.<br> +---* Positive values rotate node clockwise, and negative values for anti-clockwise.<br> +---* param rotation The rotation of the node in degrees. +---@param rotation float +---@return self +function Node:setRotation (rotation) end +---* Changes the scale factor on Z axis of this node<br> +---* The Default value is 1.0 if you haven't changed it before.<br> +---* param scaleZ The scale factor on Z axis.<br> +---* warning The physics body doesn't support this. +---@param scaleZ float +---@return self +function Node:setScaleZ (scaleZ) end +---* Sets the scale (y) of the node.<br> +---* It is a scaling factor that multiplies the height of the node and its children.<br> +---* param scaleY The scale factor on Y axis.<br> +---* warning The physics body doesn't support this. +---@param scaleY float +---@return self +function Node:setScaleY (scaleY) end +---* Sets the scale (x) of the node.<br> +---* It is a scaling factor that multiplies the width of the node and its children.<br> +---* param scaleX The scale factor on X axis.<br> +---* warning The physics body doesn't support this. +---@param scaleX float +---@return self +function Node:setScaleX (scaleX) end +---* Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.<br> +---* The difference between `setRotationalSkew()` and `setSkew()` is that the first one simulate Flash's skew functionality,<br> +---* while the second one uses the real skew function.<br> +---* 0 is the default rotation angle.<br> +---* Positive values rotate node clockwise, and negative values for anti-clockwise.<br> +---* param rotationX The X rotation in degrees which performs a horizontal rotational skew.<br> +---* warning The physics body doesn't support this.<br> +---* js setRotationX +---@param rotationX float +---@return self +function Node:setRotationSkewX (rotationX) end +---* Removes all components +---@return self +function Node:removeAllComponents () end +---* +---@param z int +---@return self +function Node:_setLocalZOrder (z) end +---* Modify the camera mask for current node.<br> +---* If applyChildren is true, then it will modify the camera mask of its children recursively.<br> +---* param mask A unsigned short bit for mask.<br> +---* param applyChildren A boolean value to determine whether the mask bit should apply to its children or not. +---@param mask unsigned short +---@param applyChildren boolean +---@return self +function Node:setCameraMask (mask,applyChildren) end +---* Returns a tag that is used to identify the node easily.<br> +---* return An integer that identifies the node.<br> +---* Please use `getTag()` instead. +---@return int +function Node:getTag () end +---* +---@return cc.AffineTransform +function Node:getNodeToWorldAffineTransform () end +---* Returns the world affine transform matrix. The matrix is in Pixels.<br> +---* return transformation matrix, in pixels. +---@return mat4_table +function Node:getNodeToWorldTransform () end +---* Returns the position (X,Y,Z) in its parent's coordinate system.<br> +---* return The position (X, Y, and Z) in its parent's coordinate system.<br> +---* js NA +---@return vec3_table +function Node:getPosition3D () end +---* Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter.<br> +---* param child The child node which will be removed.<br> +---* param cleanup True if all running actions and callbacks on the child node will be cleanup, false otherwise. +---@param child cc.Node +---@param cleanup boolean +---@return self +function Node:removeChild (child,cleanup) end +---* Converts a Vec2 to world space coordinates. The result is in Points.<br> +---* param nodePoint A given coordinate.<br> +---* return A point in world space coordinates. +---@param nodePoint vec2_table +---@return vec2_table +function Node:convertToWorldSpace (nodePoint) end +---* Returns the Scene that contains the Node.<br> +---* It returns `nullptr` if the node doesn't belong to any Scene.<br> +---* This function recursively calls parent->getScene() until parent is a Scene object. The results are not cached. It is that the user caches the results in case this functions is being used inside a loop.<br> +---* return The Scene that contains the node. +---@return cc.Scene +function Node:getScene () end +---* Get the event dispatcher of scene.<br> +---* return The event dispatcher of scene. +---@return cc.EventDispatcher +function Node:getEventDispatcher () end +---* Changes the X skew angle of the node in degrees.<br> +---* The difference between `setRotationalSkew()` and `setSkew()` is that the first one simulate Flash's skew functionality<br> +---* while the second one uses the real skew function.<br> +---* This angle describes the shear distortion in the X direction.<br> +---* Thus, it is the angle between the Y coordinate and the left edge of the shape<br> +---* The default skewX angle is 0. Positive values distort the node in a CW direction.<br> +---* param skewX The X skew angle of the node in degrees.<br> +---* warning The physics body doesn't support this. +---@param skewX float +---@return self +function Node:setSkewX (skewX) end +---* Changes the Y skew angle of the node in degrees.<br> +---* The difference between `setRotationalSkew()` and `setSkew()` is that the first one simulate Flash's skew functionality<br> +---* while the second one uses the real skew function.<br> +---* This angle describes the shear distortion in the Y direction.<br> +---* Thus, it is the angle between the X coordinate and the bottom edge of the shape.<br> +---* The default skewY angle is 0. Positive values distort the node in a CCW direction.<br> +---* param skewY The Y skew angle of the node in degrees.<br> +---* warning The physics body doesn't support this. +---@param skewY float +---@return self +function Node:setSkewY (skewY) end +---* Set the callback of event onEnter.<br> +---* param callback A std::function<void()> callback. +---@param callback function +---@return self +function Node:setOnEnterCallback (callback) end +---* Removes all actions from the running action list by its flags.<br> +---* param flags A flag field that removes actions based on bitwise AND. +---@param flags unsigned_int +---@return self +function Node:stopActionsByFlags (flags) end +---* +---@param position vec2_table +---@return self +function Node:setNormalizedPosition (position) end +---* convenience methods which take a Touch instead of Vec2.<br> +---* param touch A given touch.<br> +---* return A point in world space coordinates. +---@param touch cc.Touch +---@return vec2_table +function Node:convertTouchToNodeSpace (touch) end +---@overload fun(boolean:boolean):self +---@overload fun():self +---@param cleanup boolean +---@return self +function Node:removeAllChildrenWithCleanup (cleanup) end +---* Set the callback of event EnterTransitionDidFinish.<br> +---* param callback A std::function<void()> callback. +---@param callback function +---@return self +function Node:setOnEnterTransitionDidFinishCallback (callback) end +---* +---@param programState cc.backend.ProgramState +---@return self +function Node:setProgramState (programState) end +---@overload fun(cc.Node:cc.Node):self +---@overload fun():self +---@param ancestor cc.Node +---@return cc.AffineTransform +function Node:getNodeToParentAffineTransform (ancestor) end +---* Whether cascadeOpacity is enabled or not.<br> +---* return A boolean value. +---@return boolean +function Node:isCascadeOpacityEnabled () end +---* Sets the parent node.<br> +---* param parent A pointer to the parent node. +---@param parent cc.Node +---@return self +function Node:setParent (parent) end +---* Returns a string that is used to identify the node.<br> +---* return A string that identifies the node.<br> +---* since v3.2 +---@return string +function Node:getName () end +---* Resumes all scheduled selectors, actions and event listeners.<br> +---* This method is called internally by onEnter. +---@return self +function Node:resume () end +---* Returns the rotation (X,Y,Z) in degrees.<br> +---* return The rotation of the node in 3d.<br> +---* js NA +---@return vec3_table +function Node:getRotation3D () end +---@overload fun(cc.Node:cc.Node):self +---@overload fun():self +---@param ancestor cc.Node +---@return mat4_table +function Node:getNodeToParentTransform (ancestor) end +---* converts a Touch (world coordinates) into a local coordinate. This method is AR (Anchor Relative).<br> +---* param touch A given touch.<br> +---* return A point in world space coordinates, anchor relative. +---@param touch cc.Touch +---@return vec2_table +function Node:convertTouchToNodeSpaceAR (touch) end +---* Converts a Vec2 to node (local) space coordinates. The result is in Points.<br> +---* param worldPoint A given coordinate.<br> +---* return A point in node (local) space coordinates. +---@param worldPoint vec2_table +---@return vec2_table +function Node:convertToNodeSpace (worldPoint) end +---* Sets the position (x,y) using values between 0 and 1.<br> +---* The positions in pixels is calculated like the following:<br> +---* code pseudo code<br> +---* void setNormalizedPosition(Vec2 pos) {<br> +---* Size s = getParent()->getContentSize();<br> +---* _position = pos * s;<br> +---* }<br> +---* endcode<br> +---* param position The normalized position (x,y) of the node, using value between 0 and 1. +---@param position vec2_table +---@return self +function Node:setPositionNormalized (position) end +---* Pauses all scheduled selectors, actions and event listeners.<br> +---* This method is called internally by onExit. +---@return self +function Node:pause () end +---* If node opacity will modify the RGB color value, then you should override this method and return true.<br> +---* return A boolean value, true indicates that opacity will modify color; false otherwise. +---@return boolean +function Node:isOpacityModifyRGB () end +---@overload fun(float:float,float:float):self +---@overload fun(float0:vec2_table):self +---@param x float +---@param y float +---@return self +function Node:setPosition (x,y) end +---* Removes an action from the running action list by its tag.<br> +---* param tag A tag that indicates the action to be removed. +---@param tag int +---@return self +function Node:stopActionByTag (tag) end +---* Reorders a child according to a new z value.<br> +---* param child An already added child node. It MUST be already added.<br> +---* param localZOrder Z order for drawing priority. Please refer to setLocalZOrder(int). +---@param child cc.Node +---@param localZOrder int +---@return self +function Node:reorderChild (child,localZOrder) end +---* Sets the 'z' coordinate in the position. It is the OpenGL Z vertex value.<br> +---* The OpenGL depth buffer and depth testing are disabled by default. You need to turn them on.<br> +---* In order to use this property correctly.<br> +---* `setPositionZ()` also sets the `setGlobalZValue()` with the positionZ as value.<br> +---* see `setGlobalZValue()`<br> +---* param positionZ OpenGL Z vertex of this node.<br> +---* js setVertexZ +---@param positionZ float +---@return self +function Node:setPositionZ (positionZ) end +---* Sets the rotation (X,Y,Z) in degrees.<br> +---* Useful for 3d rotations.<br> +---* warning The physics body doesn't support this.<br> +---* param rotation The rotation of the node in 3d.<br> +---* js NA +---@param rotation vec3_table +---@return self +function Node:setRotation3D (rotation) end +---* Gets/Sets x or y coordinate individually for position.<br> +---* These methods are used in Lua and Javascript Bindings<br> +---* Sets the x coordinate of the node in its parent's coordinate system.<br> +---* param x The x coordinate of the node. +---@param x float +---@return self +function Node:setPositionX (x) end +---* Sets the transformation matrix manually.<br> +---* param transform A given transformation matrix. +---@param transform mat4_table +---@return self +function Node:setNodeToParentTransform (transform) end +---* Returns the anchor point in percent.<br> +---* see `setAnchorPoint(const Vec2&)`<br> +---* return The anchor point of node. +---@return vec2_table +function Node:getAnchorPoint () end +---* Returns the numbers of actions that are running plus the ones that are schedule to run (actions in actionsToAdd and actions arrays).<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> +---* return The number of actions that are running plus the ones that are schedule to run. +---@return int +function Node:getNumberOfRunningActions () end +---* Calls children's updateTransform() method recursively.<br> +---* This method is moved from Sprite, so it's no longer specific to Sprite.<br> +---* As the result, you apply SpriteBatchNode's optimization on your customed Node.<br> +---* e.g., `batchNode->addChild(myCustomNode)`, while you can only addChild(sprite) before. +---@return self +function Node:updateTransform () end +---* Determines if the node is visible.<br> +---* see `setVisible(bool)`<br> +---* return true if the node is visible, false if the node is hidden. +---@return boolean +function Node:isVisible () end +---* Returns the amount of children.<br> +---* return The amount of children. +---@return int +function Node:getChildrenCount () end +---* Converts a Vec2 to node (local) space coordinates. The result is in Points.<br> +---* treating the returned/received node point as anchor relative.<br> +---* param worldPoint A given coordinate.<br> +---* return A point in node (local) space coordinates, anchor relative. +---@param worldPoint vec2_table +---@return vec2_table +function Node:convertToNodeSpaceAR (worldPoint) end +---* Adds a component.<br> +---* param component A given component.<br> +---* return True if added success. +---@param component cc.Component +---@return boolean +function Node:addComponent (component) end +---* Executes an action, and returns the action that is executed.<br> +---* This node becomes the action's target. Refer to Action::getTarget().<br> +---* warning Actions don't retain their target.<br> +---* param action An Action pointer. +---@param action cc.Action +---@return cc.Action +function Node:runAction (action) end +---@overload fun():self +---@overload fun(cc.Renderer:cc.Renderer,mat4_table:mat4_table,unsigned_int:unsigned_int):self +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function Node:visit (renderer,parentTransform,parentFlags) end +---* Returns the rotation of the node in degrees.<br> +---* see `setRotation(float)`<br> +---* return The rotation of the node in degrees. +---@return float +function Node:getRotation () end +---* +---@return cc.PhysicsBody +function Node:getPhysicsBody () end +---* Returns the anchorPoint in absolute pixels.<br> +---* warning You can only read it. If you wish to modify it, use anchorPoint instead.<br> +---* see `getAnchorPoint()`<br> +---* return The anchor point in absolute pixels. +---@return vec2_table +function Node:getAnchorPointInPoints () end +---* Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter.<br> +---* param name A string that identifies a child node.<br> +---* param cleanup True if all running actions and callbacks on the child node will be cleanup, false otherwise. +---@param name string +---@param cleanup boolean +---@return self +function Node:removeChildByName (name,cleanup) end +---* Sets a Scheduler object that is used to schedule all "updates" and timers.<br> +---* warning If you set a new Scheduler, then previously created timers/update are going to be removed.<br> +---* param scheduler A Scheduler object that is used to schedule all "update" and timers. +---@param scheduler cc.Scheduler +---@return self +function Node:setScheduler (scheduler) end +---* Stops and removes all actions from the running action list . +---@return self +function Node:stopAllActions () end +---* Returns the X skew angle of the node in degrees.<br> +---* see `setSkewX(float)`<br> +---* return The X skew angle of the node in degrees. +---@return float +function Node:getSkewX () end +---* Returns the Y skew angle of the node in degrees.<br> +---* see `setSkewY(float)`<br> +---* return The Y skew angle of the node in degrees. +---@return float +function Node:getSkewY () end +---* Get the callback of event EnterTransitionDidFinish.<br> +---* return std::function<void()> +---@return function +function Node:getOnEnterTransitionDidFinishCallback () end +---* Query node's displayed color.<br> +---* return A Color3B color value. +---@return color3b_table +function Node:getDisplayedColor () end +---* Gets an action from the running action list by its tag.<br> +---* see `setTag(int)`, `getTag()`.<br> +---* return The action object with the given tag. +---@param tag int +---@return cc.Action +function Node:getActionByTag (tag) end +---* Changes the name that is used to identify the node easily.<br> +---* param name A string that identifies the node.<br> +---* since v3.2 +---@param name string +---@return self +function Node:setName (name) end +---* Update method will be called automatically every frame if "scheduleUpdate" is called, and the node is "live".<br> +---* param delta In seconds. +---@param delta float +---@return self +function Node:update (delta) end +---* Return the node's display opacity.<br> +---* The difference between opacity and displayedOpacity is:<br> +---* The displayedOpacity is what's the final rendering opacity of node.<br> +---* return A GLubyte value. +---@return unsigned_char +function Node:getDisplayedOpacity () end +---* Gets the local Z order of this node.<br> +---* see `setLocalZOrder(int)`<br> +---* return The local (relative to its siblings) Z order. +---@return int +function Node:getLocalZOrder () end +---@overload fun():self +---@overload fun():self +---@return cc.Scheduler +function Node:getScheduler () end +---* +---@return cc.AffineTransform +function Node:getParentToNodeAffineTransform () end +---* Returns the normalized position.<br> +---* return The normalized position. +---@return vec2_table +function Node:getPositionNormalized () end +---* Change the color of node.<br> +---* param color A Color3B color value. +---@param color color3b_table +---@return self +function Node:setColor (color) end +---* Returns whether or not the node is "running".<br> +---* If the node is running it will accept event callbacks like onEnter(), onExit(), update().<br> +---* return Whether or not the node is running. +---@return boolean +function Node:isRunning () end +---@overload fun():self +---@overload fun():self +---@return self +function Node:getParent () end +---* Gets position Z coordinate of this node.<br> +---* see setPositionZ(float)<br> +---* return The position Z coordinate of this node.<br> +---* js getVertexZ +---@return float +function Node:getPositionZ () end +---* Gets the y coordinate of the node in its parent's coordinate system.<br> +---* return The y coordinate of the node. +---@return float +function Node:getPositionY () end +---* Gets the x coordinate of the node in its parent's coordinate system.<br> +---* return The x coordinate of the node. +---@return float +function Node:getPositionX () end +---* Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter.<br> +---* param tag An integer number that identifies a child node.<br> +---* param cleanup True if all running actions and callbacks on the child node will be cleanup, false otherwise.<br> +---* Please use `removeChildByName` instead. +---@param tag int +---@param cleanup boolean +---@return self +function Node:removeChildByTag (tag,cleanup) end +---* Sets the y coordinate of the node in its parent's coordinate system.<br> +---* param y The y coordinate of the node. +---@param y float +---@return self +function Node:setPositionY (y) end +---* Update node's displayed color with its parent color.<br> +---* param parentColor A Color3B color value. +---@param parentColor color3b_table +---@return self +function Node:updateDisplayedColor (parentColor) end +---* Sets whether the node is visible.<br> +---* The default value is true, a node is default to visible.<br> +---* param visible true if the node is visible, false if the node is hidden. +---@param visible boolean +---@return self +function Node:setVisible (visible) end +---* Returns the matrix that transform parent's space coordinates to the node's (local) space coordinates.<br> +---* The matrix is in Pixels.<br> +---* return The transformation matrix. +---@return mat4_table +function Node:getParentToNodeTransform () end +---* Checks whether a lambda function is scheduled.<br> +---* param key key of the callback<br> +---* return Whether the lambda function selector is scheduled.<br> +---* js NA<br> +---* lua NA +---@param key string +---@return boolean +function Node:isScheduled (key) end +---* Defines the order in which the nodes are renderer.<br> +---* Nodes that have a Global Z Order lower, are renderer first.<br> +---* In case two or more nodes have the same Global Z Order, the order is not guaranteed.<br> +---* The only exception if the Nodes have a Global Z Order == 0. In that case, the Scene Graph order is used.<br> +---* By default, all nodes have a Global Z Order = 0. That means that by default, the Scene Graph order is used to render the nodes.<br> +---* Global Z Order is useful when you need to render nodes in an order different than the Scene Graph order.<br> +---* Limitations: Global Z Order can't be used by Nodes that have SpriteBatchNode as one of their ancestors.<br> +---* And if ClippingNode is one of the ancestors, then "global Z order" will be relative to the ClippingNode.<br> +---* see `setLocalZOrder()`<br> +---* see `setVertexZ()`<br> +---* since v3.0<br> +---* param globalZOrder The global Z order value. +---@param globalZOrder float +---@return self +function Node:setGlobalZOrder (globalZOrder) end +---@overload fun(float:float,float:float):self +---@overload fun(float:float):self +---@param scaleX float +---@param scaleY float +---@return self +function Node:setScale (scaleX,scaleY) end +---* Gets a child from the container with its tag.<br> +---* param tag An identifier to find the child node.<br> +---* return a Node object whose tag equals to the input parameter.<br> +---* Please use `getChildByName()` instead. +---@param tag int +---@return self +function Node:getChildByTag (tag) end +---* Returns the scale factor on Z axis of this node<br> +---* see `setScaleZ(float)`<br> +---* return The scale factor on Z axis. +---@return float +function Node:getScaleZ () end +---* Returns the scale factor on Y axis of this node<br> +---* see `setScaleY(float)`<br> +---* return The scale factor on Y axis. +---@return float +function Node:getScaleY () end +---* Returns the scale factor on X axis of this node<br> +---* see setScaleX(float)<br> +---* return The scale factor on X axis. +---@return float +function Node:getScaleX () end +---* LocalZOrder is the 'key' used to sort the node relative to its siblings.<br> +---* The Node's parent will sort all its children based on the LocalZOrder value.<br> +---* If two nodes have the same LocalZOrder, then the node that was added first to the children's array will be in front of the other node in the array.<br> +---* Also, the Scene Graph is traversed using the "In-Order" tree traversal algorithm ( http:en.wikipedia.org/wiki/Tree_traversal#In-order )<br> +---* And Nodes that have LocalZOrder values < 0 are the "left" subtree<br> +---* While Nodes with LocalZOrder >=0 are the "right" subtree.<br> +---* see `setGlobalZOrder`<br> +---* see `setVertexZ`<br> +---* param localZOrder The local Z order value. +---@param localZOrder int +---@return self +function Node:setLocalZOrder (localZOrder) end +---* +---@return cc.AffineTransform +function Node:getWorldToNodeAffineTransform () end +---* If you want node's color affect the children node's color, then set it to true.<br> +---* Otherwise, set it to false.<br> +---* param cascadeColorEnabled A boolean value. +---@param cascadeColorEnabled boolean +---@return self +function Node:setCascadeColorEnabled (cascadeColorEnabled) end +---* Change node opacity.<br> +---* param opacity A GLubyte opacity value. +---@param opacity unsigned_char +---@return self +function Node:setOpacity (opacity) end +---* Stops all running actions and schedulers +---@return self +function Node:cleanup () end +---* / @{/ @name component functions<br> +---* Gets a component by its name.<br> +---* param name A given name of component.<br> +---* return The Component by name. +---@param name string +---@return cc.Component +function Node:getComponent (name) end +---* Returns the untransformed size of the node.<br> +---* see `setContentSize(const Size&)`<br> +---* return The untransformed size of the node. +---@return size_table +function Node:getContentSize () end +---* Removes all actions from the running action list by its tag.<br> +---* param tag A tag that indicates the action to be removed. +---@param tag int +---@return self +function Node:stopAllActionsByTag (tag) end +---* Query node's color value.<br> +---* return A Color3B color value. +---@return color3b_table +function Node:getColor () end +---* Returns an AABB (axis-aligned bounding-box) in its parent's coordinate system.<br> +---* return An AABB (axis-aligned bounding-box) in its parent's coordinate system +---@return rect_table +function Node:getBoundingBox () end +---* Sets whether the anchor point will be (0,0) when you position this node.<br> +---* This is an internal method, only used by Layer and Scene. Don't call it outside framework.<br> +---* The default value is false, while in Layer and Scene are true.<br> +---* param ignore true if anchor point will be (0,0) when you position this node. +---@param ignore boolean +---@return self +function Node:setIgnoreAnchorPointForPosition (ignore) end +---* Set event dispatcher for scene.<br> +---* param dispatcher The event dispatcher of scene. +---@param dispatcher cc.EventDispatcher +---@return self +function Node:setEventDispatcher (dispatcher) end +---* Returns the Node's Global Z Order.<br> +---* see `setGlobalZOrder(int)`<br> +---* return The node's global Z order +---@return float +function Node:getGlobalZOrder () end +---@overload fun():self +---@overload fun(cc.Renderer:cc.Renderer,mat4_table:mat4_table,unsigned_int:unsigned_int):self +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function Node:draw (renderer,transform,flags) end +---* Returns a user assigned Object.<br> +---* Similar to UserData, but instead of holding a void* it holds an object.<br> +---* The UserObject will be retained once in this method,<br> +---* and the previous UserObject (if existed) will be released.<br> +---* The UserObject will be released in Node's destructor.<br> +---* param userObject A user assigned Object. +---@param userObject cc.Ref +---@return self +function Node:setUserObject (userObject) end +---@overload fun(boolean:boolean):self +---@overload fun():self +---@param cleanup boolean +---@return self +function Node:removeFromParentAndCleanup (cleanup) end +---* Sets the position (X, Y, and Z) in its parent's coordinate system.<br> +---* param position The position (X, Y, and Z) in its parent's coordinate system.<br> +---* js NA +---@param position vec3_table +---@return self +function Node:setPosition3D (position) end +---* Returns the numbers of actions that are running plus the ones that are<br> +---* schedule to run (actions in actionsToAdd and actions arrays) with a<br> +---* specific tag.<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 tag The tag that will be searched.<br> +---* return The number of actions that are running plus the<br> +---* ones that are schedule to run with specific tag. +---@param tag int +---@return int +function Node:getNumberOfRunningActionsByTag (tag) end +---* Sorts the children array once before drawing, instead of every time when a child is added or reordered.<br> +---* This approach can improve the performance massively.<br> +---* note Don't call this manually unless a child added needs to be removed in the same frame. +---@return self +function Node:sortAllChildren () end +---* +---@return cc.backend.ProgramState +function Node:getProgramState () end +---* Returns the inverse world affine transform matrix. The matrix is in Pixels.<br> +---* return The transformation matrix. +---@return mat4_table +function Node:getWorldToNodeTransform () end +---* Gets the scale factor of the node, when X and Y have the same scale factor.<br> +---* warning Assert when `_scaleX != _scaleY`<br> +---* see setScale(float)<br> +---* return The scale factor of the node. +---@return float +function Node:getScale () end +---* Return the node's opacity.<br> +---* return A GLubyte value. +---@return unsigned_char +function Node:getOpacity () end +---* !!! ONLY FOR INTERNAL USE<br> +---* Sets the arrival order when this node has a same ZOrder with other children.<br> +---* A node which called addChild subsequently will take a larger arrival order,<br> +---* If two children have the same Z order, the child with larger arrival order will be drawn later.<br> +---* warning This method is used internally for localZOrder sorting, don't change this manually<br> +---* param orderOfArrival The arrival order. +---@return self +function Node:updateOrderOfArrival () end +---* +---@return vec2_table +function Node:getNormalizedPosition () end +---* Set the callback of event ExitTransitionDidStart.<br> +---* param callback A std::function<void()> callback. +---@param callback function +---@return self +function Node:setOnExitTransitionDidStartCallback (callback) end +---* Gets the X rotation (angle) of the node in degrees which performs a horizontal rotation skew.<br> +---* see `setRotationSkewX(float)`<br> +---* return The X rotation in degrees.<br> +---* js getRotationX +---@return float +function Node:getRotationSkewX () end +---* Gets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew.<br> +---* see `setRotationSkewY(float)`<br> +---* return The Y rotation in degrees.<br> +---* js getRotationY +---@return float +function Node:getRotationSkewY () end +---* Changes the tag that is used to identify the node easily.<br> +---* Please refer to getTag for the sample code.<br> +---* param tag A integer that identifies the node.<br> +---* Please use `setName()` instead. +---@param tag int +---@return self +function Node:setTag (tag) end +---* Query whether cascadeColor is enabled or not.<br> +---* return Whether cascadeColor is enabled or not. +---@return boolean +function Node:isCascadeColorEnabled () end +---* Stops and removes an action from the running action list.<br> +---* param action The action object to be removed. +---@param action cc.Action +---@return self +function Node:stopAction (action) end +---@overload fun():cc.ActionManager +---@overload fun():cc.ActionManager +---@return cc.ActionManager +function Node:getActionManager () end +---* Allocates and initializes a node.<br> +---* return A initialized node which is marked as "autorelease". +---@return self +function Node:create () end +---* Gets count of nodes those are attached to scene graph. +---@return int +function Node:getAttachedNodeCount () end +---* +---@return self +function Node:Node () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.NodeGrid.lua b/meta/3rd/Cocos4.0/cc.NodeGrid.lua new file mode 100644 index 00000000..7f0796e5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.NodeGrid.lua @@ -0,0 +1,45 @@ + +---@class cc.NodeGrid :cc.Node +local NodeGrid={ } +cc.NodeGrid=NodeGrid + + + + +---* brief Set the effect grid rect.<br> +---* param gridRect The effect grid rect. +---@param gridRect rect_table +---@return self +function NodeGrid:setGridRect (gridRect) end +---* Set the Grid Target. <br> +---* param target A Node is used to set the Grid Target. +---@param target cc.Node +---@return self +function NodeGrid:setTarget (target) end +---* Changes a grid object that is used when applying effects.<br> +---* param grid A Grid object that is used when applying effects. +---@param grid cc.GridBase +---@return self +function NodeGrid:setGrid (grid) end +---@overload fun():cc.GridBase +---@overload fun():cc.GridBase +---@return cc.GridBase +function NodeGrid:getGrid () end +---* brief Get the effect grid rect.<br> +---* return Return the effect grid rect. +---@return rect_table +function NodeGrid:getGridRect () end +---@overload fun(rect_table:rect_table):self +---@overload fun():self +---@param rect rect_table +---@return self +function NodeGrid:create (rect) end +---* +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function NodeGrid:visit (renderer,parentTransform,parentFlags) end +---* +---@return self +function NodeGrid:NodeGrid () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.OrbitCamera.lua b/meta/3rd/Cocos4.0/cc.OrbitCamera.lua new file mode 100644 index 00000000..30366081 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.OrbitCamera.lua @@ -0,0 +1,50 @@ + +---@class cc.OrbitCamera :cc.ActionCamera +local OrbitCamera={ } +cc.OrbitCamera=OrbitCamera + + + + +---* Initializes a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX. +---@param t float +---@param radius float +---@param deltaRadius float +---@param angleZ float +---@param deltaAngleZ float +---@param angleX float +---@param deltaAngleX float +---@return boolean +function OrbitCamera:initWithDuration (t,radius,deltaRadius,angleZ,deltaAngleZ,angleX,deltaAngleX) end +---* Creates a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX. <br> +---* param t Duration in seconds.<br> +---* param radius The start radius.<br> +---* param deltaRadius The delta radius.<br> +---* param angleZ The start angle in Z.<br> +---* param deltaAngleZ The delta angle in Z.<br> +---* param angleX The start angle in X.<br> +---* param deltaAngleX The delta angle in X.<br> +---* return An OrbitCamera. +---@param t float +---@param radius float +---@param deltaRadius float +---@param angleZ float +---@param deltaAngleZ float +---@param angleX float +---@param deltaAngleX float +---@return self +function OrbitCamera:create (t,radius,deltaRadius,angleZ,deltaAngleZ,angleX,deltaAngleX) end +---* +---@param target cc.Node +---@return self +function OrbitCamera:startWithTarget (target) end +---* +---@return self +function OrbitCamera:clone () end +---* +---@param time float +---@return self +function OrbitCamera:update (time) end +---* js ctor +---@return self +function OrbitCamera:OrbitCamera () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PUParticleSystem3D.lua b/meta/3rd/Cocos4.0/cc.PUParticleSystem3D.lua new file mode 100644 index 00000000..935b3828 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PUParticleSystem3D.lua @@ -0,0 +1,194 @@ + +---@class cc.PUParticleSystem3D :cc.ParticleSystem3D +local PUParticleSystem3D={ } +cc.PUParticleSystem3D=PUParticleSystem3D + + + + +---* +---@param filePath string +---@return boolean +function PUParticleSystem3D:initWithFilePath (filePath) end +---* Returns the velocity scale, defined in the particle system, but passed to the technique for convenience. +---@return float +function PUParticleSystem3D:getParticleSystemScaleVelocity () end +---* +---@param quota unsigned_int +---@return self +function PUParticleSystem3D:setEmittedSystemQuota (quota) end +---* default particle depth +---@return float +function PUParticleSystem3D:getDefaultDepth () end +---* +---@return unsigned_int +function PUParticleSystem3D:getEmittedSystemQuota () end +---* +---@param filePath string +---@param materialPath string +---@return boolean +function PUParticleSystem3D:initWithFilePathAndMaterialPath (filePath,materialPath) end +---* +---@return self +function PUParticleSystem3D:clearAllParticles () end +---* +---@return string +function PUParticleSystem3D:getMaterialName () end +---* +---@return self +function PUParticleSystem3D:calulateRotationOffset () end +---* Return the maximum velocity a particle can have, even if the velocity of the particle has been set higher (either by initialisation of the particle or by means of an affector). +---@return float +function PUParticleSystem3D:getMaxVelocity () end +---* +---@param delta float +---@return self +function PUParticleSystem3D:forceUpdate (delta) end +---* +---@return float +function PUParticleSystem3D:getTimeElapsedSinceStart () end +---* +---@return self +function PUParticleSystem3D:removeAllBehaviourTemplate () end +---* +---@return unsigned_int +function PUParticleSystem3D:getEmittedEmitterQuota () end +---* Forces emission of particles.<br> +---* remarks The number of requested particles are the exact number that are emitted. No down-scaling is applied. +---@param emitter cc.PUEmitter +---@param requested unsigned_int +---@return self +function PUParticleSystem3D:forceEmission (emitter,requested) end +---* +---@param listener cc.PUListener +---@return self +function PUParticleSystem3D:addListener (listener) end +---* +---@return boolean +function PUParticleSystem3D:isMarkedForEmission () end +---* default particle width +---@return float +function PUParticleSystem3D:getDefaultWidth () end +---* +---@param quota unsigned_int +---@return self +function PUParticleSystem3D:setEmittedEmitterQuota (quota) end +---* +---@param isMarked boolean +---@return self +function PUParticleSystem3D:setMarkedForEmission (isMarked) end +---* +---@return self +function PUParticleSystem3D:clone () end +---* add particle affector +---@param emitter cc.PUEmitter +---@return self +function PUParticleSystem3D:addEmitter (emitter) end +---* +---@param behaviour cc.PUBehaviour +---@return self +function PUParticleSystem3D:addBehaviourTemplate (behaviour) end +---* +---@param width float +---@return self +function PUParticleSystem3D:setDefaultWidth (width) end +---* +---@param system cc.PUParticleSystem3D +---@return self +function PUParticleSystem3D:copyAttributesTo (system) end +---* +---@param name string +---@return self +function PUParticleSystem3D:setMaterialName (name) end +---* +---@return self +function PUParticleSystem3D:getParentParticleSystem () end +---* +---@param listener cc.PUListener +---@return self +function PUParticleSystem3D:removeListener (listener) end +---* Set the maximum velocity a particle can have. +---@param maxVelocity float +---@return self +function PUParticleSystem3D:setMaxVelocity (maxVelocity) end +---* default particle height +---@return float +function PUParticleSystem3D:getDefaultHeight () end +---* +---@return vec3_table +function PUParticleSystem3D:getDerivedPosition () end +---* If the orientation of the particle system has been changed since the last update, the passed vector is rotated accordingly. +---@param pos vec3_table +---@return self +function PUParticleSystem3D:rotationOffset (pos) end +---* +---@return self +function PUParticleSystem3D:removeAllEmitter () end +---* +---@param scaleVelocity float +---@return self +function PUParticleSystem3D:setParticleSystemScaleVelocity (scaleVelocity) end +---* +---@return vec3_table +function PUParticleSystem3D:getDerivedScale () end +---* +---@param height float +---@return self +function PUParticleSystem3D:setDefaultHeight (height) end +---* +---@return self +function PUParticleSystem3D:removeAllListener () end +---* +---@param filePath string +---@return boolean +function PUParticleSystem3D:initSystem (filePath) end +---* +---@param particle cc.PUParticle3D +---@return boolean +function PUParticleSystem3D:makeParticleLocal (particle) end +---* +---@return self +function PUParticleSystem3D:removerAllObserver () end +---* +---@param depth float +---@return self +function PUParticleSystem3D:setDefaultDepth (depth) end +---* +---@param observer cc.PUObserver +---@return self +function PUParticleSystem3D:addObserver (observer) end +---@overload fun(string:string):self +---@overload fun():self +---@overload fun(string:string,string:string):self +---@param filePath string +---@param materialPath string +---@return self +function PUParticleSystem3D:create (filePath,materialPath) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function PUParticleSystem3D:draw (renderer,transform,flags) end +---* particle system play control +---@return self +function PUParticleSystem3D:startParticleSystem () end +---* stop particle +---@return self +function PUParticleSystem3D:stopParticleSystem () end +---* +---@param delta float +---@return self +function PUParticleSystem3D:update (delta) end +---* pause particle +---@return self +function PUParticleSystem3D:pauseParticleSystem () end +---* resume particle +---@return self +function PUParticleSystem3D:resumeParticleSystem () end +---* +---@return int +function PUParticleSystem3D:getAliveParticleCount () end +---* +---@return self +function PUParticleSystem3D:PUParticleSystem3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PageTurn3D.lua b/meta/3rd/Cocos4.0/cc.PageTurn3D.lua new file mode 100644 index 00000000..74a0482a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PageTurn3D.lua @@ -0,0 +1,26 @@ + +---@class cc.PageTurn3D :cc.Grid3DAction +local PageTurn3D={ } +cc.PageTurn3D=PageTurn3D + + + + +---* brief Create an action with duration, grid size.<br> +---* param duration Specify the duration of the PageTurn3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* return If the creation success, return a pointer of PageTurn3D action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@return self +function PageTurn3D:create (duration,gridSize) end +---* +---@return self +function PageTurn3D:clone () end +---* js NA +---@return cc.GridBase +function PageTurn3D:getGrid () end +---* +---@param time float +---@return self +function PageTurn3D:update (time) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParallaxNode.lua b/meta/3rd/Cocos4.0/cc.ParallaxNode.lua new file mode 100644 index 00000000..86848444 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParallaxNode.lua @@ -0,0 +1,51 @@ + +---@class cc.ParallaxNode :cc.Node +local ParallaxNode={ } +cc.ParallaxNode=ParallaxNode + + + + +---* Adds a child to the container with a local z-order, parallax ratio and position offset.<br> +---* param child A child node.<br> +---* param z Z order for drawing priority.<br> +---* param parallaxRatio A given parallax ratio.<br> +---* param positionOffset A given position offset. +---@param child cc.Node +---@param z int +---@param parallaxRatio vec2_table +---@param positionOffset vec2_table +---@return self +function ParallaxNode:addChild (child,z,parallaxRatio,positionOffset) end +---* +---@param cleanup boolean +---@return self +function ParallaxNode:removeAllChildrenWithCleanup (cleanup) end +---* Create a Parallax node. <br> +---* return An autoreleased ParallaxNode object. +---@return self +function ParallaxNode:create () end +---@overload fun(cc.Node:cc.Node,int:int,int2:string):self +---@overload fun(cc.Node:cc.Node,int:int,int:int):self +---@param child cc.Node +---@param zOrder int +---@param tag int +---@return self +function ParallaxNode:addChild (child,zOrder,tag) end +---* +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function ParallaxNode:visit (renderer,parentTransform,parentFlags) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function ParallaxNode:removeChild (child,cleanup) end +---* Adds a child to the container with a z-order, a parallax ratio and a position offset<br> +---* It returns self, so you can chain several addChilds.<br> +---* since v0.8<br> +---* js ctor +---@return self +function ParallaxNode:ParallaxNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleBatchNode.lua b/meta/3rd/Cocos4.0/cc.ParticleBatchNode.lua new file mode 100644 index 00000000..01f626a0 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleBatchNode.lua @@ -0,0 +1,118 @@ + +---@class cc.ParticleBatchNode :cc.Node@all parent class: Node,TextureProtocol +local ParticleBatchNode={ } +cc.ParticleBatchNode=ParticleBatchNode + + + + +---* +---@param texture cc.Texture2D +---@return self +function ParticleBatchNode:setTexture (texture) end +---* initializes the particle system with Texture2D, a capacity of particles +---@param tex cc.Texture2D +---@param capacity int +---@return boolean +function ParticleBatchNode:initWithTexture (tex,capacity) end +---* Disables a particle by inserting a 0'd quad into the texture atlas.<br> +---* param particleIndex The index of the particle. +---@param particleIndex int +---@return self +function ParticleBatchNode:disableParticle (particleIndex) end +---* +---@return cc.Texture2D +function ParticleBatchNode:getTexture () end +---* Sets the texture atlas used for drawing the quads.<br> +---* param atlas The texture atlas used for drawing the quads. +---@param atlas cc.TextureAtlas +---@return self +function ParticleBatchNode:setTextureAtlas (atlas) end +---* initializes the particle system with the name of a file on disk (for a list of supported formats look at the Texture2D class), a capacity of particles +---@param fileImage string +---@param capacity int +---@return boolean +function ParticleBatchNode:initWithFile (fileImage,capacity) 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 ParticleBatchNode:setBlendFunc (blendFunc) end +---* +---@param doCleanup boolean +---@return self +function ParticleBatchNode:removeAllChildrenWithCleanup (doCleanup) end +---* Gets the texture atlas used for drawing the quads.<br> +---* return The texture atlas used for drawing the quads. +---@return cc.TextureAtlas +function ParticleBatchNode:getTextureAtlas () end +---* js NA<br> +---* lua NA +---@return cc.BlendFunc +function ParticleBatchNode:getBlendFunc () end +---* Inserts a child into the ParticleBatchNode.<br> +---* param system A given particle system.<br> +---* param index The insert index. +---@param system cc.ParticleSystem +---@param index int +---@return self +function ParticleBatchNode:insertChild (system,index) end +---* Remove a child of the ParticleBatchNode.<br> +---* param index The index of the child.<br> +---* param doCleanup True if all actions and callbacks on this node should be removed, false otherwise. +---@param index int +---@param doCleanup boolean +---@return self +function ParticleBatchNode:removeChildAtIndex (index,doCleanup) end +---* Create the particle system with the name of a file on disk (for a list of supported formats look at the Texture2D class), a capacity of particles.<br> +---* param fileImage A given file name.<br> +---* param capacity A capacity of particles.<br> +---* return An autoreleased ParticleBatchNode object. +---@param fileImage string +---@param capacity int +---@return self +function ParticleBatchNode:create (fileImage,capacity) end +---* Create the particle system with Texture2D, a capacity of particles, which particle system to use.<br> +---* param tex A given texture.<br> +---* param capacity A capacity of particles.<br> +---* return An autoreleased ParticleBatchNode object.<br> +---* js NA +---@param tex cc.Texture2D +---@param capacity int +---@return self +function ParticleBatchNode:createWithTexture (tex,capacity) end +---@overload fun(cc.Node:cc.Node,int:int,int2:string):self +---@overload fun(cc.Node:cc.Node,int:int,int:int):self +---@param child cc.Node +---@param zOrder int +---@param tag int +---@return self +function ParticleBatchNode:addChild (child,zOrder,tag) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function ParticleBatchNode:draw (renderer,transform,flags) end +---* +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function ParticleBatchNode:visit (renderer,parentTransform,parentFlags) end +---* +---@param child cc.Node +---@param zOrder int +---@return self +function ParticleBatchNode:reorderChild (child,zOrder) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function ParticleBatchNode:removeChild (child,cleanup) end +---* js ctor +---@return self +function ParticleBatchNode:ParticleBatchNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleData.lua b/meta/3rd/Cocos4.0/cc.ParticleData.lua new file mode 100644 index 00000000..9adead10 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleData.lua @@ -0,0 +1,26 @@ + +---@class cc.ParticleData +local ParticleData={ } +cc.ParticleData=ParticleData + + + + +---* +---@return self +function ParticleData:release () end +---* +---@return unsigned_int +function ParticleData:getMaxCount () end +---* +---@param count int +---@return boolean +function ParticleData:init (count) end +---* +---@param p1 int +---@param p2 int +---@return self +function ParticleData:copyParticle (p1,p2) end +---* +---@return self +function ParticleData:ParticleData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleExplosion.lua b/meta/3rd/Cocos4.0/cc.ParticleExplosion.lua new file mode 100644 index 00000000..75b79d37 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleExplosion.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleExplosion :cc.ParticleSystemQuad +local ParticleExplosion={ } +cc.ParticleExplosion=ParticleExplosion + + + + +---* +---@return boolean +function ParticleExplosion:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleExplosion:initWithTotalParticles (numberOfParticles) end +---* Create a explosion particle system.<br> +---* return An autoreleased ParticleExplosion object. +---@return self +function ParticleExplosion:create () end +---* Create a explosion particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleExplosion object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleExplosion:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleExplosion:ParticleExplosion () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleFire.lua b/meta/3rd/Cocos4.0/cc.ParticleFire.lua new file mode 100644 index 00000000..429f409a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleFire.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleFire :cc.ParticleSystemQuad +local ParticleFire={ } +cc.ParticleFire=ParticleFire + + + + +---* Create a fire particle system.<br> +---* return An autoreleased ParticleFire object. +---@return self +function ParticleFire:create () end +---* Create a fire particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleFire object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleFire:createWithTotalParticles (numberOfParticles) end +---* +---@return boolean +function ParticleFire:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleFire:initWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleFire:ParticleFire () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleFireworks.lua b/meta/3rd/Cocos4.0/cc.ParticleFireworks.lua new file mode 100644 index 00000000..2c545193 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleFireworks.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleFireworks :cc.ParticleSystemQuad +local ParticleFireworks={ } +cc.ParticleFireworks=ParticleFireworks + + + + +---* +---@return boolean +function ParticleFireworks:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleFireworks:initWithTotalParticles (numberOfParticles) end +---* Create a fireworks particle system.<br> +---* return An autoreleased ParticleFireworks object. +---@return self +function ParticleFireworks:create () end +---* Create a fireworks particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleFireworks object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleFireworks:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleFireworks:ParticleFireworks () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleFlower.lua b/meta/3rd/Cocos4.0/cc.ParticleFlower.lua new file mode 100644 index 00000000..b2422cbb --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleFlower.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleFlower :cc.ParticleSystemQuad +local ParticleFlower={ } +cc.ParticleFlower=ParticleFlower + + + + +---* +---@return boolean +function ParticleFlower:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleFlower:initWithTotalParticles (numberOfParticles) end +---* Create a flower particle system.<br> +---* return An autoreleased ParticleFlower object. +---@return self +function ParticleFlower:create () end +---* Create a flower particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleFlower object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleFlower:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleFlower:ParticleFlower () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleGalaxy.lua b/meta/3rd/Cocos4.0/cc.ParticleGalaxy.lua new file mode 100644 index 00000000..7af4eb87 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleGalaxy.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleGalaxy :cc.ParticleSystemQuad +local ParticleGalaxy={ } +cc.ParticleGalaxy=ParticleGalaxy + + + + +---* +---@return boolean +function ParticleGalaxy:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleGalaxy:initWithTotalParticles (numberOfParticles) end +---* Create a galaxy particle system.<br> +---* return An autoreleased ParticleGalaxy object. +---@return self +function ParticleGalaxy:create () end +---* Create a galaxy particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleGalaxy object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleGalaxy:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleGalaxy:ParticleGalaxy () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleMeteor.lua b/meta/3rd/Cocos4.0/cc.ParticleMeteor.lua new file mode 100644 index 00000000..bca87628 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleMeteor.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleMeteor :cc.ParticleSystemQuad +local ParticleMeteor={ } +cc.ParticleMeteor=ParticleMeteor + + + + +---* +---@return boolean +function ParticleMeteor:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleMeteor:initWithTotalParticles (numberOfParticles) end +---* Create a meteor particle system.<br> +---* return An autoreleased ParticleMeteor object. +---@return self +function ParticleMeteor:create () end +---* Create a meteor particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleMeteor object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleMeteor:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleMeteor:ParticleMeteor () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleRain.lua b/meta/3rd/Cocos4.0/cc.ParticleRain.lua new file mode 100644 index 00000000..60e6ae0f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleRain.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleRain :cc.ParticleSystemQuad +local ParticleRain={ } +cc.ParticleRain=ParticleRain + + + + +---* +---@return boolean +function ParticleRain:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleRain:initWithTotalParticles (numberOfParticles) end +---* Create a rain particle system.<br> +---* return An autoreleased ParticleRain object. +---@return self +function ParticleRain:create () end +---* Create a rain particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleRain object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleRain:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleRain:ParticleRain () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleSmoke.lua b/meta/3rd/Cocos4.0/cc.ParticleSmoke.lua new file mode 100644 index 00000000..ae2bd80c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleSmoke.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleSmoke :cc.ParticleSystemQuad +local ParticleSmoke={ } +cc.ParticleSmoke=ParticleSmoke + + + + +---* +---@return boolean +function ParticleSmoke:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleSmoke:initWithTotalParticles (numberOfParticles) end +---* Create a smoke particle system.<br> +---* return An autoreleased ParticleSmoke object. +---@return self +function ParticleSmoke:create () end +---* Create a smoke particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleSmoke object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleSmoke:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleSmoke:ParticleSmoke () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleSnow.lua b/meta/3rd/Cocos4.0/cc.ParticleSnow.lua new file mode 100644 index 00000000..24953064 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleSnow.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleSnow :cc.ParticleSystemQuad +local ParticleSnow={ } +cc.ParticleSnow=ParticleSnow + + + + +---* +---@return boolean +function ParticleSnow:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleSnow:initWithTotalParticles (numberOfParticles) end +---* Create a snow particle system.<br> +---* return An autoreleased ParticleSnow object. +---@return self +function ParticleSnow:create () end +---* Create a snow particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleSnow object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleSnow:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleSnow:ParticleSnow () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleSpiral.lua b/meta/3rd/Cocos4.0/cc.ParticleSpiral.lua new file mode 100644 index 00000000..563de538 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleSpiral.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleSpiral :cc.ParticleSystemQuad +local ParticleSpiral={ } +cc.ParticleSpiral=ParticleSpiral + + + + +---* +---@return boolean +function ParticleSpiral:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleSpiral:initWithTotalParticles (numberOfParticles) end +---* Create a spiral particle system.<br> +---* return An autoreleased ParticleSpiral object. +---@return self +function ParticleSpiral:create () end +---* Create a spiral particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleSpiral object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleSpiral:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleSpiral:ParticleSpiral () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleSun.lua b/meta/3rd/Cocos4.0/cc.ParticleSun.lua new file mode 100644 index 00000000..ecc94c7a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleSun.lua @@ -0,0 +1,29 @@ + +---@class cc.ParticleSun :cc.ParticleSystemQuad +local ParticleSun={ } +cc.ParticleSun=ParticleSun + + + + +---* +---@return boolean +function ParticleSun:init () end +---* +---@param numberOfParticles int +---@return boolean +function ParticleSun:initWithTotalParticles (numberOfParticles) end +---* Create a sun particle system.<br> +---* return An autoreleased ParticleSun object. +---@return self +function ParticleSun:create () end +---* Create a sun particle system withe a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleSun object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleSun:createWithTotalParticles (numberOfParticles) end +---* js ctor +---@return self +function ParticleSun:ParticleSun () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleSystem.lua b/meta/3rd/Cocos4.0/cc.ParticleSystem.lua new file mode 100644 index 00000000..a2f1d299 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleSystem.lua @@ -0,0 +1,528 @@ + +---@class cc.ParticleSystem :cc.Node@all parent class: Node,TextureProtocol,PlayableProtocol +local ParticleSystem={ } +cc.ParticleSystem=ParticleSystem + + + + +---* Gets the start size variance in pixels of each particle.<br> +---* return The start size variance in pixels of each particle. +---@return float +function ParticleSystem:getStartSizeVar () end +---* +---@return cc.Texture2D +function ParticleSystem:getTexture () end +---* Whether or not the system is full.<br> +---* return True if the system is full. +---@return boolean +function ParticleSystem:isFull () end +---* Gets the batch node.<br> +---* return The batch node. +---@return cc.ParticleBatchNode +function ParticleSystem:getBatchNode () end +---* Gets the start color of each particle.<br> +---* return The start color of each particle. +---@return color4f_table +function ParticleSystem:getStartColor () end +---* Gets the particles movement type: Free or Grouped.<br> +---* since v0.8<br> +---* return The particles movement type. +---@return int +function ParticleSystem:getPositionType () end +---* Sets the position variance of the emitter.<br> +---* param pos The position variance of the emitter. +---@param pos vec2_table +---@return self +function ParticleSystem:setPosVar (pos) end +---* Gets the end spin of each particle.<br> +---* return The end spin of each particle. +---@return float +function ParticleSystem:getEndSpin () end +---* Sets the rotate per second variance.<br> +---* param degrees The rotate per second variance. +---@param degrees float +---@return self +function ParticleSystem:setRotatePerSecondVar (degrees) end +---* / @} end of PlayableProtocol +---@param sourcePositionCompatible boolean +---@return self +function ParticleSystem:setSourcePositionCompatible (sourcePositionCompatible) end +---* Gets the start spin variance of each particle.<br> +---* return The start spin variance of each particle. +---@return float +function ParticleSystem:getStartSpinVar () end +---* Gets the radial acceleration variance.<br> +---* return The radial acceleration variance. +---@return float +function ParticleSystem:getRadialAccelVar () end +---* Gets the end size variance in pixels of each particle.<br> +---* return The end size variance in pixels of each particle. +---@return float +function ParticleSystem:getEndSizeVar () end +---* Sets the tangential acceleration.<br> +---* param t The tangential acceleration. +---@param t float +---@return self +function ParticleSystem:setTangentialAccel (t) end +---* Gets the radial acceleration.<br> +---* return The radial acceleration. +---@return float +function ParticleSystem:getRadialAccel () end +---* Sets the start radius.<br> +---* param startRadius The start radius. +---@param startRadius float +---@return self +function ParticleSystem:setStartRadius (startRadius) end +---* Sets the number of degrees to rotate a particle around the source pos per second.<br> +---* param degrees The number of degrees to rotate a particle around the source pos per second. +---@param degrees float +---@return self +function ParticleSystem:setRotatePerSecond (degrees) end +---* Sets the end size in pixels of each particle.<br> +---* param endSize The end size in pixels of each particle. +---@param endSize float +---@return self +function ParticleSystem:setEndSize (endSize) end +---* Gets the gravity.<br> +---* return The gravity. +---@return vec2_table +function ParticleSystem:getGravity () end +---* +---@return self +function ParticleSystem:resumeEmissions () end +---* Gets the tangential acceleration.<br> +---* return The tangential acceleration. +---@return float +function ParticleSystem:getTangentialAccel () end +---* Sets the end radius.<br> +---* param endRadius The end radius. +---@param endRadius float +---@return self +function ParticleSystem:setEndRadius (endRadius) end +---* Gets the speed.<br> +---* return The speed. +---@return float +function ParticleSystem:getSpeed () end +---* +---@return self +function ParticleSystem:pauseEmissions () end +---* Gets the angle of each particle. <br> +---* return The angle of each particle. +---@return float +function ParticleSystem:getAngle () end +---* Sets the end color and end color variation of each particle.<br> +---* param color The end color and end color variation of each particle. +---@param color color4f_table +---@return self +function ParticleSystem:setEndColor (color) end +---* Sets the start spin of each particle.<br> +---* param spin The start spin of each particle. +---@param spin float +---@return self +function ParticleSystem:setStartSpin (spin) end +---* Sets how many seconds the emitter will run. -1 means 'forever'.<br> +---* param duration The seconds that the emitter will run. -1 means 'forever'. +---@param duration float +---@return self +function ParticleSystem:setDuration (duration) end +---* Initializes a system with a fixed number of particles +---@param numberOfParticles int +---@return boolean +function ParticleSystem:initWithTotalParticles (numberOfParticles) end +---* +---@param count int +---@return self +function ParticleSystem:addParticles (count) end +---* +---@param texture cc.Texture2D +---@return self +function ParticleSystem:setTexture (texture) end +---* Gets the position variance of the emitter.<br> +---* return The position variance of the emitter. +---@return vec2_table +function ParticleSystem:getPosVar () end +---* Call the update method with no time.. +---@return self +function ParticleSystem:updateWithNoTime () end +---* Whether or not the particle system is blend additive.<br> +---* return True if the particle system is blend additive. +---@return boolean +function ParticleSystem:isBlendAdditive () end +---* Gets the speed variance.<br> +---* return The speed variance. +---@return float +function ParticleSystem:getSpeedVar () end +---* Sets the particles movement type: Free or Grouped.<br> +---* since v0.8<br> +---* param type The particles movement type. +---@param type int +---@return self +function ParticleSystem:setPositionType (type) end +---* +---@return self +function ParticleSystem:stopSystem () end +---* Gets the source position of the emitter.<br> +---* return The source position of the emitter. +---@return vec2_table +function ParticleSystem:getSourcePosition () end +---* Sets the life variance of each particle.<br> +---* param lifeVar The life variance of each particle. +---@param lifeVar float +---@return self +function ParticleSystem:setLifeVar (lifeVar) end +---* Sets the maximum particles of the system.<br> +---* param totalParticles The maximum particles of the system. +---@param totalParticles int +---@return self +function ParticleSystem:setTotalParticles (totalParticles) end +---* Sets the end color variance of each particle.<br> +---* param color The end color variance of each particle. +---@param color color4f_table +---@return self +function ParticleSystem:setEndColorVar (color) end +---* Gets the index of system in batch node array.<br> +---* return The index of system in batch node array. +---@return int +function ParticleSystem:getAtlasIndex () end +---* Gets the start size in pixels of each particle.<br> +---* return The start size in pixels of each particle. +---@return float +function ParticleSystem:getStartSize () end +---* Sets the start spin variance of each particle.<br> +---* param pinVar The start spin variance of each particle. +---@param pinVar float +---@return self +function ParticleSystem:setStartSpinVar (pinVar) end +---* Kill all living particles. +---@return self +function ParticleSystem:resetSystem () end +---* Sets the index of system in batch node array.<br> +---* param index The index of system in batch node array. +---@param index int +---@return self +function ParticleSystem:setAtlasIndex (index) end +---* Sets the tangential acceleration variance.<br> +---* param t The tangential acceleration variance. +---@param t float +---@return self +function ParticleSystem:setTangentialAccelVar (t) end +---* Sets the end radius variance.<br> +---* param endRadiusVar The end radius variance. +---@param endRadiusVar float +---@return self +function ParticleSystem:setEndRadiusVar (endRadiusVar) end +---* Gets the end radius.<br> +---* return The end radius. +---@return float +function ParticleSystem:getEndRadius () end +---* Whether or not the particle system is active.<br> +---* return True if the particle system is active. +---@return boolean +function ParticleSystem:isActive () end +---* Sets the radial acceleration variance.<br> +---* param t The radial acceleration variance. +---@param t float +---@return self +function ParticleSystem:setRadialAccelVar (t) end +---* Sets the start size in pixels of each particle.<br> +---* param startSize The start size in pixels of each particle. +---@param startSize float +---@return self +function ParticleSystem:setStartSize (startSize) end +---* Sets the speed.<br> +---* param speed The speed. +---@param speed float +---@return self +function ParticleSystem:setSpeed (speed) end +---* Gets the start spin of each particle.<br> +---* return The start spin of each particle. +---@return float +function ParticleSystem:getStartSpin () end +---* +---@return string +function ParticleSystem:getResourceFile () end +---* Gets the number of degrees to rotate a particle around the source pos per second.<br> +---* return The number of degrees to rotate a particle around the source pos per second. +---@return float +function ParticleSystem:getRotatePerSecond () end +---* Sets the mode of the emitter.<br> +---* param mode The mode of the emitter. +---@param mode int +---@return self +function ParticleSystem:setEmitterMode (mode) end +---* Gets how many seconds the emitter will run. -1 means 'forever'.<br> +---* return The seconds that the emitter will run. -1 means 'forever'. +---@return float +function ParticleSystem:getDuration () end +---* Sets the source position of the emitter.<br> +---* param pos The source position of the emitter. +---@param pos vec2_table +---@return self +function ParticleSystem:setSourcePosition (pos) end +---* +---@return self +function ParticleSystem:stop () end +---* Update the verts position data of particle,<br> +---* should be overridden by subclasses. +---@return self +function ParticleSystem:updateParticleQuads () end +---* Gets the end spin variance of each particle.<br> +---* return The end spin variance of each particle. +---@return float +function ParticleSystem:getEndSpinVar () end +---* Sets the particle system blend additive.<br> +---* param value True if the particle system is blend additive. +---@param value boolean +---@return self +function ParticleSystem:setBlendAdditive (value) end +---* Sets the life of each particle.<br> +---* param life The life of each particle. +---@param life float +---@return self +function ParticleSystem:setLife (life) end +---* Sets the angle variance of each particle.<br> +---* param angleVar The angle variance of each particle. +---@param angleVar float +---@return self +function ParticleSystem:setAngleVar (angleVar) end +---* Sets the rotation of each particle to its direction.<br> +---* param t True if the rotation is the direction. +---@param t boolean +---@return self +function ParticleSystem:setRotationIsDir (t) end +---* / @{/ @name implement Playable Protocol +---@return self +function ParticleSystem:start () end +---* Sets the end size variance in pixels of each particle.<br> +---* param sizeVar The end size variance in pixels of each particle. +---@param sizeVar float +---@return self +function ParticleSystem:setEndSizeVar (sizeVar) end +---* Sets the angle of each particle.<br> +---* param angle The angle of each particle. +---@param angle float +---@return self +function ParticleSystem:setAngle (angle) end +---* Sets the batch node.<br> +---* param batchNode The batch node. +---@param batchNode cc.ParticleBatchNode +---@return self +function ParticleSystem:setBatchNode (batchNode) end +---* Gets the tangential acceleration variance.<br> +---* return The tangential acceleration variance. +---@return float +function ParticleSystem:getTangentialAccelVar () end +---* Switch between different kind of emitter modes:<br> +---* - kParticleModeGravity: uses gravity, speed, radial and tangential acceleration.<br> +---* - kParticleModeRadius: uses radius movement + rotation.<br> +---* return The mode of the emitter. +---@return int +function ParticleSystem:getEmitterMode () end +---* Sets the end spin variance of each particle.<br> +---* param endSpinVar The end spin variance of each particle. +---@param endSpinVar float +---@return self +function ParticleSystem:setEndSpinVar (endSpinVar) end +---* initializes a ParticleSystem from a plist file.<br> +---* This plist files can be created manually or with Particle Designer:<br> +---* http:particledesigner.71squared.com/<br> +---* since v0.99.3 +---@param plistFile string +---@return boolean +function ParticleSystem:initWithFile (plistFile) end +---* Gets the angle variance of each particle.<br> +---* return The angle variance of each particle. +---@return float +function ParticleSystem:getAngleVar () end +---* Sets the start color of each particle.<br> +---* param color The start color of each particle. +---@param color color4f_table +---@return self +function ParticleSystem:setStartColor (color) end +---* Gets the rotate per second variance.<br> +---* return The rotate per second variance. +---@return float +function ParticleSystem:getRotatePerSecondVar () end +---* Gets the end size in pixels of each particle.<br> +---* return The end size in pixels of each particle. +---@return float +function ParticleSystem:getEndSize () end +---* Gets the life of each particle.<br> +---* return The life of each particle. +---@return float +function ParticleSystem:getLife () end +---* Are the emissions paused<br> +---* return True if the emissions are paused, else false +---@return boolean +function ParticleSystem:isPaused () end +---* Sets the speed variance.<br> +---* param speed The speed variance. +---@param speed float +---@return self +function ParticleSystem:setSpeedVar (speed) end +---* Set the particle system auto removed it self on finish.<br> +---* param var True if the particle system removed self on finish. +---@param var boolean +---@return self +function ParticleSystem:setAutoRemoveOnFinish (var) end +---* Sets the gravity.<br> +---* param g The gravity. +---@param g vec2_table +---@return self +function ParticleSystem:setGravity (g) end +---* Update the VBO verts buffer which does not use batch node,<br> +---* should be overridden by subclasses. +---@return self +function ParticleSystem:postStep () end +---* Sets the emission rate of the particles.<br> +---* param rate The emission rate of the particles. +---@param rate float +---@return self +function ParticleSystem:setEmissionRate (rate) end +---* Gets the end color variance of each particle.<br> +---* return The end color variance of each particle. +---@return color4f_table +function ParticleSystem:getEndColorVar () end +---* Whether or not the rotation of each particle to its direction.<br> +---* return True if the rotation is the direction. +---@return boolean +function ParticleSystem:getRotationIsDir () end +---* Gets the emission rate of the particles.<br> +---* return The emission rate of the particles. +---@return float +function ParticleSystem:getEmissionRate () end +---* Gets the end color and end color variation of each particle.<br> +---* return The end color and end color variation of each particle. +---@return color4f_table +function ParticleSystem:getEndColor () end +---* Gets the life variance of each particle.<br> +---* return The life variance of each particle. +---@return float +function ParticleSystem:getLifeVar () end +---* Sets the start size variance in pixels of each particle.<br> +---* param sizeVar The start size variance in pixels of each particle. +---@param sizeVar float +---@return self +function ParticleSystem:setStartSizeVar (sizeVar) end +---* Gets the start radius.<br> +---* return The start radius. +---@return float +function ParticleSystem:getStartRadius () end +---* Gets the Quantity of particles that are being simulated at the moment.<br> +---* return The Quantity of particles that are being simulated at the moment. +---@return unsigned_int +function ParticleSystem:getParticleCount () end +---* Gets the start radius variance.<br> +---* return The start radius variance. +---@return float +function ParticleSystem:getStartRadiusVar () end +---* js NA<br> +---* lua NA +---@return cc.BlendFunc +function ParticleSystem:getBlendFunc () end +---* Sets the start color variance of each particle.<br> +---* param color The start color variance of each particle. +---@param color color4f_table +---@return self +function ParticleSystem:setStartColorVar (color) end +---* Sets the end spin of each particle.<br> +---* param endSpin The end spin of each particle. +---@param endSpin float +---@return self +function ParticleSystem:setEndSpin (endSpin) end +---* Sets the radial acceleration.<br> +---* param t The radial acceleration. +---@param t float +---@return self +function ParticleSystem:setRadialAccel (t) end +---@overload fun(map_table:map_table,string:string):self +---@overload fun(map_table:map_table):self +---@param dictionary map_table +---@param dirname string +---@return boolean +function ParticleSystem:initWithDictionary (dictionary,dirname) end +---* Whether or not the particle system removed self on finish.<br> +---* return True if the particle system removed self on finish. +---@return boolean +function ParticleSystem:isAutoRemoveOnFinish () end +---* +---@return boolean +function ParticleSystem:isSourcePositionCompatible () end +---* Gets the maximum particles of the system.<br> +---* return The maximum particles of the system. +---@return int +function ParticleSystem:getTotalParticles () end +---* Sets the start radius variance.<br> +---* param startRadiusVar The start radius variance. +---@param startRadiusVar float +---@return self +function ParticleSystem:setStartRadiusVar (startRadiusVar) 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> +---* In lua: local setBlendFunc(local src, local dst)<br> +---* endcode +---@param blendFunc cc.BlendFunc +---@return self +function ParticleSystem:setBlendFunc (blendFunc) end +---* Gets the end radius variance.<br> +---* return The end radius variance. +---@return float +function ParticleSystem:getEndRadiusVar () end +---* Gets the start color variance of each particle.<br> +---* return The start color variance of each particle. +---@return color4f_table +function ParticleSystem:getStartColorVar () end +---* Creates an initializes a ParticleSystem from a plist file.<br> +---* This plist files can be created manually or with Particle Designer:<br> +---* http:particledesigner.71squared.com/<br> +---* since v2.0<br> +---* param plistFile Particle plist file name.<br> +---* return An autoreleased ParticleSystem object. +---@param plistFile string +---@return self +function ParticleSystem:create (plistFile) end +---* Create a system with a fixed number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleSystemQuad object.<br> +---* js NA +---@param numberOfParticles int +---@return self +function ParticleSystem:createWithTotalParticles (numberOfParticles) end +---* Gets all ParticleSystem references +---@return array_table +function ParticleSystem:getAllParticleSystems () end +---* +---@param newScaleY float +---@return self +function ParticleSystem:setScaleY (newScaleY) end +---* +---@param newScaleX float +---@return self +function ParticleSystem:setScaleX (newScaleX) end +---* +---@return boolean +function ParticleSystem:isOpacityModifyRGB () end +---* does the alpha value modify color +---@param opacityModifyRGB boolean +---@return self +function ParticleSystem:setOpacityModifyRGB (opacityModifyRGB) end +---* +---@param s float +---@return self +function ParticleSystem:setScale (s) end +---* +---@param dt float +---@return self +function ParticleSystem:update (dt) end +---* initializes a ParticleSystem +---@return boolean +function ParticleSystem:init () end +---* +---@param newRotation float +---@return self +function ParticleSystem:setRotation (newRotation) end +---* js ctor +---@return self +function ParticleSystem:ParticleSystem () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleSystem3D.lua b/meta/3rd/Cocos4.0/cc.ParticleSystem3D.lua new file mode 100644 index 00000000..48722f98 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleSystem3D.lua @@ -0,0 +1,89 @@ + +---@class cc.ParticleSystem3D :cc.Node@all parent class: Node,BlendProtocol +local ParticleSystem3D={ } +cc.ParticleSystem3D=ParticleSystem3D + + + + +---* remove affector by index +---@param index int +---@return self +function ParticleSystem3D:removeAffector (index) end +---* resume particle +---@return self +function ParticleSystem3D:resumeParticleSystem () end +---* remove all particle affector +---@return self +function ParticleSystem3D:removeAllAffector () end +---* add particle affector +---@param affector cc.Particle3DAffector +---@return self +function ParticleSystem3D:addAffector (affector) end +---* particle system play control +---@return self +function ParticleSystem3D:startParticleSystem () end +---* is enabled +---@return boolean +function ParticleSystem3D:isEnabled () end +---* return particle render +---@return cc.Particle3DRender +function ParticleSystem3D:getRender () end +---* set emitter for particle system, can set your own particle emitter +---@param emitter cc.Particle3DEmitter +---@return self +function ParticleSystem3D:setEmitter (emitter) end +---* +---@return boolean +function ParticleSystem3D:isKeepLocal () end +---* Enables or disables the system. +---@param enabled boolean +---@return self +function ParticleSystem3D:setEnabled (enabled) end +---* get particle quota +---@return unsigned_int +function ParticleSystem3D:getParticleQuota () end +---* override function +---@return cc.BlendFunc +function ParticleSystem3D:getBlendFunc () end +---* pause particle +---@return self +function ParticleSystem3D:pauseParticleSystem () end +---* get particle playing state +---@return int +function ParticleSystem3D:getState () end +---* get alive particles count +---@return int +function ParticleSystem3D:getAliveParticleCount () end +---* set particle quota +---@param quota unsigned_int +---@return self +function ParticleSystem3D:setParticleQuota (quota) end +---* override function +---@param blendFunc cc.BlendFunc +---@return self +function ParticleSystem3D:setBlendFunc (blendFunc) end +---* set particle render, can set your own particle render +---@param render cc.Particle3DRender +---@return self +function ParticleSystem3D:setRender (render) end +---* stop particle +---@return self +function ParticleSystem3D:stopParticleSystem () end +---* +---@param keepLocal boolean +---@return self +function ParticleSystem3D:setKeepLocal (keepLocal) end +---* override function +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function ParticleSystem3D:draw (renderer,transform,flags) end +---* override function +---@param delta float +---@return self +function ParticleSystem3D:update (delta) end +---* +---@return self +function ParticleSystem3D:ParticleSystem3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ParticleSystemQuad.lua b/meta/3rd/Cocos4.0/cc.ParticleSystemQuad.lua new file mode 100644 index 00000000..f7922139 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ParticleSystemQuad.lua @@ -0,0 +1,54 @@ + +---@class cc.ParticleSystemQuad :cc.ParticleSystem +local ParticleSystemQuad={ } +cc.ParticleSystemQuad=ParticleSystemQuad + + + + +---* Sets a new SpriteFrame as particle.<br> +---* WARNING: this method is experimental. Use setTextureWithRect instead.<br> +---* param spriteFrame A given sprite frame as particle texture.<br> +---* since v0.99.4 +---@param spriteFrame cc.SpriteFrame +---@return self +function ParticleSystemQuad:setDisplayFrame (spriteFrame) end +---* Sets a new texture with a rect. The rect is in Points.<br> +---* since v0.99.4<br> +---* js NA<br> +---* lua NA<br> +---* param texture A given texture.<br> +---* 8 @param rect A given rect, in points. +---@param texture cc.Texture2D +---@param rect rect_table +---@return self +function ParticleSystemQuad:setTextureWithRect (texture,rect) end +---* Listen the event that renderer was recreated on Android/WP8.<br> +---* js NA<br> +---* lua NA<br> +---* param event the event that renderer was recreated on Android/WP8. +---@param event cc.EventCustom +---@return self +function ParticleSystemQuad:listenRendererRecreated (event) end +---@overload fun(map_table0:string):self +---@overload fun():self +---@overload fun(map_table:map_table):self +---@param dictionary map_table +---@return self +function ParticleSystemQuad:create (dictionary) end +---* Creates a Particle Emitter with a number of particles.<br> +---* param numberOfParticles A given number of particles.<br> +---* return An autoreleased ParticleSystemQuad object. +---@param numberOfParticles int +---@return self +function ParticleSystemQuad:createWithTotalParticles (numberOfParticles) end +---* +---@return string +function ParticleSystemQuad:getDescription () end +---* js NA<br> +---* lua NA +---@return self +function ParticleSystemQuad:updateParticleQuads () end +---* js ctor +---@return self +function ParticleSystemQuad:ParticleSystemQuad () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Pass.lua b/meta/3rd/Cocos4.0/cc.Pass.lua new file mode 100644 index 00000000..c77c57dd --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Pass.lua @@ -0,0 +1,140 @@ + +---@class cc.Pass :cc.Ref +local Pass={ } +cc.Pass=Pass + + + + +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformPointLightPosition (d,t) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformDirLightDir (d,t) end +---* +---@param technique cc.Technique +---@return self +function Pass:setTechnique (technique) end +---* Returns the vertex attribute binding for this pass.<br> +---* return The vertex attribute binding for this pass. +---@return cc.VertexAttribBinding +function Pass:getVertexAttributeBinding () end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformSpotLightOuterAngleCos (d,t) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformSpotLightDir (d,t) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformMatrixPalette (d,t) end +---* +---@param name string +---@return self +function Pass:setName (name) end +---* +---@return string +function Pass:getName () end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformSpotLightRangeInverse (d,t) end +---* Returns a clone (deep-copy) of this instance +---@return self +function Pass:clone () end +---* +---@param meshCommand cc.MeshCommand +---@param globalZOrder float +---@param vertexBuffer cc.backend.Buffer +---@param indexBuffer cc.backend.Buffer +---@param primitive int +---@param indexFormat int +---@param indexCount unsigned_int +---@param modelView mat4_table +---@return self +function Pass:draw (meshCommand,globalZOrder,vertexBuffer,indexBuffer,primitive,indexFormat,indexCount,modelView) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformPointLightRangeInverse (d,t) end +---* +---@param slot unsigned_int +---@param d cc.backend.TextureBacken +---@return self +function Pass:setUniformNormTexture (slot,d) end +---* +---@param modelView mat4_table +---@return self +function Pass:updateMVPUniform (modelView) end +---* Returns the ProgramState +---@return cc.backend.ProgramState +function Pass:getProgramState () end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformSpotLightColor (d,t) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformAmbientLigthColor (d,t) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformDirLightColor (d,t) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformSpotLightPosition (d,t) end +---* Sets a vertex attribute binding for this pass.<br> +---* When a mesh binding is set, the VertexAttribBinding will be automatically<br> +---* bound when the bind() method is called for the pass.<br> +---* param binding The VertexAttribBinding to set (or NULL to remove an existing binding). +---@param binding cc.VertexAttribBinding +---@return self +function Pass:setVertexAttribBinding (binding) end +---* +---@param slot unsigned_int +---@param d cc.backend.TextureBacken +---@return self +function Pass:setUniformTexture (slot,d) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformSpotLightInnerAngleCos (d,t) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformColor (d,t) end +---* +---@param d voi +---@param t unsigned in +---@return self +function Pass:setUniformPointLightColor (d,t) end +---* Creates a Pass with a GLProgramState. +---@param parent cc.Technique +---@param programState cc.backend.ProgramState +---@return self +function Pass:createWithProgramState (parent,programState) end +---* +---@param parent cc.Technique +---@return self +function Pass:create (parent) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3D6DofConstraint.lua b/meta/3rd/Cocos4.0/cc.Physics3D6DofConstraint.lua new file mode 100644 index 00000000..896e5969 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3D6DofConstraint.lua @@ -0,0 +1,60 @@ + +---@class cc.Physics3D6DofConstraint :cc.Physics3DConstraint +local Physics3D6DofConstraint={ } +cc.Physics3D6DofConstraint=Physics3D6DofConstraint + + + + +---* set linear lower limit +---@param linearLower vec3_table +---@return self +function Physics3D6DofConstraint:setLinearLowerLimit (linearLower) end +---* get linear lower limit +---@return vec3_table +function Physics3D6DofConstraint:getLinearLowerLimit () end +---* get angular upper limit +---@return vec3_table +function Physics3D6DofConstraint:getAngularUpperLimit () end +---* access for UseFrameOffset +---@return boolean +function Physics3D6DofConstraint:getUseFrameOffset () end +---* get linear upper limit +---@return vec3_table +function Physics3D6DofConstraint:getLinearUpperLimit () end +---* set angular lower limit +---@param angularLower vec3_table +---@return self +function Physics3D6DofConstraint:setAngularLowerLimit (angularLower) end +---* is limited?<br> +---* param limitIndex first 3 are linear, next 3 are angular +---@param limitIndex int +---@return boolean +function Physics3D6DofConstraint:isLimited (limitIndex) end +---* set use frame offset +---@param frameOffsetOnOff boolean +---@return self +function Physics3D6DofConstraint:setUseFrameOffset (frameOffsetOnOff) end +---* set linear upper limit +---@param linearUpper vec3_table +---@return self +function Physics3D6DofConstraint:setLinearUpperLimit (linearUpper) end +---* get angular lower limit +---@return vec3_table +function Physics3D6DofConstraint:getAngularLowerLimit () end +---* set angular upper limit +---@param angularUpper vec3_table +---@return self +function Physics3D6DofConstraint:setAngularUpperLimit (angularUpper) end +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody1:mat4_table,mat4_table2:boolean):self +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody:cc.Physics3DRigidBody,mat4_table:mat4_table,mat4_table:mat4_table,boolean:boolean):self +---@param rbA cc.Physics3DRigidBody +---@param rbB cc.Physics3DRigidBody +---@param frameInA mat4_table +---@param frameInB mat4_table +---@param useLinearReferenceFrameA boolean +---@return self +function Physics3D6DofConstraint:create (rbA,rbB,frameInA,frameInB,useLinearReferenceFrameA) end +---* +---@return self +function Physics3D6DofConstraint:Physics3D6DofConstraint () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DComponent.lua b/meta/3rd/Cocos4.0/cc.Physics3DComponent.lua new file mode 100644 index 00000000..e7fd116a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DComponent.lua @@ -0,0 +1,48 @@ + +---@class cc.Physics3DComponent :cc.Component +local Physics3DComponent={ } +cc.Physics3DComponent=Physics3DComponent + + + + +---* synchronize node transformation to physics +---@return self +function Physics3DComponent:syncNodeToPhysics () end +---* add this component to physics world, called by scene +---@param world cc.Physics3DWorld +---@return self +function Physics3DComponent:addToPhysicsWorld (world) end +---* synchronize physics transformation to node +---@return self +function Physics3DComponent:syncPhysicsToNode () end +---* get physics object +---@return cc.Physics3DObject +function Physics3DComponent:getPhysics3DObject () end +---* set Physics object to the component +---@param physicsObj cc.Physics3DObject +---@return self +function Physics3DComponent:setPhysics3DObject (physicsObj) end +---* synchronization between node and physics is time consuming, you can skip some synchronization using this function +---@param syncFlag int +---@return self +function Physics3DComponent:setSyncFlag (syncFlag) end +---* get the component name, it is used to find whether it is Physics3DComponent +---@return string +function Physics3DComponent:getPhysics3DComponentName () end +---* set it enable or not +---@param b boolean +---@return self +function Physics3DComponent:setEnabled (b) end +---* +---@return boolean +function Physics3DComponent:init () end +---* +---@return self +function Physics3DComponent:onEnter () end +---* +---@return self +function Physics3DComponent:onExit () end +---* +---@return self +function Physics3DComponent:Physics3DComponent () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DConeTwistConstraint.lua b/meta/3rd/Cocos4.0/cc.Physics3DConeTwistConstraint.lua new file mode 100644 index 00000000..22b2aa93 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DConeTwistConstraint.lua @@ -0,0 +1,91 @@ + +---@class cc.Physics3DConeTwistConstraint :cc.Physics3DConstraint +local Physics3DConeTwistConstraint={ } +cc.Physics3DConeTwistConstraint=Physics3DConeTwistConstraint + + + + +---* get B's frame +---@return mat4_table +function Physics3DConeTwistConstraint:getBFrame () end +---* set fix thresh +---@param fixThresh float +---@return self +function Physics3DConeTwistConstraint:setFixThresh (fixThresh) end +---* get B's frame offset +---@return mat4_table +function Physics3DConeTwistConstraint:getFrameOffsetB () end +---* get A's frame offset +---@return mat4_table +function Physics3DConeTwistConstraint:getFrameOffsetA () end +---* get fix thresh +---@return float +function Physics3DConeTwistConstraint:getFixThresh () end +---* get swing span2 +---@return float +function Physics3DConeTwistConstraint:getSwingSpan2 () end +---* get swing span1 +---@return float +function Physics3DConeTwistConstraint:getSwingSpan1 () end +---* set max motor impulse +---@param maxMotorImpulse float +---@return self +function Physics3DConeTwistConstraint:setMaxMotorImpulse (maxMotorImpulse) end +---* set A and B's frame +---@param frameA mat4_table +---@param frameB mat4_table +---@return self +function Physics3DConeTwistConstraint:setFrames (frameA,frameB) end +---* get twist angle +---@return float +function Physics3DConeTwistConstraint:getTwistAngle () end +---* get point for angle +---@param fAngleInRadians float +---@param fLength float +---@return vec3_table +function Physics3DConeTwistConstraint:GetPointForAngle (fAngleInRadians,fLength) end +---* set max motor impulse normalize +---@param maxMotorImpulse float +---@return self +function Physics3DConeTwistConstraint:setMaxMotorImpulseNormalized (maxMotorImpulse) end +---* get twist span +---@return float +function Physics3DConeTwistConstraint:getTwistSpan () end +---* set damping +---@param damping float +---@return self +function Physics3DConeTwistConstraint:setDamping (damping) end +---* set limits<br> +---* param swingSpan1 swing span1<br> +---* param swingSpan2 swing span2<br> +---* param twistSpan twist span<br> +---* param softness 0->1, recommend ~0.8->1. Describes % of limits where movement is free. Beyond this softness %, the limit is gradually enforced until the "hard" (1.0) limit is reached.<br> +---* param biasFactor 0->1?, recommend 0.3 +/-0.3 or so. Strength with which constraint resists zeroth order (angular, not angular velocity) limit violation.<br> +---* param relaxationFactor 0->1, recommend to stay near 1. the lower the value, the less the constraint will fight velocities which violate the angular limits. +---@param swingSpan1 float +---@param swingSpan2 float +---@param twistSpan float +---@param softness float +---@param biasFactor float +---@param relaxationFactor float +---@return self +function Physics3DConeTwistConstraint:setLimit (swingSpan1,swingSpan2,twistSpan,softness,biasFactor,relaxationFactor) end +---* get A's frame +---@return mat4_table +function Physics3DConeTwistConstraint:getAFrame () end +---* enable motor +---@param b boolean +---@return self +function Physics3DConeTwistConstraint:enableMotor (b) end +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody:cc.Physics3DRigidBody,mat4_table:mat4_table,mat4_table:mat4_table):self +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody1:mat4_table):self +---@param rbA cc.Physics3DRigidBody +---@param rbB cc.Physics3DRigidBody +---@param frameA mat4_table +---@param frameB mat4_table +---@return self +function Physics3DConeTwistConstraint:create (rbA,rbB,frameA,frameB) end +---* +---@return self +function Physics3DConeTwistConstraint:Physics3DConeTwistConstraint () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DConstraint.lua b/meta/3rd/Cocos4.0/cc.Physics3DConstraint.lua new file mode 100644 index 00000000..f75e6d16 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DConstraint.lua @@ -0,0 +1,48 @@ + +---@class cc.Physics3DConstraint :cc.Ref +local Physics3DConstraint={ } +cc.Physics3DConstraint=Physics3DConstraint + + + + +---* set enable or not +---@param enabled boolean +---@return self +function Physics3DConstraint:setEnabled (enabled) end +---* set the impulse that break the constraint +---@param impulse float +---@return self +function Physics3DConstraint:setBreakingImpulse (impulse) end +---* get user data +---@return void +function Physics3DConstraint:getUserData () end +---* get the impulse that break the constraint +---@return float +function Physics3DConstraint:getBreakingImpulse () end +---* get rigid body a +---@return cc.Physics3DRigidBody +function Physics3DConstraint:getBodyA () end +---* is it enabled +---@return boolean +function Physics3DConstraint:isEnabled () end +---* get override number of solver iterations +---@return int +function Physics3DConstraint:getOverrideNumSolverIterations () end +---* get rigid body b +---@return cc.Physics3DRigidBody +function Physics3DConstraint:getBodyB () end +---* override the number of constraint solver iterations used to solve this constraint, -1 will use the default number of iterations, as specified in SolverInfo.m_numIterations +---@param overrideNumIterations int +---@return self +function Physics3DConstraint:setOverrideNumSolverIterations (overrideNumIterations) end +---* get constraint type +---@return int +function Physics3DConstraint:getConstraintType () end +---* get user data +---@param userData void +---@return self +function Physics3DConstraint:setUserData (userData) end +---* +---@return btTypedConstraint +function Physics3DConstraint:getbtContraint () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DHingeConstraint.lua b/meta/3rd/Cocos4.0/cc.Physics3DHingeConstraint.lua new file mode 100644 index 00000000..24232b95 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DHingeConstraint.lua @@ -0,0 +1,102 @@ + +---@class cc.Physics3DHingeConstraint :cc.Physics3DConstraint +local Physics3DHingeConstraint={ } +cc.Physics3DHingeConstraint=Physics3DHingeConstraint + + + + +---@overload fun(mat4_table:mat4_table,mat4_table:mat4_table):self +---@overload fun():self +---@param transA mat4_table +---@param transB mat4_table +---@return float +function Physics3DHingeConstraint:getHingeAngle (transA,transB) end +---* get motor target velocity +---@return float +function Physics3DHingeConstraint:getMotorTargetVelosity () end +---* get rigid body A's frame offset +---@return mat4_table +function Physics3DHingeConstraint:getFrameOffsetA () end +---* get rigid body B's frame offset +---@return mat4_table +function Physics3DHingeConstraint:getFrameOffsetB () end +---* set max motor impulse +---@param maxMotorImpulse float +---@return self +function Physics3DHingeConstraint:setMaxMotorImpulse (maxMotorImpulse) end +---* enable angular motor +---@param enableMotor boolean +---@param targetVelocity float +---@param maxMotorImpulse float +---@return self +function Physics3DHingeConstraint:enableAngularMotor (enableMotor,targetVelocity,maxMotorImpulse) end +---* get upper limit +---@return float +function Physics3DHingeConstraint:getUpperLimit () end +---* get max motor impulse +---@return float +function Physics3DHingeConstraint:getMaxMotorImpulse () end +---* get lower limit +---@return float +function Physics3DHingeConstraint:getLowerLimit () end +---* set use frame offset +---@param frameOffsetOnOff boolean +---@return self +function Physics3DHingeConstraint:setUseFrameOffset (frameOffsetOnOff) end +---* get enable angular motor +---@return boolean +function Physics3DHingeConstraint:getEnableAngularMotor () end +---* +---@param enableMotor boolean +---@return self +function Physics3DHingeConstraint:enableMotor (enableMotor) end +---* get B's frame +---@return mat4_table +function Physics3DHingeConstraint:getBFrame () end +---* set frames for rigid body A and B +---@param frameA mat4_table +---@param frameB mat4_table +---@return self +function Physics3DHingeConstraint:setFrames (frameA,frameB) end +---* access for UseFrameOffset +---@return boolean +function Physics3DHingeConstraint:getUseFrameOffset () end +---* set angular only +---@param angularOnly boolean +---@return self +function Physics3DHingeConstraint:setAngularOnly (angularOnly) end +---* set limit +---@param low float +---@param high float +---@param _softness float +---@param _biasFactor float +---@param _relaxationFactor float +---@return self +function Physics3DHingeConstraint:setLimit (low,high,_softness,_biasFactor,_relaxationFactor) end +---* get angular only +---@return boolean +function Physics3DHingeConstraint:getAngularOnly () end +---* set axis +---@param axisInA vec3_table +---@return self +function Physics3DHingeConstraint:setAxis (axisInA) end +---* get A's frame +---@return mat4_table +function Physics3DHingeConstraint:getAFrame () end +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody1:vec3_table,vec3_table:vec3_table,vec3_table3:boolean):self +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody1:mat4_table,vec3_table2:boolean):self +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody:cc.Physics3DRigidBody,vec3_table:vec3_table,vec3_table:vec3_table,vec3_table:vec3_table,vec3_table:vec3_table,boolean:boolean):self +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody:cc.Physics3DRigidBody,vec3_table2:mat4_table,vec3_table3:mat4_table,vec3_table4:boolean):self +---@param rbA cc.Physics3DRigidBody +---@param rbB cc.Physics3DRigidBody +---@param pivotInA vec3_table +---@param pivotInB vec3_table +---@param axisInA vec3_table +---@param axisInB vec3_table +---@param useReferenceFrameA boolean +---@return self +function Physics3DHingeConstraint:create (rbA,rbB,pivotInA,pivotInB,axisInA,axisInB,useReferenceFrameA) end +---* +---@return self +function Physics3DHingeConstraint:Physics3DHingeConstraint () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DObject.lua b/meta/3rd/Cocos4.0/cc.Physics3DObject.lua new file mode 100644 index 00000000..6ec52944 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DObject.lua @@ -0,0 +1,41 @@ + +---@class cc.Physics3DObject :cc.Ref +local Physics3DObject={ } +cc.Physics3DObject=Physics3DObject + + + + +---* Set the user data. +---@param userData void +---@return self +function Physics3DObject:setUserData (userData) end +---* Get the user data. +---@return void +function Physics3DObject:getUserData () end +---* Get the Physics3DObject Type. +---@return int +function Physics3DObject:getObjType () end +---* Internal method. Set the pointer of Physics3DWorld. +---@param world cc.Physics3DWorld +---@return self +function Physics3DObject:setPhysicsWorld (world) end +---* Get the world matrix of Physics3DObject. +---@return mat4_table +function Physics3DObject:getWorldTransform () end +---* Get the pointer of Physics3DWorld. +---@return cc.Physics3DWorld +function Physics3DObject:getPhysicsWorld () end +---* Set the mask of Physics3DObject. +---@param mask unsigned_int +---@return self +function Physics3DObject:setMask (mask) end +---* Get the collision callback function. +---@return function +function Physics3DObject:getCollisionCallback () end +---* Get the mask of Physics3DObject. +---@return unsigned_int +function Physics3DObject:getMask () end +---* Check has collision callback function. +---@return boolean +function Physics3DObject:needCollisionCallback () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DPointToPointConstraint.lua b/meta/3rd/Cocos4.0/cc.Physics3DPointToPointConstraint.lua new file mode 100644 index 00000000..8350f658 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DPointToPointConstraint.lua @@ -0,0 +1,41 @@ + +---@class cc.Physics3DPointToPointConstraint :cc.Physics3DConstraint +local Physics3DPointToPointConstraint={ } +cc.Physics3DPointToPointConstraint=Physics3DPointToPointConstraint + + + + +---* get pivot point in A's local space +---@return vec3_table +function Physics3DPointToPointConstraint:getPivotPointInA () end +---* get pivot point in B's local space +---@return vec3_table +function Physics3DPointToPointConstraint:getPivotPointInB () end +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody:cc.Physics3DRigidBody,vec3_table:vec3_table,vec3_table:vec3_table):self +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody1:vec3_table):self +---@param rbA cc.Physics3DRigidBody +---@param rbB cc.Physics3DRigidBody +---@param pivotPointInA vec3_table +---@param pivotPointInB vec3_table +---@return boolean +function Physics3DPointToPointConstraint:init (rbA,rbB,pivotPointInA,pivotPointInB) end +---* set pivot point in A's local space +---@param pivotA vec3_table +---@return self +function Physics3DPointToPointConstraint:setPivotPointInA (pivotA) end +---* set pivot point in B's local space +---@param pivotB vec3_table +---@return self +function Physics3DPointToPointConstraint:setPivotPointInB (pivotB) end +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody:cc.Physics3DRigidBody,vec3_table:vec3_table,vec3_table:vec3_table):self +---@overload fun(cc.Physics3DRigidBody:cc.Physics3DRigidBody,cc.Physics3DRigidBody1:vec3_table):self +---@param rbA cc.Physics3DRigidBody +---@param rbB cc.Physics3DRigidBody +---@param pivotPointInA vec3_table +---@param pivotPointInB vec3_table +---@return self +function Physics3DPointToPointConstraint:create (rbA,rbB,pivotPointInA,pivotPointInB) end +---* +---@return self +function Physics3DPointToPointConstraint:Physics3DPointToPointConstraint () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DRigidBody.lua b/meta/3rd/Cocos4.0/cc.Physics3DRigidBody.lua new file mode 100644 index 00000000..4214788c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DRigidBody.lua @@ -0,0 +1,203 @@ + +---@class cc.Physics3DRigidBody :cc.Physics3DObject +local Physics3DRigidBody={ } +cc.Physics3DRigidBody=Physics3DRigidBody + + + + +---* Set the acceleration. +---@param acceleration vec3_table +---@return self +function Physics3DRigidBody:setGravity (acceleration) end +---* Get friction. +---@return float +function Physics3DRigidBody:getFriction () end +---@overload fun(vec3_table0:float):self +---@overload fun(vec3_table:vec3_table):self +---@param angFac vec3_table +---@return self +function Physics3DRigidBody:setAngularFactor (angFac) end +---* +---@param constraint cc.Physics3DConstraint +---@return self +function Physics3DRigidBody:addConstraint (constraint) end +---* Get the pointer of btRigidBody. +---@return btRigidBody +function Physics3DRigidBody:getRigidBody () end +---* Get total force. +---@return vec3_table +function Physics3DRigidBody:getTotalForce () end +---* Get the total number of constraints. +---@return unsigned_int +function Physics3DRigidBody:getConstraintCount () end +---* Apply a central force.<br> +---* param force the value of the force +---@param force vec3_table +---@return self +function Physics3DRigidBody:applyCentralForce (force) end +---* Set mass and inertia. +---@param mass float +---@param inertia vec3_table +---@return self +function Physics3DRigidBody:setMassProps (mass,inertia) end +---* Set friction. +---@param frict float +---@return self +function Physics3DRigidBody:setFriction (frict) end +---* Set kinematic object. +---@param kinematic boolean +---@return self +function Physics3DRigidBody:setKinematic (kinematic) end +---* Set linear damping and angular damping. +---@param lin_damping float +---@param ang_damping float +---@return self +function Physics3DRigidBody:setDamping (lin_damping,ang_damping) end +---* Apply a impulse.<br> +---* param impulse the value of the impulse<br> +---* param rel_pos the position of the impulse +---@param impulse vec3_table +---@param rel_pos vec3_table +---@return self +function Physics3DRigidBody:applyImpulse (impulse,rel_pos) end +---* Check rigid body is kinematic object. +---@return boolean +function Physics3DRigidBody:isKinematic () end +---* Apply a torque.<br> +---* param torque the value of the torque +---@param torque vec3_table +---@return self +function Physics3DRigidBody:applyTorque (torque) end +---* Set motion threshold, don't do continuous collision detection if the motion (in one step) is less then ccdMotionThreshold +---@param ccdMotionThreshold float +---@return self +function Physics3DRigidBody:setCcdMotionThreshold (ccdMotionThreshold) end +---* Set rolling friction. +---@param frict float +---@return self +function Physics3DRigidBody:setRollingFriction (frict) end +---* Get motion threshold. +---@return float +function Physics3DRigidBody:getCcdMotionThreshold () end +---* Get the linear factor. +---@return vec3_table +function Physics3DRigidBody:getLinearFactor () end +---* Damps the velocity, using the given linearDamping and angularDamping. +---@param timeStep float +---@return self +function Physics3DRigidBody:applyDamping (timeStep) end +---* Get the angular velocity. +---@return vec3_table +function Physics3DRigidBody:getAngularVelocity () end +---* +---@param info cc.Physics3DRigidBodyDes +---@return boolean +function Physics3DRigidBody:init (info) end +---* Apply a torque impulse.<br> +---* param torque the value of the torque +---@param torque vec3_table +---@return self +function Physics3DRigidBody:applyTorqueImpulse (torque) end +---* Active or inactive. +---@param active boolean +---@return self +function Physics3DRigidBody:setActive (active) end +---* Set the linear factor. +---@param linearFactor vec3_table +---@return self +function Physics3DRigidBody:setLinearFactor (linearFactor) end +---* Set the linear velocity. +---@param lin_vel vec3_table +---@return self +function Physics3DRigidBody:setLinearVelocity (lin_vel) end +---* Get the linear velocity. +---@return vec3_table +function Physics3DRigidBody:getLinearVelocity () end +---* Set swept sphere radius. +---@param radius float +---@return self +function Physics3DRigidBody:setCcdSweptSphereRadius (radius) end +---* Apply a force.<br> +---* param force the value of the force<br> +---* param rel_pos the position of the force +---@param force vec3_table +---@param rel_pos vec3_table +---@return self +function Physics3DRigidBody:applyForce (force,rel_pos) end +---* Set the angular velocity. +---@param ang_vel vec3_table +---@return self +function Physics3DRigidBody:setAngularVelocity (ang_vel) end +---* Apply a central impulse.<br> +---* param impulse the value of the impulse +---@param impulse vec3_table +---@return self +function Physics3DRigidBody:applyCentralImpulse (impulse) end +---* Get the acceleration. +---@return vec3_table +function Physics3DRigidBody:getGravity () end +---* Get rolling friction. +---@return float +function Physics3DRigidBody:getRollingFriction () end +---* Set the center of mass. +---@param xform mat4_table +---@return self +function Physics3DRigidBody:setCenterOfMassTransform (xform) end +---* Set the inverse of local inertia. +---@param diagInvInertia vec3_table +---@return self +function Physics3DRigidBody:setInvInertiaDiagLocal (diagInvInertia) end +---@overload fun(cc.Physics3DConstraint0:unsigned_int):self +---@overload fun(cc.Physics3DConstraint:cc.Physics3DConstraint):self +---@param constraint cc.Physics3DConstraint +---@return self +function Physics3DRigidBody:removeConstraint (constraint) end +---* Get total torque. +---@return vec3_table +function Physics3DRigidBody:getTotalTorque () end +---* Get inverse of mass. +---@return float +function Physics3DRigidBody:getInvMass () end +---* Get constraint by index. +---@param idx unsigned_int +---@return cc.Physics3DConstraint +function Physics3DRigidBody:getConstraint (idx) end +---* Get restitution. +---@return float +function Physics3DRigidBody:getRestitution () end +---* Get swept sphere radius. +---@return float +function Physics3DRigidBody:getCcdSweptSphereRadius () end +---* Get hit friction. +---@return float +function Physics3DRigidBody:getHitFraction () end +---* Get angular damping. +---@return float +function Physics3DRigidBody:getAngularDamping () end +---* Get the inverse of local inertia. +---@return vec3_table +function Physics3DRigidBody:getInvInertiaDiagLocal () end +---* Get the center of mass. +---@return mat4_table +function Physics3DRigidBody:getCenterOfMassTransform () end +---* Get the angular factor. +---@return vec3_table +function Physics3DRigidBody:getAngularFactor () end +---* Set restitution. +---@param rest float +---@return self +function Physics3DRigidBody:setRestitution (rest) end +---* Set hit friction. +---@param hitFraction float +---@return self +function Physics3DRigidBody:setHitFraction (hitFraction) end +---* Get linear damping. +---@return float +function Physics3DRigidBody:getLinearDamping () end +---* override. +---@return mat4_table +function Physics3DRigidBody:getWorldTransform () end +---* +---@return self +function Physics3DRigidBody:Physics3DRigidBody () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DShape.lua b/meta/3rd/Cocos4.0/cc.Physics3DShape.lua new file mode 100644 index 00000000..a9e4e88c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DShape.lua @@ -0,0 +1,66 @@ + +---@class cc.Physics3DShape :cc.Ref +local Physics3DShape={ } +cc.Physics3DShape=Physics3DShape + + + + +---* +---@return btCollisionShape +function Physics3DShape:getbtShape () end +---* +---@param radius float +---@return boolean +function Physics3DShape:initSphere (radius) end +---* +---@param ext vec3_table +---@return boolean +function Physics3DShape:initBox (ext) end +---* +---@param radius float +---@param height float +---@return boolean +function Physics3DShape:initCapsule (radius,height) end +---* +---@param radius float +---@param height float +---@return boolean +function Physics3DShape:initCylinder (radius,height) end +---* get shape type +---@return int +function Physics3DShape:getShapeType () end +---* create box shape<br> +---* param extent The extent of sphere. +---@param extent vec3_table +---@return self +function Physics3DShape:createBox (extent) end +---* create cylinder shape<br> +---* param radius The radius of cylinder.<br> +---* param height The height. +---@param radius float +---@param height float +---@return self +function Physics3DShape:createCylinder (radius,height) end +---* create convex hull<br> +---* param points The vertices of convex hull<br> +---* param numPoints The number of vertices. +---@param points vec3_table +---@param numPoints int +---@return self +function Physics3DShape:createConvexHull (points,numPoints) end +---* create capsule shape<br> +---* param radius The radius of capsule.<br> +---* param height The height (cylinder part). +---@param radius float +---@param height float +---@return self +function Physics3DShape:createCapsule (radius,height) end +---* create sphere shape<br> +---* param radius The radius of sphere. +---@param radius float +---@return self +function Physics3DShape:createSphere (radius) end +---* +---@return self +function Physics3DShape:Physics3DShape () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DSliderConstraint.lua b/meta/3rd/Cocos4.0/cc.Physics3DSliderConstraint.lua new file mode 100644 index 00000000..689089b0 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DSliderConstraint.lua @@ -0,0 +1,247 @@ + +---@class cc.Physics3DSliderConstraint :cc.Physics3DConstraint +local Physics3DSliderConstraint={ } +cc.Physics3DSliderConstraint=Physics3DSliderConstraint + + + + +---* +---@param onOff boolean +---@return self +function Physics3DSliderConstraint:setPoweredAngMotor (onOff) end +---* +---@return float +function Physics3DSliderConstraint:getDampingLimAng () end +---* +---@param restitutionOrthoLin float +---@return self +function Physics3DSliderConstraint:setRestitutionOrthoLin (restitutionOrthoLin) end +---* +---@param restitutionDirLin float +---@return self +function Physics3DSliderConstraint:setRestitutionDirLin (restitutionDirLin) end +---* +---@return float +function Physics3DSliderConstraint:getLinearPos () end +---* get A's frame offset +---@return mat4_table +function Physics3DSliderConstraint:getFrameOffsetA () end +---* get B's frame offset +---@return mat4_table +function Physics3DSliderConstraint:getFrameOffsetB () end +---* +---@param onOff boolean +---@return self +function Physics3DSliderConstraint:setPoweredLinMotor (onOff) end +---* +---@return float +function Physics3DSliderConstraint:getDampingDirAng () end +---* +---@return float +function Physics3DSliderConstraint:getRestitutionLimLin () end +---* +---@return float +function Physics3DSliderConstraint:getSoftnessOrthoAng () end +---* +---@param softnessOrthoLin float +---@return self +function Physics3DSliderConstraint:setSoftnessOrthoLin (softnessOrthoLin) end +---* +---@param softnessLimLin float +---@return self +function Physics3DSliderConstraint:setSoftnessLimLin (softnessLimLin) end +---* +---@return float +function Physics3DSliderConstraint:getAngularPos () end +---* +---@param restitutionLimAng float +---@return self +function Physics3DSliderConstraint:setRestitutionLimAng (restitutionLimAng) end +---* set upper linear limit +---@param upperLimit float +---@return self +function Physics3DSliderConstraint:setUpperLinLimit (upperLimit) end +---* +---@param dampingDirLin float +---@return self +function Physics3DSliderConstraint:setDampingDirLin (dampingDirLin) end +---* get upper angular limit +---@return float +function Physics3DSliderConstraint:getUpperAngLimit () end +---* +---@return float +function Physics3DSliderConstraint:getDampingDirLin () end +---* +---@return float +function Physics3DSliderConstraint:getSoftnessDirAng () end +---* +---@return boolean +function Physics3DSliderConstraint:getPoweredAngMotor () end +---* set lower angular limit +---@param lowerLimit float +---@return self +function Physics3DSliderConstraint:setLowerAngLimit (lowerLimit) end +---* set upper angular limit +---@param upperLimit float +---@return self +function Physics3DSliderConstraint:setUpperAngLimit (upperLimit) end +---* +---@param targetLinMotorVelocity float +---@return self +function Physics3DSliderConstraint:setTargetLinMotorVelocity (targetLinMotorVelocity) end +---* +---@param dampingLimAng float +---@return self +function Physics3DSliderConstraint:setDampingLimAng (dampingLimAng) end +---* +---@return float +function Physics3DSliderConstraint:getRestitutionLimAng () end +---* access for UseFrameOffset +---@return boolean +function Physics3DSliderConstraint:getUseFrameOffset () end +---* +---@return float +function Physics3DSliderConstraint:getSoftnessOrthoLin () end +---* +---@return float +function Physics3DSliderConstraint:getDampingOrthoAng () end +---* set use frame offset +---@param frameOffsetOnOff boolean +---@return self +function Physics3DSliderConstraint:setUseFrameOffset (frameOffsetOnOff) end +---* set lower linear limit +---@param lowerLimit float +---@return self +function Physics3DSliderConstraint:setLowerLinLimit (lowerLimit) end +---* +---@return float +function Physics3DSliderConstraint:getRestitutionDirLin () end +---* +---@return float +function Physics3DSliderConstraint:getTargetLinMotorVelocity () end +---* get lower linear limit +---@return float +function Physics3DSliderConstraint:getLowerLinLimit () end +---* +---@return float +function Physics3DSliderConstraint:getSoftnessLimLin () end +---* +---@param dampingOrthoAng float +---@return self +function Physics3DSliderConstraint:setDampingOrthoAng (dampingOrthoAng) end +---* +---@param softnessDirAng float +---@return self +function Physics3DSliderConstraint:setSoftnessDirAng (softnessDirAng) end +---* +---@return boolean +function Physics3DSliderConstraint:getPoweredLinMotor () end +---* +---@param restitutionOrthoAng float +---@return self +function Physics3DSliderConstraint:setRestitutionOrthoAng (restitutionOrthoAng) end +---* +---@param dampingDirAng float +---@return self +function Physics3DSliderConstraint:setDampingDirAng (dampingDirAng) end +---* set frames for rigid body A and B +---@param frameA mat4_table +---@param frameB mat4_table +---@return self +function Physics3DSliderConstraint:setFrames (frameA,frameB) end +---* +---@return float +function Physics3DSliderConstraint:getRestitutionOrthoAng () end +---* +---@return float +function Physics3DSliderConstraint:getMaxAngMotorForce () end +---* +---@return float +function Physics3DSliderConstraint:getDampingOrthoLin () end +---* get upper linear limit +---@return float +function Physics3DSliderConstraint:getUpperLinLimit () end +---* +---@param maxLinMotorForce float +---@return self +function Physics3DSliderConstraint:setMaxLinMotorForce (maxLinMotorForce) end +---* +---@return float +function Physics3DSliderConstraint:getRestitutionOrthoLin () end +---* +---@param targetAngMotorVelocity float +---@return self +function Physics3DSliderConstraint:setTargetAngMotorVelocity (targetAngMotorVelocity) end +---* +---@return float +function Physics3DSliderConstraint:getSoftnessLimAng () end +---* +---@param restitutionDirAng float +---@return self +function Physics3DSliderConstraint:setRestitutionDirAng (restitutionDirAng) end +---* +---@return float +function Physics3DSliderConstraint:getDampingLimLin () end +---* get lower angular limit +---@return float +function Physics3DSliderConstraint:getLowerAngLimit () end +---* +---@return float +function Physics3DSliderConstraint:getRestitutionDirAng () end +---* +---@return float +function Physics3DSliderConstraint:getTargetAngMotorVelocity () end +---* +---@param restitutionLimLin float +---@return self +function Physics3DSliderConstraint:setRestitutionLimLin (restitutionLimLin) end +---* +---@return float +function Physics3DSliderConstraint:getMaxLinMotorForce () end +---* +---@param dampingOrthoLin float +---@return self +function Physics3DSliderConstraint:setDampingOrthoLin (dampingOrthoLin) end +---* +---@param softnessOrthoAng float +---@return self +function Physics3DSliderConstraint:setSoftnessOrthoAng (softnessOrthoAng) end +---* +---@param dampingLimLin float +---@return self +function Physics3DSliderConstraint:setDampingLimLin (dampingLimLin) end +---* +---@param softnessDirLin float +---@return self +function Physics3DSliderConstraint:setSoftnessDirLin (softnessDirLin) end +---* +---@param maxAngMotorForce float +---@return self +function Physics3DSliderConstraint:setMaxAngMotorForce (maxAngMotorForce) end +---* +---@return float +function Physics3DSliderConstraint:getSoftnessDirLin () end +---* +---@param softnessLimAng float +---@return self +function Physics3DSliderConstraint:setSoftnessLimAng (softnessLimAng) end +---* use A's frame as linear reference +---@return boolean +function Physics3DSliderConstraint:getUseLinearReferenceFrameA () end +---* create slider constraint<br> +---* param rbA rigid body A<br> +---* param rbB rigid body B<br> +---* param frameInA frame in A's local space<br> +---* param frameInB frame in B's local space<br> +---* param useLinearReferenceFrameA use fixed frame A for linear limits +---@param rbA cc.Physics3DRigidBody +---@param rbB cc.Physics3DRigidBody +---@param frameInA mat4_table +---@param frameInB mat4_table +---@param useLinearReferenceFrameA boolean +---@return self +function Physics3DSliderConstraint:create (rbA,rbB,frameInA,frameInB,useLinearReferenceFrameA) end +---* +---@return self +function Physics3DSliderConstraint:Physics3DSliderConstraint () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Physics3DWorld.lua b/meta/3rd/Cocos4.0/cc.Physics3DWorld.lua new file mode 100644 index 00000000..66b363e5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DWorld.lua @@ -0,0 +1,65 @@ + +---@class cc.Physics3DWorld :cc.Ref +local Physics3DWorld={ } +cc.Physics3DWorld=Physics3DWorld + + + + +---* set gravity for the physics world +---@param gravity vec3_table +---@return self +function Physics3DWorld:setGravity (gravity) end +---* Simulate one frame. +---@param dt float +---@return self +function Physics3DWorld:stepSimulate (dt) end +---* +---@return boolean +function Physics3DWorld:needCollisionChecking () end +---* +---@return self +function Physics3DWorld:collisionChecking () end +---* +---@return self +function Physics3DWorld:setGhostPairCallback () end +---* Remove all Physics3DObjects. +---@return self +function Physics3DWorld:removeAllPhysics3DObjects () end +---* Check debug drawing is enabled. +---@return boolean +function Physics3DWorld:isDebugDrawEnabled () end +---* Remove all Physics3DConstraint. +---@return self +function Physics3DWorld:removeAllPhysics3DConstraints () end +---* get current gravity +---@return vec3_table +function Physics3DWorld:getGravity () end +---* Remove a Physics3DConstraint. +---@param constraint cc.Physics3DConstraint +---@return self +function Physics3DWorld:removePhysics3DConstraint (constraint) end +---* Add a Physics3DObject. +---@param physicsObj cc.Physics3DObject +---@return self +function Physics3DWorld:addPhysics3DObject (physicsObj) end +---* Enable or disable debug drawing. +---@param enableDebugDraw boolean +---@return self +function Physics3DWorld:setDebugDrawEnable (enableDebugDraw) end +---* Remove a Physics3DObject. +---@param physicsObj cc.Physics3DObject +---@return self +function Physics3DWorld:removePhysics3DObject (physicsObj) end +---* Add a Physics3DConstraint. +---@param constraint cc.Physics3DConstraint +---@param disableCollisionsBetweenLinkedObjs boolean +---@return self +function Physics3DWorld:addPhysics3DConstraint (constraint,disableCollisionsBetweenLinkedObjs) end +---* Internal method, the updater of debug drawing, need called each frame. +---@param renderer cc.Renderer +---@return self +function Physics3DWorld:debugDraw (renderer) end +---* +---@return self +function Physics3DWorld:Physics3DWorld () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsBody.lua b/meta/3rd/Cocos4.0/cc.PhysicsBody.lua new file mode 100644 index 00000000..ac7c8582 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsBody.lua @@ -0,0 +1,337 @@ + +---@class cc.PhysicsBody :cc.Component +local PhysicsBody={ } +cc.PhysicsBody=PhysicsBody + + + + +---* Whether this physics body is affected by the physics world's gravitational force. +---@return boolean +function PhysicsBody:isGravityEnabled () end +---* reset all the force applied to body. +---@return self +function PhysicsBody:resetForces () end +---* get the max of velocity +---@return float +function PhysicsBody:getVelocityLimit () end +---* Set the group of body.<br> +---* Collision groups let you specify an integral group index. You can have all fixtures with the same group index always collide (positive index) or never collide (negative index).<br> +---* It have high priority than bit masks. +---@param group int +---@return self +function PhysicsBody:setGroup (group) end +---* Get the body mass. +---@return float +function PhysicsBody:getMass () end +---* Return bitmask of first shape.<br> +---* return If there is no shape in body, return default value.(0xFFFFFFFF) +---@return int +function PhysicsBody:getCollisionBitmask () end +---* set the body rotation offset +---@return float +function PhysicsBody:getRotationOffset () end +---* get the body rotation. +---@return float +function PhysicsBody:getRotation () end +---* Get the body moment of inertia. +---@return float +function PhysicsBody:getMoment () end +---* Applies a immediate force to body.<br> +---* param impulse The impulse is applies to this body.<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in world coordinates. +---@param impulse vec2_table +---@param offset vec2_table +---@return self +function PhysicsBody:applyImpulse (impulse,offset) end +---* set body rotation offset, it's the rotation witch relative to node +---@param rotation float +---@return self +function PhysicsBody:setRotationOffset (rotation) end +---* Applies a continuous force to body.<br> +---* param force The force is applies to this body.<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in world coordinates. +---@param force vec2_table +---@param offset vec2_table +---@return self +function PhysicsBody:applyForce (force,offset) end +---* brief Add a shape to body.<br> +---* param shape The shape to be added.<br> +---* param addMassAndMoment If this is true, the shape's mass and moment will be added to body. The default is true.<br> +---* return This shape's pointer if added success or nullptr if failed. +---@param shape cc.PhysicsShape +---@param addMassAndMoment boolean +---@return cc.PhysicsShape +function PhysicsBody:addShape (shape,addMassAndMoment) end +---* Applies a torque force to body.<br> +---* param torque The torque is applies to this body. +---@param torque float +---@return self +function PhysicsBody:applyTorque (torque) end +---* get the max of angular velocity +---@return float +function PhysicsBody:getAngularVelocityLimit () end +---* set the max of angular velocity +---@param limit float +---@return self +function PhysicsBody:setAngularVelocityLimit (limit) end +---* Get the velocity of a body. +---@return vec2_table +function PhysicsBody:getVelocity () end +---* get linear damping. +---@return float +function PhysicsBody:getLinearDamping () end +---* Remove all shapes.<br> +---* param reduceMassAndMoment If this is true, the body mass and moment will be reduced by shape. The default is true. +---@return self +function PhysicsBody:removeAllShapes () end +---* Set angular damping.<br> +---* It is used to simulate fluid or air friction forces on the body.<br> +---* param damping The value is 0.0f to 1.0f. +---@param damping float +---@return self +function PhysicsBody:setAngularDamping (damping) end +---* set the max of velocity +---@param limit float +---@return self +function PhysicsBody:setVelocityLimit (limit) end +---* set body to rest +---@param rest boolean +---@return self +function PhysicsBody:setResting (rest) end +---* get body position offset. +---@return vec2_table +function PhysicsBody:getPositionOffset () end +---* A mask that defines which categories this physics body belongs to.<br> +---* Every physics body in a scene can be assigned to up to 32 different categories, each corresponding to a bit in the bit mask. You define the mask values used in your game. In conjunction with the collisionBitMask and contactTestBitMask properties, you define which physics bodies interact with each other and when your game is notified of these interactions.<br> +---* param bitmask An integer number, the default value is 0xFFFFFFFF (all bits set). +---@param bitmask int +---@return self +function PhysicsBody:setCategoryBitmask (bitmask) end +---* get the world body added to. +---@return cc.PhysicsWorld +function PhysicsBody:getWorld () end +---* get the angular velocity of a body +---@return float +function PhysicsBody:getAngularVelocity () end +---* get the body position. +---@return vec2_table +function PhysicsBody:getPosition () end +---* Set the body is affected by the physics world's gravitational force or not. +---@param enable boolean +---@return self +function PhysicsBody:setGravityEnable (enable) end +---* Return group of first shape.<br> +---* return If there is no shape in body, return default value.(0) +---@return int +function PhysicsBody:getGroup () end +---* brief Set the body moment of inertia.<br> +---* note If you need add/subtract moment to body, don't use setMoment(getMoment() +/- moment), because the moment of body may be equal to PHYSICS_INFINITY, it will cause some unexpected result, please use addMoment() instead. +---@param moment float +---@return self +function PhysicsBody:setMoment (moment) end +---* Get the body's tag. +---@return int +function PhysicsBody:getTag () end +---* Convert the local point to world. +---@param point vec2_table +---@return vec2_table +function PhysicsBody:local2World (point) end +---* Return bitmask of first shape.<br> +---* return If there is no shape in body, return default value.(0xFFFFFFFF) +---@return int +function PhysicsBody:getCategoryBitmask () end +---* brief Set dynamic to body.<br> +---* A dynamic body will effect with gravity. +---@param dynamic boolean +---@return self +function PhysicsBody:setDynamic (dynamic) end +---* Get the first shape of the body shapes.<br> +---* return The first shape in this body. +---@return cc.PhysicsShape +function PhysicsBody:getFirstShape () end +---* Get the body shapes.<br> +---* return A Vector<PhysicsShape*> object contains PhysicsShape pointer. +---@return array_table +function PhysicsBody:getShapes () end +---* Return bitmask of first shape.<br> +---* return If there is no shape in body, return default value.(0x00000000) +---@return int +function PhysicsBody:getContactTestBitmask () end +---* Set the angular velocity of a body.<br> +---* param velocity The angular velocity is set to this body. +---@param velocity float +---@return self +function PhysicsBody:setAngularVelocity (velocity) end +---* Convert the world point to local. +---@param point vec2_table +---@return vec2_table +function PhysicsBody:world2Local (point) end +---@overload fun(cc.PhysicsShape0:int,boolean:boolean):self +---@overload fun(cc.PhysicsShape:cc.PhysicsShape,boolean:boolean):self +---@param shape cc.PhysicsShape +---@param reduceMassAndMoment boolean +---@return self +function PhysicsBody:removeShape (shape,reduceMassAndMoment) end +---* brief Set the body mass.<br> +---* attention If you need add/subtract mass to body, don't use setMass(getMass() +/- mass), because the mass of body may be equal to PHYSICS_INFINITY, it will cause some unexpected result, please use addMass() instead. +---@param mass float +---@return self +function PhysicsBody:setMass (mass) end +---* brief Add moment of inertia to body.<br> +---* param moment If _moment(moment of the body) == PHYSICS_INFINITY, it remains.<br> +---* if moment == PHYSICS_INFINITY, _moment will be PHYSICS_INFINITY.<br> +---* if moment == -PHYSICS_INFINITY, _moment will not change.<br> +---* if moment + _moment <= 0, _moment will equal to MASS_DEFAULT(1.0)<br> +---* other wise, moment = moment + _moment; +---@param moment float +---@return self +function PhysicsBody:addMoment (moment) end +---* Set the velocity of a body.<br> +---* param velocity The velocity is set to this body. +---@param velocity vec2_table +---@return self +function PhysicsBody:setVelocity (velocity) end +---* Set linear damping.<br> +---* it is used to simulate fluid or air friction forces on the body.<br> +---* param damping The value is 0.0f to 1.0f. +---@param damping float +---@return self +function PhysicsBody:setLinearDamping (damping) end +---* A mask that defines which categories of physics bodies can collide with this physics body.<br> +---* When two physics bodies contact each other, a collision may occur. This body's collision mask is compared to the other body's category mask by performing a logical AND operation. If the result is a non-zero value, then this body is affected by the collision. Each body independently chooses whether it wants to be affected by the other body. For example, you might use this to avoid collision calculations that would make negligible changes to a body's velocity.<br> +---* param bitmask An integer number, the default value is 0xFFFFFFFF (all bits set). +---@param bitmask int +---@return self +function PhysicsBody:setCollisionBitmask (bitmask) end +---* set body position offset, it's the position witch relative to node +---@param position vec2_table +---@return self +function PhysicsBody:setPositionOffset (position) end +---* Set the body is allow rotation or not +---@param enable boolean +---@return self +function PhysicsBody:setRotationEnable (enable) end +---* Whether the body can rotation. +---@return boolean +function PhysicsBody:isRotationEnabled () end +---* Get the rigid body of chipmunk. +---@return cpBody +function PhysicsBody:getCPBody () end +---* Get angular damping. +---@return float +function PhysicsBody:getAngularDamping () end +---* Get the angular velocity of a body at a local point. +---@param point vec2_table +---@return vec2_table +function PhysicsBody:getVelocityAtLocalPoint (point) end +---* Whether the body is at rest. +---@return boolean +function PhysicsBody:isResting () end +---* brief Add mass to body.<br> +---* param mass If _mass(mass of the body) == PHYSICS_INFINITY, it remains.<br> +---* if mass == PHYSICS_INFINITY, _mass will be PHYSICS_INFINITY.<br> +---* if mass == -PHYSICS_INFINITY, _mass will not change.<br> +---* if mass + _mass <= 0, _mass will equal to MASS_DEFAULT(1.0)<br> +---* other wise, mass = mass + _mass; +---@param mass float +---@return self +function PhysicsBody:addMass (mass) end +---* get the shape of the body.<br> +---* param tag An integer number that identifies a PhysicsShape object.<br> +---* return A PhysicsShape object pointer or nullptr if no shapes were found. +---@param tag int +---@return cc.PhysicsShape +function PhysicsBody:getShape (tag) end +---* set the body's tag. +---@param tag int +---@return self +function PhysicsBody:setTag (tag) end +---* get the angular velocity of a body at a world point +---@param point vec2_table +---@return vec2_table +function PhysicsBody:getVelocityAtWorldPoint (point) end +---* A mask that defines which categories of bodies cause intersection notifications with this physics body.<br> +---* When two bodies share the same space, each body's category mask is tested against the other body's contact mask by performing a logical AND operation. If either comparison results in a non-zero value, an PhysicsContact object is created and passed to the physics world’s delegate. For best performance, only set bits in the contacts mask for interactions you are interested in.<br> +---* param bitmask An integer number, the default value is 0x00000000 (all bits cleared). +---@param bitmask int +---@return self +function PhysicsBody:setContactTestBitmask (bitmask) end +---* remove the body from the world it added to +---@return self +function PhysicsBody:removeFromWorld () end +---* brief Test the body is dynamic or not.<br> +---* A dynamic body will effect with gravity. +---@return boolean +function PhysicsBody:isDynamic () end +---* get the node the body set to. +---@return cc.Node +function PhysicsBody:getNode () end +---* Create a body contains a box shape.<br> +---* param size Size contains this box's width and height.<br> +---* param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates.<br> +---* return An autoreleased PhysicsBody object pointer. +---@param size size_table +---@param material cc.PhysicsMaterial +---@param offset vec2_table +---@return self +function PhysicsBody:createBox (size,material,offset) end +---* Create a body contains a EdgeSegment shape.<br> +---* param a It's the edge's begin position.<br> +---* param b It's the edge's end position.<br> +---* param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br> +---* param border It's a edge's border width.<br> +---* return An autoreleased PhysicsBody object pointer. +---@param a vec2_table +---@param b vec2_table +---@param material cc.PhysicsMaterial +---@param border float +---@return self +function PhysicsBody:createEdgeSegment (a,b,material,border) end +---@overload fun(float:float):self +---@overload fun():self +---@overload fun(float:float,float:float):self +---@param mass float +---@param moment float +---@return self +function PhysicsBody:create (mass,moment) end +---* Create a body contains a EdgeBox shape.<br> +---* param size Size contains this box's width and height.<br> +---* param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br> +---* param border It's a edge's border width.<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates.<br> +---* return An autoreleased PhysicsBody object pointer. +---@param size size_table +---@param material cc.PhysicsMaterial +---@param border float +---@param offset vec2_table +---@return self +function PhysicsBody:createEdgeBox (size,material,border,offset) end +---* Create a body contains a circle.<br> +---* param radius A float number, it is the circle's radius.<br> +---* param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates.<br> +---* return An autoreleased PhysicsBody object pointer. +---@param radius float +---@param material cc.PhysicsMaterial +---@param offset vec2_table +---@return self +function PhysicsBody:createCircle (radius,material,offset) end +---* Set the enable value.<br> +---* If the body it isn't enabled, it will not has simulation by world. +---@param enable boolean +---@return self +function PhysicsBody:setEnabled (enable) end +---* +---@return self +function PhysicsBody:onRemove () end +---* +---@return self +function PhysicsBody:onEnter () end +---* +---@return self +function PhysicsBody:onExit () end +---* +---@return self +function PhysicsBody:onAdd () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsContact.lua b/meta/3rd/Cocos4.0/cc.PhysicsContact.lua new file mode 100644 index 00000000..83824ece --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsContact.lua @@ -0,0 +1,23 @@ + +---@class cc.PhysicsContact :cc.EventCustom +local PhysicsContact={ } +cc.PhysicsContact=PhysicsContact + + + + +---* Get contact data. +---@return cc.PhysicsContactData +function PhysicsContact:getContactData () end +---* Get the event code +---@return int +function PhysicsContact:getEventCode () end +---* Get previous contact data +---@return cc.PhysicsContactData +function PhysicsContact:getPreContactData () end +---* Get contact shape A. +---@return cc.PhysicsShape +function PhysicsContact:getShapeA () end +---* Get contact shape B. +---@return cc.PhysicsShape +function PhysicsContact:getShapeB () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsContactPostSolve.lua b/meta/3rd/Cocos4.0/cc.PhysicsContactPostSolve.lua new file mode 100644 index 00000000..30512324 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsContactPostSolve.lua @@ -0,0 +1,17 @@ + +---@class cc.PhysicsContactPostSolve +local PhysicsContactPostSolve={ } +cc.PhysicsContactPostSolve=PhysicsContactPostSolve + + + + +---* Get friction between two bodies. +---@return float +function PhysicsContactPostSolve:getFriction () end +---* Get surface velocity between two bodies. +---@return vec2_table +function PhysicsContactPostSolve:getSurfaceVelocity () end +---* Get restitution between two bodies. +---@return float +function PhysicsContactPostSolve:getRestitution () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsContactPreSolve.lua b/meta/3rd/Cocos4.0/cc.PhysicsContactPreSolve.lua new file mode 100644 index 00000000..84c132b3 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsContactPreSolve.lua @@ -0,0 +1,32 @@ + +---@class cc.PhysicsContactPreSolve +local PhysicsContactPreSolve={ } +cc.PhysicsContactPreSolve=PhysicsContactPreSolve + + + + +---* Get friction between two bodies. +---@return float +function PhysicsContactPreSolve:getFriction () end +---* Get restitution between two bodies. +---@return float +function PhysicsContactPreSolve:getRestitution () end +---* Set the friction. +---@param friction float +---@return self +function PhysicsContactPreSolve:setFriction (friction) end +---* Ignore the rest of the contact presolve and postsolve callbacks. +---@return self +function PhysicsContactPreSolve:ignore () end +---* Get surface velocity between two bodies. +---@return vec2_table +function PhysicsContactPreSolve:getSurfaceVelocity () end +---* Set the surface velocity. +---@param velocity vec2_table +---@return self +function PhysicsContactPreSolve:setSurfaceVelocity (velocity) end +---* Set the restitution. +---@param restitution float +---@return self +function PhysicsContactPreSolve:setRestitution (restitution) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJoint.lua b/meta/3rd/Cocos4.0/cc.PhysicsJoint.lua new file mode 100644 index 00000000..d03bb931 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJoint.lua @@ -0,0 +1,50 @@ + +---@class cc.PhysicsJoint +local PhysicsJoint={ } +cc.PhysicsJoint=PhysicsJoint + + + + +---* Get physics body a connected to this joint. +---@return cc.PhysicsBody +function PhysicsJoint:getBodyA () end +---* Get physics body b connected to this joint. +---@return cc.PhysicsBody +function PhysicsJoint:getBodyB () end +---* Get the max force setting. +---@return float +function PhysicsJoint:getMaxForce () end +---* Set the max force between two bodies. +---@param force float +---@return self +function PhysicsJoint:setMaxForce (force) end +---* Determines if the joint is enable. +---@return boolean +function PhysicsJoint:isEnabled () end +---* Enable/Disable the joint. +---@param enable boolean +---@return self +function PhysicsJoint:setEnable (enable) end +---* Enable/disable the collision between two bodies. +---@param enable boolean +---@return self +function PhysicsJoint:setCollisionEnable (enable) end +---* Get the physics world. +---@return cc.PhysicsWorld +function PhysicsJoint:getWorld () end +---* Set this joint's tag.<br> +---* param tag An integer number that identifies a PhysicsJoint. +---@param tag int +---@return self +function PhysicsJoint:setTag (tag) end +---* Remove the joint from the world. +---@return self +function PhysicsJoint:removeFormWorld () end +---* Determines if the collision is enable. +---@return boolean +function PhysicsJoint:isCollisionEnabled () end +---* Get this joint's tag.<br> +---* return An integer number. +---@return int +function PhysicsJoint:getTag () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua new file mode 100644 index 00000000..e98dec17 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua @@ -0,0 +1,30 @@ + +---@class cc.PhysicsJointDistance :cc.PhysicsJoint +local PhysicsJointDistance={ } +cc.PhysicsJointDistance=PhysicsJointDistance + + + + +---* +---@return boolean +function PhysicsJointDistance:createConstraints () end +---* Set the distance of the anchor points. +---@param distance float +---@return self +function PhysicsJointDistance:setDistance (distance) end +---* Get the distance of the anchor points. +---@return float +function PhysicsJointDistance:getDistance () end +---* Create a fixed distance joint.<br> +---* param a A is the body to connect.<br> +---* param b B is the body to connect.<br> +---* param anchr1 Anchr1 is the anchor point on body a.<br> +---* param anchr2 Anchr2 is the anchor point on body b.<br> +---* return A object pointer. +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param anchr1 vec2_table +---@param anchr2 vec2_table +---@return self +function PhysicsJointDistance:construct (a,b,anchr1,anchr2) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointFixed.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointFixed.lua new file mode 100644 index 00000000..da6c68f0 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointFixed.lua @@ -0,0 +1,21 @@ + +---@class cc.PhysicsJointFixed :cc.PhysicsJoint +local PhysicsJointFixed={ } +cc.PhysicsJointFixed=PhysicsJointFixed + + + + +---* +---@return boolean +function PhysicsJointFixed:createConstraints () end +---* Create a fixed joint.<br> +---* param a A is the body to connect.<br> +---* param b B is the body to connect.<br> +---* param anchr It's the pivot position.<br> +---* return A object pointer. +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param anchr vec2_table +---@return self +function PhysicsJointFixed:construct (a,b,anchr) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointGear.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointGear.lua new file mode 100644 index 00000000..f83f9cbe --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointGear.lua @@ -0,0 +1,37 @@ + +---@class cc.PhysicsJointGear :cc.PhysicsJoint +local PhysicsJointGear={ } +cc.PhysicsJointGear=PhysicsJointGear + + + + +---* Set the ratio. +---@param ratchet float +---@return self +function PhysicsJointGear:setRatio (ratchet) end +---* Get the angular offset of the two bodies. +---@return float +function PhysicsJointGear:getPhase () end +---* Set the angular offset of the two bodies. +---@param phase float +---@return self +function PhysicsJointGear:setPhase (phase) end +---* +---@return boolean +function PhysicsJointGear:createConstraints () end +---* Get the ratio. +---@return float +function PhysicsJointGear:getRatio () end +---* Create a gear joint.<br> +---* param a A is the body to connect.<br> +---* param b B is the body to connect.<br> +---* param phase Phase is the initial angular offset of the two bodies.<br> +---* param ratio Ratio is always measured in absolute terms.<br> +---* return A object pointer. +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param phase float +---@param ratio float +---@return self +function PhysicsJointGear:construct (a,b,phase,ratio) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointGroove.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointGroove.lua new file mode 100644 index 00000000..e673a5f8 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointGroove.lua @@ -0,0 +1,46 @@ + +---@class cc.PhysicsJointGroove :cc.PhysicsJoint +local PhysicsJointGroove={ } +cc.PhysicsJointGroove=PhysicsJointGroove + + + + +---* Set the anchor point on body b. +---@param anchr2 vec2_table +---@return self +function PhysicsJointGroove:setAnchr2 (anchr2) end +---* Set the line begin position +---@param grooveA vec2_table +---@return self +function PhysicsJointGroove:setGrooveA (grooveA) end +---* Set the line end position +---@param grooveB vec2_table +---@return self +function PhysicsJointGroove:setGrooveB (grooveB) end +---* Get the line begin position +---@return vec2_table +function PhysicsJointGroove:getGrooveA () end +---* Get the line end position +---@return vec2_table +function PhysicsJointGroove:getGrooveB () end +---* Get the anchor point on body b. +---@return vec2_table +function PhysicsJointGroove:getAnchr2 () end +---* +---@return boolean +function PhysicsJointGroove:createConstraints () end +---* Create a groove joint.<br> +---* param a A is the body to connect.<br> +---* param b B is the body to connect.<br> +---* param grooveA The line begin position.<br> +---* param grooveB The line end position.<br> +---* param anchr2 Anchr2 is the anchor point on body b.<br> +---* return A object pointer. +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param grooveA vec2_table +---@param grooveB vec2_table +---@param anchr2 vec2_table +---@return self +function PhysicsJointGroove:construct (a,b,grooveA,grooveB,anchr2) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointLimit.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointLimit.lua new file mode 100644 index 00000000..9db29c9e --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointLimit.lua @@ -0,0 +1,49 @@ + +---@class cc.PhysicsJointLimit :cc.PhysicsJoint +local PhysicsJointLimit={ } +cc.PhysicsJointLimit=PhysicsJointLimit + + + + +---* Set the anchor point on body b. +---@param anchr2 vec2_table +---@return self +function PhysicsJointLimit:setAnchr2 (anchr2) end +---* Set the anchor point on body a. +---@param anchr1 vec2_table +---@return self +function PhysicsJointLimit:setAnchr1 (anchr1) end +---* Set the max distance of the anchor points. +---@param max float +---@return self +function PhysicsJointLimit:setMax (max) end +---* Get the anchor point on body b. +---@return vec2_table +function PhysicsJointLimit:getAnchr2 () end +---* Get the anchor point on body a. +---@return vec2_table +function PhysicsJointLimit:getAnchr1 () end +---* +---@return boolean +function PhysicsJointLimit:createConstraints () end +---* Get the allowed min distance of the anchor points. +---@return float +function PhysicsJointLimit:getMin () end +---* Get the allowed max distance of the anchor points. +---@return float +function PhysicsJointLimit:getMax () end +---* Set the min distance of the anchor points. +---@param min float +---@return self +function PhysicsJointLimit:setMin (min) end +---@overload fun(cc.PhysicsBody:cc.PhysicsBody,cc.PhysicsBody:cc.PhysicsBody,vec2_table:vec2_table,vec2_table:vec2_table,float:float,float:float):self +---@overload fun(cc.PhysicsBody:cc.PhysicsBody,cc.PhysicsBody:cc.PhysicsBody,vec2_table:vec2_table,vec2_table:vec2_table):self +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param anchr1 vec2_table +---@param anchr2 vec2_table +---@param min float +---@param max float +---@return self +function PhysicsJointLimit:construct (a,b,anchr1,anchr2,min,max) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointMotor.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointMotor.lua new file mode 100644 index 00000000..354206df --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointMotor.lua @@ -0,0 +1,28 @@ + +---@class cc.PhysicsJointMotor :cc.PhysicsJoint +local PhysicsJointMotor={ } +cc.PhysicsJointMotor=PhysicsJointMotor + + + + +---* Set the relative angular velocity. +---@param rate float +---@return self +function PhysicsJointMotor:setRate (rate) end +---* Get the relative angular velocity. +---@return float +function PhysicsJointMotor:getRate () end +---* +---@return boolean +function PhysicsJointMotor:createConstraints () end +---* Create a motor joint.<br> +---* param a A is the body to connect.<br> +---* param b B is the body to connect.<br> +---* param rate Rate is the desired relative angular velocity.<br> +---* return A object pointer. +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param rate float +---@return self +function PhysicsJointMotor:construct (a,b,rate) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointPin.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointPin.lua new file mode 100644 index 00000000..b3224053 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointPin.lua @@ -0,0 +1,19 @@ + +---@class cc.PhysicsJointPin :cc.PhysicsJoint +local PhysicsJointPin={ } +cc.PhysicsJointPin=PhysicsJointPin + + + + +---* +---@return boolean +function PhysicsJointPin:createConstraints () end +---@overload fun(cc.PhysicsBody:cc.PhysicsBody,cc.PhysicsBody:cc.PhysicsBody,vec2_table:vec2_table,vec2_table:vec2_table):self +---@overload fun(cc.PhysicsBody:cc.PhysicsBody,cc.PhysicsBody:cc.PhysicsBody,vec2_table:vec2_table):self +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param anchr1 vec2_table +---@param anchr2 vec2_table +---@return self +function PhysicsJointPin:construct (a,b,anchr1,anchr2) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua new file mode 100644 index 00000000..9269bdd3 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua @@ -0,0 +1,44 @@ + +---@class cc.PhysicsJointRatchet :cc.PhysicsJoint +local PhysicsJointRatchet={ } +cc.PhysicsJointRatchet=PhysicsJointRatchet + + + + +---* Get the ratchet angle. +---@return float +function PhysicsJointRatchet:getAngle () end +---* Set the ratchet angle. +---@param angle float +---@return self +function PhysicsJointRatchet:setAngle (angle) end +---* +---@return boolean +function PhysicsJointRatchet:createConstraints () end +---* Set the initial offset. +---@param phase float +---@return self +function PhysicsJointRatchet:setPhase (phase) end +---* Get the initial offset. +---@return float +function PhysicsJointRatchet:getPhase () end +---* Set the distance between "clicks". +---@param ratchet float +---@return self +function PhysicsJointRatchet:setRatchet (ratchet) end +---* Get the distance between "clicks". +---@return float +function PhysicsJointRatchet:getRatchet () end +---* Create a ratchet joint.<br> +---* param a A is the body to connect.<br> +---* param b B is the body to connect.<br> +---* param phase Phase is the initial offset to use when deciding where the ratchet angles are.<br> +---* param ratchet Ratchet is the distance between "clicks".<br> +---* return A object pointer. +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param phase float +---@param ratchet float +---@return self +function PhysicsJointRatchet:construct (a,b,phase,ratchet) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointRotaryLimit.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointRotaryLimit.lua new file mode 100644 index 00000000..2565531d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointRotaryLimit.lua @@ -0,0 +1,33 @@ + +---@class cc.PhysicsJointRotaryLimit :cc.PhysicsJoint +local PhysicsJointRotaryLimit={ } +cc.PhysicsJointRotaryLimit=PhysicsJointRotaryLimit + + + + +---* Get the max rotation limit. +---@return float +function PhysicsJointRotaryLimit:getMax () end +---* +---@return boolean +function PhysicsJointRotaryLimit:createConstraints () end +---* Set the min rotation limit. +---@param min float +---@return self +function PhysicsJointRotaryLimit:setMin (min) end +---* Set the max rotation limit. +---@param max float +---@return self +function PhysicsJointRotaryLimit:setMax (max) end +---* Get the min rotation limit. +---@return float +function PhysicsJointRotaryLimit:getMin () end +---@overload fun(cc.PhysicsBody:cc.PhysicsBody,cc.PhysicsBody:cc.PhysicsBody):self +---@overload fun(cc.PhysicsBody:cc.PhysicsBody,cc.PhysicsBody:cc.PhysicsBody,float:float,float:float):self +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param min float +---@param max float +---@return self +function PhysicsJointRotaryLimit:construct (a,b,min,max) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointRotarySpring.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointRotarySpring.lua new file mode 100644 index 00000000..d2bdfaca --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointRotarySpring.lua @@ -0,0 +1,44 @@ + +---@class cc.PhysicsJointRotarySpring :cc.PhysicsJoint +local PhysicsJointRotarySpring={ } +cc.PhysicsJointRotarySpring=PhysicsJointRotarySpring + + + + +---* Get the spring soft constant. +---@return float +function PhysicsJointRotarySpring:getDamping () end +---* Set the relative angle in radians from the body a to b. +---@param restAngle float +---@return self +function PhysicsJointRotarySpring:setRestAngle (restAngle) end +---* Get the spring constant. +---@return float +function PhysicsJointRotarySpring:getStiffness () end +---* +---@return boolean +function PhysicsJointRotarySpring:createConstraints () end +---* Set the spring constant. +---@param stiffness float +---@return self +function PhysicsJointRotarySpring:setStiffness (stiffness) end +---* Set the spring soft constant. +---@param damping float +---@return self +function PhysicsJointRotarySpring:setDamping (damping) end +---* Get the relative angle in radians from the body a to b. +---@return float +function PhysicsJointRotarySpring:getRestAngle () end +---* Create a damped rotary spring joint.<br> +---* param a A is the body to connect.<br> +---* param b B is the body to connect.<br> +---* param stiffness It's the spring constant.<br> +---* param damping It's how soft to make the damping of the spring.<br> +---* return A object pointer. +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param stiffness float +---@param damping float +---@return self +function PhysicsJointRotarySpring:construct (a,b,stiffness,damping) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointSpring.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointSpring.lua new file mode 100644 index 00000000..82dcac63 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointSpring.lua @@ -0,0 +1,62 @@ + +---@class cc.PhysicsJointSpring :cc.PhysicsJoint +local PhysicsJointSpring={ } +cc.PhysicsJointSpring=PhysicsJointSpring + + + + +---* Set the anchor point on body b. +---@param anchr2 vec2_table +---@return self +function PhysicsJointSpring:setAnchr2 (anchr2) end +---* Set the anchor point on body a. +---@param anchr1 vec2_table +---@return self +function PhysicsJointSpring:setAnchr1 (anchr1) end +---* Get the spring soft constant. +---@return float +function PhysicsJointSpring:getDamping () end +---* Set the spring constant. +---@param stiffness float +---@return self +function PhysicsJointSpring:setStiffness (stiffness) end +---* Get the distance of the anchor points. +---@return float +function PhysicsJointSpring:getRestLength () end +---* Get the anchor point on body b. +---@return vec2_table +function PhysicsJointSpring:getAnchr2 () end +---* Get the anchor point on body a. +---@return vec2_table +function PhysicsJointSpring:getAnchr1 () end +---* Get the spring constant. +---@return float +function PhysicsJointSpring:getStiffness () end +---* +---@return boolean +function PhysicsJointSpring:createConstraints () end +---* Set the distance of the anchor points. +---@param restLength float +---@return self +function PhysicsJointSpring:setRestLength (restLength) end +---* Set the spring soft constant. +---@param damping float +---@return self +function PhysicsJointSpring:setDamping (damping) end +---* Create a fixed distance joint.<br> +---* param a A is the body to connect.<br> +---* param b B is the body to connect.<br> +---* param anchr1 Anchr1 is the anchor point on body a.<br> +---* param anchr2 Anchr2 is the anchor point on body b.<br> +---* param stiffness It's the spring constant.<br> +---* param damping It's how soft to make the damping of the spring.<br> +---* return A object pointer. +---@param a cc.PhysicsBody +---@param b cc.PhysicsBody +---@param anchr1 vec2_table +---@param anchr2 vec2_table +---@param stiffness float +---@param damping float +---@return self +function PhysicsJointSpring:construct (a,b,anchr1,anchr2,stiffness,damping) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShape.lua b/meta/3rd/Cocos4.0/cc.PhysicsShape.lua new file mode 100644 index 00000000..809f46fd --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsShape.lua @@ -0,0 +1,157 @@ + +---@class cc.PhysicsShape :cc.Ref +local PhysicsShape={ } +cc.PhysicsShape=PhysicsShape + + + + +---* Get this shape's friction.<br> +---* return A float number. +---@return float +function PhysicsShape:getFriction () end +---* Set the group of body.<br> +---* Collision groups let you specify an integral group index. You can have all fixtures with the same group index always collide (positive index) or never collide (negative index).<br> +---* param group An integer number, it have high priority than bit masks. +---@param group int +---@return self +function PhysicsShape:setGroup (group) end +---* Set this shape's density.<br> +---* It will change the body's mass this shape attaches.<br> +---* param density A float number. +---@param density float +---@return self +function PhysicsShape:setDensity (density) end +---* Get the mass of this shape.<br> +---* return A float number. +---@return float +function PhysicsShape:getMass () end +---* Get this shape's PhysicsMaterial object.<br> +---* return A PhysicsMaterial object reference. +---@return cc.PhysicsMaterial +function PhysicsShape:getMaterial () end +---* +---@param sensor boolean +---@return self +function PhysicsShape:setSensor (sensor) end +---* Get a mask that defines which categories of physics bodies can collide with this physics body.<br> +---* return An integer number. +---@return int +function PhysicsShape:getCollisionBitmask () end +---* Return this shape's area.<br> +---* return A float number. +---@return float +function PhysicsShape:getArea () end +---* Set a mask that defines which categories this physics body belongs to.<br> +---* Every physics body in a scene can be assigned to up to 32 different categories, each corresponding to a bit in the bit mask. You define the mask values used in your game. In conjunction with the collisionBitMask and contactTestBitMask properties, you define which physics bodies interact with each other and when your game is notified of these interactions.<br> +---* param bitmask An integer number, the default value is 0xFFFFFFFF (all bits set). +---@param bitmask int +---@return self +function PhysicsShape:setCategoryBitmask (bitmask) end +---* Get the group of body.<br> +---* return An integer number. +---@return int +function PhysicsShape:getGroup () end +---* Set this shape's moment.<br> +---* It will change the body's moment this shape attaches.<br> +---* param moment A float number. +---@param moment float +---@return self +function PhysicsShape:setMoment (moment) end +---* Test point is inside this shape or not.<br> +---* param point A Vec2 object.<br> +---* return A bool object. +---@param point vec2_table +---@return boolean +function PhysicsShape:containsPoint (point) end +---* Get a mask that defines which categories this physics body belongs to.<br> +---* return An integer number. +---@return int +function PhysicsShape:getCategoryBitmask () end +---* +---@return boolean +function PhysicsShape:isSensor () end +---* Return this shape's type.<br> +---* return A Type object. +---@return int +function PhysicsShape:getType () end +---* Get a mask that defines which categories of bodies cause intersection notifications with this physics body.<br> +---* return An integer number. +---@return int +function PhysicsShape:getContactTestBitmask () end +---* Get this shape's center position.<br> +---* This function should be overridden in inherit classes.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShape:getCenter () end +---* Get this shape's density.<br> +---* return A float number. +---@return float +function PhysicsShape:getDensity () end +---* Set this shape's mass.<br> +---* It will change the body's mass this shape attaches.<br> +---* param mass A float number. +---@param mass float +---@return self +function PhysicsShape:setMass (mass) end +---* Get this shape's tag.<br> +---* return An integer number. +---@return int +function PhysicsShape:getTag () end +---* Calculate the default moment value.<br> +---* This function should be overridden in inherit classes.<br> +---* return A float number, equals 0.0. +---@return float +function PhysicsShape:calculateDefaultMoment () end +---* A mask that defines which categories of physics bodies can collide with this physics body.<br> +---* When two physics bodies contact each other, a collision may occur. This body's collision mask is compared to the other body's category mask by performing a logical AND operation. If the result is a non-zero value, then this body is affected by the collision. Each body independently chooses whether it wants to be affected by the other body. For example, you might use this to avoid collision calculations that would make negligible changes to a body's velocity.<br> +---* param bitmask An integer number, the default value is 0xFFFFFFFF (all bits set). +---@param bitmask int +---@return self +function PhysicsShape:setCollisionBitmask (bitmask) end +---* Get this shape's moment.<br> +---* return A float number. +---@return float +function PhysicsShape:getMoment () end +---* Get this shape's position offset.<br> +---* This function should be overridden in inherit classes.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShape:getOffset () end +---* Get this shape's restitution.<br> +---* return A float number. +---@return float +function PhysicsShape:getRestitution () end +---* Set this shape's friction.<br> +---* It will change the shape's friction.<br> +---* param friction A float number. +---@param friction float +---@return self +function PhysicsShape:setFriction (friction) end +---* Set this shape's material.<br> +---* It will change the shape's mass, elasticity and friction.<br> +---* param material A PhysicsMaterial object. +---@param material cc.PhysicsMaterial +---@return self +function PhysicsShape:setMaterial (material) end +---* Set this shape's tag.<br> +---* param tag An integer number that identifies a shape object. +---@param tag int +---@return self +function PhysicsShape:setTag (tag) end +---* A mask that defines which categories of bodies cause intersection notifications with this physics body.<br> +---* When two bodies share the same space, each body's category mask is tested against the other body's contact mask by performing a logical AND operation. If either comparison results in a non-zero value, an PhysicsContact object is created and passed to the physics world’s delegate. For best performance, only set bits in the contacts mask for interactions you are interested in.<br> +---* param bitmask An integer number, the default value is 0x00000000 (all bits cleared). +---@param bitmask int +---@return self +function PhysicsShape:setContactTestBitmask (bitmask) end +---* Set this shape's restitution.<br> +---* It will change the shape's elasticity.<br> +---* param restitution A float number. +---@param restitution float +---@return self +function PhysicsShape:setRestitution (restitution) end +---* Get the body that this shape attaches.<br> +---* return A PhysicsBody object pointer. +---@return cc.PhysicsBody +function PhysicsShape:getBody () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShapeBox.lua b/meta/3rd/Cocos4.0/cc.PhysicsShapeBox.lua new file mode 100644 index 00000000..f31e92d5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsShapeBox.lua @@ -0,0 +1,27 @@ + +---@class cc.PhysicsShapeBox :cc.PhysicsShapePolygon +local PhysicsShapeBox={ } +cc.PhysicsShapeBox=PhysicsShapeBox + + + + +---* Get this box's width and height.<br> +---* return An Size object. +---@return size_table +function PhysicsShapeBox:getSize () end +---* Creates a PhysicsShapeBox with specified value.<br> +---* param size Size contains this box's width and height.<br> +---* param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates.<br> +---* return An autoreleased PhysicsShapeBox object pointer. +---@param size size_table +---@param material cc.PhysicsMaterial +---@param offset vec2_table +---@param radius float +---@return self +function PhysicsShapeBox:create (size,material,offset,radius) end +---* Get this box's position offset.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapeBox:getOffset () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShapeCircle.lua b/meta/3rd/Cocos4.0/cc.PhysicsShapeCircle.lua new file mode 100644 index 00000000..88cdcb82 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsShapeCircle.lua @@ -0,0 +1,46 @@ + +---@class cc.PhysicsShapeCircle :cc.PhysicsShape +local PhysicsShapeCircle={ } +cc.PhysicsShapeCircle=PhysicsShapeCircle + + + + +---* Get the circle's radius.<br> +---* return A float number. +---@return float +function PhysicsShapeCircle:getRadius () end +---* Creates a PhysicsShapeCircle with specified value.<br> +---* param radius A float number, it is the circle's radius.<br> +---* param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates.<br> +---* return An autoreleased PhysicsShapeCircle object pointer. +---@param radius float +---@param material cc.PhysicsMaterial +---@param offset vec2_table +---@return self +function PhysicsShapeCircle:create (radius,material,offset) end +---* Calculate the area of a circle with specified radius.<br> +---* param radius A float number<br> +---* return A float number +---@param radius float +---@return float +function PhysicsShapeCircle:calculateArea (radius) end +---* Calculate the moment of a circle with specified value.<br> +---* param mass A float number<br> +---* param radius A float number<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates.<br> +---* return A float number +---@param mass float +---@param radius float +---@param offset vec2_table +---@return float +function PhysicsShapeCircle:calculateMoment (mass,radius,offset) end +---* Get this circle's position offset.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapeCircle:getOffset () end +---* Calculate the moment for a circle.<br> +---* return A float number. +---@return float +function PhysicsShapeCircle:calculateDefaultMoment () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeBox.lua b/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeBox.lua new file mode 100644 index 00000000..9967d7b7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeBox.lua @@ -0,0 +1,24 @@ + +---@class cc.PhysicsShapeEdgeBox :cc.PhysicsShapeEdgePolygon +local PhysicsShapeEdgeBox={ } +cc.PhysicsShapeEdgeBox=PhysicsShapeEdgeBox + + + + +---* Creates a PhysicsShapeEdgeBox with specified value.<br> +---* param size Size contains this box's width and height.<br> +---* param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br> +---* param border It's a edge's border width.<br> +---* param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates.<br> +---* return An autoreleased PhysicsShapeEdgeBox object pointer. +---@param size size_table +---@param material cc.PhysicsMaterial +---@param border float +---@param offset vec2_table +---@return self +function PhysicsShapeEdgeBox:create (size,material,border,offset) end +---* Get this box's position offset.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapeEdgeBox:getOffset () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeChain.lua b/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeChain.lua new file mode 100644 index 00000000..6242cf14 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeChain.lua @@ -0,0 +1,16 @@ + +---@class cc.PhysicsShapeEdgeChain :cc.PhysicsShape +local PhysicsShapeEdgeChain={ } +cc.PhysicsShapeEdgeChain=PhysicsShapeEdgeChain + + + + +---* Get this chain's points array count.<br> +---* return An integer number. +---@return int +function PhysicsShapeEdgeChain:getPointsCount () end +---* Get this chain's center position.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapeEdgeChain:getCenter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgePolygon.lua b/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgePolygon.lua new file mode 100644 index 00000000..401a90af --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgePolygon.lua @@ -0,0 +1,16 @@ + +---@class cc.PhysicsShapeEdgePolygon :cc.PhysicsShape +local PhysicsShapeEdgePolygon={ } +cc.PhysicsShapeEdgePolygon=PhysicsShapeEdgePolygon + + + + +---* Get this polygon's points array count.<br> +---* return An integer number. +---@return int +function PhysicsShapeEdgePolygon:getPointsCount () end +---* Get this polygon's center position.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapeEdgePolygon:getCenter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeSegment.lua b/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeSegment.lua new file mode 100644 index 00000000..5e2c943d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsShapeEdgeSegment.lua @@ -0,0 +1,32 @@ + +---@class cc.PhysicsShapeEdgeSegment :cc.PhysicsShape +local PhysicsShapeEdgeSegment={ } +cc.PhysicsShapeEdgeSegment=PhysicsShapeEdgeSegment + + + + +---* Get this edge's end position.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapeEdgeSegment:getPointB () end +---* Get this edge's begin position.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapeEdgeSegment:getPointA () end +---* Creates a PhysicsShapeEdgeSegment with specified value.<br> +---* param a It's the edge's begin position.<br> +---* param b It's the edge's end position.<br> +---* param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br> +---* param border It's a edge's border width.<br> +---* return An autoreleased PhysicsShapeEdgeSegment object pointer. +---@param a vec2_table +---@param b vec2_table +---@param material cc.PhysicsMaterial +---@param border float +---@return self +function PhysicsShapeEdgeSegment:create (a,b,material,border) end +---* Get this edge's center position.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapeEdgeSegment:getCenter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua b/meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua new file mode 100644 index 00000000..18d3e932 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua @@ -0,0 +1,26 @@ + +---@class cc.PhysicsShapePolygon :cc.PhysicsShape +local PhysicsShapePolygon={ } +cc.PhysicsShapePolygon=PhysicsShapePolygon + + + + +---* Get this polygon's points array count.<br> +---* return An integer number. +---@return int +function PhysicsShapePolygon:getPointsCount () end +---* Get a point of this polygon's points array.<br> +---* param i A index of this polygon's points array.<br> +---* return A point value. +---@param i int +---@return vec2_table +function PhysicsShapePolygon:getPoint (i) end +---* Calculate the moment for a polygon.<br> +---* return A float number. +---@return float +function PhysicsShapePolygon:calculateDefaultMoment () end +---* Get this polygon's center position.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsShapePolygon:getCenter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsSprite3D.lua b/meta/3rd/Cocos4.0/cc.PhysicsSprite3D.lua new file mode 100644 index 00000000..e9105563 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsSprite3D.lua @@ -0,0 +1,24 @@ + +---@class cc.PhysicsSprite3D :cc.Sprite3D +local PhysicsSprite3D={ } +cc.PhysicsSprite3D=PhysicsSprite3D + + + + +---* synchronize node transformation to physics. +---@return self +function PhysicsSprite3D:syncNodeToPhysics () end +---* synchronize physics transformation to node. +---@return self +function PhysicsSprite3D:syncPhysicsToNode () end +---* Get the Physics3DObject. +---@return cc.Physics3DObject +function PhysicsSprite3D:getPhysicsObj () end +---* Set synchronization flag, see Physics3DComponent. +---@param syncFlag int +---@return self +function PhysicsSprite3D:setSyncFlag (syncFlag) end +---* +---@return self +function PhysicsSprite3D:PhysicsSprite3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PhysicsWorld.lua b/meta/3rd/Cocos4.0/cc.PhysicsWorld.lua new file mode 100644 index 00000000..2fa5f5bb --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsWorld.lua @@ -0,0 +1,149 @@ + +---@class cc.PhysicsWorld +local PhysicsWorld={ } +cc.PhysicsWorld=PhysicsWorld + + + + +---* set the gravity value of this physics world.<br> +---* param gravity A gravity value of this physics world. +---@param gravity vec2_table +---@return self +function PhysicsWorld:setGravity (gravity) end +---* Get all the bodies that in this physics world.<br> +---* return A Vector<PhysicsBody*>& object contains all bodies in this physics world. +---@return array_table +function PhysicsWorld:getAllBodies () end +---* set the number of update of the physics world in a second.<br> +---* 0 - disable fixed step system<br> +---* default value is 0 +---@param updatesPerSecond int +---@return self +function PhysicsWorld:setFixedUpdateRate (updatesPerSecond) end +---* set the number of substeps in an update of the physics world.<br> +---* One physics update will be divided into several substeps to increase its accuracy.<br> +---* param steps An integer number, default value is 1. +---@param steps int +---@return self +function PhysicsWorld:setSubsteps (steps) end +---* To control the step of physics.<br> +---* If you want control it by yourself( fixed-timestep for example ), you can set this to false and call step by yourself.<br> +---* attention If you set auto step to false, setSpeed setSubsteps and setUpdateRate won't work, you need to control the time step by yourself.<br> +---* param autoStep A bool object, default value is true. +---@param autoStep boolean +---@return self +function PhysicsWorld:setAutoStep (autoStep) end +---* Adds a joint to this physics world.<br> +---* This joint will be added to this physics world at next frame.<br> +---* attention If this joint is already added to another physics world, it will be removed from that world first and then add to this world.<br> +---* param joint A pointer to an existing PhysicsJoint object. +---@param joint cc.PhysicsJoint +---@return self +function PhysicsWorld:addJoint (joint) end +---* Remove all joints from this physics world.<br> +---* attention This function is invoked in the destructor of this physics world, you do not use this api in common.<br> +---* param destroy true all joints will be destroyed after remove from this world, false otherwise. +---@return self +function PhysicsWorld:removeAllJoints () end +---* Get the debug draw mask.<br> +---* return An integer number. +---@return int +function PhysicsWorld:getDebugDrawMask () end +---* set the callback which invoked before update of each object in physics world. +---@param callback function +---@return self +function PhysicsWorld:setPreUpdateCallback (callback) end +---* Get the auto step of this physics world.<br> +---* return A bool object. +---@return boolean +function PhysicsWorld:isAutoStep () end +---* set the callback which invoked after update of each object in physics world. +---@param callback function +---@return self +function PhysicsWorld:setPostUpdateCallback (callback) end +---@overload fun(cc.PhysicsBody0:int):self +---@overload fun(cc.PhysicsBody:cc.PhysicsBody):self +---@param body cc.PhysicsBody +---@return self +function PhysicsWorld:removeBody (body) end +---* Remove a joint from this physics world.<br> +---* If this world is not locked, the joint is removed immediately, otherwise at next frame. <br> +---* If this joint is connected with a body, it will be removed from the body also.<br> +---* param joint A pointer to an existing PhysicsJoint object.<br> +---* param destroy true this joint will be destroyed after remove from this world, false otherwise. +---@param joint cc.PhysicsJoint +---@param destroy boolean +---@return self +function PhysicsWorld:removeJoint (joint,destroy) end +---* Get physics shapes that contains the point. <br> +---* All shapes contains the point will be pushed in a Vector<PhysicsShape*> object.<br> +---* attention The point must lie inside a shape.<br> +---* param point A Vec2 object contains the position of the point.<br> +---* return A Vector<PhysicsShape*> object contains all found PhysicsShape pointer. +---@param point vec2_table +---@return array_table +function PhysicsWorld:getShapes (point) end +---* The step for physics world.<br> +---* The times passing for simulate the physics.<br> +---* attention You need to setAutoStep(false) first before it can work.<br> +---* param delta A float number. +---@param delta float +---@return self +function PhysicsWorld:step (delta) end +---* Set the debug draw mask of this physics world.<br> +---* This physics world will draw shapes and joints by DrawNode according to mask.<br> +---* param mask Mask has four value:DEBUGDRAW_NONE, DEBUGDRAW_SHAPE, DEBUGDRAW_JOINT, DEBUGDRAW_CONTACT and DEBUGDRAW_ALL, default is DEBUGDRAW_NONE +---@param mask int +---@return self +function PhysicsWorld:setDebugDrawMask (mask) end +---* Get the gravity value of this physics world.<br> +---* return A Vec2 object. +---@return vec2_table +function PhysicsWorld:getGravity () end +---* Set the update rate of this physics world<br> +---* Update rate is the value of EngineUpdateTimes/PhysicsWorldUpdateTimes.<br> +---* Set it higher can improve performance, set it lower can improve accuracy of physics world simulation.<br> +---* attention if you setAutoStep(false), this won't work.<br> +---* param rate An integer number, default value is 1.0. +---@param rate int +---@return self +function PhysicsWorld:setUpdateRate (rate) end +---* get the number of substeps +---@return int +function PhysicsWorld:getFixedUpdateRate () end +---* Get the number of substeps of this physics world.<br> +---* return An integer number. +---@return int +function PhysicsWorld:getSubsteps () end +---* Get the speed of this physics world.<br> +---* return A float number. +---@return float +function PhysicsWorld:getSpeed () end +---* Get the update rate of this physics world.<br> +---* return An integer number. +---@return int +function PhysicsWorld:getUpdateRate () end +---* Remove all bodies from physics world. <br> +---* If this world is not locked, those body are removed immediately, otherwise at next frame. +---@return self +function PhysicsWorld:removeAllBodies () end +---* Set the speed of this physics world.<br> +---* attention if you setAutoStep(false), this won't work.<br> +---* param speed A float number. Speed is the rate at which the simulation executes. default value is 1.0. +---@param speed float +---@return self +function PhysicsWorld:setSpeed (speed) end +---* Get the nearest physics shape that contains the point. <br> +---* Query this physics world at point and return the closest shape.<br> +---* param point A Vec2 object contains the position of the point.<br> +---* return A PhysicsShape object pointer or nullptr if no shapes were found +---@param point vec2_table +---@return cc.PhysicsShape +function PhysicsWorld:getShape (point) end +---* Get a body by tag. <br> +---* param tag An integer number that identifies a PhysicsBody object. <br> +---* return A PhysicsBody object pointer or nullptr if no shapes were found. +---@param tag int +---@return cc.PhysicsBody +function PhysicsWorld:getBody (tag) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Place.lua b/meta/3rd/Cocos4.0/cc.Place.lua new file mode 100644 index 00000000..f98c13a1 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Place.lua @@ -0,0 +1,31 @@ + +---@class cc.Place :cc.ActionInstant +local Place={ } +cc.Place=Place + + + + +---* Initializes a Place action with a position +---@param pos vec2_table +---@return boolean +function Place:initWithPosition (pos) end +---* Creates a Place action with a position.<br> +---* param pos A certain position.<br> +---* return An autoreleased Place object. +---@param pos vec2_table +---@return self +function Place:create (pos) end +---* +---@return self +function Place:clone () end +---* param time In seconds. +---@param time float +---@return self +function Place:update (time) end +---* +---@return self +function Place:reverse () end +---* +---@return self +function Place:Place () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PointLight.lua b/meta/3rd/Cocos4.0/cc.PointLight.lua new file mode 100644 index 00000000..447fba09 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PointLight.lua @@ -0,0 +1,31 @@ + +---@class cc.PointLight :cc.BaseLight +local PointLight={ } +cc.PointLight=PointLight + + + + +---* get or set range +---@return float +function PointLight:getRange () end +---* +---@param range float +---@return point_table +function PointLight:setRange (range) end +---* Creates a point light.<br> +---* param position The light's position<br> +---* param color The light's color.<br> +---* param range The light's range.<br> +---* return The new point light. +---@param position vec3_table +---@param color color3b_table +---@param range float +---@return point_table +function PointLight:create (position,color,range) end +---* +---@return int +function PointLight:getLightType () end +---* +---@return point_table +function PointLight:PointLight () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.PolygonInfo.lua b/meta/3rd/Cocos4.0/cc.PolygonInfo.lua new file mode 100644 index 00000000..2fcd8913 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PolygonInfo.lua @@ -0,0 +1,62 @@ + +---@class cc.PolygonInfo +local PolygonInfo={ } +cc.PolygonInfo=PolygonInfo + + + + +---* +---@return string +function PolygonInfo:getFilename () end +---* get sum of all triangle area size<br> +---* return sum of all triangle area size +---@return float +function PolygonInfo:getArea () end +---* +---@return rect_table +function PolygonInfo:getRect () end +---* +---@param filename string +---@return self +function PolygonInfo:setFilename (filename) end +---* set the data to be a pointer to a number of Quads<br> +---* the member verts will not be released when this PolygonInfo destructs<br> +---* as the verts memory are managed by other objects<br> +---* param quad a pointer to the V3F_C4B_T2F_Quad quads +---@param quads cc.V3F_C4B_T2F_Quad +---@param numberOfQuads int +---@return self +function PolygonInfo:setQuads (quads,numberOfQuads) end +---* get vertex count<br> +---* return number of vertices +---@return unsigned_int +function PolygonInfo:getVertCount () end +---* get triangles count<br> +---* return number of triangles +---@return unsigned_int +function PolygonInfo:getTrianglesCount () end +---* set the data to be a pointer to a quad<br> +---* the member verts will not be released when this PolygonInfo destructs<br> +---* as the verts memory are managed by other objects<br> +---* param quad a pointer to the V3F_C4B_T2F_Quad object +---@param quad cc.V3F_C4B_T2F_Quad +---@return self +function PolygonInfo:setQuad (quad) end +---* set the data to be a pointer to a triangles<br> +---* the member verts will not be released when this PolygonInfo destructs<br> +---* as the verts memory are managed by other objects<br> +---* param triangles a pointer to the TrianglesCommand::Triangles object +---@param triangles cc.TrianglesCommand.Triangles +---@return self +function PolygonInfo:setTriangles (triangles) end +---* +---@param rect rect_table +---@return self +function PolygonInfo:setRect (rect) end +---* / @name Creators/ @{<br> +---* Creates an empty Polygon info<br> +---* memberof PolygonInfo<br> +---* return PolygonInfo object +---@return self +function PolygonInfo:PolygonInfo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ProgressFromTo.lua b/meta/3rd/Cocos4.0/cc.ProgressFromTo.lua new file mode 100644 index 00000000..a6c51798 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ProgressFromTo.lua @@ -0,0 +1,45 @@ + +---@class cc.ProgressFromTo :cc.ActionInterval +local ProgressFromTo={ } +cc.ProgressFromTo=ProgressFromTo + + + + +---* brief Initializes the action with a duration, a "from" percentage and a "to" percentage.<br> +---* param duration Specify the duration of the ProgressFromTo action. It's a value in seconds.<br> +---* param fromPercentage Specify the source percentage.<br> +---* param toPercentage Specify the destination percentage.<br> +---* return If the creation success, return true; otherwise, return false. +---@param duration float +---@param fromPercentage float +---@param toPercentage float +---@return boolean +function ProgressFromTo:initWithDuration (duration,fromPercentage,toPercentage) end +---* brief Create and initializes the action with a duration, a "from" percentage and a "to" percentage.<br> +---* param duration Specify the duration of the ProgressFromTo action. It's a value in seconds.<br> +---* param fromPercentage Specify the source percentage.<br> +---* param toPercentage Specify the destination percentage.<br> +---* return If the creation success, return a pointer of ProgressFromTo action; otherwise, return nil. +---@param duration float +---@param fromPercentage float +---@param toPercentage float +---@return self +function ProgressFromTo:create (duration,fromPercentage,toPercentage) end +---* +---@param target cc.Node +---@return self +function ProgressFromTo:startWithTarget (target) end +---* +---@return self +function ProgressFromTo:clone () end +---* +---@return self +function ProgressFromTo:reverse () end +---* +---@param time float +---@return self +function ProgressFromTo:update (time) end +---* +---@return self +function ProgressFromTo:ProgressFromTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ProgressTimer.lua b/meta/3rd/Cocos4.0/cc.ProgressTimer.lua new file mode 100644 index 00000000..f4fa2e23 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ProgressTimer.lua @@ -0,0 +1,109 @@ + +---@class cc.ProgressTimer :cc.Node +local ProgressTimer={ } +cc.ProgressTimer=ProgressTimer + + + + +---* Initializes a progress timer with the sprite as the shape the timer goes through +---@param sp cc.Sprite +---@return boolean +function ProgressTimer:initWithSprite (sp) end +---* Return the Reverse direction.<br> +---* return If the direction is Anti-clockwise,it will return true. +---@return boolean +function ProgressTimer:isReverseDirection () end +---* This allows the bar type to move the component at a specific rate.<br> +---* Set the component to 0 to make sure it stays at 100%.<br> +---* For example you want a left to right bar but not have the height stay 100%.<br> +---* Set the rate to be Vec2(0,1); and set the midpoint to = Vec2(0,.5f).<br> +---* param barChangeRate A Vec2. +---@param barChangeRate vec2_table +---@return self +function ProgressTimer:setBarChangeRate (barChangeRate) end +---* Percentages are from 0 to 100.<br> +---* return Percentages. +---@return float +function ProgressTimer:getPercentage () end +---* Set the sprite as the shape. <br> +---* param sprite The sprite as the shape. +---@param sprite cc.Sprite +---@return self +function ProgressTimer:setSprite (sprite) end +---* Change the percentage to change progress. <br> +---* return A Type +---@return int +function ProgressTimer:getType () end +---* The image to show the progress percentage, retain. <br> +---* return A sprite. +---@return cc.Sprite +function ProgressTimer:getSprite () end +---* Midpoint is used to modify the progress start position.<br> +---* If you're using radials type then the midpoint changes the center point.<br> +---* If you're using bar type then the midpoint changes the bar growth.<br> +---* it expands from the center but clamps to the sprites edge so:<br> +---* you want a left to right then set the midpoint all the way to Vec2(0,y).<br> +---* you want a right to left then set the midpoint all the way to Vec2(1,y).<br> +---* you want a bottom to top then set the midpoint all the way to Vec2(x,0).<br> +---* you want a top to bottom then set the midpoint all the way to Vec2(x,1).<br> +---* param point A Vec2 point. +---@param point vec2_table +---@return self +function ProgressTimer:setMidpoint (point) end +---* Returns the BarChangeRate.<br> +---* return A barChangeRate. +---@return vec2_table +function ProgressTimer:getBarChangeRate () end +---* Set the Reverse direction.<br> +---* param value If value is false it will clockwise,if is true it will Anti-clockwise. +---@param value boolean +---@return self +function ProgressTimer:setReverseDirection (value) end +---* Returns the Midpoint. <br> +---* return A Vec2. +---@return vec2_table +function ProgressTimer:getMidpoint () end +---* Set the initial percentage values. <br> +---* param percentage The initial percentage values. +---@param percentage float +---@return self +function ProgressTimer:setPercentage (percentage) end +---* Set the ProgressTimer type. <br> +---* param type Is an Type. +---@param type int +---@return self +function ProgressTimer:setType (type) end +---* Creates a progress timer with the sprite as the shape the timer goes through.<br> +---* param sp The sprite as the shape the timer goes through.<br> +---* return A ProgressTimer. +---@param sp cc.Sprite +---@return self +function ProgressTimer:create (sp) end +---* +---@param anchorPoint vec2_table +---@return self +function ProgressTimer:setAnchorPoint (anchorPoint) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function ProgressTimer:draw (renderer,transform,flags) end +---* +---@param color color3b_table +---@return self +function ProgressTimer:setColor (color) end +---* +---@return color3b_table +function ProgressTimer:getColor () end +---* +---@param opacity unsigned_char +---@return self +function ProgressTimer:setOpacity (opacity) end +---* +---@return unsigned_char +function ProgressTimer:getOpacity () end +---* js ctor +---@return self +function ProgressTimer:ProgressTimer () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ProgressTo.lua b/meta/3rd/Cocos4.0/cc.ProgressTo.lua new file mode 100644 index 00000000..fec47191 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ProgressTo.lua @@ -0,0 +1,41 @@ + +---@class cc.ProgressTo :cc.ActionInterval +local ProgressTo={ } +cc.ProgressTo=ProgressTo + + + + +---* brief Initializes with a duration and destination percentage. <br> +---* param duration Specify the duration of the ProgressTo action. It's a value in seconds.<br> +---* param percent Specify the destination percentage.<br> +---* return If the creation success, return true; otherwise, return false. +---@param duration float +---@param percent float +---@return boolean +function ProgressTo:initWithDuration (duration,percent) end +---* brief Create and initializes with a duration and a destination percentage.<br> +---* param duration Specify the duration of the ProgressTo action. It's a value in seconds.<br> +---* param percent Specify the destination percentage.<br> +---* return If the creation success, return a pointer of ProgressTo action; otherwise, return nil. +---@param duration float +---@param percent float +---@return self +function ProgressTo:create (duration,percent) end +---* +---@param target cc.Node +---@return self +function ProgressTo:startWithTarget (target) end +---* +---@return self +function ProgressTo:clone () end +---* +---@return self +function ProgressTo:reverse () end +---* +---@param time float +---@return self +function ProgressTo:update (time) end +---* +---@return self +function ProgressTo:ProgressTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Properties.lua b/meta/3rd/Cocos4.0/cc.Properties.lua new file mode 100644 index 00000000..19ccc458 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Properties.lua @@ -0,0 +1,228 @@ + +---@class cc.Properties +local Properties={ } +cc.Properties=Properties + + + + +---* Returns the value of a variable that is set in this Properties object.<br> +---* Variables take on the format ${name} and are inherited from parent Property objects.<br> +---* param name Name of the variable to get.<br> +---* param defaultValue Value to return if the variable is not found.<br> +---* return The value of the specified variable, or defaultValue if not found. +---@param name char +---@param defaultValue char +---@return char +function Properties:getVariable (name,defaultValue) end +---* Get the value of the given property as a string. This can always be retrieved,<br> +---* whatever the intended type of the property.<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* param defaultValue The default value to return if the specified property does not exist.<br> +---* return The value of the given property as a string, or the empty string if no property with that name exists. +---@return char +function Properties:getString () end +---* Interpret the value of the given property as a long integer.<br> +---* If the property does not exist, zero will be returned.<br> +---* If the property exists but could not be scanned, an error will be logged and zero will be returned.<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* return The value of the given property interpreted as a long.<br> +---* Zero if the property does not exist or could not be scanned. +---@return long +function Properties:getLong () end +---@overload fun():self +---@overload fun(char:char,boolean:boolean,boolean:boolean):self +---@param id char +---@param searchNames boolean +---@param recurse boolean +---@return self +function Properties:getNamespace (id,searchNames,recurse) end +---* Gets the file path for the given property if the file exists.<br> +---* This method will first search for the file relative to the working directory.<br> +---* If the file is not found then it will search relative to the directory the bundle file is in.<br> +---* param name The name of the property.<br> +---* param path The string to copy the path to if the file exists.<br> +---* return True if the property exists and the file exists, false otherwise.<br> +---* script{ignore} +---@param name char +---@param path string +---@return boolean +function Properties:getPath (name,path) end +---* Interpret the value of the given property as a Matrix.<br> +---* If the property does not exist, out will be set to the identity matrix.<br> +---* If the property exists but could not be scanned, an error will be logged and out will be set<br> +---* to the identity matrix.<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* param out The matrix to set to this property's interpreted value.<br> +---* return True on success, false if the property does not exist or could not be scanned. +---@param name char +---@param out mat4_table +---@return boolean +function Properties:getMat4 (name,out) end +---* Check if a property with the given name is specified in this Properties object.<br> +---* param name The name of the property to query.<br> +---* return True if the property exists, false otherwise. +---@param name char +---@return boolean +function Properties:exists (name) end +---* Sets the value of the property with the specified name.<br> +---* If there is no property in this namespace with the current name,<br> +---* one is added. Otherwise, the value of the first property with the<br> +---* specified name is updated.<br> +---* If name is NULL, the value current property (see getNextProperty) is<br> +---* set, unless there is no current property, in which case false<br> +---* is returned.<br> +---* param name The name of the property to set.<br> +---* param value The property value.<br> +---* return True if the property was set, false otherwise. +---@param name char +---@param value char +---@return boolean +function Properties:setString (name,value) end +---* Get the ID of this Property's namespace. The ID should be a unique identifier,<br> +---* but its uniqueness is not enforced.<br> +---* return The ID of this Property's namespace. +---@return char +function Properties:getId () end +---* Rewind the getNextProperty() and getNextNamespace() iterators<br> +---* to the beginning of the file. +---@return self +function Properties:rewind () end +---* Sets the value of the specified variable.<br> +---* param name Name of the variable to set.<br> +---* param value The value to set. +---@param name char +---@param value char +---@return self +function Properties:setVariable (name,value) end +---* Interpret the value of the given property as a boolean.<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* param defaultValue the default value to return if the specified property does not exist within the properties file.<br> +---* return true if the property exists and its value is "true", otherwise false. +---@return boolean +function Properties:getBool () end +---@overload fun(char:char,vec3_table1:vec4_table):self +---@overload fun(char:char,vec3_table:vec3_table):self +---@param name char +---@param out vec3_table +---@return boolean +function Properties:getColor (name,out) end +---* Returns the type of a property.<br> +---* param name The name of the property to interpret, or NULL to return the current property's type.<br> +---* return The type of the property. +---@return int +function Properties:getType () end +---* Get the next namespace. +---@return self +function Properties:getNextNamespace () end +---* Interpret the value of the given property as an integer.<br> +---* If the property does not exist, zero will be returned.<br> +---* If the property exists but could not be scanned, an error will be logged and zero will be returned.<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* return The value of the given property interpreted as an integer.<br> +---* Zero if the property does not exist or could not be scanned. +---@return int +function Properties:getInt () end +---* Interpret the value of the given property as a Vector3.<br> +---* If the property does not exist, out will be set to Vector3(0.0f, 0.0f, 0.0f).<br> +---* If the property exists but could not be scanned, an error will be logged and out will be set<br> +---* to Vector3(0.0f, 0.0f, 0.0f).<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* param out The vector to set to this property's interpreted value.<br> +---* return True on success, false if the property does not exist or could not be scanned. +---@param name char +---@param out vec3_table +---@return boolean +function Properties:getVec3 (name,out) end +---* Interpret the value of the given property as a Vector2.<br> +---* If the property does not exist, out will be set to Vector2(0.0f, 0.0f).<br> +---* If the property exists but could not be scanned, an error will be logged and out will be set<br> +---* to Vector2(0.0f, 0.0f).<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* param out The vector to set to this property's interpreted value.<br> +---* return True on success, false if the property does not exist or could not be scanned. +---@param name char +---@param out vec2_table +---@return boolean +function Properties:getVec2 (name,out) end +---* Interpret the value of the given property as a Vector4.<br> +---* If the property does not exist, out will be set to Vector4(0.0f, 0.0f, 0.0f, 0.0f).<br> +---* If the property exists but could not be scanned, an error will be logged and out will be set<br> +---* to Vector4(0.0f, 0.0f, 0.0f, 0.0f).<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* param out The vector to set to this property's interpreted value.<br> +---* return True on success, false if the property does not exist or could not be scanned. +---@param name char +---@param out vec4_table +---@return boolean +function Properties:getVec4 (name,out) end +---* Get the name of the next property.<br> +---* If a valid next property is returned, the value of the property can be<br> +---* retrieved using any of the get methods in this class, passing NULL for the property name.<br> +---* return The name of the next property, or NULL if there are no properties remaining. +---@return char +function Properties:getNextProperty () end +---* Interpret the value of the given property as a floating-point number.<br> +---* If the property does not exist, zero will be returned.<br> +---* If the property exists but could not be scanned, an error will be logged and zero will be returned.<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* return The value of the given property interpreted as a float.<br> +---* Zero if the property does not exist or could not be scanned. +---@return float +function Properties:getFloat () end +---* Interpret the value of the given property as a Quaternion specified as an axis angle.<br> +---* If the property does not exist, out will be set to Quaternion().<br> +---* If the property exists but could not be scanned, an error will be logged and out will be set<br> +---* to Quaternion().<br> +---* param name The name of the property to interpret, or NULL to return the current property's value.<br> +---* param out The quaternion to set to this property's interpreted value.<br> +---* return True on success, false if the property does not exist or could not be scanned. +---@param name char +---@param out cc.Quaternion +---@return boolean +function Properties:getQuaternionFromAxisAngle (name,out) end +---@overload fun(char:char,vec3_table1:vec4_table):self +---@overload fun(char:char,vec3_table:vec3_table):self +---@param str char +---@param out vec3_table +---@return boolean +function Properties:parseColor (str,out) end +---* Attempts to parse the specified string as a Vector3 value.<br> +---* On error, false is returned and the output is set to all zero values.<br> +---* param str The string to parse.<br> +---* param out The value to populate if successful.<br> +---* return True if a valid Vector3 was parsed, false otherwise. +---@param str char +---@param out vec3_table +---@return boolean +function Properties:parseVec3 (str,out) end +---* Attempts to parse the specified string as an axis-angle value.<br> +---* The specified string is expected to contain four comma-separated<br> +---* values, where the first three values represents the axis and the<br> +---* fourth value represents the angle, in degrees.<br> +---* On error, false is returned and the output is set to all zero values.<br> +---* param str The string to parse.<br> +---* param out A Quaternion populated with the orientation of the axis-angle, if successful.<br> +---* return True if a valid axis-angle was parsed, false otherwise. +---@param str char +---@param out cc.Quaternion +---@return boolean +function Properties:parseAxisAngle (str,out) end +---* Attempts to parse the specified string as a Vector2 value.<br> +---* On error, false is returned and the output is set to all zero values.<br> +---* param str The string to parse.<br> +---* param out The value to populate if successful.<br> +---* return True if a valid Vector2 was parsed, false otherwise. +---@param str char +---@param out vec2_table +---@return boolean +function Properties:parseVec2 (str,out) end +---* Attempts to parse the specified string as a Vector4 value.<br> +---* On error, false is returned and the output is set to all zero values.<br> +---* param str The string to parse.<br> +---* param out The value to populate if successful.<br> +---* return True if a valid Vector4 was parsed, false otherwise. +---@param str char +---@param out vec4_table +---@return boolean +function Properties:parseVec4 (str,out) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ProtectedNode.lua b/meta/3rd/Cocos4.0/cc.ProtectedNode.lua new file mode 100644 index 00000000..9ea85aaa --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ProtectedNode.lua @@ -0,0 +1,98 @@ + +---@class cc.ProtectedNode :cc.Node +local ProtectedNode={ } +cc.ProtectedNode=ProtectedNode + + + + +---@overload fun(cc.Node:cc.Node,int:int):self +---@overload fun(cc.Node:cc.Node):self +---@overload fun(cc.Node:cc.Node,int:int,int:int):self +---@param child cc.Node +---@param localZOrder int +---@param tag int +---@return self +function ProtectedNode:addProtectedChild (child,localZOrder,tag) end +---* +---@return self +function ProtectedNode:disableCascadeColor () end +---* Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter.<br> +---* param tag An integer number that identifies a child node.<br> +---* param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise. +---@param tag int +---@param cleanup boolean +---@return self +function ProtectedNode:removeProtectedChildByTag (tag,cleanup) end +---* Reorders a child according to a new z value.<br> +---* param child An already added child node. It MUST be already added.<br> +---* param localZOrder Z order for drawing priority. Please refer to setLocalZOrder(int) +---@param child cc.Node +---@param localZOrder int +---@return self +function ProtectedNode:reorderProtectedChild (child,localZOrder) end +---* Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter.<br> +---* param cleanup true if all running actions on all children nodes should be cleanup, false otherwise.<br> +---* js removeAllChildren<br> +---* lua removeAllChildren +---@param cleanup boolean +---@return self +function ProtectedNode:removeAllProtectedChildrenWithCleanup (cleanup) end +---* +---@return self +function ProtectedNode:disableCascadeOpacity () end +---* Sorts the children array once before drawing, instead of every time when a child is added or reordered.<br> +---* This approach can improves the performance massively.<br> +---* note Don't call this manually unless a child added needs to be removed in the same frame +---@return self +function ProtectedNode:sortAllProtectedChildren () end +---* Gets a child from the container with its tag.<br> +---* param tag An identifier to find the child node.<br> +---* return a Node object whose tag equals to the input parameter. +---@param tag int +---@return cc.Node +function ProtectedNode:getProtectedChildByTag (tag) end +---* Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter.<br> +---* param child The child node which will be removed.<br> +---* param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise. +---@param child cc.Node +---@param cleanup boolean +---@return self +function ProtectedNode:removeProtectedChild (child,cleanup) end +---* Removes all children from the container with a cleanup.<br> +---* see `removeAllChildrenWithCleanup(bool)`. +---@return self +function ProtectedNode:removeAllProtectedChildren () end +---* Creates a ProtectedNode with no argument.<br> +---* return A instance of ProtectedNode. +---@return self +function ProtectedNode:create () end +---* +---@param mask unsigned short +---@param applyChildren boolean +---@return self +function ProtectedNode:setCameraMask (mask,applyChildren) end +---* +---@param globalZOrder float +---@return self +function ProtectedNode:setGlobalZOrder (globalZOrder) end +---* js NA +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function ProtectedNode:visit (renderer,parentTransform,parentFlags) end +---* +---@param parentOpacity unsigned_char +---@return self +function ProtectedNode:updateDisplayedOpacity (parentOpacity) end +---* +---@param parentColor color3b_table +---@return self +function ProtectedNode:updateDisplayedColor (parentColor) end +---* +---@return self +function ProtectedNode:cleanup () end +---* +---@return self +function ProtectedNode:ProtectedNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Ref.lua b/meta/3rd/Cocos4.0/cc.Ref.lua new file mode 100644 index 00000000..71587f8b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Ref.lua @@ -0,0 +1,27 @@ + +---@class cc.Ref +local Ref={ } +cc.Ref=Ref + + + + +---* Releases the ownership immediately.<br> +---* This decrements the Ref's reference count.<br> +---* If the reference count reaches 0 after the decrement, this Ref is<br> +---* destructed.<br> +---* see retain, autorelease<br> +---* js NA +---@return self +function Ref:release () end +---* Retains the ownership.<br> +---* This increases the Ref's reference count.<br> +---* see release, autorelease<br> +---* js NA +---@return self +function Ref:retain () end +---* Returns the Ref's current reference count.<br> +---* returns The Ref's reference count.<br> +---* js NA +---@return unsigned_int +function Ref:getReferenceCount () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.RemoveSelf.lua b/meta/3rd/Cocos4.0/cc.RemoveSelf.lua new file mode 100644 index 00000000..833b5150 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.RemoveSelf.lua @@ -0,0 +1,30 @@ + +---@class cc.RemoveSelf :cc.ActionInstant +local RemoveSelf={ } +cc.RemoveSelf=RemoveSelf + + + + +---* init the action +---@param isNeedCleanUp boolean +---@return boolean +function RemoveSelf:init (isNeedCleanUp) end +---* Create the action.<br> +---* param isNeedCleanUp Is need to clean up, the default value is true.<br> +---* return An autoreleased RemoveSelf object. +---@return self +function RemoveSelf:create () end +---* +---@return self +function RemoveSelf:clone () end +---* param time In seconds. +---@param time float +---@return self +function RemoveSelf:update (time) end +---* +---@return self +function RemoveSelf:reverse () end +---* +---@return self +function RemoveSelf:RemoveSelf () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.RenderState.lua b/meta/3rd/Cocos4.0/cc.RenderState.lua new file mode 100644 index 00000000..d967a707 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.RenderState.lua @@ -0,0 +1,17 @@ + +---@class cc.RenderState :cc.Ref +local RenderState={ } +cc.RenderState=RenderState + + + + +---* +---@return string +function RenderState:getName () end +---* Binds the render state for this RenderState and any of its parents, top-down,<br> +---* for the given pass. +---@param pass cc.Pass +---@param d cc.MeshComman +---@return self +function RenderState:bindPass (pass,d) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.RenderTexture.lua b/meta/3rd/Cocos4.0/cc.RenderTexture.lua new file mode 100644 index 00000000..57be11ab --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.RenderTexture.lua @@ -0,0 +1,168 @@ + +---@class cc.RenderTexture :cc.Node +local RenderTexture={ } +cc.RenderTexture=RenderTexture + + + + +---* Used for grab part of screen to a texture. <br> +---* param rtBegin The position of renderTexture on the fullRect.<br> +---* param fullRect The total size of screen.<br> +---* param fullViewport The total viewportSize. +---@param rtBegin vec2_table +---@param fullRect rect_table +---@param fullViewport rect_table +---@return self +function RenderTexture:setVirtualViewport (rtBegin,fullRect,fullViewport) end +---* Clears the texture with a specified stencil value.<br> +---* param stencilValue A specified stencil value. +---@param stencilValue int +---@return self +function RenderTexture:clearStencil (stencilValue) end +---* Value for clearDepth. Valid only when "autoDraw" is true. <br> +---* return Value for clearDepth. +---@return float +function RenderTexture:getClearDepth () end +---* Value for clear Stencil. Valid only when "autoDraw" is true.<br> +---* return Value for clear Stencil. +---@return int +function RenderTexture:getClearStencil () end +---* Set Value for clear Stencil.<br> +---* param clearStencil Value for clear Stencil. +---@param clearStencil int +---@return self +function RenderTexture:setClearStencil (clearStencil) end +---* Sets the Sprite being used. <br> +---* param sprite A Sprite. +---@param sprite cc.Sprite +---@return self +function RenderTexture:setSprite (sprite) end +---* Gets the Sprite being used. <br> +---* return A Sprite. +---@return cc.Sprite +function RenderTexture:getSprite () end +---* When enabled, it will render its children into the texture automatically. Disabled by default for compatibility reasons.<br> +---* Will be enabled in the future.<br> +---* return Return the autoDraw value. +---@return boolean +function RenderTexture:isAutoDraw () end +---@overload fun(string:string,int:int,boolean:boolean,function:function):self +---@overload fun(string:string,int1:boolean,boolean2:function):self +---@param fileName string +---@param format int +---@param isRGBA boolean +---@param callback function +---@return boolean +function RenderTexture:saveToFileAsNonPMA (fileName,format,isRGBA,callback) end +---* Flag: Use stack matrix computed from scene hierarchy or generate new modelView and projection matrix.<br> +---* param keepMatrix Whether or not use stack matrix computed from scene hierarchy or generate new modelView and projection matrix.<br> +---* js NA +---@param keepMatrix boolean +---@return self +function RenderTexture:setKeepMatrix (keepMatrix) end +---* Set flags.<br> +---* param clearFlags set clear flags. +---@param clearFlags int +---@return self +function RenderTexture:setClearFlags (clearFlags) end +---* Starts grabbing. +---@return self +function RenderTexture:begin () end +---@overload fun(string:string,int:int,boolean:boolean,function:function):self +---@overload fun(string:string,int1:boolean,boolean2:function):self +---@param filename string +---@param format int +---@param isRGBA boolean +---@param callback function +---@return boolean +function RenderTexture:saveToFile (filename,format,isRGBA,callback) end +---* Set a valve to control whether or not render its children into the texture automatically. <br> +---* param isAutoDraw Whether or not render its children into the texture automatically. +---@param isAutoDraw boolean +---@return self +function RenderTexture:setAutoDraw (isAutoDraw) end +---* Set color value. <br> +---* param clearColor Color value. +---@param clearColor color4f_table +---@return self +function RenderTexture:setClearColor (clearColor) end +---* Ends grabbing.<br> +---* lua endToLua +---@return self +function RenderTexture:endToLua () end +---@overload fun(float:float,float:float,float:float,float:float,float:float):self +---@overload fun(float:float,float:float,float:float,float:float):self +---@overload fun(float:float,float:float,float:float,float:float,float:float,int:int):self +---@param r float +---@param g float +---@param b float +---@param a float +---@param depthValue float +---@param stencilValue int +---@return self +function RenderTexture:beginWithClear (r,g,b,a,depthValue,stencilValue) end +---* Clears the texture with a specified depth value. <br> +---* param depthValue A specified depth value. +---@param depthValue float +---@return self +function RenderTexture:clearDepth (depthValue) end +---* Clear color value. Valid only when "autoDraw" is true. <br> +---* return Color value. +---@return color4f_table +function RenderTexture:getClearColor () end +---* Clears the texture with a color. <br> +---* param r Red.<br> +---* param g Green.<br> +---* param b Blue.<br> +---* param a Alpha. +---@param r float +---@param g float +---@param b float +---@param a float +---@return self +function RenderTexture:clear (r,g,b,a) end +---* Valid when "autoDraw" is true.<br> +---* return Clear flags. +---@return int +function RenderTexture:getClearFlags () end +---* Set Value for clearDepth.<br> +---* param clearDepth Value for clearDepth. +---@param clearDepth float +---@return self +function RenderTexture:setClearDepth (clearDepth) end +---@overload fun(int:int,int:int,int:int,int:int):self +---@overload fun(int:int,int:int,int:int):self +---@param w int +---@param h int +---@param format int +---@param depthStencilFormat int +---@return boolean +function RenderTexture:initWithWidthAndHeight (w,h,format,depthStencilFormat) end +---@overload fun(int:int,int:int,int:int):self +---@overload fun(int:int,int:int,int:int,int:int):self +---@overload fun(int:int,int:int):self +---@param w int +---@param h int +---@param format int +---@param depthStencilFormat int +---@return self +function RenderTexture:create (w,h,format,depthStencilFormat) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function RenderTexture:draw (renderer,transform,flags) end +---* +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function RenderTexture:visit (renderer,parentTransform,parentFlags) end +---* FIXME: should be protected.<br> +---* but due to a bug in PowerVR + Android,<br> +---* the constructor is public again.<br> +---* js ctor +---@return self +function RenderTexture:RenderTexture () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Renderer.lua b/meta/3rd/Cocos4.0/cc.Renderer.lua new file mode 100644 index 00000000..f697faaf --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Renderer.lua @@ -0,0 +1,253 @@ + +---@class cc.Renderer +local Renderer={ } +cc.Renderer=Renderer + + + + +---* Get winding mode.<br> +---* return The winding mode. +---@return int +function Renderer:getWinding () end +---* +---@return int +function Renderer:getDrawnVertices () end +---* Renders into the GLView all the queued `RenderCommand` objects +---@return self +function Renderer:render () end +---* Creates a render queue and returns its Id +---@return int +function Renderer:createRenderQueue () end +---* Get whether stencil test is enabled or not.<br> +---* return true if stencil test is enabled, false otherwise. +---@return boolean +function Renderer:getStencilTest () end +---* Get the render target flag.<br> +---* return The render target flag. +---@return int +function Renderer:getRenderTargetFlag () end +---* Get the clear flag.<br> +---* return The clear flag. +---@return int +function Renderer:getClearFlag () end +---* Get stencil reference value set by `setStencilCompareFunction`. <br> +---* return Stencil reference value.<br> +---* see `setStencilCompareFunction(backend::CompareFunction func, unsigned int ref, unsigned int readMask)` +---@return unsigned_int +function Renderer:getStencilReferenceValue () end +---* Get stencil attachment.<br> +---* return Stencil attachment. +---@return cc.Texture2D +function Renderer:getStencilAttachment () end +---* Fixed-function state<br> +---* param x The x coordinate of the upper-left corner of the viewport.<br> +---* param y The y coordinate of the upper-left corner of the viewport.<br> +---* param w The width of the viewport, in pixels.<br> +---* param h The height of the viewport, in pixels. +---@param x int +---@param y int +---@param w unsigned_int +---@param h unsigned_int +---@return self +function Renderer:setViewPort (x,y,w,h) end +---* Get the stencil readMask.<br> +---* return Stencil read mask.<br> +---* see `setStencilCompareFunction(backend::CompareFunction func, unsigned int ref, unsigned int readMask)` +---@return unsigned_int +function Renderer:getStencilReadMask () end +---* Get depth clear value.<br> +---* return Depth clear value. +---@return float +function Renderer:getClearDepth () end +---* Set front and back function and reference value for stencil testing.<br> +---* param func Specifies the stencil test function.<br> +---* param ref Specifies the reference value for the stencil test. <br> +---* readMask Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. +---@param func int +---@param ref unsigned_int +---@param readMask unsigned_int +---@return self +function Renderer:setStencilCompareFunction (func,ref,readMask) end +---* / Get viewport. +---@return cc.Viewport +function Renderer:getViewport () end +---* Get the index when the stencil buffer is cleared. <br> +---* return The index used when the stencil buffer is cleared. +---@return unsigned_int +function Renderer:getClearStencil () end +---* Enable/disable stencil test. <br> +---* param value true means enable stencil test, otherwise false. +---@param value boolean +---@return self +function Renderer:setStencilTest (value) end +---* / Get the action to take when the stencil test fails. +---@return int +function Renderer:getStencilFailureOperation () end +---* Get color attachment.<br> +---* return Color attachment. +---@return cc.Texture2D +function Renderer:getColorAttachment () end +---@overload fun(cc.RenderCommand:cc.RenderCommand,int:int):self +---@overload fun(cc.RenderCommand:cc.RenderCommand):self +---@param command cc.RenderCommand +---@param renderQueueID int +---@return self +function Renderer:addCommand (command,renderQueueID) end +---* Enable/disable depth test. <br> +---* param value true means enable depth test, otherwise false. +---@param value boolean +---@return self +function Renderer:setDepthTest (value) end +---* Fixed-function state<br> +---* param x, y Specifies the lower left corner of the scissor box<br> +---* param wdith Specifies the width of the scissor box<br> +---* param height Specifies the height of the scissor box +---@param x float +---@param y float +---@param width float +---@param height float +---@return self +function Renderer:setScissorRect (x,y,width,height) end +---* Get whether depth test state is enabled or disabled.<br> +---* return true if depth test is enabled, otherwise false. +---@return boolean +function Renderer:getDepthTest () end +---* +---@return self +function Renderer:init () end +---* Enable/disable to update depth buffer. <br> +---* param value true means enable writing into the depth buffer, otherwise false. +---@param value boolean +---@return self +function Renderer:setDepthWrite (value) end +---* / Get the stencil action when the stencil test passes, but the depth test fails. +---@return int +function Renderer:getStencilPassDepthFailureOperation () end +---* Fixed-function state<br> +---* param mode Controls if primitives are culled when front facing, back facing, or not culled at all. +---@param mode int +---@return self +function Renderer:setCullMode (mode) end +---* Pops a group from the render queue +---@return self +function Renderer:popGroup () end +---* Pushes a group into the render queue +---@param renderQueueID int +---@return self +function Renderer:pushGroup (renderQueueID) end +---* +---@return cc.ScissorRect +function Renderer:getScissorRect () end +---* +---@return boolean +function Renderer:getScissorTest () end +---* Get the stencil write mask.<br> +---* return Stencil write mask.<br> +---* see `setStencilWriteMask(unsigned int mask)` +---@return unsigned_int +function Renderer:getStencilWriteMask () end +---* +---@param number int +---@return self +function Renderer:addDrawnBatches (number) end +---* returns whether or not a rectangle is visible or not +---@param transform mat4_table +---@param size size_table +---@return boolean +function Renderer:checkVisibility (transform,size) end +---* Set front and back stencil test actions.<br> +---* param stencilFailureOp Specifies the action to take when the stencil test fails. <br> +---* param depthFailureOp Specifies the stencil action when the stencil test passes, but the depth test fails. <br> +---* param stencilDepthPassOp Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. +---@param stencilFailureOp int +---@param depthFailureOp int +---@param stencilDepthPassOp int +---@return self +function Renderer:setStencilOperation (stencilFailureOp,depthFailureOp,stencilDepthPassOp) end +---* Get whether writing to depth buffer is enabled or not.<br> +---* return true if enable writing into the depth buffer, false otherwise. +---@return boolean +function Renderer:getDepthWrite () end +---* Get cull mode.<br> +---* return The cull mode. +---@return int +function Renderer:getCullMode () end +---* / Get the stencil test function. +---@return int +function Renderer:getStencilCompareFunction () end +---* Get color clear value.<br> +---* return Color clear value. +---@return color4f_table +function Renderer:getClearColor () end +---* Set depth compare function.<br> +---* param func Specifies the value used for depth buffer comparisons. +---@param func int +---@return self +function Renderer:setDepthCompareFunction (func) end +---* Control the front and back writing of individual bits in the stencil planes.<br> +---* param mask Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. +---@param mask unsigned_int +---@return self +function Renderer:setStencilWriteMask (mask) end +---* / Get the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. +---@return int +function Renderer:getStencilDepthPassOperation () end +---* Enable/disable scissor test. <br> +---* param enabled true if enable scissor test, false otherwise. +---@param enabled boolean +---@return self +function Renderer:setScissorTest (enabled) end +---* Fixed-function state<br> +---* param winding The winding order of front-facing primitives. +---@param winding int +---@return self +function Renderer:setWinding (winding) end +---* Set clear values for each attachment.<br> +---* flags Flags to indicate which attachment clear value to be modified.<br> +---* color The clear color value.<br> +---* depth The clear depth value.<br> +---* stencil The clear stencil value. +---@param flags int +---@param color color4f_table +---@param depth float +---@param stencil unsigned_int +---@param globalOrder float +---@return self +function Renderer:clear (flags,color,depth,stencil,globalOrder) end +---* Set render targets. If not set, will use default render targets. It will effect all commands.<br> +---* flags Flags to indicate which attachment to be replaced.<br> +---* colorAttachment The value to replace color attachment, only one color attachment supported now.<br> +---* depthAttachment The value to repalce depth attachment.<br> +---* stencilAttachment The value to replace stencil attachment. Depth attachment and stencil attachment<br> +---* can be the same value. +---@param flags int +---@param colorAttachment cc.Texture2D +---@param depthAttachment cc.Texture2D +---@param stencilAttachment cc.Texture2D +---@return self +function Renderer:setRenderTarget (flags,colorAttachment,depthAttachment,stencilAttachment) end +---* Get depth attachment.<br> +---* return Depth attachment. +---@return cc.Texture2D +function Renderer:getDepthAttachment () end +---* +---@param number int +---@return self +function Renderer:addDrawnVertices (number) end +---* Cleans all `RenderCommand`s in the queue +---@return self +function Renderer:clean () end +---* +---@return int +function Renderer:getDrawnBatches () end +---* +---@return self +function Renderer:clearDrawStats () end +---* Get depth compare function.<br> +---* return Depth compare function. +---@return int +function Renderer:getDepthCompareFunction () end +---* Constructor. +---@return self +function Renderer:Renderer () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Repeat.lua b/meta/3rd/Cocos4.0/cc.Repeat.lua new file mode 100644 index 00000000..9f225b2c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Repeat.lua @@ -0,0 +1,53 @@ + +---@class cc.Repeat :cc.ActionInterval +local Repeat={ } +cc.Repeat=Repeat + + + + +---* Sets the inner action.<br> +---* param action The inner action. +---@param action cc.FiniteTimeAction +---@return self +function Repeat:setInnerAction (action) end +---* initializes a Repeat action. Times is an unsigned integer between 1 and pow(2,30) +---@param pAction cc.FiniteTimeAction +---@param times unsigned_int +---@return boolean +function Repeat:initWithAction (pAction,times) end +---* Gets the inner action.<br> +---* return The inner action. +---@return cc.FiniteTimeAction +function Repeat:getInnerAction () end +---* Creates a Repeat action. Times is an unsigned integer between 1 and pow(2,30).<br> +---* param action The action needs to repeat.<br> +---* param times The repeat times.<br> +---* return An autoreleased Repeat object. +---@param action cc.FiniteTimeAction +---@param times unsigned_int +---@return self +function Repeat:create (action,times) end +---* +---@param target cc.Node +---@return self +function Repeat:startWithTarget (target) end +---* +---@return self +function Repeat:reverse () end +---* +---@return self +function Repeat:clone () end +---* +---@return self +function Repeat:stop () end +---* param dt In seconds. +---@param dt float +---@return self +function Repeat:update (dt) end +---* +---@return boolean +function Repeat:isDone () end +---* +---@return self +function Repeat:Repeat () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.RepeatForever.lua b/meta/3rd/Cocos4.0/cc.RepeatForever.lua new file mode 100644 index 00000000..032248da --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.RepeatForever.lua @@ -0,0 +1,47 @@ + +---@class cc.RepeatForever :cc.ActionInterval +local RepeatForever={ } +cc.RepeatForever=RepeatForever + + + + +---* Sets the inner action.<br> +---* param action The inner action. +---@param action cc.ActionInterval +---@return self +function RepeatForever:setInnerAction (action) end +---* initializes the action +---@param action cc.ActionInterval +---@return boolean +function RepeatForever:initWithAction (action) end +---* Gets the inner action.<br> +---* return The inner action. +---@return cc.ActionInterval +function RepeatForever:getInnerAction () end +---* Creates the action.<br> +---* param action The action need to repeat forever.<br> +---* return An autoreleased RepeatForever object. +---@param action cc.ActionInterval +---@return self +function RepeatForever:create (action) end +---* +---@param target cc.Node +---@return self +function RepeatForever:startWithTarget (target) end +---* +---@return self +function RepeatForever:clone () end +---* +---@return boolean +function RepeatForever:isDone () end +---* +---@return self +function RepeatForever:reverse () end +---* param dt In seconds. +---@param dt float +---@return self +function RepeatForever:step (dt) end +---* +---@return self +function RepeatForever:RepeatForever () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ReuseGrid.lua b/meta/3rd/Cocos4.0/cc.ReuseGrid.lua new file mode 100644 index 00000000..926b3563 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ReuseGrid.lua @@ -0,0 +1,33 @@ + +---@class cc.ReuseGrid :cc.ActionInstant +local ReuseGrid={ } +cc.ReuseGrid=ReuseGrid + + + + +---* brief Initializes an action with the number of times that the current grid will be reused.<br> +---* param times Specify times the grid will be reused.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param times int +---@return boolean +function ReuseGrid:initWithTimes (times) end +---* brief Create an action with the number of times that the current grid will be reused.<br> +---* param times Specify times the grid will be reused.<br> +---* return Return a pointer of ReuseGrid. When the creation failed, return nil. +---@param times int +---@return self +function ReuseGrid:create (times) end +---* +---@param target cc.Node +---@return self +function ReuseGrid:startWithTarget (target) end +---* +---@return self +function ReuseGrid:clone () end +---* +---@return self +function ReuseGrid:reverse () end +---* +---@return self +function ReuseGrid:ReuseGrid () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Ripple3D.lua b/meta/3rd/Cocos4.0/cc.Ripple3D.lua new file mode 100644 index 00000000..1ee6f59f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Ripple3D.lua @@ -0,0 +1,77 @@ + +---@class cc.Ripple3D :cc.Grid3DAction +local Ripple3D={ } +cc.Ripple3D=Ripple3D + + + + +---* brief Set the amplitude rate of ripple effect.<br> +---* param fAmplitudeRate The amplitude rate of ripple effect. +---@param fAmplitudeRate float +---@return self +function Ripple3D:setAmplitudeRate (fAmplitudeRate) end +---* brief Initializes the action with center position, radius, number of waves, amplitude, a grid size and duration.<br> +---* param duration Specify the duration of the Ripple3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param position Specify the center position of the ripple effect.<br> +---* param radius Specify the radius of the ripple effect.<br> +---* param waves Specify the waves count of the ripple effect.<br> +---* param amplitude Specify the amplitude of the ripple effect.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param position vec2_table +---@param radius float +---@param waves unsigned_int +---@param amplitude float +---@return boolean +function Ripple3D:initWithDuration (duration,gridSize,position,radius,waves,amplitude) end +---* brief Get the amplitude rate of ripple effect.<br> +---* return The amplitude rate of ripple effect. +---@return float +function Ripple3D:getAmplitudeRate () end +---* brief Set the amplitude of ripple effect.<br> +---* param fAmplitude The amplitude of ripple effect. +---@param fAmplitude float +---@return self +function Ripple3D:setAmplitude (fAmplitude) end +---* brief Get the amplitude of ripple effect.<br> +---* return The amplitude of ripple effect. +---@return float +function Ripple3D:getAmplitude () end +---* brief Set the center position of ripple effect.<br> +---* param position The center position of ripple effect will be set. +---@param position vec2_table +---@return self +function Ripple3D:setPosition (position) end +---* brief Get the center position of ripple effect.<br> +---* return The center position of ripple effect. +---@return vec2_table +function Ripple3D:getPosition () end +---* brief Create the action with center position, radius, number of waves, amplitude, a grid size and duration.<br> +---* param duration Specify the duration of the Ripple3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param position Specify the center position of the ripple effect.<br> +---* param radius Specify the radius of the ripple effect.<br> +---* param waves Specify the waves count of the ripple effect.<br> +---* param amplitude Specify the amplitude of the ripple effect.<br> +---* return If the creation success, return a pointer of Ripple3D action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param position vec2_table +---@param radius float +---@param waves unsigned_int +---@param amplitude float +---@return self +function Ripple3D:create (duration,gridSize,position,radius,waves,amplitude) end +---* +---@return self +function Ripple3D:clone () end +---* +---@param time float +---@return self +function Ripple3D:update (time) end +---* +---@return self +function Ripple3D:Ripple3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.RotateBy.lua b/meta/3rd/Cocos4.0/cc.RotateBy.lua new file mode 100644 index 00000000..89228d4d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.RotateBy.lua @@ -0,0 +1,41 @@ + +---@class cc.RotateBy :cc.ActionInterval +local RotateBy={ } +cc.RotateBy=RotateBy + + + + +---@overload fun(float:float,float:float,float:float):self +---@overload fun(float:float,float:float):self +---@overload fun(float:float,float1:vec3_table):self +---@param duration float +---@param deltaAngleZ_X float +---@param deltaAngleZ_Y float +---@return boolean +function RotateBy:initWithDuration (duration,deltaAngleZ_X,deltaAngleZ_Y) end +---@overload fun(float:float,float:float,float:float):self +---@overload fun(float:float,float:float):self +---@overload fun(float:float,float1:vec3_table):self +---@param duration float +---@param deltaAngleZ_X float +---@param deltaAngleZ_Y float +---@return self +function RotateBy:create (duration,deltaAngleZ_X,deltaAngleZ_Y) end +---* +---@param target cc.Node +---@return self +function RotateBy:startWithTarget (target) end +---* +---@return self +function RotateBy:clone () end +---* +---@return self +function RotateBy:reverse () end +---* param time In seconds. +---@param time float +---@return self +function RotateBy:update (time) end +---* +---@return self +function RotateBy:RotateBy () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.RotateTo.lua b/meta/3rd/Cocos4.0/cc.RotateTo.lua new file mode 100644 index 00000000..3cc052a1 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.RotateTo.lua @@ -0,0 +1,40 @@ + +---@class cc.RotateTo :cc.ActionInterval +local RotateTo={ } +cc.RotateTo=RotateTo + + + + +---@overload fun(float:float,float1:vec3_table):self +---@overload fun(float:float,float:float,float:float):self +---@param duration float +---@param dstAngleX float +---@param dstAngleY float +---@return boolean +function RotateTo:initWithDuration (duration,dstAngleX,dstAngleY) end +---@overload fun(float:float,float:float):self +---@overload fun(float:float,float:float,float:float):self +---@overload fun(float:float,float1:vec3_table):self +---@param duration float +---@param dstAngleX float +---@param dstAngleY float +---@return self +function RotateTo:create (duration,dstAngleX,dstAngleY) end +---* +---@param target cc.Node +---@return self +function RotateTo:startWithTarget (target) end +---* +---@return self +function RotateTo:clone () end +---* +---@return self +function RotateTo:reverse () end +---* param time In seconds. +---@param time float +---@return self +function RotateTo:update (time) end +---* +---@return self +function RotateTo:RotateTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ScaleBy.lua b/meta/3rd/Cocos4.0/cc.ScaleBy.lua new file mode 100644 index 00000000..1d5f44a1 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ScaleBy.lua @@ -0,0 +1,30 @@ + +---@class cc.ScaleBy :cc.ScaleTo +local ScaleBy={ } +cc.ScaleBy=ScaleBy + + + + +---@overload fun(float:float,float:float,float:float):self +---@overload fun(float:float,float:float):self +---@overload fun(float:float,float:float,float:float,float:float):self +---@param duration float +---@param sx float +---@param sy float +---@param sz float +---@return self +function ScaleBy:create (duration,sx,sy,sz) end +---* +---@param target cc.Node +---@return self +function ScaleBy:startWithTarget (target) end +---* +---@return self +function ScaleBy:clone () end +---* +---@return self +function ScaleBy:reverse () end +---* +---@return self +function ScaleBy:ScaleBy () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ScaleTo.lua b/meta/3rd/Cocos4.0/cc.ScaleTo.lua new file mode 100644 index 00000000..03df917c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ScaleTo.lua @@ -0,0 +1,43 @@ + +---@class cc.ScaleTo :cc.ActionInterval +local ScaleTo={ } +cc.ScaleTo=ScaleTo + + + + +---@overload fun(float:float,float:float,float:float):self +---@overload fun(float:float,float:float):self +---@overload fun(float:float,float:float,float:float,float:float):self +---@param duration float +---@param sx float +---@param sy float +---@param sz float +---@return boolean +function ScaleTo:initWithDuration (duration,sx,sy,sz) end +---@overload fun(float:float,float:float,float:float):self +---@overload fun(float:float,float:float):self +---@overload fun(float:float,float:float,float:float,float:float):self +---@param duration float +---@param sx float +---@param sy float +---@param sz float +---@return self +function ScaleTo:create (duration,sx,sy,sz) end +---* +---@param target cc.Node +---@return self +function ScaleTo:startWithTarget (target) end +---* +---@return self +function ScaleTo:clone () end +---* +---@return self +function ScaleTo:reverse () end +---* param time In seconds. +---@param time float +---@return self +function ScaleTo:update (time) end +---* +---@return self +function ScaleTo:ScaleTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Scene.lua b/meta/3rd/Cocos4.0/cc.Scene.lua new file mode 100644 index 00000000..2143375c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Scene.lua @@ -0,0 +1,74 @@ + +---@class cc.Scene :cc.Node +local Scene={ } +cc.Scene=Scene + + + + +---* +---@return boolean +function Scene:initWithPhysics () end +---* +---@return self +function Scene:setCameraOrderDirty () end +---* Render the scene.<br> +---* param renderer The renderer use to render the scene.<br> +---* param eyeTransform The AdditionalTransform of camera.<br> +---* param eyeProjection The projection matrix of camera.<br> +---* js NA +---@param renderer cc.Renderer +---@param eyeTransform mat4_table +---@param eyeProjection mat4_table +---@return self +function Scene:render (renderer,eyeTransform,eyeProjection) end +---* +---@param deltaTime float +---@return self +function Scene:stepPhysicsAndNavigation (deltaTime) end +---* +---@param event cc.EventCustom +---@return self +function Scene:onProjectionChanged (event) end +---* Get the physics world of the scene.<br> +---* return The physics world of the scene.<br> +---* js NA +---@return cc.PhysicsWorld +function Scene:getPhysicsWorld () end +---* +---@param size size_table +---@return boolean +function Scene:initWithSize (size) end +---* Get the default camera.<br> +---* js NA<br> +---* return The default camera of scene. +---@return cc.Camera +function Scene:getDefaultCamera () end +---* Creates a new Scene object with a predefined Size. <br> +---* param size The predefined size of scene.<br> +---* return An autoreleased Scene object.<br> +---* js NA +---@param size size_table +---@return self +function Scene:createWithSize (size) end +---* Creates a new Scene object. <br> +---* return An autoreleased Scene object. +---@return self +function Scene:create () end +---* Create a scene with physics.<br> +---* return An autoreleased Scene object with physics.<br> +---* js NA +---@return self +function Scene:createWithPhysics () end +---* +---@return boolean +function Scene:init () end +---* +---@return string +function Scene:getDescription () end +---* override function +---@return self +function Scene:removeAllChildren () end +---* +---@return self +function Scene:Scene () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Scheduler.lua b/meta/3rd/Cocos4.0/cc.Scheduler.lua new file mode 100644 index 00000000..41aa69c7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Scheduler.lua @@ -0,0 +1,32 @@ + +---@class cc.Scheduler :cc.Ref +local Scheduler={ } +cc.Scheduler=Scheduler + + + + +---* Modifies the time of all scheduled callbacks.<br> +---* You can use this property to create a 'slow motion' or 'fast forward' effect.<br> +---* Default is 1.0. To create a 'slow motion' effect, use values below 1.0.<br> +---* To create a 'fast forward' effect, use values higher than 1.0.<br> +---* since v0.8<br> +---* warning It will affect EVERY scheduled selector / action. +---@param timeScale float +---@return self +function Scheduler:setTimeScale (timeScale) end +---* Remove all pending functions queued to be performed with Scheduler::performFunctionInCocosThread<br> +---* Functions unscheduled in this manner will not be executed<br> +---* This function is thread safe<br> +---* since v3.14<br> +---* js NA +---@return self +function Scheduler:removeAllFunctionsToBePerformedInCocosThread () end +---* Gets the time scale of schedule callbacks.<br> +---* see Scheduler::setTimeScale() +---@return float +function Scheduler:getTimeScale () end +---* Constructor<br> +---* js ctor +---@return self +function Scheduler:Scheduler () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Sequence.lua b/meta/3rd/Cocos4.0/cc.Sequence.lua new file mode 100644 index 00000000..240cc32d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Sequence.lua @@ -0,0 +1,40 @@ + +---@class cc.Sequence :cc.ActionInterval +local Sequence={ } +cc.Sequence=Sequence + + + + +---* +---@param arrayOfActions array_table +---@return boolean +function Sequence:init (arrayOfActions) end +---* initializes the action +---@param pActionOne cc.FiniteTimeAction +---@param pActionTwo cc.FiniteTimeAction +---@return boolean +function Sequence:initWithTwoActions (pActionOne,pActionTwo) end +---* +---@param target cc.Node +---@return self +function Sequence:startWithTarget (target) end +---* +---@return self +function Sequence:reverse () end +---* +---@return self +function Sequence:clone () end +---* +---@return self +function Sequence:stop () end +---* param t In seconds. +---@param t float +---@return self +function Sequence:update (t) end +---* +---@return boolean +function Sequence:isDone () end +---* +---@return self +function Sequence:Sequence () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ShaderCache.lua b/meta/3rd/Cocos4.0/cc.ShaderCache.lua new file mode 100644 index 00000000..0eeb110f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ShaderCache.lua @@ -0,0 +1,29 @@ + +---@class cc.ShaderCache :cc.Ref +local ShaderCache={ } +cc.ShaderCache=ShaderCache + + + + +---* Remove all unused shaders. +---@return cc.backend.ShaderCache +function ShaderCache:removeUnusedShader () end +---* purges the cache. It releases the retained instance. +---@return cc.backend.ShaderCache +function ShaderCache:destroyInstance () end +---* Create a vertex shader module and add it to cache.<br> +---* If it is created before, then just return the cached shader module.<br> +---* param shaderSource The source code of the shader. +---@param shaderSource string +---@return cc.backend.ShaderModule +function ShaderCache:newVertexShaderModule (shaderSource) end +---* Create a fragment shader module.<br> +---* If it is created before, then just return the cached shader module.<br> +---* param shaderSource The source code of the shader. +---@param shaderSource string +---@return cc.backend.ShaderModule +function ShaderCache:newFragmentShaderModule (shaderSource) end +---* returns the shared instance +---@return cc.backend.ShaderCache +function ShaderCache:getInstance () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Shaky3D.lua b/meta/3rd/Cocos4.0/cc.Shaky3D.lua new file mode 100644 index 00000000..1666e504 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Shaky3D.lua @@ -0,0 +1,42 @@ + +---@class cc.Shaky3D :cc.Grid3DAction +local Shaky3D={ } +cc.Shaky3D=Shaky3D + + + + +---* brief Initializes the action with a range, shake Z vertices, grid size and duration.<br> +---* param duration Specify the duration of the Shaky3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param range Specify the range of the shaky effect.<br> +---* param shakeZ Specify whether shake on the z axis.<br> +---* return If the Initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param range int +---@param shakeZ boolean +---@return boolean +function Shaky3D:initWithDuration (duration,gridSize,range,shakeZ) end +---* brief Create the action with a range, shake Z vertices, a grid and duration.<br> +---* param initWithDuration Specify the duration of the Shaky3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param range Specify the range of the shaky effect.<br> +---* param shakeZ Specify whether shake on the z axis.<br> +---* return If the creation success, return a pointer of Shaky3D action; otherwise, return nil. +---@param initWithDuration float +---@param gridSize size_table +---@param range int +---@param shakeZ boolean +---@return self +function Shaky3D:create (initWithDuration,gridSize,range,shakeZ) end +---* +---@return self +function Shaky3D:clone () end +---* +---@param time float +---@return self +function Shaky3D:update (time) end +---* +---@return self +function Shaky3D:Shaky3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ShakyTiles3D.lua b/meta/3rd/Cocos4.0/cc.ShakyTiles3D.lua new file mode 100644 index 00000000..7c9bfdcf --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ShakyTiles3D.lua @@ -0,0 +1,42 @@ + +---@class cc.ShakyTiles3D :cc.TiledGrid3DAction +local ShakyTiles3D={ } +cc.ShakyTiles3D=ShakyTiles3D + + + + +---* brief Initializes the action with a range, shake Z vertices, grid size and duration.<br> +---* param duration Specify the duration of the ShakyTiles3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param range Specify the range of the shaky effect.<br> +---* param shakeZ Specify whether shake on the z axis.<br> +---* return If the Initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param range int +---@param shakeZ boolean +---@return boolean +function ShakyTiles3D:initWithDuration (duration,gridSize,range,shakeZ) end +---* brief Create the action with a range, shake Z vertices, a grid and duration.<br> +---* param duration Specify the duration of the ShakyTiles3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param range Specify the range of the shaky effect.<br> +---* param shakeZ Specify whether shake on the z axis.<br> +---* return If the creation success, return a pointer of ShakyTiles3D action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param range int +---@param shakeZ boolean +---@return self +function ShakyTiles3D:create (duration,gridSize,range,shakeZ) end +---* +---@return self +function ShakyTiles3D:clone () end +---* +---@param time float +---@return self +function ShakyTiles3D:update (time) end +---* +---@return self +function ShakyTiles3D:ShakyTiles3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ShatteredTiles3D.lua b/meta/3rd/Cocos4.0/cc.ShatteredTiles3D.lua new file mode 100644 index 00000000..e1f2735c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ShatteredTiles3D.lua @@ -0,0 +1,42 @@ + +---@class cc.ShatteredTiles3D :cc.TiledGrid3DAction +local ShatteredTiles3D={ } +cc.ShatteredTiles3D=ShatteredTiles3D + + + + +---* brief Initializes the action with a range, shatter Z vertices, grid size and duration.<br> +---* param duration Specify the duration of the ShatteredTiles3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param range Specify the range of the shatter effect.<br> +---* param shatterZ Specify whether shake on the z axis.<br> +---* return If the Initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param range int +---@param shatterZ boolean +---@return boolean +function ShatteredTiles3D:initWithDuration (duration,gridSize,range,shatterZ) end +---* brief Create the action with a range, whether of not to shatter Z vertices, grid size and duration.<br> +---* param duration Specify the duration of the ShatteredTiles3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param range Specify the range of the shatter effect.<br> +---* param shatterZ Specify whether shatter on the z axis.<br> +---* return If the creation success, return a pointer of ShatteredTiles3D action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param range int +---@param shatterZ boolean +---@return self +function ShatteredTiles3D:create (duration,gridSize,range,shatterZ) end +---* +---@return self +function ShatteredTiles3D:clone () end +---* +---@param time float +---@return self +function ShatteredTiles3D:update (time) end +---* +---@return self +function ShatteredTiles3D:ShatteredTiles3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Show.lua b/meta/3rd/Cocos4.0/cc.Show.lua new file mode 100644 index 00000000..e9b71a11 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Show.lua @@ -0,0 +1,25 @@ + +---@class cc.Show :cc.ActionInstant +local Show={ } +cc.Show=Show + + + + +---* Allocates and initializes the action.<br> +---* return An autoreleased Show object. +---@return self +function Show:create () end +---* +---@return self +function Show:clone () end +---* param time In seconds. +---@param time float +---@return self +function Show:update (time) end +---* +---@return cc.ActionInstant +function Show:reverse () end +---* +---@return self +function Show:Show () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ShuffleTiles.lua b/meta/3rd/Cocos4.0/cc.ShuffleTiles.lua new file mode 100644 index 00000000..b3189136 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ShuffleTiles.lua @@ -0,0 +1,46 @@ + +---@class cc.ShuffleTiles :cc.TiledGrid3DAction +local ShuffleTiles={ } +cc.ShuffleTiles=ShuffleTiles + + + + +---* brief Initializes the action with grid size, random seed and duration.<br> +---* param duration Specify the duration of the ShuffleTiles action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param seed Specify the random seed.<br> +---* return If the Initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param seed unsigned_int +---@return boolean +function ShuffleTiles:initWithDuration (duration,gridSize,seed) end +---* +---@param pos size_table +---@return size_table +function ShuffleTiles:getDelta (pos) end +---* brief Create the action with grid size, random seed and duration.<br> +---* param duration Specify the duration of the ShuffleTiles action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param seed Specify the random seed.<br> +---* return If the creation success, return a pointer of ShuffleTiles action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param seed unsigned_int +---@return self +function ShuffleTiles:create (duration,gridSize,seed) end +---* +---@param target cc.Node +---@return self +function ShuffleTiles:startWithTarget (target) end +---* +---@return self +function ShuffleTiles:clone () end +---* +---@param time float +---@return self +function ShuffleTiles:update (time) end +---* +---@return self +function ShuffleTiles:ShuffleTiles () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Skeleton3D.lua b/meta/3rd/Cocos4.0/cc.Skeleton3D.lua new file mode 100644 index 00000000..13310f77 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Skeleton3D.lua @@ -0,0 +1,43 @@ + +---@class cc.Skeleton3D :cc.Ref +local Skeleton3D={ } +cc.Skeleton3D=Skeleton3D + + + + +---* remove all bones +---@return self +function Skeleton3D:removeAllBones () end +---* add bone +---@param bone cc.Bone3D +---@return self +function Skeleton3D:addBone (bone) end +---* +---@param id string +---@return cc.Bone3D +function Skeleton3D:getBoneByName (id) end +---* +---@param index int +---@return cc.Bone3D +function Skeleton3D:getRootBone (index) end +---* refresh bone world matrix +---@return self +function Skeleton3D:updateBoneMatrix () end +---* get bone +---@param index unsigned_int +---@return cc.Bone3D +function Skeleton3D:getBoneByIndex (index) end +---* get & set root bone +---@return int +function Skeleton3D:getRootCount () end +---* get bone index +---@param bone cc.Bone3D +---@return int +function Skeleton3D:getBoneIndex (bone) end +---* get total bone count +---@return int +function Skeleton3D:getBoneCount () end +---* +---@return self +function Skeleton3D:Skeleton3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.SkewBy.lua b/meta/3rd/Cocos4.0/cc.SkewBy.lua new file mode 100644 index 00000000..b06b1818 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.SkewBy.lua @@ -0,0 +1,37 @@ + +---@class cc.SkewBy :cc.SkewTo +local SkewBy={ } +cc.SkewBy=SkewBy + + + + +---* param t In seconds. +---@param t float +---@param sx float +---@param sy float +---@return boolean +function SkewBy:initWithDuration (t,sx,sy) end +---* Creates the action.<br> +---* param t Duration time, in seconds.<br> +---* param deltaSkewX Skew x delta angle.<br> +---* param deltaSkewY Skew y delta angle.<br> +---* return An autoreleased SkewBy object. +---@param t float +---@param deltaSkewX float +---@param deltaSkewY float +---@return self +function SkewBy:create (t,deltaSkewX,deltaSkewY) end +---* +---@param target cc.Node +---@return self +function SkewBy:startWithTarget (target) end +---* +---@return self +function SkewBy:clone () end +---* +---@return self +function SkewBy:reverse () end +---* +---@return self +function SkewBy:SkewBy () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.SkewTo.lua b/meta/3rd/Cocos4.0/cc.SkewTo.lua new file mode 100644 index 00000000..e959453d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.SkewTo.lua @@ -0,0 +1,41 @@ + +---@class cc.SkewTo :cc.ActionInterval +local SkewTo={ } +cc.SkewTo=SkewTo + + + + +---* param t In seconds. +---@param t float +---@param sx float +---@param sy float +---@return boolean +function SkewTo:initWithDuration (t,sx,sy) end +---* Creates the action.<br> +---* param t Duration time, in seconds.<br> +---* param sx Skew x angle.<br> +---* param sy Skew y angle.<br> +---* return An autoreleased SkewTo object. +---@param t float +---@param sx float +---@param sy float +---@return self +function SkewTo:create (t,sx,sy) end +---* +---@param target cc.Node +---@return self +function SkewTo:startWithTarget (target) end +---* +---@return self +function SkewTo:clone () end +---* +---@return self +function SkewTo:reverse () end +---* param time In seconds. +---@param time float +---@return self +function SkewTo:update (time) end +---* +---@return self +function SkewTo:SkewTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Skybox.lua b/meta/3rd/Cocos4.0/cc.Skybox.lua new file mode 100644 index 00000000..d255bb8c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Skybox.lua @@ -0,0 +1,46 @@ + +---@class cc.Skybox :cc.Node +local Skybox={ } +cc.Skybox=Skybox + + + + +---* reload sky box after GLESContext reconstructed. +---@return self +function Skybox:reload () end +---* initialize with texture path +---@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 boolean +function Skybox:init (positive_x,negative_x,positive_y,negative_y,positive_z,negative_z) end +---* texture getter and setter +---@param e cc.TextureCub +---@return self +function Skybox:setTexture (e) end +---@overload fun(string:string,string:string,string:string,string:string,string:string,string:string):self +---@overload fun():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 Skybox:create (positive_x,negative_x,positive_y,negative_y,positive_z,negative_z) end +---* draw Skybox object +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function Skybox:draw (renderer,transform,flags) end +---* init Skybox. +---@return boolean +function Skybox:init () end +---* Constructor. +---@return self +function Skybox:Skybox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Spawn.lua b/meta/3rd/Cocos4.0/cc.Spawn.lua new file mode 100644 index 00000000..08b85d65 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Spawn.lua @@ -0,0 +1,37 @@ + +---@class cc.Spawn :cc.ActionInterval +local Spawn={ } +cc.Spawn=Spawn + + + + +---* +---@param arrayOfActions array_table +---@return boolean +function Spawn:init (arrayOfActions) end +---* initializes the Spawn action with the 2 actions to spawn +---@param action1 cc.FiniteTimeAction +---@param action2 cc.FiniteTimeAction +---@return boolean +function Spawn:initWithTwoActions (action1,action2) end +---* +---@param target cc.Node +---@return self +function Spawn:startWithTarget (target) end +---* +---@return self +function Spawn:clone () end +---* +---@return self +function Spawn:stop () end +---* +---@return self +function Spawn:reverse () end +---* param time In seconds. +---@param time float +---@return self +function Spawn:update (time) end +---* +---@return self +function Spawn:Spawn () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Speed.lua b/meta/3rd/Cocos4.0/cc.Speed.lua new file mode 100644 index 00000000..a405ed21 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Speed.lua @@ -0,0 +1,62 @@ + +---@class cc.Speed :cc.Action +local Speed={ } +cc.Speed=Speed + + + + +---* Replace the interior action.<br> +---* param action The new action, it will replace the running action. +---@param action cc.ActionInterval +---@return self +function Speed:setInnerAction (action) end +---* Return the speed.<br> +---* return The action speed. +---@return float +function Speed:getSpeed () end +---* Alter the speed of the inner function in runtime. <br> +---* param speed Alter the speed of the inner function in runtime. +---@param speed float +---@return self +function Speed:setSpeed (speed) end +---* Initializes the action. +---@param action cc.ActionInterval +---@param speed float +---@return boolean +function Speed:initWithAction (action,speed) end +---* Return the interior action.<br> +---* return The interior action. +---@return cc.ActionInterval +function Speed:getInnerAction () end +---* Create the action and set the speed.<br> +---* param action An action.<br> +---* param speed The action speed. +---@param action cc.ActionInterval +---@param speed float +---@return self +function Speed:create (action,speed) end +---* +---@param target cc.Node +---@return self +function Speed:startWithTarget (target) end +---* +---@return self +function Speed:reverse () end +---* +---@return self +function Speed:clone () end +---* +---@return self +function Speed:stop () end +---* param dt in seconds. +---@param dt float +---@return self +function Speed:step (dt) end +---* Return true if the action has finished.<br> +---* return Is true if the action has finished. +---@return boolean +function Speed:isDone () end +---* +---@return self +function Speed:Speed () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.SplitCols.lua b/meta/3rd/Cocos4.0/cc.SplitCols.lua new file mode 100644 index 00000000..cee708b5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.SplitCols.lua @@ -0,0 +1,38 @@ + +---@class cc.SplitCols :cc.TiledGrid3DAction +local SplitCols={ } +cc.SplitCols=SplitCols + + + + +---* brief Initializes the action with the number columns and the duration.<br> +---* param duration Specify the duration of the SplitCols action. It's a value in seconds.<br> +---* param cols Specify the columns count should be split.<br> +---* return If the creation success, return true; otherwise, return false. +---@param duration float +---@param cols unsigned_int +---@return boolean +function SplitCols:initWithDuration (duration,cols) end +---* brief Create the action with the number of columns and the duration.<br> +---* param duration Specify the duration of the SplitCols action. It's a value in seconds.<br> +---* param cols Specify the columns count should be split.<br> +---* return If the creation success, return a pointer of SplitCols action; otherwise, return nil. +---@param duration float +---@param cols unsigned_int +---@return self +function SplitCols:create (duration,cols) end +---* +---@param target cc.Node +---@return self +function SplitCols:startWithTarget (target) end +---* +---@return self +function SplitCols:clone () end +---* param time in seconds +---@param time float +---@return self +function SplitCols:update (time) end +---* +---@return self +function SplitCols:SplitCols () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.SplitRows.lua b/meta/3rd/Cocos4.0/cc.SplitRows.lua new file mode 100644 index 00000000..948c6d45 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.SplitRows.lua @@ -0,0 +1,38 @@ + +---@class cc.SplitRows :cc.TiledGrid3DAction +local SplitRows={ } +cc.SplitRows=SplitRows + + + + +---* brief Initializes the action with the number rows and the duration.<br> +---* param duration Specify the duration of the SplitRows action. It's a value in seconds.<br> +---* param rows Specify the rows count should be split.<br> +---* return If the creation success, return true; otherwise, return false. +---@param duration float +---@param rows unsigned_int +---@return boolean +function SplitRows:initWithDuration (duration,rows) end +---* brief Create the action with the number of rows and the duration.<br> +---* param duration Specify the duration of the SplitRows action. It's a value in seconds.<br> +---* param rows Specify the rows count should be split.<br> +---* return If the creation success, return a pointer of SplitRows action; otherwise, return nil. +---@param duration float +---@param rows unsigned_int +---@return self +function SplitRows:create (duration,rows) end +---* +---@param target cc.Node +---@return self +function SplitRows:startWithTarget (target) end +---* +---@return self +function SplitRows:clone () end +---* +---@param time float +---@return self +function SplitRows:update (time) end +---* +---@return self +function SplitRows:SplitRows () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.SpotLight.lua b/meta/3rd/Cocos4.0/cc.SpotLight.lua new file mode 100644 index 00000000..d3985722 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.SpotLight.lua @@ -0,0 +1,72 @@ + +---@class cc.SpotLight :cc.BaseLight +local SpotLight={ } +cc.SpotLight=SpotLight + + + + +---* Returns the range of point or spot light.<br> +---* return The range of the point or spot light. +---@return float +function SpotLight:getRange () end +---* Sets the Direction in parent.<br> +---* param dir The Direction in parent. +---@param dir vec3_table +---@return self +function SpotLight:setDirection (dir) end +---* get cos innerAngle +---@return float +function SpotLight:getCosInnerAngle () end +---* Returns the outer angle of the spot light (in radians). +---@return float +function SpotLight:getOuterAngle () end +---* Returns the inner angle the spot light (in radians). +---@return float +function SpotLight:getInnerAngle () end +---* Returns the Direction in parent. +---@return vec3_table +function SpotLight:getDirection () end +---* get cos outAngle +---@return float +function SpotLight:getCosOuterAngle () end +---* Sets the outer angle of a spot light (in radians).<br> +---* param outerAngle The angle of spot light (in radians). +---@param outerAngle float +---@return self +function SpotLight:setOuterAngle (outerAngle) end +---* Sets the inner angle of a spot light (in radians).<br> +---* param angle The angle of spot light (in radians). +---@param angle float +---@return self +function SpotLight:setInnerAngle (angle) end +---* Returns direction in world. +---@return vec3_table +function SpotLight:getDirectionInWorld () end +---* Sets the range of point or spot light.<br> +---* param range The range of point or spot light. +---@param range float +---@return self +function SpotLight:setRange (range) end +---* Creates a spot light.<br> +---* param direction The light's direction<br> +---* param position The light's position<br> +---* param color The light's color.<br> +---* param innerAngle The light's inner angle (in radians).<br> +---* param outerAngle The light's outer angle (in radians).<br> +---* param range The light's range.<br> +---* return The new spot light. +---@param direction vec3_table +---@param position vec3_table +---@param color color3b_table +---@param innerAngle float +---@param outerAngle float +---@param range float +---@return self +function SpotLight:create (direction,position,color,innerAngle,outerAngle,range) end +---* +---@return int +function SpotLight:getLightType () end +---* +---@return self +function SpotLight:SpotLight () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Sprite.lua b/meta/3rd/Cocos4.0/cc.Sprite.lua new file mode 100644 index 00000000..1084a1e2 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Sprite.lua @@ -0,0 +1,339 @@ + +---@class cc.Sprite :cc.Node@all parent class: Node,TextureProtocol +local Sprite={ } +cc.Sprite=Sprite + + + + +---@overload fun(string0:cc.SpriteFrame):self +---@overload fun(string:string):self +---@param spriteFrameName string +---@return self +function Sprite:setSpriteFrame (spriteFrameName) end +---@overload fun(string0:cc.Texture2D):self +---@overload fun(string:string):self +---@param filename string +---@return self +function Sprite:setTexture (filename) end +---* Returns the Texture2D object used by the sprite. +---@return cc.Texture2D +function Sprite:getTexture () end +---* Sets whether the sprite should be flipped vertically or not.<br> +---* param flippedY true if the sprite should be flipped vertically, false otherwise. +---@param flippedY boolean +---@return self +function Sprite:setFlippedY (flippedY) end +---* Sets whether the sprite should be flipped horizontally or not.<br> +---* param flippedX true if the sprite should be flipped horizontally, false otherwise. +---@param flippedX boolean +---@return self +function Sprite:setFlippedX (flippedX) end +---* / @} +---@return int +function Sprite:getResourceType () end +---* / @{/ @name Animation methods<br> +---* Changes the display frame with animation name and index.<br> +---* The animation name will be get from the AnimationCache. +---@param animationName string +---@param frameIndex unsigned_int +---@return self +function Sprite:setDisplayFrameWithAnimationName (animationName,frameIndex) end +---* Returns the batch node object if this sprite is rendered by SpriteBatchNode.<br> +---* return The SpriteBatchNode object if this sprite is rendered by SpriteBatchNode,<br> +---* nullptr if the sprite isn't used batch node. +---@return cc.SpriteBatchNode +function Sprite:getBatchNode () end +---* Gets the offset position of the sprite. Calculated automatically by editors like Zwoptex. +---@return vec2_table +function Sprite:getOffsetPosition () end +---* brief Returns the Cap Insets rect<br> +---* return Scale9Sprite's cap inset. +---@return rect_table +function Sprite:getCenterRect () end +---* setCenterRectNormalized<br> +---* Useful to implement "9 sliced" sprites.<br> +---* The default value is (0,0) - (1,1), which means that only one "slice" will be used: From top-left (0,0) to bottom-right (1,1).<br> +---* If the value is different than (0,0), (1,1), then the sprite will be sliced into a 3 x 3 grid. The four corners of this grid are applied without<br> +---* performing any scaling. The upper- and lower-middle parts are scaled horizontally, and the left- and right-middle parts are scaled vertically.<br> +---* The center is scaled in both directions.<br> +---* Important: The scaling is based the Sprite's trimmed size.<br> +---* Limitations: Does not work when the sprite is part of `SpriteBatchNode`. +---@param rect rect_table +---@return self +function Sprite:setCenterRectNormalized (rect) end +---* returns whether or not contentSize stretches the sprite's texture +---@return boolean +function Sprite:isStretchEnabled () end +---@overload fun(rect_table:rect_table,boolean:boolean,size_table:size_table):self +---@overload fun(rect_table:rect_table):self +---@param rect rect_table +---@param rotated boolean +---@param untrimmedSize size_table +---@return self +function Sprite:setTextureRect (rect,rotated,untrimmedSize) end +---* Initializes a sprite with an sprite frame name.<br> +---* A SpriteFrame will be fetched from the SpriteFrameCache by name.<br> +---* If the SpriteFrame doesn't exist it will raise an exception.<br> +---* param spriteFrameName A key string that can fetched a valid SpriteFrame from SpriteFrameCache.<br> +---* return True if the sprite is initialized properly, false otherwise. +---@param spriteFrameName string +---@return boolean +function Sprite:initWithSpriteFrameName (spriteFrameName) end +---* whether or not contentSize stretches the sprite's texture +---@param enabled boolean +---@return self +function Sprite:setStretchEnabled (enabled) end +---* Returns whether or not a SpriteFrame is being displayed. +---@param frame cc.SpriteFrame +---@return boolean +function Sprite:isFrameDisplayed (frame) end +---* Returns the index used on the TextureAtlas. +---@return unsigned_int +function Sprite:getAtlasIndex () end +---* Sets the weak reference of the TextureAtlas when the sprite is rendered using via SpriteBatchNode. +---@param textureAtlas cc.TextureAtlas +---@return self +function Sprite:setTextureAtlas (textureAtlas) end +---* Sets the batch node to sprite.<br> +---* warning This method is not recommended for game developers. Sample code for using batch node<br> +---* code<br> +---* SpriteBatchNode *batch = SpriteBatchNode::create("Images/grossini_dance_atlas.png", 15);<br> +---* Sprite *sprite = Sprite::createWithTexture(batch->getTexture(), Rect(0, 0, 57, 57));<br> +---* batch->addChild(sprite);<br> +---* layer->addChild(batch);<br> +---* endcode +---@param spriteBatchNode cc.SpriteBatchNode +---@return self +function Sprite:setBatchNode (spriteBatchNode) end +---* js NA<br> +---* lua NA +---@return cc.BlendFunc +function Sprite:getBlendFunc () end +---* +---@param rect rect_table +---@return self +function Sprite:setCenterRect (rect) end +---* Returns the current displayed frame. +---@return cc.SpriteFrame +function Sprite:getSpriteFrame () end +---* +---@return self +function Sprite:setVertexLayout () end +---* +---@param cleanup boolean +---@return self +function Sprite:removeAllChildrenWithCleanup (cleanup) end +---* +---@return string +function Sprite:getResourceName () end +---* Whether or not the Sprite needs to be updated in the Atlas.<br> +---* return True if the sprite needs to be updated in the Atlas, false otherwise. +---@return boolean +function Sprite:isDirty () end +---* getCenterRectNormalized<br> +---* Returns the CenterRect in normalized coordinates +---@return rect_table +function Sprite:getCenterRectNormalized () end +---* Sets the index used on the TextureAtlas.<br> +---* warning Don't modify this value unless you know what you are doing. +---@param atlasIndex unsigned_int +---@return self +function Sprite:setAtlasIndex (atlasIndex) end +---@overload fun(cc.Texture2D:cc.Texture2D,rect_table:rect_table):self +---@overload fun(cc.Texture2D:cc.Texture2D):self +---@overload fun(cc.Texture2D:cc.Texture2D,rect_table:rect_table,boolean:boolean):self +---@param texture cc.Texture2D +---@param rect rect_table +---@param rotated boolean +---@return boolean +function Sprite:initWithTexture (texture,rect,rotated) end +---* Makes the Sprite to be updated in the Atlas. +---@param dirty boolean +---@return self +function Sprite:setDirty (dirty) end +---* Returns whether or not the texture rectangle is rotated. +---@return boolean +function Sprite:isTextureRectRotated () end +---* Returns the rect of the Sprite in points. +---@return rect_table +function Sprite:getTextureRect () end +---@overload fun(string:string,rect_table:rect_table):self +---@overload fun(string:string):self +---@param filename string +---@param rect rect_table +---@return boolean +function Sprite:initWithFile (filename,rect) end +---* / @{/ @name Functions inherited from TextureProtocol.<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> +---* In lua: local setBlendFunc(local src, local dst).<br> +---* endcode +---@param blendFunc cc.BlendFunc +---@return self +function Sprite:setBlendFunc (blendFunc) end +---* +---@param vert char +---@param frag char +---@return self +function Sprite:updateShaders (vert,frag) end +---* Gets the weak reference of the TextureAtlas when the sprite is rendered using via SpriteBatchNode. +---@return cc.TextureAtlas +function Sprite:getTextureAtlas () end +---* Initializes a sprite with an SpriteFrame. The texture and rect in SpriteFrame will be applied on this sprite.<br> +---* param spriteFrame A SpriteFrame object. It should includes a valid texture and a rect.<br> +---* return True if the sprite is initialized properly, false otherwise. +---@param spriteFrame cc.SpriteFrame +---@return boolean +function Sprite:initWithSpriteFrame (spriteFrame) end +---* Returns the flag which indicates whether the sprite is flipped horizontally or not.<br> +---* It only flips the texture of the sprite, and not the texture of the sprite's children.<br> +---* Also, flipping the texture doesn't alter the anchorPoint.<br> +---* If you want to flip the anchorPoint too, and/or to flip the children too use:<br> +---* sprite->setScaleX(sprite->getScaleX() * -1);<br> +---* return true if the sprite is flipped horizontally, false otherwise. +---@return boolean +function Sprite:isFlippedX () end +---* Return the flag which indicates whether the sprite is flipped vertically or not.<br> +---* It only flips the texture of the sprite, and not the texture of the sprite's children.<br> +---* Also, flipping the texture doesn't alter the anchorPoint.<br> +---* If you want to flip the anchorPoint too, and/or to flip the children too use:<br> +---* sprite->setScaleY(sprite->getScaleY() * -1);<br> +---* return true if the sprite is flipped vertically, false otherwise. +---@return boolean +function Sprite:isFlippedY () end +---* Sets the vertex rect.<br> +---* It will be called internally by setTextureRect.<br> +---* Useful if you want to create 2x images from SD images in Retina Display.<br> +---* Do not call it manually. Use setTextureRect instead. +---@param rect rect_table +---@return self +function Sprite:setVertexRect (rect) end +---@overload fun(cc.Texture2D:cc.Texture2D,rect_table:rect_table,boolean:boolean):self +---@overload fun(cc.Texture2D:cc.Texture2D):self +---@param texture cc.Texture2D +---@param rect rect_table +---@param rotated boolean +---@return self +function Sprite:createWithTexture (texture,rect,rotated) end +---* Creates a sprite with an sprite frame name.<br> +---* A SpriteFrame will be fetched from the SpriteFrameCache by spriteFrameName param.<br> +---* If the SpriteFrame doesn't exist it will raise an exception.<br> +---* param spriteFrameName The name of sprite frame.<br> +---* return An autoreleased sprite object. +---@param spriteFrameName string +---@return self +function Sprite:createWithSpriteFrameName (spriteFrameName) end +---* Creates a sprite with an sprite frame.<br> +---* param spriteFrame A sprite frame which involves a texture and a rect.<br> +---* return An autoreleased sprite object. +---@param spriteFrame cc.SpriteFrame +---@return self +function Sprite:createWithSpriteFrame (spriteFrame) end +---@overload fun(cc.Node:cc.Node,int:int,int2:string):self +---@overload fun(cc.Node:cc.Node,int:int,int:int):self +---@param child cc.Node +---@param zOrder int +---@param tag int +---@return self +function Sprite:addChild (child,zOrder,tag) end +---* +---@param anchor vec2_table +---@return self +function Sprite:setAnchorPoint (anchor) end +---* +---@param rotationX float +---@return self +function Sprite:setRotationSkewX (rotationX) end +---* +---@param scaleY float +---@return self +function Sprite:setScaleY (scaleY) end +---@overload fun(float:float):self +---@overload fun(float:float,float:float):self +---@param scaleX float +---@param scaleY float +---@return self +function Sprite:setScale (scaleX,scaleY) end +---* Set ProgramState +---@param programState cc.backend.ProgramState +---@return self +function Sprite:setProgramState (programState) end +---* +---@param size size_table +---@return self +function Sprite:setContentSize (size) end +---* +---@return boolean +function Sprite:isOpacityModifyRGB () end +---* +---@param modify boolean +---@return self +function Sprite:setOpacityModifyRGB (modify) end +---* +---@return boolean +function Sprite:init () end +---* +---@param rotation float +---@return self +function Sprite:setRotation (rotation) end +---* +---@param value boolean +---@return self +function Sprite:setIgnoreAnchorPointForPosition (value) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function Sprite:draw (renderer,transform,flags) end +---* / @{/ @name Functions inherited from Node. +---@param scaleX float +---@return self +function Sprite:setScaleX (scaleX) end +---* js NA +---@return string +function Sprite:getDescription () end +---* +---@param rotationY float +---@return self +function Sprite:setRotationSkewY (rotationY) end +---* Get current ProgramState +---@return cc.backend.ProgramState +function Sprite:getProgramState () end +---* +---@return self +function Sprite:sortAllChildren () end +---* +---@param child cc.Node +---@param zOrder int +---@return self +function Sprite:reorderChild (child,zOrder) end +---* +---@param positionZ float +---@return self +function Sprite:setPositionZ (positionZ) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function Sprite:removeChild (child,cleanup) end +---* Updates the quad according the rotation, position, scale values. +---@return self +function Sprite:updateTransform () end +---* +---@param sx float +---@return self +function Sprite:setSkewX (sx) end +---* +---@param sy float +---@return self +function Sprite:setSkewY (sy) end +---* +---@param bVisible boolean +---@return self +function Sprite:setVisible (bVisible) end +---* js ctor +---@return self +function Sprite:Sprite () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Sprite3D.lua b/meta/3rd/Cocos4.0/cc.Sprite3D.lua new file mode 100644 index 00000000..03dc8d4b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Sprite3D.lua @@ -0,0 +1,120 @@ + +---@class cc.Sprite3D :cc.Node@all parent class: Node,BlendProtocol +local Sprite3D={ } +cc.Sprite3D=Sprite3D + + + + +---* +---@param enable boolean +---@return self +function Sprite3D:setCullFaceEnabled (enable) end +---@overload fun(string0:cc.Texture2D):self +---@overload fun(string:string):self +---@param texFile string +---@return self +function Sprite3D:setTexture (texFile) end +---* +---@return unsigned_int +function Sprite3D:getLightMask () end +---* Adds a new material to a particular mesh of the sprite.<br> +---* meshIndex is the mesh that will be applied to.<br> +---* if meshIndex == -1, then it will be applied to all the meshes that belong to the sprite. +---@param meshIndex int +---@return cc.Material +function Sprite3D:getMaterial (meshIndex) end +---* +---@param side int +---@return self +function Sprite3D:setCullFace (side) end +---* Get meshes used in sprite 3d +---@return array_table +function Sprite3D:getMeshes () end +---* remove all attach nodes +---@return self +function Sprite3D:removeAllAttachNode () end +---@overload fun(cc.Material:cc.Material,int:int):self +---@overload fun(cc.Material:cc.Material):self +---@param material cc.Material +---@param meshIndex int +---@return self +function Sprite3D:setMaterial (material,meshIndex) end +---* get mesh +---@return cc.Mesh +function Sprite3D:getMesh () end +---* get mesh count +---@return int +function Sprite3D:getMeshCount () end +---* get Mesh by index +---@param index int +---@return cc.Mesh +function Sprite3D:getMeshByIndex (index) end +---* +---@return boolean +function Sprite3D:isForceDepthWrite () end +---* +---@return cc.BlendFunc +function Sprite3D:getBlendFunc () end +---* light mask getter & setter, light works only when _lightmask & light's flag is true, default value of _lightmask is 0xffff +---@param mask unsigned_int +---@return self +function Sprite3D:setLightMask (mask) end +---* get AttachNode by bone name, return nullptr if not exist +---@param boneName string +---@return cc.AttachNode +function Sprite3D:getAttachNode (boneName) end +---* +---@param blendFunc cc.BlendFunc +---@return self +function Sprite3D:setBlendFunc (blendFunc) end +---* force set this Sprite3D to 2D render queue +---@param force2D boolean +---@return self +function Sprite3D:setForce2DQueue (force2D) end +---* generate default material +---@return self +function Sprite3D:genMaterial () end +---* remove attach node +---@param boneName string +---@return self +function Sprite3D:removeAttachNode (boneName) end +---* +---@return cc.Skeleton3D +function Sprite3D:getSkeleton () end +---* Force to write to depth buffer, this is useful if you want to achieve effects like fading. +---@param value boolean +---@return self +function Sprite3D:setForceDepthWrite (value) end +---* get Mesh by Name, it returns the first one if there are more than one mesh with the same name +---@param name string +---@return cc.Mesh +function Sprite3D:getMeshByName (name) end +---@overload fun(string:string):self +---@overload fun():self +---@overload fun(string:string,string:string):self +---@param modelPath string +---@param texturePath string +---@return self +function Sprite3D:create (modelPath,texturePath) end +---* draw +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function Sprite3D:draw (renderer,transform,flags) end +---* Executes an action, and returns the action that is executed. For Sprite3D special logic are needed to take care of Fading.<br> +---* This node becomes the action's target. Refer to Action::getTarget()<br> +---* warning Actions don't retain their target.<br> +---* return An Action pointer +---@param action cc.Action +---@return cc.Action +function Sprite3D:runAction (action) end +---* set ProgramState, you should bind attributes by yourself +---@param programState cc.backend.ProgramState +---@return self +function Sprite3D:setProgramState (programState) end +---* Returns 2d bounding-box<br> +---* Note: the bounding-box is just get from the AABB which as Z=0, so that is not very accurate. +---@return rect_table +function Sprite3D:getBoundingBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Sprite3DCache.lua b/meta/3rd/Cocos4.0/cc.Sprite3DCache.lua new file mode 100644 index 00000000..1163b57b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Sprite3DCache.lua @@ -0,0 +1,24 @@ + +---@class cc.Sprite3DCache +local Sprite3DCache={ } +cc.Sprite3DCache=Sprite3DCache + + + + +---* remove the SpriteData from Sprite3D by given the specified key +---@param key string +---@return self +function Sprite3DCache:removeSprite3DData (key) end +---* remove all the SpriteData from Sprite3D +---@return self +function Sprite3DCache:removeAllSprite3DData () end +---* +---@return self +function Sprite3DCache:destroyInstance () end +---* get & destroy +---@return self +function Sprite3DCache:getInstance () end +---* +---@return self +function Sprite3DCache:Sprite3DCache () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Sprite3DMaterial.lua b/meta/3rd/Cocos4.0/cc.Sprite3DMaterial.lua new file mode 100644 index 00000000..487fe0f2 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Sprite3DMaterial.lua @@ -0,0 +1,37 @@ + +---@class cc.Sprite3DMaterial :cc.Material +local Sprite3DMaterial={ } +cc.Sprite3DMaterial=Sprite3DMaterial + + + + +---* Get material type<br> +---* return Material type +---@return int +function Sprite3DMaterial:getMaterialType () end +---* Create material with file name, it creates material from cache if it is previously loaded<br> +---* param path Path of material file<br> +---* return Created material +---@param path string +---@return self +function Sprite3DMaterial:createWithFilename (path) end +---* Release all cached materials +---@return self +function Sprite3DMaterial:releaseCachedMaterial () end +---@overload fun():self +---@overload fun(int:int,boolean:boolean):self +---@param type int +---@param skinned boolean +---@return self +function Sprite3DMaterial:createBuiltInMaterial (type,skinned) end +---* Release all built in materials +---@return self +function Sprite3DMaterial:releaseBuiltInMaterial () end +---* +---@param programState cc.backend.ProgramState +---@return self +function Sprite3DMaterial:createWithProgramState (programState) end +---* Clone material +---@return cc.Material +function Sprite3DMaterial:clone () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.SpriteBatchNode.lua b/meta/3rd/Cocos4.0/cc.SpriteBatchNode.lua new file mode 100644 index 00000000..447834a3 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.SpriteBatchNode.lua @@ -0,0 +1,190 @@ + +---@class cc.SpriteBatchNode :cc.Node@all parent class: Node,TextureProtocol +local SpriteBatchNode={ } +cc.SpriteBatchNode=SpriteBatchNode + + + + +---* Append the child. <br> +---* param sprite A Sprite. +---@param sprite cc.Sprite +---@return self +function SpriteBatchNode:appendChild (sprite) end +---* +---@param reorder boolean +---@return self +function SpriteBatchNode:reorderBatch (reorder) end +---* +---@return cc.Texture2D +function SpriteBatchNode:getTexture () end +---* +---@param texture cc.Texture2D +---@return self +function SpriteBatchNode:setTexture (texture) end +---* Removes a child given a certain index. It will also cleanup the running actions depending on the cleanup parameter.<br> +---* param index A certain index.<br> +---* param doCleanup Whether or not to cleanup the running actions.<br> +---* warning Removing a child from a SpriteBatchNode is very slow. +---@param index int +---@param doCleanup boolean +---@return self +function SpriteBatchNode:removeChildAtIndex (index,doCleanup) end +---* Remove a sprite from Atlas. <br> +---* param sprite A Sprite. +---@param sprite cc.Sprite +---@return self +function SpriteBatchNode:removeSpriteFromAtlas (sprite) end +---* +---@param child cc.Sprite +---@param z int +---@param aTag int +---@return self +function SpriteBatchNode:addSpriteWithoutQuad (child,z,aTag) end +---* Get the nearest index from the sprite in z.<br> +---* param sprite The parent sprite.<br> +---* param z Z order for drawing priority.<br> +---* return Index. +---@param sprite cc.Sprite +---@param z int +---@return int +function SpriteBatchNode:atlasIndexForChild (sprite,z) end +---* Increase the Atlas Capacity. +---@return self +function SpriteBatchNode:increaseAtlasCapacity () end +---* Get the Min image block index,in all child. <br> +---* param sprite The parent sprite.<br> +---* return Index. +---@param sprite cc.Sprite +---@return int +function SpriteBatchNode:lowestAtlasIndexInChild (sprite) end +---* lua NA +---@return cc.BlendFunc +function SpriteBatchNode:getBlendFunc () end +---* initializes a SpriteBatchNode with a texture2d and capacity of children.<br> +---* The capacity will be increased in 33% in runtime if it runs out of space. +---@param tex cc.Texture2D +---@param capacity int +---@return boolean +function SpriteBatchNode:initWithTexture (tex,capacity) end +---* Sets the TextureAtlas object. <br> +---* param textureAtlas The TextureAtlas object. +---@param textureAtlas cc.TextureAtlas +---@return self +function SpriteBatchNode:setTextureAtlas (textureAtlas) end +---* reserves capacity for the batch node.<br> +---* If the current capacity is bigger, nothing happens.<br> +---* otherwise, a new capacity is allocated +---@param newCapacity int +---@return self +function SpriteBatchNode:reserveCapacity (newCapacity) end +---* js NA +---@param cleanup boolean +---@return self +function SpriteBatchNode:removeAllChildrenWithCleanup (cleanup) end +---* Inserts a quad at a certain index into the texture atlas. The Sprite won't be added into the children array.<br> +---* This method should be called only when you are dealing with very big AtlasSprite and when most of the Sprite won't be updated.<br> +---* For example: a tile map (TMXMap) or a label with lots of characters (LabelBMFont). +---@param sprite cc.Sprite +---@param index int +---@return self +function SpriteBatchNode:insertQuadFromSprite (sprite,index) end +---* initializes a SpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) and a capacity of children.<br> +---* The capacity will be increased in 33% in runtime if it runs out of space.<br> +---* The file will be loaded using the TextureMgr.<br> +---* js init<br> +---* lua init +---@param fileImage string +---@param capacity int +---@return boolean +function SpriteBatchNode:initWithFile (fileImage,capacity) 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 SpriteBatchNode:setBlendFunc (blendFunc) end +---* Rebuild index with a sprite all child. <br> +---* param parent The parent sprite.<br> +---* param index The child index.<br> +---* return Index. +---@param parent cc.Sprite +---@param index int +---@return int +function SpriteBatchNode:rebuildIndexInOrder (parent,index) end +---* Returns the TextureAtlas object. <br> +---* return The TextureAtlas object. +---@return cc.TextureAtlas +function SpriteBatchNode:getTextureAtlas () end +---* Get the Max image block index,in all child.<br> +---* param sprite The parent sprite.<br> +---* return Index. +---@param sprite cc.Sprite +---@return int +function SpriteBatchNode:highestAtlasIndexInChild (sprite) end +---* Creates a SpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) and capacity of children.<br> +---* The capacity will be increased in 33% in runtime if it runs out of space.<br> +---* The file will be loaded using the TextureMgr.<br> +---* param fileImage A file image (.png, .jpeg, .pvr, etc).<br> +---* param capacity The capacity of children.<br> +---* return Return an autorelease object. +---@param fileImage string +---@param capacity int +---@return self +function SpriteBatchNode:create (fileImage,capacity) end +---* Creates a SpriteBatchNode with a texture2d and capacity of children.<br> +---* The capacity will be increased in 33% in runtime if it runs out of space.<br> +---* param tex A texture2d.<br> +---* param capacity The capacity of children.<br> +---* return Return an autorelease object. +---@param tex cc.Texture2D +---@param capacity int +---@return self +function SpriteBatchNode:createWithTexture (tex,capacity) end +---@overload fun(cc.Node:cc.Node,int:int,int2:string):self +---@overload fun(cc.Node:cc.Node,int:int,int:int):self +---@param child cc.Node +---@param zOrder int +---@param tag int +---@return self +function SpriteBatchNode:addChild (child,zOrder,tag) end +---* js NA +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function SpriteBatchNode:draw (renderer,transform,flags) end +---* js NA +---@return string +function SpriteBatchNode:getDescription () end +---* js NA +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function SpriteBatchNode:visit (renderer,parentTransform,parentFlags) end +---* +---@return self +function SpriteBatchNode:sortAllChildren () end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function SpriteBatchNode:removeChild (child,cleanup) end +---* +---@return boolean +function SpriteBatchNode:init () end +---* Set ProgramState +---@param programState cc.backend.ProgramState +---@return self +function SpriteBatchNode:setProgramState (programState) end +---* +---@param child cc.Node +---@param zOrder int +---@return self +function SpriteBatchNode:reorderChild (child,zOrder) end +---* js ctor +---@return self +function SpriteBatchNode:SpriteBatchNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.SpriteFrame.lua b/meta/3rd/Cocos4.0/cc.SpriteFrame.lua new file mode 100644 index 00000000..948a63e8 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.SpriteFrame.lua @@ -0,0 +1,155 @@ + +---@class cc.SpriteFrame :cc.Ref +local SpriteFrame={ } +cc.SpriteFrame=SpriteFrame + + + + +---* Set anchor point of the frame.<br> +---* param anchorPoint The anchor point of the sprite frame. +---@param anchorPoint vec2_table +---@return self +function SpriteFrame:setAnchorPoint (anchorPoint) end +---* Set texture of the frame, the texture is retained.<br> +---* param pobTexture The texture of the sprite frame. +---@param pobTexture cc.Texture2D +---@return self +function SpriteFrame:setTexture (pobTexture) end +---* Get texture of the frame.<br> +---* return The texture of the sprite frame. +---@return cc.Texture2D +function SpriteFrame:getTexture () end +---* Set offset of the frame.<br> +---* param offsetInPixels The offset of the sprite frame, in pixels. +---@param offsetInPixels vec2_table +---@return self +function SpriteFrame:setOffsetInPixels (offsetInPixels) end +---* Get original size of the trimmed image.<br> +---* return The original size of the trimmed image, in pixels. +---@return size_table +function SpriteFrame:getOriginalSizeInPixels () end +---* Set original size of the trimmed image.<br> +---* param sizeInPixels The original size of the trimmed image. +---@param sizeInPixels size_table +---@return self +function SpriteFrame:setOriginalSize (sizeInPixels) end +---* Get center rect of the frame.<br> +---* Useful to create 9-slice sprites<br> +---* return The center rect of the sprite frame in points +---@return rect_table +function SpriteFrame:getCenterRect () end +---* Set rect of the sprite frame.<br> +---* param rectInPixels The rect of the sprite frame, in pixels. +---@param rectInPixels rect_table +---@return self +function SpriteFrame:setRectInPixels (rectInPixels) end +---* Get rect of the frame.<br> +---* return The rect of the sprite frame. +---@return rect_table +function SpriteFrame:getRect () end +---* setCenterRect<br> +---* Useful to implement "9 sliced" sprites.<br> +---* The sprite will be sliced into a 3 x 3 grid. The four corners of this grid are applied without<br> +---* performing any scaling. The upper- and lower-middle parts are scaled horizontally, and the left- and right-middle parts are scaled vertically.<br> +---* The center is scaled in both directions.<br> +---* Important: The scaling is based the Sprite's trimmed size.<br> +---* Limitations: Does not work when the sprite is part of `SpriteBatchNode`.<br> +---* param centerRect the Rect in points +---@param centerRect rect_table +---@return self +function SpriteFrame:setCenterRectInPixels (centerRect) end +---* Set offset of the frame.<br> +---* param offsets The offset of the sprite frame. +---@param offsets vec2_table +---@return self +function SpriteFrame:setOffset (offsets) end +---@overload fun(string:string,rect_table:rect_table,boolean:boolean,vec2_table:vec2_table,size_table:size_table):self +---@overload fun(string:string,rect_table:rect_table):self +---@param filename string +---@param rect rect_table +---@param rotated boolean +---@param offset vec2_table +---@param originalSize size_table +---@return boolean +function SpriteFrame:initWithTextureFilename (filename,rect,rotated,offset,originalSize) end +---* Set rect of the frame.<br> +---* param rect The rect of the sprite. +---@param rect rect_table +---@return self +function SpriteFrame:setRect (rect) end +---@overload fun(cc.Texture2D:cc.Texture2D,rect_table:rect_table,boolean:boolean,vec2_table:vec2_table,size_table:size_table):self +---@overload fun(cc.Texture2D:cc.Texture2D,rect_table:rect_table):self +---@param pobTexture cc.Texture2D +---@param rect rect_table +---@param rotated boolean +---@param offset vec2_table +---@param originalSize size_table +---@return boolean +function SpriteFrame:initWithTexture (pobTexture,rect,rotated,offset,originalSize) end +---* Get original size of the trimmed image.<br> +---* return The original size of the trimmed image. +---@return size_table +function SpriteFrame:getOriginalSize () end +---* +---@return self +function SpriteFrame:clone () end +---* Get rect of the sprite frame.<br> +---* return The rect of the sprite frame, in pixels. +---@return rect_table +function SpriteFrame:getRectInPixels () end +---* Is the sprite frame rotated or not.<br> +---* return Is rotated if true. +---@return boolean +function SpriteFrame:isRotated () end +---* hasCenterRect<br> +---* return Whether or not it has a centerRect +---@return boolean +function SpriteFrame:hasCenterRect () end +---* Set rotated of the sprite frame.<br> +---* param rotated Rotated the sprite frame if true. +---@param rotated boolean +---@return self +function SpriteFrame:setRotated (rotated) end +---* Get offset of the frame.<br> +---* return The offset of the sprite frame. +---@return vec2_table +function SpriteFrame:getOffset () end +---* Set original size of the trimmed image.<br> +---* param sizeInPixels The original size of the trimmed image, in pixels. +---@param sizeInPixels size_table +---@return self +function SpriteFrame:setOriginalSizeInPixels (sizeInPixels) end +---* Get anchor point of the frame.<br> +---* return The anchor point of the sprite frame. +---@return vec2_table +function SpriteFrame:getAnchorPoint () end +---* Check if anchor point is defined for the frame.<br> +---* return true if anchor point is available. +---@return boolean +function SpriteFrame:hasAnchorPoint () end +---* Get offset of the frame.<br> +---* return The offset of the sprite frame, in pixels. +---@return vec2_table +function SpriteFrame:getOffsetInPixels () end +---@overload fun(string:string,rect_table:rect_table,boolean:boolean,vec2_table:vec2_table,size_table:size_table):self +---@overload fun(string:string,rect_table:rect_table):self +---@param filename string +---@param rect rect_table +---@param rotated boolean +---@param offset vec2_table +---@param originalSize size_table +---@return self +function SpriteFrame:create (filename,rect,rotated,offset,originalSize) end +---@overload fun(cc.Texture2D:cc.Texture2D,rect_table:rect_table,boolean:boolean,vec2_table:vec2_table,size_table:size_table):self +---@overload fun(cc.Texture2D:cc.Texture2D,rect_table:rect_table):self +---@param pobTexture cc.Texture2D +---@param rect rect_table +---@param rotated boolean +---@param offset vec2_table +---@param originalSize size_table +---@return self +function SpriteFrame:createWithTexture (pobTexture,rect,rotated,offset,originalSize) end +---* lua NA +---@return self +function SpriteFrame:SpriteFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.SpriteFrameCache.lua b/meta/3rd/Cocos4.0/cc.SpriteFrameCache.lua new file mode 100644 index 00000000..4ded8db9 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.SpriteFrameCache.lua @@ -0,0 +1,108 @@ + +---@class cc.SpriteFrameCache :cc.Ref +local SpriteFrameCache={ } +cc.SpriteFrameCache=SpriteFrameCache + + + + +---* +---@param plist string +---@return boolean +function SpriteFrameCache:reloadTexture (plist) end +---* Adds multiple Sprite Frames from a plist file content. The texture will be associated with the created sprite frames. <br> +---* js NA<br> +---* lua addSpriteFrames<br> +---* param plist_content Plist file content string.<br> +---* param texture Texture pointer. +---@param plist_content string +---@param texture cc.Texture2D +---@return self +function SpriteFrameCache:addSpriteFramesWithFileContent (plist_content,texture) end +---* Adds an sprite frame with a given name.<br> +---* If the name already exists, then the contents of the old name will be replaced with the new one.<br> +---* param frame A certain sprite frame.<br> +---* param frameName The name of the sprite frame. +---@param frame cc.SpriteFrame +---@param frameName string +---@return self +function SpriteFrameCache:addSpriteFrame (frame,frameName) end +---@overload fun(string:string,cc.Texture2D1:string):self +---@overload fun(string:string):self +---@overload fun(string:string,cc.Texture2D:cc.Texture2D):self +---@param plist string +---@param texture cc.Texture2D +---@return self +function SpriteFrameCache:addSpriteFramesWithFile (plist,texture) end +---* Returns an Sprite Frame 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> +---* js getSpriteFrame<br> +---* lua getSpriteFrame<br> +---* param name A certain sprite frame name.<br> +---* return The sprite frame. +---@param name string +---@return cc.SpriteFrame +function SpriteFrameCache:getSpriteFrameByName (name) end +---* Removes multiple Sprite Frames from a plist file.<br> +---* Sprite Frames stored in this file will be removed.<br> +---* It is convenient to call this method when a specific texture needs to be removed.<br> +---* since v0.99.5<br> +---* param plist The name of the plist that needs to removed. +---@param plist string +---@return self +function SpriteFrameCache:removeSpriteFramesFromFile (plist) end +---* Initialize method.<br> +---* return if success return true. +---@return boolean +function SpriteFrameCache:init () end +---* Purges the dictionary of loaded sprite frames.<br> +---* Call this method if you receive the "Memory Warning".<br> +---* In the short term: it will free some resources preventing your app from being killed.<br> +---* In the medium term: it will allocate more resources.<br> +---* In the long term: it will be the same. +---@return self +function SpriteFrameCache:removeSpriteFrames () end +---* Removes unused sprite frames.<br> +---* Sprite Frames that have a retain count of 1 will be deleted.<br> +---* It is convenient to call this method after when starting a new Scene.<br> +---* js NA +---@return self +function SpriteFrameCache:removeUnusedSpriteFrames () end +---* Removes multiple Sprite Frames from a plist file content.<br> +---* Sprite Frames stored in this file will be removed.<br> +---* It is convenient to call this method when a specific texture needs to be removed.<br> +---* param plist_content The string of the plist content that needs to removed.<br> +---* js NA +---@param plist_content string +---@return self +function SpriteFrameCache:removeSpriteFramesFromFileContent (plist_content) end +---* Deletes an sprite frame from the sprite frame cache. <br> +---* param name The name of the sprite frame that needs to removed. +---@param name string +---@return self +function SpriteFrameCache:removeSpriteFrameByName (name) end +---* Check if multiple Sprite Frames from a plist file have been loaded.<br> +---* js NA<br> +---* lua NA<br> +---* param plist Plist file name.<br> +---* return True if the file is loaded. +---@param plist string +---@return boolean +function SpriteFrameCache:isSpriteFramesWithFileLoaded (plist) end +---* Removes all Sprite Frames associated with the specified textures.<br> +---* It is convenient to call this method when a specific texture needs to be removed.<br> +---* since v0.995.<br> +---* param texture The texture that needs to removed. +---@param texture cc.Texture2D +---@return self +function SpriteFrameCache:removeSpriteFramesFromTexture (texture) end +---* Destroys the cache. It releases all the Sprite Frames and the retained instance.<br> +---* js NA +---@return self +function SpriteFrameCache:destroyInstance () end +---* Returns the shared instance of the Sprite Frame cache.<br> +---* return The instance of the Sprite Frame Cache.<br> +---* js NA +---@return self +function SpriteFrameCache:getInstance () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.StopGrid.lua b/meta/3rd/Cocos4.0/cc.StopGrid.lua new file mode 100644 index 00000000..6e292087 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.StopGrid.lua @@ -0,0 +1,25 @@ + +---@class cc.StopGrid :cc.ActionInstant +local StopGrid={ } +cc.StopGrid=StopGrid + + + + +---* brief Create a StopGrid Action.<br> +---* return Return a pointer of StopGrid. When the creation failed, return nil. +---@return self +function StopGrid:create () end +---* +---@param target cc.Node +---@return self +function StopGrid:startWithTarget (target) end +---* +---@return self +function StopGrid:clone () end +---* +---@return self +function StopGrid:reverse () end +---* +---@return self +function StopGrid:StopGrid () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TMXLayer.lua b/meta/3rd/Cocos4.0/cc.TMXLayer.lua new file mode 100644 index 00000000..4ea89043 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TMXLayer.lua @@ -0,0 +1,143 @@ + +---@class cc.TMXLayer :cc.SpriteBatchNode +local TMXLayer={ } +cc.TMXLayer=TMXLayer + + + + +---* Returns the position in points of a given tile coordinate.<br> +---* param tileCoordinate The tile coordinate.<br> +---* return The position in points of a given tile coordinate. +---@param tileCoordinate vec2_table +---@return vec2_table +function TMXLayer:getPositionAt (tileCoordinate) end +---* Set layer orientation, which is the same as the map orientation.<br> +---* param orientation Layer orientation,which is the same as the map orientation. +---@param orientation int +---@return self +function TMXLayer:setLayerOrientation (orientation) end +---* Dealloc the map that contains the tile position from memory.<br> +---* Unless you want to know at runtime the tiles positions, you can safely call this method.<br> +---* If you are going to call layer->tileGIDAt() then, don't release the map. +---@return self +function TMXLayer:releaseMap () end +---* Size of the layer in tiles.<br> +---* return Size of the layer in tiles. +---@return size_table +function TMXLayer:getLayerSize () end +---* Set the size of the map's tile.<br> +---* param size The size of the map's tile. +---@param size size_table +---@return self +function TMXLayer:setMapTileSize (size) end +---* Layer orientation, which is the same as the map orientation.<br> +---* return Layer orientation, which is the same as the map orientation. +---@return int +function TMXLayer:getLayerOrientation () end +---* Set an Properties from to layer.<br> +---* param properties It is used to set the layer Properties. +---@param properties map_table +---@return self +function TMXLayer:setProperties (properties) end +---* Set the layer name.<br> +---* param layerName The layer name. +---@param layerName string +---@return self +function TMXLayer:setLayerName (layerName) end +---* Removes a tile at given tile coordinate. <br> +---* param tileCoordinate The tile coordinate. +---@param tileCoordinate vec2_table +---@return self +function TMXLayer:removeTileAt (tileCoordinate) end +---* Initializes a TMXLayer with a tileset info, a layer info and a map info.<br> +---* param tilesetInfo An tileset info.<br> +---* param layerInfo A layer info.<br> +---* param mapInfo A map info.<br> +---* return If initializes successfully, it will return true. +---@param tilesetInfo cc.TMXTilesetInfo +---@param layerInfo cc.TMXLayerInfo +---@param mapInfo cc.TMXMapInfo +---@return boolean +function TMXLayer:initWithTilesetInfo (tilesetInfo,layerInfo,mapInfo) end +---* Creates the tiles. +---@return self +function TMXLayer:setupTiles () end +---@overload fun(unsigned_int:unsigned_int,vec2_table:vec2_table,int:int):self +---@overload fun(unsigned_int:unsigned_int,vec2_table:vec2_table):self +---@param gid unsigned_int +---@param tileCoordinate vec2_table +---@param flags int +---@return self +function TMXLayer:setTileGID (gid,tileCoordinate,flags) end +---* Size of the map's tile (could be different from the tile's size).<br> +---* return The size of the map's tile. +---@return size_table +function TMXLayer:getMapTileSize () end +---* Return the value for the specific property name.<br> +---* param propertyName The specific property name.<br> +---* return Return the value for the specific property name. +---@param propertyName string +---@return cc.Value +function TMXLayer:getProperty (propertyName) end +---* Set size of the layer in tiles.<br> +---* param size Size of the layer in tiles. +---@param size size_table +---@return self +function TMXLayer:setLayerSize (size) end +---* Get the layer name. <br> +---* return The layer name. +---@return string +function TMXLayer:getLayerName () end +---* Set tileset information for the layer.<br> +---* param info The tileset information for the layer.<br> +---* js NA +---@param info cc.TMXTilesetInfo +---@return self +function TMXLayer:setTileSet (info) end +---* Tileset information for the layer. <br> +---* return Tileset information for the layer. +---@return cc.TMXTilesetInfo +function TMXLayer:getTileSet () end +---@overload fun():self +---@overload fun():self +---@return map_table +function TMXLayer:getProperties () end +---* Returns the tile (Sprite) at a given a tile coordinate.<br> +---* The returned Sprite will be already added to the TMXLayer. Don't add it again.<br> +---* The Sprite can be treated like any other Sprite: rotated, scaled, translated, opacity, color, etc.<br> +---* You can remove either by calling:<br> +---* - layer->removeChild(sprite, cleanup);<br> +---* - or layer->removeTileAt(Vec2(x,y));<br> +---* param tileCoordinate A tile coordinate.<br> +---* return Returns the tile (Sprite) at a given a tile coordinate. +---@param tileCoordinate vec2_table +---@return cc.Sprite +function TMXLayer:getTileAt (tileCoordinate) end +---* Creates a TMXLayer with an tileset info, a layer info and a map info.<br> +---* param tilesetInfo An tileset info.<br> +---* param layerInfo A layer info.<br> +---* param mapInfo A map info.<br> +---* return An autorelease object. +---@param tilesetInfo cc.TMXTilesetInfo +---@param layerInfo cc.TMXLayerInfo +---@param mapInfo cc.TMXMapInfo +---@return self +function TMXLayer:create (tilesetInfo,layerInfo,mapInfo) end +---* +---@param child cc.Node +---@param zOrder int +---@param tag int +---@return self +function TMXLayer:addChild (child,zOrder,tag) end +---* js NA +---@return string +function TMXLayer:getDescription () end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function TMXLayer:removeChild (child,cleanup) end +---* js ctor +---@return self +function TMXLayer:TMXLayer () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TMXLayerInfo.lua b/meta/3rd/Cocos4.0/cc.TMXLayerInfo.lua new file mode 100644 index 00000000..30c4b2b7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TMXLayerInfo.lua @@ -0,0 +1,18 @@ + +---@class cc.TMXLayerInfo :cc.Ref +local TMXLayerInfo={ } +cc.TMXLayerInfo=TMXLayerInfo + + + + +---* +---@param properties map_table +---@return self +function TMXLayerInfo:setProperties (properties) end +---* +---@return map_table +function TMXLayerInfo:getProperties () end +---* js ctor +---@return self +function TMXLayerInfo:TMXLayerInfo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TMXMapInfo.lua b/meta/3rd/Cocos4.0/cc.TMXMapInfo.lua new file mode 100644 index 00000000..5201574f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TMXMapInfo.lua @@ -0,0 +1,163 @@ + +---@class cc.TMXMapInfo +local TMXMapInfo={ } +cc.TMXMapInfo=TMXMapInfo + + + + +---* +---@param currentString string +---@return self +function TMXMapInfo:setCurrentString (currentString) end +---* / map hexsidelength +---@return int +function TMXMapInfo:getHexSideLength () end +---* +---@param tileSize size_table +---@return self +function TMXMapInfo:setTileSize (tileSize) end +---* / map orientation +---@return int +function TMXMapInfo:getOrientation () end +---* +---@param groups array_table +---@return self +function TMXMapInfo:setObjectGroups (groups) end +---* +---@param layers array_table +---@return self +function TMXMapInfo:setLayers (layers) end +---* initializes parsing of an XML file, either a tmx (Map) file or tsx (Tileset) file +---@param xmlFilename string +---@return boolean +function TMXMapInfo:parseXMLFile (xmlFilename) end +---* / parent element +---@return int +function TMXMapInfo:getParentElement () end +---* +---@param fileName string +---@return self +function TMXMapInfo:setTMXFileName (fileName) end +---* +---@param xmlString string +---@return boolean +function TMXMapInfo:parseXMLString (xmlString) end +---@overload fun():self +---@overload fun():self +---@return array_table +function TMXMapInfo:getLayers () end +---* / map staggeraxis +---@return int +function TMXMapInfo:getStaggerAxis () end +---* +---@param hexSideLength int +---@return self +function TMXMapInfo:setHexSideLength (hexSideLength) end +---* initializes a TMX format with a tmx file +---@param tmxFile string +---@return boolean +function TMXMapInfo:initWithTMXFile (tmxFile) end +---* / parent GID +---@return int +function TMXMapInfo:getParentGID () end +---@overload fun():self +---@overload fun():self +---@return array_table +function TMXMapInfo:getTilesets () end +---* +---@param element int +---@return self +function TMXMapInfo:setParentElement (element) end +---* initializes a TMX format with an XML string and a TMX resource path +---@param tmxString string +---@param resourcePath string +---@return boolean +function TMXMapInfo:initWithXML (tmxString,resourcePath) end +---* +---@param gid int +---@return self +function TMXMapInfo:setParentGID (gid) end +---* / layer attribs +---@return int +function TMXMapInfo:getLayerAttribs () end +---* / tiles width & height +---@return size_table +function TMXMapInfo:getTileSize () end +---* +---@return map_table +function TMXMapInfo:getTileProperties () end +---* / is storing characters? +---@return boolean +function TMXMapInfo:isStoringCharacters () end +---* +---@return string +function TMXMapInfo:getExternalTilesetFileName () end +---@overload fun():self +---@overload fun():self +---@return array_table +function TMXMapInfo:getObjectGroups () end +---* +---@return string +function TMXMapInfo:getTMXFileName () end +---* +---@param staggerIndex int +---@return self +function TMXMapInfo:setStaggerIndex (staggerIndex) end +---* +---@param properties map_table +---@return self +function TMXMapInfo:setProperties (properties) end +---* +---@param orientation int +---@return self +function TMXMapInfo:setOrientation (orientation) end +---* +---@param tileProperties map_table +---@return self +function TMXMapInfo:setTileProperties (tileProperties) end +---* +---@param mapSize size_table +---@return self +function TMXMapInfo:setMapSize (mapSize) end +---* +---@return string +function TMXMapInfo:getCurrentString () end +---* +---@param storingCharacters boolean +---@return self +function TMXMapInfo:setStoringCharacters (storingCharacters) end +---* +---@param staggerAxis int +---@return self +function TMXMapInfo:setStaggerAxis (staggerAxis) end +---* / map width & height +---@return size_table +function TMXMapInfo:getMapSize () end +---* +---@param tilesets array_table +---@return self +function TMXMapInfo:setTilesets (tilesets) end +---@overload fun():self +---@overload fun():self +---@return map_table +function TMXMapInfo:getProperties () end +---* / map stagger index +---@return int +function TMXMapInfo:getStaggerIndex () end +---* +---@param layerAttribs int +---@return self +function TMXMapInfo:setLayerAttribs (layerAttribs) end +---* creates a TMX Format with a tmx file +---@param tmxFile string +---@return self +function TMXMapInfo:create (tmxFile) end +---* creates a TMX Format with an XML string and a TMX resource path +---@param tmxString string +---@param resourcePath string +---@return self +function TMXMapInfo:createWithXML (tmxString,resourcePath) end +---* js ctor +---@return self +function TMXMapInfo:TMXMapInfo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TMXObjectGroup.lua b/meta/3rd/Cocos4.0/cc.TMXObjectGroup.lua new file mode 100644 index 00000000..b4a0d8a0 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TMXObjectGroup.lua @@ -0,0 +1,60 @@ + +---@class cc.TMXObjectGroup :cc.Ref +local TMXObjectGroup={ } +cc.TMXObjectGroup=TMXObjectGroup + + + + +---* Sets the offset position of child objects. <br> +---* param offset The offset position of child objects. +---@param offset vec2_table +---@return self +function TMXObjectGroup:setPositionOffset (offset) end +---* Return the value for the specific property name. <br> +---* param propertyName The specific property name.<br> +---* return Return the value for the specific property name.<br> +---* js NA +---@param propertyName string +---@return cc.Value +function TMXObjectGroup:getProperty (propertyName) end +---* Gets the offset position of child objects. <br> +---* return The offset position of child objects. +---@return vec2_table +function TMXObjectGroup:getPositionOffset () end +---* Return the dictionary for the specific object name.<br> +---* It will return the 1st object found on the array for the given name.<br> +---* return Return the dictionary for the specific object name. +---@param objectName string +---@return map_table +function TMXObjectGroup:getObject (objectName) end +---@overload fun():self +---@overload fun():self +---@return array_table +function TMXObjectGroup:getObjects () end +---* Set the group name. <br> +---* param groupName A string,it is used to set the group name. +---@param groupName string +---@return self +function TMXObjectGroup:setGroupName (groupName) end +---@overload fun():self +---@overload fun():self +---@return map_table +function TMXObjectGroup:getProperties () end +---* Get the group name. <br> +---* return The group name. +---@return string +function TMXObjectGroup:getGroupName () end +---* Sets the list of properties.<br> +---* param properties The list of properties. +---@param properties map_table +---@return self +function TMXObjectGroup:setProperties (properties) end +---* Sets the array of the objects.<br> +---* param objects The array of the objects. +---@param objects array_table +---@return self +function TMXObjectGroup:setObjects (objects) end +---* js ctor +---@return self +function TMXObjectGroup:TMXObjectGroup () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TMXTiledMap.lua b/meta/3rd/Cocos4.0/cc.TMXTiledMap.lua new file mode 100644 index 00000000..533ffce5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TMXTiledMap.lua @@ -0,0 +1,108 @@ + +---@class cc.TMXTiledMap :cc.Node +local TMXTiledMap={ } +cc.TMXTiledMap=TMXTiledMap + + + + +---* Set the object groups. <br> +---* param groups The object groups. +---@param groups array_table +---@return self +function TMXTiledMap:setObjectGroups (groups) end +---* Return the value for the specific property name. <br> +---* param propertyName The specific property name.<br> +---* return Return the value for the specific property name. +---@param propertyName string +---@return cc.Value +function TMXTiledMap:getProperty (propertyName) end +---* +---@return int +function TMXTiledMap:getLayerNum () end +---* Set the map's size property measured in tiles. <br> +---* param mapSize The map's size property measured in tiles. +---@param mapSize size_table +---@return self +function TMXTiledMap:setMapSize (mapSize) end +---* Return the TMXObjectGroup for the specific group. <br> +---* param groupName The group Name.<br> +---* return A Type of TMXObjectGroup. +---@param groupName string +---@return cc.TMXObjectGroup +function TMXTiledMap:getObjectGroup (groupName) end +---@overload fun():self +---@overload fun():self +---@return array_table +function TMXTiledMap:getObjectGroups () end +---* +---@return string +function TMXTiledMap:getResourceFile () end +---* initializes a TMX Tiled Map with a TMX file +---@param tmxFile string +---@return boolean +function TMXTiledMap:initWithTMXFile (tmxFile) end +---* The tiles's size property measured in pixels. <br> +---* return The tiles's size property measured in pixels. +---@return size_table +function TMXTiledMap:getTileSize () end +---* The map's size property measured in tiles. <br> +---* return The map's size property measured in tiles. +---@return size_table +function TMXTiledMap:getMapSize () end +---* initializes a TMX Tiled Map with a TMX formatted XML string and a path to TMX resources +---@param tmxString string +---@param resourcePath string +---@return boolean +function TMXTiledMap:initWithXML (tmxString,resourcePath) end +---* Properties. <br> +---* return Properties. +---@return map_table +function TMXTiledMap:getProperties () end +---* Set the tiles's size property measured in pixels. <br> +---* param tileSize The tiles's size property measured in pixels. +---@param tileSize size_table +---@return self +function TMXTiledMap:setTileSize (tileSize) end +---* Set the properties.<br> +---* param properties A Type of ValueMap to set the properties. +---@param properties map_table +---@return self +function TMXTiledMap:setProperties (properties) end +---* Return the TMXLayer for the specific layer. <br> +---* param layerName A specific layer.<br> +---* return The TMXLayer for the specific layer. +---@param layerName string +---@return cc.TMXLayer +function TMXTiledMap:getLayer (layerName) end +---* Map orientation. <br> +---* return Map orientation. +---@return int +function TMXTiledMap:getMapOrientation () end +---* Set map orientation. <br> +---* param mapOrientation The map orientation. +---@param mapOrientation int +---@return self +function TMXTiledMap:setMapOrientation (mapOrientation) end +---* Creates a TMX Tiled Map with a TMX file.<br> +---* param tmxFile A TMX file.<br> +---* return An autorelease object. +---@param tmxFile string +---@return self +function TMXTiledMap:create (tmxFile) end +---* Initializes a TMX Tiled Map with a TMX formatted XML string and a path to TMX resources. <br> +---* param tmxString A TMX formatted XML string.<br> +---* param resourcePath The path to TMX resources.<br> +---* return An autorelease object.<br> +---* js NA +---@param tmxString string +---@param resourcePath string +---@return self +function TMXTiledMap:createWithXML (tmxString,resourcePath) end +---* Get the description.<br> +---* js NA +---@return string +function TMXTiledMap:getDescription () end +---* js ctor +---@return self +function TMXTiledMap:TMXTiledMap () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TMXTilesetInfo.lua b/meta/3rd/Cocos4.0/cc.TMXTilesetInfo.lua new file mode 100644 index 00000000..0f1adf22 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TMXTilesetInfo.lua @@ -0,0 +1,15 @@ + +---@class cc.TMXTilesetInfo :cc.Ref +local TMXTilesetInfo={ } +cc.TMXTilesetInfo=TMXTilesetInfo + + + + +---* +---@param gid unsigned_int +---@return rect_table +function TMXTilesetInfo:getRectForGID (gid) end +---* js ctor +---@return self +function TMXTilesetInfo:TMXTilesetInfo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TableView.lua b/meta/3rd/Cocos4.0/cc.TableView.lua new file mode 100644 index 00000000..dd7f908d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TableView.lua @@ -0,0 +1,83 @@ + +---@class cc.TableView :ccui.ScrollView@all parent class: ScrollView,ScrollViewDelegate +local TableView={ } +cc.TableView=TableView + + + + +---* Updates the content of the cell at a given index.<br> +---* param idx index to find a cell +---@param idx int +---@return self +function TableView:updateCellAtIndex (idx) end +---* determines how cell is ordered and filled in the view. +---@param order int +---@return self +function TableView:setVerticalFillOrder (order) end +---* +---@return self +function TableView:_updateContentSize () end +---* +---@return int +function TableView:getVerticalFillOrder () end +---* Removes a cell at a given index<br> +---* param idx index to find a cell +---@param idx int +---@return self +function TableView:removeCellAtIndex (idx) end +---* +---@param size size_table +---@param container cc.Node +---@return boolean +function TableView:initWithViewSize (size,container) end +---* +---@param view cc.ScrollView +---@return self +function TableView:scrollViewDidScroll (view) end +---* reloads data from data source. the view will be refreshed. +---@return self +function TableView:reloadData () end +---* +---@param view cc.ScrollView +---@return self +function TableView:scrollViewDidZoom (view) end +---* Inserts a new cell at a given index<br> +---* param idx location to insert +---@param idx int +---@return self +function TableView:insertCellAtIndex (idx) end +---* Returns an existing cell at a given index. Returns nil if a cell is nonexistent at the moment of query.<br> +---* param idx index<br> +---* return a cell at a given index +---@param idx int +---@return cc.TableViewCell +function TableView:cellAtIndex (idx) end +---* Dequeues a free cell if available. nil if not.<br> +---* return free cell +---@return cc.TableViewCell +function TableView:dequeueCell () end +---* +---@param pTouch cc.Touch +---@param pEvent cc.Event +---@return self +function TableView:onTouchMoved (pTouch,pEvent) end +---* +---@param pTouch cc.Touch +---@param pEvent cc.Event +---@return self +function TableView:onTouchEnded (pTouch,pEvent) end +---* +---@param pTouch cc.Touch +---@param pEvent cc.Event +---@return self +function TableView:onTouchCancelled (pTouch,pEvent) end +---* +---@param pTouch cc.Touch +---@param pEvent cc.Event +---@return boolean +function TableView:onTouchBegan (pTouch,pEvent) end +---* js ctor<br> +---* lua new +---@return self +function TableView:TableView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TableViewCell.lua b/meta/3rd/Cocos4.0/cc.TableViewCell.lua new file mode 100644 index 00000000..4f2b73fd --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TableViewCell.lua @@ -0,0 +1,24 @@ + +---@class cc.TableViewCell :cc.Node +local TableViewCell={ } +cc.TableViewCell=TableViewCell + + + + +---* Cleans up any resources linked to this cell and resets <code>idx</code> property. +---@return self +function TableViewCell:reset () end +---* The index used internally by SWTableView and its subclasses +---@return int +function TableViewCell:getIdx () end +---* +---@param uIdx int +---@return self +function TableViewCell:setIdx (uIdx) end +---* +---@return self +function TableViewCell:create () end +---* +---@return self +function TableViewCell:TableViewCell () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TargetedAction.lua b/meta/3rd/Cocos4.0/cc.TargetedAction.lua new file mode 100644 index 00000000..61865243 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TargetedAction.lua @@ -0,0 +1,50 @@ + +---@class cc.TargetedAction :cc.ActionInterval +local TargetedAction={ } +cc.TargetedAction=TargetedAction + + + + +---@overload fun():cc.Node +---@overload fun():cc.Node +---@return cc.Node +function TargetedAction:getForcedTarget () end +---* Init an action with the specified action and forced target +---@param target cc.Node +---@param action cc.FiniteTimeAction +---@return boolean +function TargetedAction:initWithTarget (target,action) end +---* Sets the target that the action will be forced to run with.<br> +---* param forcedTarget The target that the action will be forced to run with. +---@param forcedTarget cc.Node +---@return self +function TargetedAction:setForcedTarget (forcedTarget) end +---* Create an action with the specified action and forced target.<br> +---* param target The target needs to override.<br> +---* param action The action needs to override.<br> +---* return An autoreleased TargetedAction object. +---@param target cc.Node +---@param action cc.FiniteTimeAction +---@return self +function TargetedAction:create (target,action) end +---* +---@param target cc.Node +---@return self +function TargetedAction:startWithTarget (target) end +---* +---@return self +function TargetedAction:clone () end +---* +---@return self +function TargetedAction:stop () end +---* +---@return self +function TargetedAction:reverse () end +---* param time In seconds. +---@param time float +---@return self +function TargetedAction:update (time) end +---* +---@return self +function TargetedAction:TargetedAction () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Technique.lua b/meta/3rd/Cocos4.0/cc.Technique.lua new file mode 100644 index 00000000..f38143a3 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Technique.lua @@ -0,0 +1,43 @@ + +---@class cc.Technique :cc.Ref +local Technique={ } +cc.Technique=Technique + + + + +---* Returns the number of Passes in the Technique +---@return int +function Technique:getPassCount () end +---* +---@param material cc.Material +---@return self +function Technique:setMaterial (material) end +---* Returns a new clone of the Technique +---@return self +function Technique:clone () end +---* Adds a new pass to the Technique.<br> +---* Order matters. First added, first rendered +---@param pass cc.Pass +---@return self +function Technique:addPass (pass) end +---* Returns the list of passes +---@return array_table +function Technique:getPasses () end +---* Returns the name of the Technique +---@return string +function Technique:getName () end +---* Returns the Pass at given index +---@param index int +---@return cc.Pass +function Technique:getPassByIndex (index) end +---* Creates a new Technique with a GLProgramState.<br> +---* Method added to support legacy code +---@param parent cc.Material +---@param state cc.backend.ProgramState +---@return self +function Technique:createWithProgramState (parent,state) end +---* +---@param parent cc.Material +---@return self +function Technique:create (parent) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Terrain.lua b/meta/3rd/Cocos4.0/cc.Terrain.lua new file mode 100644 index 00000000..470d4502 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Terrain.lua @@ -0,0 +1,110 @@ + +---@class cc.Terrain :cc.Node +local Terrain={ } +cc.Terrain=Terrain + + + + +---* initialize heightMap data +---@param heightMap string +---@return boolean +function Terrain:initHeightMap (heightMap) end +---* set the MaxDetailAmount. +---@param maxValue int +---@return self +function Terrain:setMaxDetailMapAmount (maxValue) end +---* show the wireline instead of the surface,Debug Use only.<br> +---* Note only support desktop platform +---@param boolValue boolean +---@return self +function Terrain:setDrawWire (boolValue) end +---* get the terrain's height data +---@return array_table +function Terrain:getHeightData () end +---* set the Detail Map +---@param index unsigned_int +---@param detailMap cc.Terrain.DetailMap +---@return self +function Terrain:setDetailMap (index,detailMap) end +---* reset the heightmap data. +---@param heightMap string +---@return self +function Terrain:resetHeightMap (heightMap) end +---* set directional light for the terrain<br> +---* param lightDir The direction of directional light, Note that lightDir is in the terrain's local space. Most of the time terrain is placed at (0,0,0) and without rotation, so lightDir is also in the world space. +---@param lightDir vec3_table +---@return self +function Terrain:setLightDir (lightDir) end +---* set the alpha map +---@param newAlphaMapTexture cc.Texture2D +---@return self +function Terrain:setAlphaMap (newAlphaMapTexture) end +---* set the skirt height ratio +---@param ratio float +---@return self +function Terrain:setSkirtHeightRatio (ratio) end +---* Convert a world Space position (X,Z) to terrain space position (X,Z) +---@param worldSpace vec2_table +---@return vec2_table +function Terrain:convertToTerrainSpace (worldSpace) end +---* initialize alphaMap ,detailMaps textures +---@return boolean +function Terrain:initTextures () end +---* initialize all Properties which terrain need +---@return boolean +function Terrain:initProperties () end +---* +---@param parameter cc.Terrain.TerrainData +---@param fixedType int +---@return boolean +function Terrain:initWithTerrainData (parameter,fixedType) end +---* Set threshold distance of each LOD level,must equal or greater than the chunk size<br> +---* Note when invoke initHeightMap, the LOD distance will be automatic calculated. +---@param lod1 float +---@param lod2 float +---@param lod3 float +---@return self +function Terrain:setLODDistance (lod1,lod2,lod3) end +---* get the terrain's size +---@return size_table +function Terrain:getTerrainSize () end +---* get the normal of the specified position in terrain<br> +---* return the normal vector of the specified position of the terrain.<br> +---* note the fast normal calculation may not get precise normal vector. +---@param pixelX int +---@param pixelY int +---@return vec3_table +function Terrain:getNormal (pixelX,pixelY) end +---* +---@return self +function Terrain:reload () end +---* get height from the raw height filed +---@param pixelX int +---@param pixelY int +---@return float +function Terrain:getImageHeight (pixelX,pixelY) end +---* set light map texture +---@param fileName string +---@return self +function Terrain:setLightMap (fileName) end +---* Switch frustum Culling Flag<br> +---* Note frustum culling will remarkable improve your terrain rendering performance. +---@param boolValue boolean +---@return self +function Terrain:setIsEnableFrustumCull (boolValue) end +---* get the terrain's minimal height. +---@return float +function Terrain:getMinHeight () end +---* get the terrain's maximal height. +---@return float +function Terrain:getMaxHeight () end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function Terrain:draw (renderer,transform,flags) end +---* +---@return self +function Terrain:Terrain () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Texture2D.lua b/meta/3rd/Cocos4.0/cc.Texture2D.lua new file mode 100644 index 00000000..3a0f5ade --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Texture2D.lua @@ -0,0 +1,153 @@ + +---@class cc.Texture2D :cc.Ref +local Texture2D={ } +cc.Texture2D=Texture2D + + + + +---* Gets max T. +---@return float +function Texture2D:getMaxT () end +---* +---@param alphaTexture cc.Texture2D +---@return self +function Texture2D:setAlphaTexture (alphaTexture) end +---* Returns the pixel format.<br> +---* since v2.0 +---@return char +function Texture2D:getStringForFormat () end +---@overload fun(cc.Image:cc.Image,int:int):self +---@overload fun(cc.Image:cc.Image):self +---@param image cc.Image +---@param format int +---@return boolean +function Texture2D:initWithImage (image,format) end +---* Gets max S. +---@return float +function Texture2D:getMaxS () end +---* Whether or not the texture has their Alpha premultiplied. +---@return boolean +function Texture2D:hasPremultipliedAlpha () end +---* Gets the height of the texture in pixels. +---@return int +function Texture2D:getPixelsHigh () end +---* +---@return boolean +function Texture2D:getAlphaTextureName () end +---@overload fun(int:int):self +---@overload fun():self +---@param format int +---@return unsigned_int +function Texture2D:getBitsPerPixelForFormat (format) end +---* Sets max S. +---@param maxS float +---@return self +function Texture2D:setMaxS (maxS) end +---@overload fun(char:char,string1:cc.FontDefinition):self +---@overload fun(char:char,string:string,float:float,size_table:size_table,int:int,int:int,boolean:boolean,int:int):self +---@param text char +---@param fontName string +---@param fontSize float +---@param dimensions size_table +---@param hAlignment int +---@param vAlignment int +---@param enableWrap boolean +---@param overflow int +---@return boolean +function Texture2D:initWithString (text,fontName,fontSize,dimensions,hAlignment,vAlignment,enableWrap,overflow) end +---* Sets max T. +---@param maxT float +---@return self +function Texture2D:setMaxT (maxT) end +---* +---@return string +function Texture2D:getPath () end +---* Draws a texture inside a rect. +---@param rect rect_table +---@param globalZOrder float +---@return self +function Texture2D:drawInRect (rect,globalZOrder) end +---* +---@return boolean +function Texture2D:isRenderTarget () end +---* Get the texture content size. +---@return size_table +function Texture2D:getContentSize () end +---* Sets alias texture parameters:<br> +---* - GL_TEXTURE_MIN_FILTER = GL_NEAREST<br> +---* - GL_TEXTURE_MAG_FILTER = GL_NEAREST<br> +---* warning Calling this method could allocate additional texture memory.<br> +---* since v0.8 +---@return self +function Texture2D:setAliasTexParameters () end +---* Sets antialias texture parameters:<br> +---* - GL_TEXTURE_MIN_FILTER = GL_LINEAR<br> +---* - GL_TEXTURE_MAG_FILTER = GL_LINEAR<br> +---* warning Calling this method could allocate additional texture memory.<br> +---* since v0.8 +---@return self +function Texture2D:setAntiAliasTexParameters () end +---* Generates mipmap images for the texture.<br> +---* It only works if the texture size is POT (power of 2).<br> +---* since v0.99.0 +---@return self +function Texture2D:generateMipmap () end +---* +---@return self +function Texture2D:getAlphaTexture () end +---* Gets the pixel format of the texture. +---@return int +function Texture2D:getPixelFormat () end +---* +---@return cc.backend.TextureBackend +function Texture2D:getBackendTexture () end +---* Get content size. +---@return size_table +function Texture2D:getContentSizeInPixels () end +---* Gets the width of the texture in pixels. +---@return int +function Texture2D:getPixelsWide () end +---* Drawing extensions to make it easy to draw basic quads using a Texture2D object.<br> +---* These functions require GL_TEXTURE_2D and both GL_VERTEX_ARRAY and GL_TEXTURE_COORD_ARRAY client states to be enabled.<br> +---* Draws a texture at a given point. +---@param point vec2_table +---@param globalZOrder float +---@return self +function Texture2D:drawAtPoint (point,globalZOrder) end +---* Whether or not the texture has mip maps. +---@return boolean +function Texture2D:hasMipmaps () end +---* +---@param renderTarget boolean +---@return self +function Texture2D:setRenderTarget (renderTarget) end +---* +---@param texture cc.backend.TextureBackend +---@param preMultipliedAlpha boolean +---@return boolean +function Texture2D:initWithBackendTexture (texture,preMultipliedAlpha) end +---* sets the default pixel format for UIImagescontains alpha channel.<br> +---* param format<br> +---* If the UIImage contains alpha channel, then the options are:<br> +---* - generate 32-bit textures: backend::PixelFormat::RGBA8888 (default one)<br> +---* - generate 24-bit textures: backend::PixelFormat::RGB888<br> +---* - generate 16-bit textures: backend::PixelFormat::RGBA4444<br> +---* - generate 16-bit textures: backend::PixelFormat::RGB5A1<br> +---* - generate 16-bit textures: backend::PixelFormat::RGB565<br> +---* - generate 8-bit textures: backend::PixelFormat::A8 (only use it if you use just 1 color)<br> +---* How does it work ?<br> +---* - If the image is an RGBA (with Alpha) then the default pixel format will be used (it can be a 8-bit, 16-bit or 32-bit texture)<br> +---* - If the image is an RGB (without Alpha) then: If the default pixel format is RGBA8888 then a RGBA8888 (32-bit) will be used. Otherwise a RGB565 (16-bit texture) will be used.<br> +---* This parameter is not valid for PVR / PVR.CCZ images.<br> +---* since v0.8 +---@param format int +---@return self +function Texture2D:setDefaultAlphaPixelFormat (format) end +---* Returns the alpha pixel format.<br> +---* since v0.8 +---@return int +function Texture2D:getDefaultAlphaPixelFormat () end +---* js ctor +---@return self +function Texture2D:Texture2D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TextureCache.lua b/meta/3rd/Cocos4.0/cc.TextureCache.lua new file mode 100644 index 00000000..c83553d1 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TextureCache.lua @@ -0,0 +1,100 @@ + +---@class cc.TextureCache :cc.Ref +local TextureCache={ } +cc.TextureCache=TextureCache + + + + +---* Reload texture from the image file.<br> +---* If the file image hasn't loaded before, load it.<br> +---* Otherwise the texture will be reloaded from the file image.<br> +---* param fileName It's the related/absolute path of the file image.<br> +---* return True if the reloading is succeed, otherwise return false. +---@param fileName string +---@return boolean +function TextureCache:reloadTexture (fileName) end +---* Unbind all bound image asynchronous load callbacks.<br> +---* since v3.1 +---@return self +function TextureCache:unbindAllImageAsync () end +---* Deletes a texture from the cache given a its key name.<br> +---* param key It's the related/absolute path of the file image.<br> +---* since v0.99.4 +---@param key string +---@return self +function TextureCache:removeTextureForKey (key) end +---* Purges the dictionary of loaded textures.<br> +---* Call this method if you receive the "Memory Warning".<br> +---* In the short term: it will free some resources preventing your app from being killed.<br> +---* In the medium term: it will allocate more resources.<br> +---* In the long term: it will be the same. +---@return self +function TextureCache:removeAllTextures () end +---* js NA<br> +---* lua NA +---@return string +function TextureCache:getDescription () end +---* Output to CCLOG the current contents of this TextureCache.<br> +---* This will attempt to calculate the size of each texture, and the total texture memory in use.<br> +---* since v1.0 +---@return string +function TextureCache:getCachedTextureInfo () end +---@overload fun(cc.Image:cc.Image,string:string):cc.Texture2D +---@overload fun(cc.Image0:string):cc.Texture2D +---@param image cc.Image +---@param key string +---@return cc.Texture2D +function TextureCache:addImage (image,key) end +---* Unbind a specified bound image asynchronous callback.<br> +---* In the case an object who was bound to an image asynchronous callback was destroyed before the callback is invoked,<br> +---* the object always need to unbind this callback manually.<br> +---* param filename It's the related/absolute path of the file image.<br> +---* since v3.1 +---@param filename string +---@return self +function TextureCache:unbindImageAsync (filename) end +---* Returns an already created texture. Returns nil if the texture doesn't exist.<br> +---* param key It's the related/absolute path of the file image.<br> +---* since v0.99.5 +---@param key string +---@return cc.Texture2D +function TextureCache:getTextureForKey (key) end +---* Get the file path of the texture<br> +---* param texture A Texture2D object pointer.<br> +---* return The full path of the file. +---@param texture cc.Texture2D +---@return string +function TextureCache:getTextureFilePath (texture) end +---* Reload texture from a new file.<br> +---* This function is mainly for editor, won't suggest use it in game for performance reason.<br> +---* param srcName Original texture file name.<br> +---* param dstName New texture file name.<br> +---* since v3.10 +---@param srcName string +---@param dstName string +---@return self +function TextureCache:renameTextureWithKey (srcName,dstName) end +---* Removes unused textures.<br> +---* Textures that have a retain count of 1 will be deleted.<br> +---* It is convenient to call this method after when starting a new Scene.<br> +---* since v0.8 +---@return self +function TextureCache:removeUnusedTextures () end +---* Deletes a texture from the cache given a texture. +---@param texture cc.Texture2D +---@return self +function TextureCache:removeTexture (texture) end +---* Called by director, please do not called outside. +---@return self +function TextureCache:waitForQuit () end +---* +---@param suffix string +---@return self +function TextureCache:setETC1AlphaFileSuffix (suffix) end +---* +---@return string +function TextureCache:getETC1AlphaFileSuffix () end +---* js ctor +---@return self +function TextureCache:TextureCache () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TextureCube.lua b/meta/3rd/Cocos4.0/cc.TextureCube.lua new file mode 100644 index 00000000..fbca406f --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TextureCube.lua @@ -0,0 +1,38 @@ + +---@class cc.TextureCube :cc.Ref +local TextureCube={ } +cc.TextureCube=TextureCube + + + + +---* reload texture cube after GLESContext reconstructed. +---@return boolean +function TextureCube:reloadTexture () end +---* +---@return cc.backend.TextureBackend +function TextureCube:getBackendTexture () end +---* Sets the min filter, mag filter, wrap s and wrap t texture parameters.<br> +---* If the texture size is NPOT (non power of 2), then in can only use GL_CLAMP_TO_EDGE in GL_TEXTURE_WRAP_{S,T}. +---@param r cc.backend.SamplerDescripto +---@return self +function TextureCube:setTexParameters (r) end +---* create cube texture from 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 texture cube 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 self +function TextureCube:create (positive_x,negative_x,positive_y,negative_y,positive_z,negative_z) end +---* Constructor. +---@return self +function TextureCube:TextureCube () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TileMapAtlas.lua b/meta/3rd/Cocos4.0/cc.TileMapAtlas.lua new file mode 100644 index 00000000..691512ad --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TileMapAtlas.lua @@ -0,0 +1,41 @@ + +---@class cc.TileMapAtlas :cc.AtlasNode +local TileMapAtlas={ } +cc.TileMapAtlas=TileMapAtlas + + + + +---* initializes a TileMap with a tile file (atlas) with a map file and the width and height of each tile in points.<br> +---* The file will be loaded using the TextureMgr. +---@param tile string +---@param mapFile string +---@param tileWidth int +---@param tileHeight int +---@return boolean +function TileMapAtlas:initWithTileFile (tile,mapFile,tileWidth,tileHeight) end +---* dealloc the map from memory +---@return self +function TileMapAtlas:releaseMap () end +---* Returns a tile from position x,y.<br> +---* For the moment only channel R is used +---@param position vec2_table +---@return color3b_table +function TileMapAtlas:getTileAt (position) end +---* sets a tile at position x,y.<br> +---* For the moment only channel R is used +---@param tile color3b_table +---@param position vec2_table +---@return self +function TileMapAtlas:setTile (tile,position) end +---* creates a TileMap with a tile file (atlas) with a map file and the width and height of each tile in points.<br> +---* The tile file will be loaded using the TextureMgr. +---@param tile string +---@param mapFile string +---@param tileWidth int +---@param tileHeight int +---@return self +function TileMapAtlas:create (tile,mapFile,tileWidth,tileHeight) end +---* js ctor +---@return self +function TileMapAtlas:TileMapAtlas () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TiledGrid3D.lua b/meta/3rd/Cocos4.0/cc.TiledGrid3D.lua new file mode 100644 index 00000000..7450a8a7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TiledGrid3D.lua @@ -0,0 +1,27 @@ + +---@class cc.TiledGrid3D :cc.GridBase +local TiledGrid3D={ } +cc.TiledGrid3D=TiledGrid3D + + + + +---@overload fun(size_table:size_table,cc.Texture2D1:rect_table):self +---@overload fun(size_table:size_table):self +---@overload fun(size_table:size_table,cc.Texture2D:cc.Texture2D,boolean:boolean):self +---@overload fun(size_table:size_table,cc.Texture2D:cc.Texture2D,boolean:boolean,rect_table:rect_table):self +---@param gridSize size_table +---@param texture cc.Texture2D +---@param flipped boolean +---@param rect rect_table +---@return self +function TiledGrid3D:create (gridSize,texture,flipped,rect) end +---* +---@return self +function TiledGrid3D:calculateVertexPoints () end +---* Implementations for interfaces in base class. +---@return self +function TiledGrid3D:blit () end +---* +---@return self +function TiledGrid3D:reuse () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TiledGrid3DAction.lua b/meta/3rd/Cocos4.0/cc.TiledGrid3DAction.lua new file mode 100644 index 00000000..77339696 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TiledGrid3DAction.lua @@ -0,0 +1,14 @@ + +---@class cc.TiledGrid3DAction :cc.GridAction +local TiledGrid3DAction={ } +cc.TiledGrid3DAction=TiledGrid3DAction + + + + +---* +---@return self +function TiledGrid3DAction:clone () end +---* returns the grid +---@return cc.GridBase +function TiledGrid3DAction:getGrid () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Timer.lua b/meta/3rd/Cocos4.0/cc.Timer.lua new file mode 100644 index 00000000..1517a3ef --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Timer.lua @@ -0,0 +1,34 @@ + +---@class cc.Timer :cc.Ref +local Timer={ } +cc.Timer=Timer + + + + +---* +---@param seconds float +---@param _repeat unsigned_int +---@param delay float +---@return self +function Timer:setupTimerWithInterval (seconds,_repeat,delay) end +---* triggers the timer +---@param dt float +---@return self +function Timer:update (dt) end +---* +---@return boolean +function Timer:isAborted () end +---* +---@return boolean +function Timer:isExhausted () end +---* +---@param dt float +---@return self +function Timer:trigger (dt) end +---* +---@return self +function Timer:cancel () end +---* +---@return self +function Timer:setAborted () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TintBy.lua b/meta/3rd/Cocos4.0/cc.TintBy.lua new file mode 100644 index 00000000..38e1aa72 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TintBy.lua @@ -0,0 +1,44 @@ + +---@class cc.TintBy :cc.ActionInterval +local TintBy={ } +cc.TintBy=TintBy + + + + +---* initializes the action with duration and color +---@param duration float +---@param deltaRed short +---@param deltaGreen short +---@param deltaBlue short +---@return boolean +function TintBy:initWithDuration (duration,deltaRed,deltaGreen,deltaBlue) end +---* Creates an action with duration and color.<br> +---* param duration Duration time, in seconds.<br> +---* param deltaRed Delta red color.<br> +---* param deltaGreen Delta green color.<br> +---* param deltaBlue Delta blue color.<br> +---* return An autoreleased TintBy object. +---@param duration float +---@param deltaRed short +---@param deltaGreen short +---@param deltaBlue short +---@return self +function TintBy:create (duration,deltaRed,deltaGreen,deltaBlue) end +---* +---@param target cc.Node +---@return self +function TintBy:startWithTarget (target) end +---* +---@return self +function TintBy:clone () end +---* +---@return self +function TintBy:reverse () end +---* param time In seconds. +---@param time float +---@return self +function TintBy:update (time) end +---* +---@return self +function TintBy:TintBy () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TintTo.lua b/meta/3rd/Cocos4.0/cc.TintTo.lua new file mode 100644 index 00000000..6b3b30e5 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TintTo.lua @@ -0,0 +1,40 @@ + +---@class cc.TintTo :cc.ActionInterval +local TintTo={ } +cc.TintTo=TintTo + + + + +---* initializes the action with duration and color +---@param duration float +---@param red unsigned_char +---@param green unsigned_char +---@param blue unsigned_char +---@return boolean +function TintTo:initWithDuration (duration,red,green,blue) end +---@overload fun(float:float,unsigned_char1:color3b_table):self +---@overload fun(float:float,unsigned_char:unsigned_char,unsigned_char:unsigned_char,unsigned_char:unsigned_char):self +---@param duration float +---@param red unsigned_char +---@param green unsigned_char +---@param blue unsigned_char +---@return self +function TintTo:create (duration,red,green,blue) end +---* +---@param target cc.Node +---@return self +function TintTo:startWithTarget (target) end +---* +---@return self +function TintTo:clone () end +---* +---@return self +function TintTo:reverse () end +---* param time In seconds. +---@param time float +---@return self +function TintTo:update (time) end +---* +---@return self +function TintTo:TintTo () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.ToggleVisibility.lua b/meta/3rd/Cocos4.0/cc.ToggleVisibility.lua new file mode 100644 index 00000000..578baf26 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.ToggleVisibility.lua @@ -0,0 +1,25 @@ + +---@class cc.ToggleVisibility :cc.ActionInstant +local ToggleVisibility={ } +cc.ToggleVisibility=ToggleVisibility + + + + +---* Allocates and initializes the action.<br> +---* return An autoreleased ToggleVisibility object. +---@return self +function ToggleVisibility:create () end +---* +---@return self +function ToggleVisibility:clone () end +---* param time In seconds. +---@param time float +---@return self +function ToggleVisibility:update (time) end +---* +---@return self +function ToggleVisibility:reverse () end +---* +---@return self +function ToggleVisibility:ToggleVisibility () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Touch.lua b/meta/3rd/Cocos4.0/cc.Touch.lua new file mode 100644 index 00000000..a4703b5b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Touch.lua @@ -0,0 +1,63 @@ + +---@class cc.Touch :cc.Ref +local Touch={ } +cc.Touch=Touch + + + + +---* Returns the previous touch location in screen coordinates. <br> +---* return The previous touch location in screen coordinates. +---@return vec2_table +function Touch:getPreviousLocationInView () end +---* Returns the current touch location in OpenGL coordinates.<br> +---* return The current touch location in OpenGL coordinates. +---@return vec2_table +function Touch:getLocation () end +---* Returns the delta of 2 current touches locations in screen coordinates.<br> +---* return The delta of 2 current touches locations in screen coordinates. +---@return vec2_table +function Touch:getDelta () end +---* Returns the start touch location in screen coordinates.<br> +---* return The start touch location in screen coordinates. +---@return vec2_table +function Touch:getStartLocationInView () end +---* Returns the current touch force for 3d touch.<br> +---* return The current touch force for 3d touch. +---@return float +function Touch:getCurrentForce () end +---* Returns the start touch location in OpenGL coordinates.<br> +---* return The start touch location in OpenGL coordinates. +---@return vec2_table +function Touch:getStartLocation () end +---* Get touch id.<br> +---* js getId<br> +---* lua getId<br> +---* return The id of touch. +---@return int +function Touch:getID () end +---@overload fun(int:int,float:float,float:float,float:float,float:float):self +---@overload fun(int:int,float:float,float:float):self +---@param id int +---@param x float +---@param y float +---@param force float +---@param maxForce float +---@return self +function Touch:setTouchInfo (id,x,y,force,maxForce) end +---* Returns the maximum touch force for 3d touch.<br> +---* return The maximum touch force for 3d touch. +---@return float +function Touch:getMaxForce () end +---* Returns the current touch location in screen coordinates.<br> +---* return The current touch location in screen coordinates. +---@return vec2_table +function Touch:getLocationInView () end +---* Returns the previous touch location in OpenGL coordinates.<br> +---* return The previous touch location in OpenGL coordinates. +---@return vec2_table +function Touch:getPreviousLocation () end +---* Constructor.<br> +---* js ctor +---@return self +function Touch:Touch () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionCrossFade.lua b/meta/3rd/Cocos4.0/cc.TransitionCrossFade.lua new file mode 100644 index 00000000..3e9637de --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionCrossFade.lua @@ -0,0 +1,25 @@ + +---@class cc.TransitionCrossFade :cc.TransitionScene +local TransitionCrossFade={ } +cc.TransitionCrossFade=TransitionCrossFade + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionCrossFade object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionCrossFade:create (t,scene) end +---* lua NA +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function TransitionCrossFade:draw (renderer,transform,flags) end +---* +---@return self +function TransitionCrossFade:TransitionCrossFade () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionEaseScene.lua b/meta/3rd/Cocos4.0/cc.TransitionEaseScene.lua new file mode 100644 index 00000000..58501e2d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionEaseScene.lua @@ -0,0 +1,15 @@ + +---@class cc.TransitionEaseScene +local TransitionEaseScene={ } +cc.TransitionEaseScene=TransitionEaseScene + + + + +---* Returns the Ease action that will be performed on a linear action.<br> +---* since v0.8.2<br> +---* param action A given interval action.<br> +---* return The Ease action that will be performed on a linear action. +---@param action cc.ActionInterval +---@return cc.ActionInterval +function TransitionEaseScene:easeActionWithAction (action) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionFade.lua b/meta/3rd/Cocos4.0/cc.TransitionFade.lua new file mode 100644 index 00000000..1e16497b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionFade.lua @@ -0,0 +1,25 @@ + +---@class cc.TransitionFade :cc.TransitionScene +local TransitionFade={ } +cc.TransitionFade=TransitionFade + + + + +---@overload fun(float:float,cc.Scene:cc.Scene):self +---@overload fun(float:float,cc.Scene:cc.Scene,color3b_table:color3b_table):self +---@param t float +---@param scene cc.Scene +---@param color color3b_table +---@return boolean +function TransitionFade:initWithDuration (t,scene,color) end +---@overload fun(float:float,cc.Scene:cc.Scene):self +---@overload fun(float:float,cc.Scene:cc.Scene,color3b_table:color3b_table):self +---@param duration float +---@param scene cc.Scene +---@param color color3b_table +---@return self +function TransitionFade:create (duration,scene,color) end +---* +---@return self +function TransitionFade:TransitionFade () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionFadeBL.lua b/meta/3rd/Cocos4.0/cc.TransitionFadeBL.lua new file mode 100644 index 00000000..5dd4629b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionFadeBL.lua @@ -0,0 +1,23 @@ + +---@class cc.TransitionFadeBL :cc.TransitionFadeTR +local TransitionFadeBL={ } +cc.TransitionFadeBL=TransitionFadeBL + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionFadeBL object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionFadeBL:create (t,scene) end +---* +---@param size size_table +---@return cc.ActionInterval +function TransitionFadeBL:actionWithSize (size) end +---* +---@return self +function TransitionFadeBL:TransitionFadeBL () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionFadeDown.lua b/meta/3rd/Cocos4.0/cc.TransitionFadeDown.lua new file mode 100644 index 00000000..673e64a7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionFadeDown.lua @@ -0,0 +1,23 @@ + +---@class cc.TransitionFadeDown :cc.TransitionFadeTR +local TransitionFadeDown={ } +cc.TransitionFadeDown=TransitionFadeDown + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionFadeDown object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionFadeDown:create (t,scene) end +---* +---@param size size_table +---@return cc.ActionInterval +function TransitionFadeDown:actionWithSize (size) end +---* +---@return self +function TransitionFadeDown:TransitionFadeDown () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionFadeTR.lua b/meta/3rd/Cocos4.0/cc.TransitionFadeTR.lua new file mode 100644 index 00000000..667434d9 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionFadeTR.lua @@ -0,0 +1,35 @@ + +---@class cc.TransitionFadeTR :cc.TransitionScene@all parent class: TransitionScene,TransitionEaseScene +local TransitionFadeTR={ } +cc.TransitionFadeTR=TransitionFadeTR + + + + +---* +---@param action cc.ActionInterval +---@return cc.ActionInterval +function TransitionFadeTR:easeActionWithAction (action) end +---* Returns the action that will be performed with size.<br> +---* param size A given size.<br> +---* return The action that will be performed. +---@param size size_table +---@return cc.ActionInterval +function TransitionFadeTR:actionWithSize (size) end +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionFadeTR object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionFadeTR:create (t,scene) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function TransitionFadeTR:draw (renderer,transform,flags) end +---* +---@return self +function TransitionFadeTR:TransitionFadeTR () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionFadeUp.lua b/meta/3rd/Cocos4.0/cc.TransitionFadeUp.lua new file mode 100644 index 00000000..e78f5f33 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionFadeUp.lua @@ -0,0 +1,23 @@ + +---@class cc.TransitionFadeUp :cc.TransitionFadeTR +local TransitionFadeUp={ } +cc.TransitionFadeUp=TransitionFadeUp + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionFadeUp object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionFadeUp:create (t,scene) end +---* +---@param size size_table +---@return cc.ActionInterval +function TransitionFadeUp:actionWithSize (size) end +---* +---@return self +function TransitionFadeUp:TransitionFadeUp () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionFlipAngular.lua b/meta/3rd/Cocos4.0/cc.TransitionFlipAngular.lua new file mode 100644 index 00000000..a43dcfd9 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionFlipAngular.lua @@ -0,0 +1,18 @@ + +---@class cc.TransitionFlipAngular :cc.TransitionSceneOriented +local TransitionFlipAngular={ } +cc.TransitionFlipAngular=TransitionFlipAngular + + + + +---@overload fun(float:float,cc.Scene:cc.Scene):self +---@overload fun(float:float,cc.Scene:cc.Scene,int:int):self +---@param t float +---@param s cc.Scene +---@param o int +---@return self +function TransitionFlipAngular:create (t,s,o) end +---* +---@return self +function TransitionFlipAngular:TransitionFlipAngular () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionFlipX.lua b/meta/3rd/Cocos4.0/cc.TransitionFlipX.lua new file mode 100644 index 00000000..1c3a2a70 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionFlipX.lua @@ -0,0 +1,18 @@ + +---@class cc.TransitionFlipX :cc.TransitionSceneOriented +local TransitionFlipX={ } +cc.TransitionFlipX=TransitionFlipX + + + + +---@overload fun(float:float,cc.Scene:cc.Scene):self +---@overload fun(float:float,cc.Scene:cc.Scene,int:int):self +---@param t float +---@param s cc.Scene +---@param o int +---@return self +function TransitionFlipX:create (t,s,o) end +---* +---@return self +function TransitionFlipX:TransitionFlipX () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionFlipY.lua b/meta/3rd/Cocos4.0/cc.TransitionFlipY.lua new file mode 100644 index 00000000..a9a5b1da --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionFlipY.lua @@ -0,0 +1,18 @@ + +---@class cc.TransitionFlipY :cc.TransitionSceneOriented +local TransitionFlipY={ } +cc.TransitionFlipY=TransitionFlipY + + + + +---@overload fun(float:float,cc.Scene:cc.Scene):self +---@overload fun(float:float,cc.Scene:cc.Scene,int:int):self +---@param t float +---@param s cc.Scene +---@param o int +---@return self +function TransitionFlipY:create (t,s,o) end +---* +---@return self +function TransitionFlipY:TransitionFlipY () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionJumpZoom.lua b/meta/3rd/Cocos4.0/cc.TransitionJumpZoom.lua new file mode 100644 index 00000000..fdc1d2a7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionJumpZoom.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionJumpZoom :cc.TransitionScene +local TransitionJumpZoom={ } +cc.TransitionJumpZoom=TransitionJumpZoom + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionJumpZoom object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionJumpZoom:create (t,scene) end +---* +---@return self +function TransitionJumpZoom:TransitionJumpZoom () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionMoveInB.lua b/meta/3rd/Cocos4.0/cc.TransitionMoveInB.lua new file mode 100644 index 00000000..38d29b67 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionMoveInB.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionMoveInB :cc.TransitionMoveInL +local TransitionMoveInB={ } +cc.TransitionMoveInB=TransitionMoveInB + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionMoveInB object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionMoveInB:create (t,scene) end +---* +---@return self +function TransitionMoveInB:TransitionMoveInB () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionMoveInL.lua b/meta/3rd/Cocos4.0/cc.TransitionMoveInL.lua new file mode 100644 index 00000000..7526ad0b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionMoveInL.lua @@ -0,0 +1,27 @@ + +---@class cc.TransitionMoveInL :cc.TransitionScene@all parent class: TransitionScene,TransitionEaseScene +local TransitionMoveInL={ } +cc.TransitionMoveInL=TransitionMoveInL + + + + +---* Returns the action that will be performed. <br> +---* return The action that will be performed. +---@return cc.ActionInterval +function TransitionMoveInL:action () end +---* +---@param action cc.ActionInterval +---@return cc.ActionInterval +function TransitionMoveInL:easeActionWithAction (action) end +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionMoveInL object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionMoveInL:create (t,scene) end +---* +---@return self +function TransitionMoveInL:TransitionMoveInL () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionMoveInR.lua b/meta/3rd/Cocos4.0/cc.TransitionMoveInR.lua new file mode 100644 index 00000000..3b74f8f4 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionMoveInR.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionMoveInR :cc.TransitionMoveInL +local TransitionMoveInR={ } +cc.TransitionMoveInR=TransitionMoveInR + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionMoveInR object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionMoveInR:create (t,scene) end +---* +---@return self +function TransitionMoveInR:TransitionMoveInR () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionMoveInT.lua b/meta/3rd/Cocos4.0/cc.TransitionMoveInT.lua new file mode 100644 index 00000000..2cfc5f81 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionMoveInT.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionMoveInT :cc.TransitionMoveInL +local TransitionMoveInT={ } +cc.TransitionMoveInT=TransitionMoveInT + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionMoveInT object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionMoveInT:create (t,scene) end +---* +---@return self +function TransitionMoveInT:TransitionMoveInT () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionPageTurn.lua b/meta/3rd/Cocos4.0/cc.TransitionPageTurn.lua new file mode 100644 index 00000000..1ae2f850 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionPageTurn.lua @@ -0,0 +1,47 @@ + +---@class cc.TransitionPageTurn :cc.TransitionScene +local TransitionPageTurn={ } +cc.TransitionPageTurn=TransitionPageTurn + + + + +---* Returns the action that will be performed with size.<br> +---* param vector A given size.<br> +---* return The action that will be performed. +---@param vector size_table +---@return cc.ActionInterval +function TransitionPageTurn:actionWithSize (vector) end +---* Creates a base transition with duration and incoming scene.<br> +---* If back is true then the effect is reversed to appear as if the incoming<br> +---* scene is being turned from left over the outgoing scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* param backwards If back is true then the effect is reversed to appear as if the incoming scene is being turned from left over the outgoing scene.<br> +---* return True if initialize success. +---@param t float +---@param scene cc.Scene +---@param backwards boolean +---@return boolean +function TransitionPageTurn:initWithDuration (t,scene,backwards) end +---* Creates a base transition with duration and incoming scene.<br> +---* If back is true then the effect is reversed to appear as if the incoming<br> +---* scene is being turned from left over the outgoing scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* param backwards If back is true then the effect is reversed to appear as if the incoming scene is being turned from left over the outgoing scene.<br> +---* return An autoreleased TransitionPageTurn object. +---@param t float +---@param scene cc.Scene +---@param backwards boolean +---@return self +function TransitionPageTurn:create (t,scene,backwards) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function TransitionPageTurn:draw (renderer,transform,flags) end +---* js ctor +---@return self +function TransitionPageTurn:TransitionPageTurn () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionProgress.lua b/meta/3rd/Cocos4.0/cc.TransitionProgress.lua new file mode 100644 index 00000000..3a64ff79 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionProgress.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionProgress :cc.TransitionScene +local TransitionProgress={ } +cc.TransitionProgress=TransitionProgress + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return An autoreleased TransitionProgress object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionProgress:create (t,scene) end +---* +---@return self +function TransitionProgress:TransitionProgress () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionProgressHorizontal.lua b/meta/3rd/Cocos4.0/cc.TransitionProgressHorizontal.lua new file mode 100644 index 00000000..fa4ed1c2 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionProgressHorizontal.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionProgressHorizontal :cc.TransitionProgress +local TransitionProgressHorizontal={ } +cc.TransitionProgressHorizontal=TransitionProgressHorizontal + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return An autoreleased TransitionProgressHorizontal object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionProgressHorizontal:create (t,scene) end +---* js ctor +---@return self +function TransitionProgressHorizontal:TransitionProgressHorizontal () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionProgressInOut.lua b/meta/3rd/Cocos4.0/cc.TransitionProgressInOut.lua new file mode 100644 index 00000000..c937f31b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionProgressInOut.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionProgressInOut :cc.TransitionProgress +local TransitionProgressInOut={ } +cc.TransitionProgressInOut=TransitionProgressInOut + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return An autoreleased TransitionProgressInOut object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionProgressInOut:create (t,scene) end +---* js ctor +---@return self +function TransitionProgressInOut:TransitionProgressInOut () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionProgressOutIn.lua b/meta/3rd/Cocos4.0/cc.TransitionProgressOutIn.lua new file mode 100644 index 00000000..4b88c601 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionProgressOutIn.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionProgressOutIn :cc.TransitionProgress +local TransitionProgressOutIn={ } +cc.TransitionProgressOutIn=TransitionProgressOutIn + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return An autoreleased TransitionProgressOutIn object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionProgressOutIn:create (t,scene) end +---* js ctor +---@return self +function TransitionProgressOutIn:TransitionProgressOutIn () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionProgressRadialCCW.lua b/meta/3rd/Cocos4.0/cc.TransitionProgressRadialCCW.lua new file mode 100644 index 00000000..086b6671 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionProgressRadialCCW.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionProgressRadialCCW :cc.TransitionProgress +local TransitionProgressRadialCCW={ } +cc.TransitionProgressRadialCCW=TransitionProgressRadialCCW + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return An autoreleased TransitionProgressRadialCCW object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionProgressRadialCCW:create (t,scene) end +---* js ctor +---@return self +function TransitionProgressRadialCCW:TransitionProgressRadialCCW () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionProgressRadialCW.lua b/meta/3rd/Cocos4.0/cc.TransitionProgressRadialCW.lua new file mode 100644 index 00000000..d6363be0 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionProgressRadialCW.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionProgressRadialCW :cc.TransitionProgress +local TransitionProgressRadialCW={ } +cc.TransitionProgressRadialCW=TransitionProgressRadialCW + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return An autoreleased TransitionProgressRadialCW object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionProgressRadialCW:create (t,scene) end +---* js ctor +---@return self +function TransitionProgressRadialCW:TransitionProgressRadialCW () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionProgressVertical.lua b/meta/3rd/Cocos4.0/cc.TransitionProgressVertical.lua new file mode 100644 index 00000000..b648088d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionProgressVertical.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionProgressVertical :cc.TransitionProgress +local TransitionProgressVertical={ } +cc.TransitionProgressVertical=TransitionProgressVertical + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return An autoreleased TransitionProgressVertical object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionProgressVertical:create (t,scene) end +---* js ctor +---@return self +function TransitionProgressVertical:TransitionProgressVertical () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionRotoZoom.lua b/meta/3rd/Cocos4.0/cc.TransitionRotoZoom.lua new file mode 100644 index 00000000..9e229888 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionRotoZoom.lua @@ -0,0 +1,19 @@ + +---@class cc.TransitionRotoZoom :cc.TransitionScene +local TransitionRotoZoom={ } +cc.TransitionRotoZoom=TransitionRotoZoom + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionRotoZoom object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionRotoZoom:create (t,scene) end +---* +---@return self +function TransitionRotoZoom:TransitionRotoZoom () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionScene.lua b/meta/3rd/Cocos4.0/cc.TransitionScene.lua new file mode 100644 index 00000000..54c36f81 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionScene.lua @@ -0,0 +1,45 @@ + +---@class cc.TransitionScene :cc.Scene +local TransitionScene={ } +cc.TransitionScene=TransitionScene + + + + +---* +---@return cc.Scene +function TransitionScene:getInScene () end +---* Called after the transition finishes. +---@return self +function TransitionScene:finish () end +---* initializes a transition with duration and incoming scene +---@param t float +---@param scene cc.Scene +---@return boolean +function TransitionScene:initWithDuration (t,scene) end +---* +---@return float +function TransitionScene:getDuration () end +---* Used by some transitions to hide the outer scene. +---@return self +function TransitionScene:hideOutShowIn () end +---* Creates a base transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionScene object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionScene:create (t,scene) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function TransitionScene:draw (renderer,transform,flags) end +---* +---@return self +function TransitionScene:cleanup () end +---* +---@return self +function TransitionScene:TransitionScene () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionSceneOriented.lua b/meta/3rd/Cocos4.0/cc.TransitionSceneOriented.lua new file mode 100644 index 00000000..699bd073 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionSceneOriented.lua @@ -0,0 +1,27 @@ + +---@class cc.TransitionSceneOriented :cc.TransitionScene +local TransitionSceneOriented={ } +cc.TransitionSceneOriented=TransitionSceneOriented + + + + +---* initializes a transition with duration and incoming scene +---@param t float +---@param scene cc.Scene +---@param orientation int +---@return boolean +function TransitionSceneOriented:initWithDuration (t,scene,orientation) end +---* Creates a transition with duration, incoming scene and orientation.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* param orientation A given orientation: LeftOver, RightOver, UpOver, DownOver.<br> +---* return A autoreleased TransitionSceneOriented object. +---@param t float +---@param scene cc.Scene +---@param orientation int +---@return self +function TransitionSceneOriented:create (t,scene,orientation) end +---* +---@return self +function TransitionSceneOriented:TransitionSceneOriented () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionShrinkGrow.lua b/meta/3rd/Cocos4.0/cc.TransitionShrinkGrow.lua new file mode 100644 index 00000000..a56de577 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionShrinkGrow.lua @@ -0,0 +1,23 @@ + +---@class cc.TransitionShrinkGrow :cc.TransitionScene@all parent class: TransitionScene,TransitionEaseScene +local TransitionShrinkGrow={ } +cc.TransitionShrinkGrow=TransitionShrinkGrow + + + + +---* +---@param action cc.ActionInterval +---@return cc.ActionInterval +function TransitionShrinkGrow:easeActionWithAction (action) end +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionShrinkGrow object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionShrinkGrow:create (t,scene) end +---* +---@return self +function TransitionShrinkGrow:TransitionShrinkGrow () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionSlideInB.lua b/meta/3rd/Cocos4.0/cc.TransitionSlideInB.lua new file mode 100644 index 00000000..b0c78263 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionSlideInB.lua @@ -0,0 +1,22 @@ + +---@class cc.TransitionSlideInB :cc.TransitionSlideInL +local TransitionSlideInB={ } +cc.TransitionSlideInB=TransitionSlideInB + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionSlideInB object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionSlideInB:create (t,scene) end +---* returns the action that will be performed by the incoming and outgoing scene +---@return cc.ActionInterval +function TransitionSlideInB:action () end +---* +---@return self +function TransitionSlideInB:TransitionSlideInB () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionSlideInL.lua b/meta/3rd/Cocos4.0/cc.TransitionSlideInL.lua new file mode 100644 index 00000000..3fd071f6 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionSlideInL.lua @@ -0,0 +1,27 @@ + +---@class cc.TransitionSlideInL :cc.TransitionScene@all parent class: TransitionScene,TransitionEaseScene +local TransitionSlideInL={ } +cc.TransitionSlideInL=TransitionSlideInL + + + + +---* Returns the action that will be performed by the incoming and outgoing scene.<br> +---* return The action that will be performed by the incoming and outgoing scene. +---@return cc.ActionInterval +function TransitionSlideInL:action () end +---* +---@param action cc.ActionInterval +---@return cc.ActionInterval +function TransitionSlideInL:easeActionWithAction (action) end +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionSlideInL object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionSlideInL:create (t,scene) end +---* +---@return self +function TransitionSlideInL:TransitionSlideInL () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionSlideInR.lua b/meta/3rd/Cocos4.0/cc.TransitionSlideInR.lua new file mode 100644 index 00000000..7aa6ad77 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionSlideInR.lua @@ -0,0 +1,22 @@ + +---@class cc.TransitionSlideInR :cc.TransitionSlideInL +local TransitionSlideInR={ } +cc.TransitionSlideInR=TransitionSlideInR + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionSlideInR object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionSlideInR:create (t,scene) end +---* Returns the action that will be performed by the incoming and outgoing scene. +---@return cc.ActionInterval +function TransitionSlideInR:action () end +---* +---@return self +function TransitionSlideInR:TransitionSlideInR () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionSlideInT.lua b/meta/3rd/Cocos4.0/cc.TransitionSlideInT.lua new file mode 100644 index 00000000..17cd322c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionSlideInT.lua @@ -0,0 +1,22 @@ + +---@class cc.TransitionSlideInT :cc.TransitionSlideInL +local TransitionSlideInT={ } +cc.TransitionSlideInT=TransitionSlideInT + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionSlideInT object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionSlideInT:create (t,scene) end +---* returns the action that will be performed by the incoming and outgoing scene +---@return cc.ActionInterval +function TransitionSlideInT:action () end +---* +---@return self +function TransitionSlideInT:TransitionSlideInT () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionSplitCols.lua b/meta/3rd/Cocos4.0/cc.TransitionSplitCols.lua new file mode 100644 index 00000000..53900085 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionSplitCols.lua @@ -0,0 +1,33 @@ + +---@class cc.TransitionSplitCols :cc.TransitionScene@all parent class: TransitionScene,TransitionEaseScene +local TransitionSplitCols={ } +cc.TransitionSplitCols=TransitionSplitCols + + + + +---* Returns the action that will be performed.<br> +---* return The action that will be performed. +---@return cc.ActionInterval +function TransitionSplitCols:action () end +---* +---@param action cc.ActionInterval +---@return cc.ActionInterval +function TransitionSplitCols:easeActionWithAction (action) end +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionSplitCols object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionSplitCols:create (t,scene) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function TransitionSplitCols:draw (renderer,transform,flags) end +---* +---@return self +function TransitionSplitCols:TransitionSplitCols () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionSplitRows.lua b/meta/3rd/Cocos4.0/cc.TransitionSplitRows.lua new file mode 100644 index 00000000..314aa429 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionSplitRows.lua @@ -0,0 +1,22 @@ + +---@class cc.TransitionSplitRows :cc.TransitionSplitCols +local TransitionSplitRows={ } +cc.TransitionSplitRows=TransitionSplitRows + + + + +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionSplitRows object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionSplitRows:create (t,scene) end +---* +---@return cc.ActionInterval +function TransitionSplitRows:action () end +---* +---@return self +function TransitionSplitRows:TransitionSplitRows () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionTurnOffTiles.lua b/meta/3rd/Cocos4.0/cc.TransitionTurnOffTiles.lua new file mode 100644 index 00000000..54b1b49a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionTurnOffTiles.lua @@ -0,0 +1,29 @@ + +---@class cc.TransitionTurnOffTiles :cc.TransitionScene@all parent class: TransitionScene,TransitionEaseScene +local TransitionTurnOffTiles={ } +cc.TransitionTurnOffTiles=TransitionTurnOffTiles + + + + +---* +---@param action cc.ActionInterval +---@return cc.ActionInterval +function TransitionTurnOffTiles:easeActionWithAction (action) end +---* Creates a transition with duration and incoming scene.<br> +---* param t Duration time, in seconds.<br> +---* param scene A given scene.<br> +---* return A autoreleased TransitionTurnOffTiles object. +---@param t float +---@param scene cc.Scene +---@return self +function TransitionTurnOffTiles:create (t,scene) end +---* js NA +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function TransitionTurnOffTiles:draw (renderer,transform,flags) end +---* +---@return self +function TransitionTurnOffTiles:TransitionTurnOffTiles () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionZoomFlipAngular.lua b/meta/3rd/Cocos4.0/cc.TransitionZoomFlipAngular.lua new file mode 100644 index 00000000..c3535942 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionZoomFlipAngular.lua @@ -0,0 +1,18 @@ + +---@class cc.TransitionZoomFlipAngular :cc.TransitionSceneOriented +local TransitionZoomFlipAngular={ } +cc.TransitionZoomFlipAngular=TransitionZoomFlipAngular + + + + +---@overload fun(float:float,cc.Scene:cc.Scene):self +---@overload fun(float:float,cc.Scene:cc.Scene,int:int):self +---@param t float +---@param s cc.Scene +---@param o int +---@return self +function TransitionZoomFlipAngular:create (t,s,o) end +---* +---@return self +function TransitionZoomFlipAngular:TransitionZoomFlipAngular () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionZoomFlipX.lua b/meta/3rd/Cocos4.0/cc.TransitionZoomFlipX.lua new file mode 100644 index 00000000..7488c35a --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionZoomFlipX.lua @@ -0,0 +1,18 @@ + +---@class cc.TransitionZoomFlipX :cc.TransitionSceneOriented +local TransitionZoomFlipX={ } +cc.TransitionZoomFlipX=TransitionZoomFlipX + + + + +---@overload fun(float:float,cc.Scene:cc.Scene):self +---@overload fun(float:float,cc.Scene:cc.Scene,int:int):self +---@param t float +---@param s cc.Scene +---@param o int +---@return self +function TransitionZoomFlipX:create (t,s,o) end +---* +---@return self +function TransitionZoomFlipX:TransitionZoomFlipX () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TransitionZoomFlipY.lua b/meta/3rd/Cocos4.0/cc.TransitionZoomFlipY.lua new file mode 100644 index 00000000..33693ddd --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TransitionZoomFlipY.lua @@ -0,0 +1,18 @@ + +---@class cc.TransitionZoomFlipY :cc.TransitionSceneOriented +local TransitionZoomFlipY={ } +cc.TransitionZoomFlipY=TransitionZoomFlipY + + + + +---@overload fun(float:float,cc.Scene:cc.Scene):self +---@overload fun(float:float,cc.Scene:cc.Scene,int:int):self +---@param t float +---@param s cc.Scene +---@param o int +---@return self +function TransitionZoomFlipY:create (t,s,o) end +---* +---@return self +function TransitionZoomFlipY:TransitionZoomFlipY () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.TurnOffTiles.lua b/meta/3rd/Cocos4.0/cc.TurnOffTiles.lua new file mode 100644 index 00000000..59ce7cab --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.TurnOffTiles.lua @@ -0,0 +1,49 @@ + +---@class cc.TurnOffTiles :cc.TiledGrid3DAction +local TurnOffTiles={ } +cc.TurnOffTiles=TurnOffTiles + + + + +---* brief Show the tile at specified position.<br> +---* param pos The position index of the tile should be shown. +---@param pos vec2_table +---@return self +function TurnOffTiles:turnOnTile (pos) end +---* brief Hide the tile at specified position.<br> +---* param pos The position index of the tile should be hide. +---@param pos vec2_table +---@return self +function TurnOffTiles:turnOffTile (pos) end +---* brief Initializes the action with grid size, random seed and duration.<br> +---* param duration Specify the duration of the TurnOffTiles action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param seed Specify the random seed.<br> +---* return If the Initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param seed unsigned_int +---@return boolean +function TurnOffTiles:initWithDuration (duration,gridSize,seed) end +---@overload fun(float:float,size_table:size_table,unsigned_int:unsigned_int):self +---@overload fun(float:float,size_table:size_table):self +---@param duration float +---@param gridSize size_table +---@param seed unsigned_int +---@return self +function TurnOffTiles:create (duration,gridSize,seed) end +---* +---@param target cc.Node +---@return self +function TurnOffTiles:startWithTarget (target) end +---* +---@return self +function TurnOffTiles:clone () end +---* +---@param time float +---@return self +function TurnOffTiles:update (time) end +---* +---@return self +function TurnOffTiles:TurnOffTiles () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Twirl.lua b/meta/3rd/Cocos4.0/cc.Twirl.lua new file mode 100644 index 00000000..06efa9f7 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Twirl.lua @@ -0,0 +1,73 @@ + +---@class cc.Twirl :cc.Grid3DAction +local Twirl={ } +cc.Twirl=Twirl + + + + +---* brief Set the amplitude rate of the effect.<br> +---* param amplitudeRate The value of amplitude rate will be set. +---@param amplitudeRate float +---@return self +function Twirl:setAmplitudeRate (amplitudeRate) end +---* brief Initializes the action with center position, number of twirls, amplitude, a grid size and duration.<br> +---* param duration Specify the duration of the Twirl action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param position Specify the center position of the twirl action.<br> +---* param twirls Specify the twirls count of the Twirl action.<br> +---* param amplitude Specify the amplitude of the Twirl action.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param position vec2_table +---@param twirls unsigned_int +---@param amplitude float +---@return boolean +function Twirl:initWithDuration (duration,gridSize,position,twirls,amplitude) end +---* brief Get the amplitude rate of the effect.<br> +---* return Return the amplitude rate of the effect. +---@return float +function Twirl:getAmplitudeRate () end +---* brief Set the amplitude to the effect.<br> +---* param amplitude The value of amplitude will be set. +---@param amplitude float +---@return self +function Twirl:setAmplitude (amplitude) end +---* brief Get the amplitude of the effect.<br> +---* return Return the amplitude of the effect. +---@return float +function Twirl:getAmplitude () end +---* brief Set the center position of twirl action.<br> +---* param position The center position of twirl action will be set. +---@param position vec2_table +---@return self +function Twirl:setPosition (position) end +---* brief Get the center position of twirl action.<br> +---* return The center position of twirl action. +---@return vec2_table +function Twirl:getPosition () end +---* brief Create the action with center position, number of twirls, amplitude, a grid size and duration.<br> +---* param duration Specify the duration of the Twirl action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param position Specify the center position of the twirl action.<br> +---* param twirls Specify the twirls count of the Twirl action.<br> +---* param amplitude Specify the amplitude of the Twirl action.<br> +---* return If the creation success, return a pointer of Twirl action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param position vec2_table +---@param twirls unsigned_int +---@param amplitude float +---@return self +function Twirl:create (duration,gridSize,position,twirls,amplitude) end +---* +---@return self +function Twirl:clone () end +---* +---@param time float +---@return self +function Twirl:update (time) end +---* +---@return self +function Twirl:Twirl () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.UserDefault.lua b/meta/3rd/Cocos4.0/cc.UserDefault.lua new file mode 100644 index 00000000..621bbec6 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.UserDefault.lua @@ -0,0 +1,100 @@ + +---@class cc.UserDefault +local UserDefault={ } +cc.UserDefault=UserDefault + + + + +---* Set integer value by key.<br> +---* param key The key to set.<br> +---* param value A integer value to set to the key.<br> +---* js NA +---@param key char +---@param value int +---@return self +function UserDefault:setIntegerForKey (key,value) end +---* delete any value by key,<br> +---* param key The key to delete value.<br> +---* js NA +---@param key char +---@return self +function UserDefault:deleteValueForKey (key) end +---@overload fun(char:char,float:float):self +---@overload fun(char:char):self +---@param key char +---@param defaultValue float +---@return float +function UserDefault:getFloatForKey (key,defaultValue) end +---@overload fun(char:char,boolean:boolean):self +---@overload fun(char:char):self +---@param key char +---@param defaultValue boolean +---@return boolean +function UserDefault:getBoolForKey (key,defaultValue) end +---* Set double value by key.<br> +---* param key The key to set.<br> +---* param value A double value to set to the key.<br> +---* js NA +---@param key char +---@param value double +---@return self +function UserDefault:setDoubleForKey (key,value) end +---* Set float value by key.<br> +---* param key The key to set.<br> +---* param value A float value to set to the key.<br> +---* js NA +---@param key char +---@param value float +---@return self +function UserDefault:setFloatForKey (key,value) end +---@overload fun(char:char,string:string):self +---@overload fun(char:char):self +---@param key char +---@param defaultValue string +---@return string +function UserDefault:getStringForKey (key,defaultValue) end +---* Set string value by key.<br> +---* param key The key to set.<br> +---* param value A string value to set to the key.<br> +---* js NA +---@param key char +---@param value string +---@return self +function UserDefault:setStringForKey (key,value) end +---* You should invoke this function to save values set by setXXXForKey().<br> +---* js NA +---@return self +function UserDefault:flush () end +---@overload fun(char:char,int:int):self +---@overload fun(char:char):self +---@param key char +---@param defaultValue int +---@return int +function UserDefault:getIntegerForKey (key,defaultValue) end +---@overload fun(char:char,double:double):self +---@overload fun(char:char):self +---@param key char +---@param defaultValue double +---@return double +function UserDefault:getDoubleForKey (key,defaultValue) end +---* Set bool value by key.<br> +---* param key The key to set.<br> +---* param value A bool value to set to the key.<br> +---* js NA +---@param key char +---@param value boolean +---@return self +function UserDefault:setBoolForKey (key,value) end +---* js NA +---@return self +function UserDefault:destroyInstance () end +---* All supported platforms other iOS & Android use xml file to save values. This function is return the file path of the xml path.<br> +---* js NA +---@return string +function UserDefault:getXMLFilePath () end +---* All supported platforms other iOS & Android use xml file to save values. This function checks whether the xml file exists or not.<br> +---* return True if the xml file exists, false if not.<br> +---* js NA +---@return boolean +function UserDefault:isXMLFileExist () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Waves.lua b/meta/3rd/Cocos4.0/cc.Waves.lua new file mode 100644 index 00000000..88f71bdd --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Waves.lua @@ -0,0 +1,68 @@ + +---@class cc.Waves :cc.Grid3DAction +local Waves={ } +cc.Waves=Waves + + + + +---* brief Set the amplitude rate of the effect.<br> +---* param amplitudeRate The value of amplitude rate will be set. +---@param amplitudeRate float +---@return self +function Waves:setAmplitudeRate (amplitudeRate) end +---* brief Initializes the action with amplitude, horizontal sin, vertical sin, grid size, waves count and duration.<br> +---* param duration Specify the duration of the Waves action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param waves Specify the waves count of the Waves action.<br> +---* param amplitude Specify the amplitude of the Waves action.<br> +---* param horizontal Specify whether waves on horizontal.<br> +---* param vertical Specify whether waves on vertical.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param waves unsigned_int +---@param amplitude float +---@param horizontal boolean +---@param vertical boolean +---@return boolean +function Waves:initWithDuration (duration,gridSize,waves,amplitude,horizontal,vertical) end +---* brief Get the amplitude of the effect.<br> +---* return Return the amplitude of the effect. +---@return float +function Waves:getAmplitude () end +---* brief Get the amplitude rate of the effect.<br> +---* return Return the amplitude rate of the effect. +---@return float +function Waves:getAmplitudeRate () end +---* brief Set the amplitude to the effect.<br> +---* param amplitude The value of amplitude will be set. +---@param amplitude float +---@return self +function Waves:setAmplitude (amplitude) end +---* brief Create the action with amplitude, horizontal sin, vertical sin, grid size, waves count and duration.<br> +---* param duration Specify the duration of the Waves action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param waves Specify the waves count of the Waves action.<br> +---* param amplitude Specify the amplitude of the Waves action.<br> +---* param horizontal Specify whether waves on horizontal.<br> +---* param vertical Specify whether waves on vertical.<br> +---* return If the creation success, return a pointer of Waves action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param waves unsigned_int +---@param amplitude float +---@param horizontal boolean +---@param vertical boolean +---@return self +function Waves:create (duration,gridSize,waves,amplitude,horizontal,vertical) end +---* +---@return self +function Waves:clone () end +---* +---@param time float +---@return self +function Waves:update (time) end +---* +---@return self +function Waves:Waves () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.Waves3D.lua b/meta/3rd/Cocos4.0/cc.Waves3D.lua new file mode 100644 index 00000000..8e30b92d --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Waves3D.lua @@ -0,0 +1,60 @@ + +---@class cc.Waves3D :cc.Grid3DAction +local Waves3D={ } +cc.Waves3D=Waves3D + + + + +---* brief Set the amplitude rate of the effect.<br> +---* param amplitudeRate The value of amplitude rate will be set. +---@param amplitudeRate float +---@return self +function Waves3D:setAmplitudeRate (amplitudeRate) end +---* brief Initializes an action with duration, grid size, waves and amplitude.<br> +---* param duration Specify the duration of the Waves3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param waves Specify the waves count of the Waves3D action.<br> +---* param amplitude Specify the amplitude of the Waves3D action.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param waves unsigned_int +---@param amplitude float +---@return boolean +function Waves3D:initWithDuration (duration,gridSize,waves,amplitude) end +---* brief Get the amplitude of the effect.<br> +---* return Return the amplitude of the effect. +---@return float +function Waves3D:getAmplitude () end +---* brief Get the amplitude rate of the effect.<br> +---* return Return the amplitude rate of the effect. +---@return float +function Waves3D:getAmplitudeRate () end +---* brief Set the amplitude to the effect.<br> +---* param amplitude The value of amplitude will be set. +---@param amplitude float +---@return self +function Waves3D:setAmplitude (amplitude) end +---* brief Create an action with duration, grid size, waves and amplitude.<br> +---* param duration Specify the duration of the Waves3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param waves Specify the waves count of the Waves3D action.<br> +---* param amplitude Specify the amplitude of the Waves3D action.<br> +---* return If the creation success, return a pointer of Waves3D action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param waves unsigned_int +---@param amplitude float +---@return self +function Waves3D:create (duration,gridSize,waves,amplitude) end +---* +---@return self +function Waves3D:clone () end +---* +---@param time float +---@return self +function Waves3D:update (time) end +---* +---@return self +function Waves3D:Waves3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/cc.WavesTiles3D.lua b/meta/3rd/Cocos4.0/cc.WavesTiles3D.lua new file mode 100644 index 00000000..f46b8546 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.WavesTiles3D.lua @@ -0,0 +1,60 @@ + +---@class cc.WavesTiles3D :cc.TiledGrid3DAction +local WavesTiles3D={ } +cc.WavesTiles3D=WavesTiles3D + + + + +---* brief Set the amplitude rate of the effect.<br> +---* param amplitudeRate The value of amplitude rate will be set. +---@param amplitudeRate float +---@return self +function WavesTiles3D:setAmplitudeRate (amplitudeRate) end +---* brief Initializes an action with duration, grid size, waves count and amplitude.<br> +---* param duration Specify the duration of the WavesTiles3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param waves Specify the waves count of the WavesTiles3D action.<br> +---* param amplitude Specify the amplitude of the WavesTiles3D action.<br> +---* return If the initialization success, return true; otherwise, return false. +---@param duration float +---@param gridSize size_table +---@param waves unsigned_int +---@param amplitude float +---@return boolean +function WavesTiles3D:initWithDuration (duration,gridSize,waves,amplitude) end +---* brief Get the amplitude of the effect.<br> +---* return Return the amplitude of the effect. +---@return float +function WavesTiles3D:getAmplitude () end +---* brief Get the amplitude rate of the effect.<br> +---* return Return the amplitude rate of the effect. +---@return float +function WavesTiles3D:getAmplitudeRate () end +---* brief Set the amplitude to the effect.<br> +---* param amplitude The value of amplitude will be set. +---@param amplitude float +---@return self +function WavesTiles3D:setAmplitude (amplitude) end +---* brief Create the action with a number of waves, the waves amplitude, the grid size and the duration.<br> +---* param duration Specify the duration of the WavesTiles3D action. It's a value in seconds.<br> +---* param gridSize Specify the size of the grid.<br> +---* param waves Specify the waves count of the WavesTiles3D action.<br> +---* param amplitude Specify the amplitude of the WavesTiles3D action.<br> +---* return If the creation success, return a pointer of WavesTiles3D action; otherwise, return nil. +---@param duration float +---@param gridSize size_table +---@param waves unsigned_int +---@param amplitude float +---@return self +function WavesTiles3D:create (duration,gridSize,waves,amplitude) end +---* +---@return self +function WavesTiles3D:clone () end +---* +---@param time float +---@return self +function WavesTiles3D:update (time) end +---* +---@return self +function WavesTiles3D:WavesTiles3D () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccb.Program.lua b/meta/3rd/Cocos4.0/ccb.Program.lua new file mode 100644 index 00000000..e114bc9f --- /dev/null +++ b/meta/3rd/Cocos4.0/ccb.Program.lua @@ -0,0 +1,53 @@ + +---@class ccb.Program :cc.Ref +local Program={ } +ccb.Program=Program + + + + +---* Get maximum vertex location.<br> +---* return Maximum vertex locaiton. +---@return int +function Program:getMaxVertexLocation () end +---* Get maximum fragment location.<br> +---* return Maximum fragment location. +---@return int +function Program:getMaxFragmentLocation () end +---* Get fragment shader.<br> +---* Fragment shader. +---@return string +function Program:getFragmentShader () end +---* Get uniform buffer size in bytes that can hold all the uniforms.<br> +---* param stage Specifies the shader stage. The symbolic constant can be either VERTEX or FRAGMENT.<br> +---* return The uniform buffer size in bytes. +---@param stage int +---@return unsigned_int +function Program:getUniformBufferSize (stage) end +---@overload fun(string0:int):self +---@overload fun(string:string):self +---@param uniform string +---@return cc.backend.UniformLocation +function Program:getUniformLocation (uniform) end +---* Get engine built-in program type.<br> +---* return The built-in program type. +---@return int +function Program:getProgramType () end +---* Get active vertex attributes.<br> +---* return Active vertex attributes. key is active attribute name, Value is corresponding attribute info. +---@return map_table +function Program:getActiveAttributes () end +---@overload fun(string0:int):self +---@overload fun(string:string):self +---@param name string +---@return int +function Program:getAttributeLocation (name) end +---* Get vertex shader.<br> +---* return Vertex shader. +---@return string +function Program:getVertexShader () end +---* Get engine built-in program.<br> +---* param type Specifies the built-in program type. +---@param type int +---@return cc.backend.Program +function Program:getBuiltinProgram (type) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccb.ProgramState.lua b/meta/3rd/Cocos4.0/ccb.ProgramState.lua new file mode 100644 index 00000000..d038c4ee --- /dev/null +++ b/meta/3rd/Cocos4.0/ccb.ProgramState.lua @@ -0,0 +1,42 @@ + +---@class ccb.ProgramState :cc.Ref +local ProgramState={ } +ccb.ProgramState=ProgramState + + + + +---* Set texture.<br> +---* param uniformLocation Specifies texture location.<br> +---* param slot Specifies texture slot selector.<br> +---* param texture Specifies a pointer to backend texture. +---@param uniformLocation cc.backend.UniformLocation +---@param slot unsigned_int +---@param texture cc.backend.TextureBackend +---@return cc.backend.ProgramState +function ProgramState:setTexture (uniformLocation,slot,texture) end +---* Deep clone ProgramState +---@return cc.backend.ProgramState +function ProgramState:clone () end +---* Sets a uniform auto-binding.<br> +---* This method parses the passed in autoBinding string and attempts to convert it<br> +---* to an enumeration value. If it matches to one of the predefined strings, it will create a<br> +---* callback to get the correct value at runtime.<br> +---* param uniformName The name of the material parameter to store an auto-binding for.<br> +---* param autoBinding A string matching one of the built-in AutoBinding enum constants. +---@param uniformName string +---@param autoBinding string +---@return cc.backend.ProgramState +function ProgramState:setParameterAutoBinding (uniformName,autoBinding) end +---* Get the program object. +---@return cc.backend.Program +function ProgramState:getProgram () end +---@overload fun(string0:int):self +---@overload fun(string:string):self +---@param name string +---@return int +function ProgramState:getAttributeLocation (name) end +---* param program Specifies the program. +---@param program cc.backend.Program +---@return cc.backend.ProgramState +function ProgramState:ProgramState (program) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccb.Texture2DBackend.lua b/meta/3rd/Cocos4.0/ccb.Texture2DBackend.lua new file mode 100644 index 00000000..d25383ab --- /dev/null +++ b/meta/3rd/Cocos4.0/ccb.Texture2DBackend.lua @@ -0,0 +1,72 @@ + +---@class ccb.Texture2DBackend :ccb.TextureBackend +local Texture2DBackend={ } +ccb.Texture2DBackend=Texture2DBackend + + + + +---* Get texture height.<br> +---* return Texture height. +---@return unsigned_int +function Texture2DBackend:getHeight () end +---* Get texture width.<br> +---* return Texture width. +---@return unsigned_int +function Texture2DBackend:getWidth () end +---* Update a two-dimensional texture image<br> +---* param data Specifies a pointer to the image data in memory.<br> +---* param width Specifies the width of the texture image.<br> +---* param height Specifies the height of the texture image.<br> +---* param level Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. +---@param data unsigned_char +---@param width unsigned_int +---@param height unsigned_int +---@param level unsigned_int +---@return cc.backend.Texture2DBackend +function Texture2DBackend:updateData (data,width,height,level) end +---* Update a two-dimensional texture image in a compressed format<br> +---* param data Specifies a pointer to the compressed image data in memory.<br> +---* param width Specifies the width of the texture image.<br> +---* param height Specifies the height of the texture image.<br> +---* param dataLen Specifies the totoal size of compressed image in bytes.<br> +---* param level Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. +---@param data unsigned_char +---@param width unsigned_int +---@param height unsigned_int +---@param dataLen unsigned_int +---@param level unsigned_int +---@return cc.backend.Texture2DBackend +function Texture2DBackend:updateCompressedData (data,width,height,dataLen,level) end +---* Update a two-dimensional texture subimage<br> +---* param xoffset Specifies a texel offset in the x direction within the texture array.<br> +---* param yoffset Specifies a texel offset in the y direction within the texture array.<br> +---* param width Specifies the width of the texture subimage.<br> +---* param height Specifies the height of the texture subimage.<br> +---* param level Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.<br> +---* param data Specifies a pointer to the image data in memory. +---@param xoffset unsigned_int +---@param yoffset unsigned_int +---@param width unsigned_int +---@param height unsigned_int +---@param level unsigned_int +---@param data unsigned_char +---@return cc.backend.Texture2DBackend +function Texture2DBackend:updateSubData (xoffset,yoffset,width,height,level,data) end +---* Update a two-dimensional texture subimage in a compressed format<br> +---* param xoffset Specifies a texel offset in the x direction within the texture array.<br> +---* param yoffset Specifies a texel offset in the y direction within the texture array.<br> +---* param width Specifies the width of the texture subimage.<br> +---* param height Specifies the height of the texture subimage.<br> +---* param dataLen Specifies the totoal size of compressed subimage in bytes.<br> +---* param level Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.<br> +---* param data Specifies a pointer to the compressed image data in memory. +---@param xoffset unsigned_int +---@param yoffset unsigned_int +---@param width unsigned_int +---@param height unsigned_int +---@param dataLen unsigned_int +---@param level unsigned_int +---@param data unsigned_char +---@return cc.backend.Texture2DBackend +function Texture2DBackend:updateCompressedSubData (xoffset,yoffset,width,height,dataLen,level,data) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccb.TextureBackend.lua b/meta/3rd/Cocos4.0/ccb.TextureBackend.lua new file mode 100644 index 00000000..d2dcfa04 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccb.TextureBackend.lua @@ -0,0 +1,50 @@ + +---@class ccb.TextureBackend :cc.Ref +local TextureBackend={ } +ccb.TextureBackend=TextureBackend + + + + +---* Get texture format.<br> +---* return Texture format. +---@return int +function TextureBackend:getTextureFormat () end +---* Get texture type. Symbolic constant value can be either TEXTURE_2D or TEXTURE_CUBE.<br> +---* return Texture type. +---@return int +function TextureBackend:getTextureType () end +---* Update sampler<br> +---* param sampler Specifies the sampler descriptor. +---@param sampler cc.backend.SamplerDescriptor +---@return cc.backend.TextureBackend +function TextureBackend:updateSamplerDescriptor (sampler) end +---* Update texture description.<br> +---* param descriptor Specifies texture and sampler descriptor. +---@param descriptor cc.backend.TextureDescriptor +---@return cc.backend.TextureBackend +function TextureBackend:updateTextureDescriptor (descriptor) end +---* Get texture usage. Symbolic constant can be READ, WRITE or RENDER_TARGET.<br> +---* return Texture usage. +---@return int +function TextureBackend:getTextureUsage () end +---* Check if mipmap had generated before.<br> +---* return true if the mipmap has always generated before, otherwise false. +---@return boolean +function TextureBackend:hasMipmaps () end +---* / Generate mipmaps. +---@return cc.backend.TextureBackend +function TextureBackend:generateMipmaps () end +---* Read a block of pixels from the drawable texture<br> +---* param x,y Specify the window coordinates of the first pixel that is read from the drawable texture. This location is the lower left corner of a rectangular block of pixels.<br> +---* param width,height Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel.<br> +---* param flipImage Specifies if needs to flip the image.<br> +---* param callback Specifies a call back function to deal with the image. +---@param x unsigned_int +---@param y unsigned_int +---@param width unsigned_int +---@param height unsigned_int +---@param flipImage boolean +---@param callback function +---@return cc.backend.TextureBackend +function TextureBackend:getBytes (x,y,width,height,flipImage,callback) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccb.TextureCubemapBackend.lua b/meta/3rd/Cocos4.0/ccb.TextureCubemapBackend.lua new file mode 100644 index 00000000..ad051809 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccb.TextureCubemapBackend.lua @@ -0,0 +1,15 @@ + +---@class ccb.TextureCubemapBackend :ccb.TextureBackend +local TextureCubemapBackend={ } +ccb.TextureCubemapBackend=TextureCubemapBackend + + + + +---* Update texutre cube data in give slice side.<br> +---* param side Specifies which slice texture of cube to be update.<br> +---* param data Specifies a pointer to the image data in memory. +---@param side int +---@param data void +---@return cc.backend.TextureCubemapBackend +function TextureCubemapBackend:updateFaceData (side,data) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccb.VertexLayout.lua b/meta/3rd/Cocos4.0/ccb.VertexLayout.lua new file mode 100644 index 00000000..c4c7c25f --- /dev/null +++ b/meta/3rd/Cocos4.0/ccb.VertexLayout.lua @@ -0,0 +1,41 @@ + +---@class ccb.VertexLayout +local VertexLayout={ } +ccb.VertexLayout=VertexLayout + + + + +---* Get vertex step function. Default value is VERTEX.<br> +---* return Vertex step function.<br> +---* note Used in metal. +---@return int +function VertexLayout:getVertexStepMode () end +---* Check if vertex layout has been set. +---@return boolean +function VertexLayout:isValid () end +---* Set stride of vertices.<br> +---* param stride Specifies the distance between the data of two vertices, in bytes. +---@param stride unsigned_int +---@return cc.backend.VertexLayout +function VertexLayout:setLayout (stride) end +---* Set attribute values to name.<br> +---* param name Specifies the attribute name.<br> +---* param index Specifies the index of the generic vertex attribute to be modified.<br> +---* param format Specifies how the vertex attribute data is laid out in memory.<br> +---* param offset Specifies the byte offset to the first component of the first generic vertex attribute.<br> +---* param needToBeNormallized Specifies whether fixed-point data values should be normalized (true) or converted directly as fixed-point values (false) when they are accessed. +---@param name string +---@param index unsigned_int +---@param format int +---@param offset unsigned_int +---@param needToBeNormallized boolean +---@return cc.backend.VertexLayout +function VertexLayout:setAttribute (name,index,format,offset,needToBeNormallized) end +---* Get the distance between the data of two vertices, in bytes.<br> +---* return The distance between the data of two vertices, in bytes. +---@return unsigned_int +function VertexLayout:getStride () end +---* +---@return cc.backend.VertexLayout +function VertexLayout:VertexLayout () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionFadeFrame.lua b/meta/3rd/Cocos4.0/ccs.ActionFadeFrame.lua new file mode 100644 index 00000000..fa676d47 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionFadeFrame.lua @@ -0,0 +1,26 @@ + +---@class ccs.ActionFadeFrame :ccs.ActionFrame +local ActionFadeFrame={ } +ccs.ActionFadeFrame=ActionFadeFrame + + + + +---* Gets the fade action opacity.<br> +---* return the fade action opacity. +---@return int +function ActionFadeFrame:getOpacity () end +---* Gets the ActionInterval of ActionFrame.<br> +---* param duration the duration time of ActionFrame<br> +---* return ActionInterval +---@param duration float +---@return cc.ActionInterval +function ActionFadeFrame:getAction (duration) end +---* Changes the fade action opacity.<br> +---* param opacity the fade action opacity +---@param opacity int +---@return self +function ActionFadeFrame:setOpacity (opacity) end +---* Default constructor +---@return self +function ActionFadeFrame:ActionFadeFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionFrame.lua b/meta/3rd/Cocos4.0/ccs.ActionFrame.lua new file mode 100644 index 00000000..029ab3c1 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionFrame.lua @@ -0,0 +1,58 @@ + +---@class ccs.ActionFrame :cc.Ref +local ActionFrame={ } +ccs.ActionFrame=ActionFrame + + + + +---@overload fun(float:float,ccs.ActionFrame:ccs.ActionFrame):self +---@overload fun(float:float):self +---@param duration float +---@param srcFrame ccs.ActionFrame +---@return cc.ActionInterval +function ActionFrame:getAction (duration,srcFrame) end +---* Gets the type of action frame<br> +---* return the type of action frame +---@return int +function ActionFrame:getFrameType () end +---* Changes the time of action frame<br> +---* param fTime the time of action frame +---@param fTime float +---@return self +function ActionFrame:setFrameTime (fTime) end +---* Changes the easing type.<br> +---* param easingType the easing type. +---@param easingType int +---@return self +function ActionFrame:setEasingType (easingType) end +---* Gets the time of action frame<br> +---* return fTime the time of action frame +---@return float +function ActionFrame:getFrameTime () end +---* Gets the index of action frame<br> +---* return the index of action frame +---@return int +function ActionFrame:getFrameIndex () end +---* Changes the type of action frame<br> +---* param frameType the type of action frame +---@param frameType int +---@return self +function ActionFrame:setFrameType (frameType) end +---* Changes the index of action frame<br> +---* param index the index of action frame +---@param index int +---@return self +function ActionFrame:setFrameIndex (index) end +---* Set the ActionInterval easing parameter.<br> +---* param parameter the parameter for frame ease +---@param parameter array_table +---@return self +function ActionFrame:setEasingParameter (parameter) end +---* Gets the easing type.<br> +---* return the easing type. +---@return int +function ActionFrame:getEasingType () end +---* Default constructor +---@return self +function ActionFrame:ActionFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionManagerEx.lua b/meta/3rd/Cocos4.0/ccs.ActionManagerEx.lua new file mode 100644 index 00000000..e5bdbac4 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionManagerEx.lua @@ -0,0 +1,47 @@ + +---@class ccs.ActionManagerEx :cc.Ref +local ActionManagerEx={ } +ccs.ActionManagerEx=ActionManagerEx + + + + +---* Stop an Action with a name.<br> +---* param jsonName UI file name<br> +---* param actionName action name in the UIfile.<br> +---* return ActionObject which named as the param name +---@param jsonName char +---@param actionName char +---@return ccs.ActionObject +function ActionManagerEx:stopActionByName (jsonName,actionName) end +---* Gets an ActionObject with a name.<br> +---* param jsonName UI file name<br> +---* param actionName action name in the UI file.<br> +---* return ActionObject which named as the param name +---@param jsonName char +---@param actionName char +---@return ccs.ActionObject +function ActionManagerEx:getActionByName (jsonName,actionName) end +---* +---@return int +function ActionManagerEx:getStudioVersionNumber () end +---@overload fun(char:char,char:char,cc.CallFunc:cc.CallFunc):self +---@overload fun(char:char,char:char):self +---@param jsonName char +---@param actionName char +---@param func cc.CallFunc +---@return ccs.ActionObject +function ActionManagerEx:playActionByName (jsonName,actionName,func) end +---* Release all actions. +---@return self +function ActionManagerEx:releaseActions () end +---* Purges ActionManager point.<br> +---* js purge<br> +---* lua destroyActionManager +---@return self +function ActionManagerEx:destroyInstance () end +---* Gets the static instance of ActionManager.<br> +---* js getInstance<br> +---* lua getInstance +---@return self +function ActionManagerEx:getInstance () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionMoveFrame.lua b/meta/3rd/Cocos4.0/ccs.ActionMoveFrame.lua new file mode 100644 index 00000000..fe8c520b --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionMoveFrame.lua @@ -0,0 +1,26 @@ + +---@class ccs.ActionMoveFrame :ccs.ActionFrame +local ActionMoveFrame={ } +ccs.ActionMoveFrame=ActionMoveFrame + + + + +---* Changes the move action position.<br> +---* param the move action position. +---@param pos vec2_table +---@return self +function ActionMoveFrame:setPosition (pos) end +---* Gets the ActionInterval of ActionFrame.<br> +---* param duration the duration time of ActionFrame<br> +---* return ActionInterval +---@param duration float +---@return cc.ActionInterval +function ActionMoveFrame:getAction (duration) end +---* Gets the move action position.<br> +---* return the move action position. +---@return vec2_table +function ActionMoveFrame:getPosition () end +---* Default constructor +---@return self +function ActionMoveFrame:ActionMoveFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionObject.lua b/meta/3rd/Cocos4.0/ccs.ActionObject.lua new file mode 100644 index 00000000..3f3a2624 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionObject.lua @@ -0,0 +1,84 @@ + +---@class ccs.ActionObject :cc.Ref +local ActionObject={ } +ccs.ActionObject=ActionObject + + + + +---* Sets the current time of frame.<br> +---* param fTime the current time of frame +---@param fTime float +---@return self +function ActionObject:setCurrentTime (fTime) end +---* Pause the action. +---@return self +function ActionObject:pause () end +---* Sets name for object<br> +---* param name name of object +---@param name char +---@return self +function ActionObject:setName (name) end +---* Sets the time interval of frame.<br> +---* param fTime the time interval of frame +---@param fTime float +---@return self +function ActionObject:setUnitTime (fTime) end +---* Gets the total time of frame.<br> +---* return the total time of frame +---@return float +function ActionObject:getTotalTime () end +---* Gets name of object<br> +---* return name of object +---@return char +function ActionObject:getName () end +---* Stop the action. +---@return self +function ActionObject:stop () end +---@overload fun(cc.CallFunc:cc.CallFunc):self +---@overload fun():self +---@param func cc.CallFunc +---@return self +function ActionObject:play (func) end +---* Gets the current time of frame.<br> +---* return the current time of frame +---@return float +function ActionObject:getCurrentTime () end +---* Removes a ActionNode which play the action.<br> +---* param node the ActionNode which play the action +---@param node ccs.ActionNode +---@return self +function ActionObject:removeActionNode (node) end +---* Gets if the action will loop play.<br> +---* return that if the action will loop play +---@return boolean +function ActionObject:getLoop () end +---* Adds a ActionNode to play the action.<br> +---* param node the ActionNode which will play the action +---@param node ccs.ActionNode +---@return self +function ActionObject:addActionNode (node) end +---* Gets the time interval of frame.<br> +---* return the time interval of frame +---@return float +function ActionObject:getUnitTime () end +---* Return if the action is playing.<br> +---* return true if the action is playing, false the otherwise +---@return boolean +function ActionObject:isPlaying () end +---* +---@param fTime float +---@return self +function ActionObject:updateToFrameByTime (fTime) end +---* Sets if the action will loop play.<br> +---* param bLoop that if the action will loop play +---@param bLoop boolean +---@return self +function ActionObject:setLoop (bLoop) end +---* +---@param dt float +---@return self +function ActionObject:simulationActionUpdate (dt) end +---* Default constructor +---@return self +function ActionObject:ActionObject () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionRotationFrame.lua b/meta/3rd/Cocos4.0/ccs.ActionRotationFrame.lua new file mode 100644 index 00000000..2553cf48 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionRotationFrame.lua @@ -0,0 +1,26 @@ + +---@class ccs.ActionRotationFrame :ccs.ActionFrame +local ActionRotationFrame={ } +ccs.ActionRotationFrame=ActionRotationFrame + + + + +---* Changes rotate action rotation.<br> +---* param rotation rotate action rotation. +---@param rotation float +---@return self +function ActionRotationFrame:setRotation (rotation) end +---@overload fun(float:float,ccs.ActionFrame:ccs.ActionFrame):cc.ActionInterval +---@overload fun(float:float):cc.ActionInterval +---@param duration float +---@param srcFrame ccs.ActionFrame +---@return cc.ActionInterval +function ActionRotationFrame:getAction (duration,srcFrame) end +---* Gets the rotate action rotation.<br> +---* return the rotate action rotation. +---@return float +function ActionRotationFrame:getRotation () end +---* Default constructor +---@return self +function ActionRotationFrame:ActionRotationFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionScaleFrame.lua b/meta/3rd/Cocos4.0/ccs.ActionScaleFrame.lua new file mode 100644 index 00000000..4213b818 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionScaleFrame.lua @@ -0,0 +1,35 @@ + +---@class ccs.ActionScaleFrame :ccs.ActionFrame +local ActionScaleFrame={ } +ccs.ActionScaleFrame=ActionScaleFrame + + + + +---* Changes the scale action scaleY.<br> +---* param rotation the scale action scaleY. +---@param scaleY float +---@return self +function ActionScaleFrame:setScaleY (scaleY) end +---* Changes the scale action scaleX.<br> +---* param the scale action scaleX. +---@param scaleX float +---@return self +function ActionScaleFrame:setScaleX (scaleX) end +---* Gets the scale action scaleY.<br> +---* return the scale action scaleY. +---@return float +function ActionScaleFrame:getScaleY () end +---* Gets the scale action scaleX.<br> +---* return the scale action scaleX. +---@return float +function ActionScaleFrame:getScaleX () end +---* Gets the ActionInterval of ActionFrame.<br> +---* param duration the duration time of ActionFrame<br> +---* return ActionInterval +---@param duration float +---@return cc.ActionInterval +function ActionScaleFrame:getAction (duration) end +---* Default constructor +---@return self +function ActionScaleFrame:ActionScaleFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionTimeline.lua b/meta/3rd/Cocos4.0/ccs.ActionTimeline.lua new file mode 100644 index 00000000..0b0aa565 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionTimeline.lua @@ -0,0 +1,164 @@ + +---@class ccs.ActionTimeline :cc.Action@all parent class: Action,PlayableProtocol +local ActionTimeline={ } +ccs.ActionTimeline=ActionTimeline + + + + +---* +---@return self +function ActionTimeline:clearFrameEndCallFuncs () end +---* add a frame end call back to animation's end frame<br> +---* param animationName @addFrameEndCallFunc, make the animationName as funcKey<br> +---* param func the callback function +---@param animationName string +---@param func function +---@return self +function ActionTimeline:setAnimationEndCallFunc (animationName,func) end +---* add Timeline to ActionTimeline +---@param timeline ccs.Timeline +---@return self +function ActionTimeline:addTimeline (timeline) end +---* Get current frame. +---@return int +function ActionTimeline:getCurrentFrame () end +---* Start frame index of this action +---@return int +function ActionTimeline:getStartFrame () end +---* Pause the animation. +---@return self +function ActionTimeline:pause () end +---* / @{/ @name implement Playable Protocol +---@return self +function ActionTimeline:start () end +---* +---@return boolean +function ActionTimeline:init () end +---* +---@param timeline ccs.Timeline +---@return self +function ActionTimeline:removeTimeline (timeline) end +---* +---@return self +function ActionTimeline:clearFrameEventCallFunc () end +---* Last frame callback will call when arriving last frame +---@param listener function +---@return self +function ActionTimeline:setLastFrameCallFunc (listener) end +---* +---@return array_table +function ActionTimeline:getTimelines () end +---* +---@param animationName string +---@param loop boolean +---@return self +function ActionTimeline:play (animationName,loop) end +---* +---@param animationName string +---@return ccs.AnimationInfo +function ActionTimeline:getAnimationInfo (animationName) end +---* Resume the animation. +---@return self +function ActionTimeline:resume () end +---* add a callback function after played frameIndex<br> +---* param frameIndex the frame index call back after<br> +---* param funcKey for identity the callback function<br> +---* param func the callback function +---@param frameIndex int +---@param funcKey string +---@param func function +---@return self +function ActionTimeline:addFrameEndCallFunc (frameIndex,funcKey,func) end +---* +---@param animationName string +---@return self +function ActionTimeline:removeAnimationInfo (animationName) end +---* Get current animation speed. +---@return float +function ActionTimeline:getTimeSpeed () end +---* AnimationInfo +---@param animationInfo ccs.AnimationInfo +---@return self +function ActionTimeline:addAnimationInfo (animationInfo) end +---* +---@return int +function ActionTimeline:getDuration () end +---* Goto the specified frame index, and pause at this index.<br> +---* param startIndex The animation will pause at this index. +---@param startIndex int +---@return self +function ActionTimeline:gotoFrameAndPause (startIndex) end +---* Whether or not Action is playing. +---@return boolean +function ActionTimeline:isPlaying () end +---* +---@param frameIndex int +---@return self +function ActionTimeline:removeFrameEndCallFuncs (frameIndex) end +---@overload fun(int:int,int1:boolean):self +---@overload fun(int:int):self +---@overload fun(int:int,int:int,int2:boolean):self +---@overload fun(int:int,int:int,int:int,boolean:boolean):self +---@param startIndex int +---@param endIndex int +---@param currentFrameIndex int +---@param loop boolean +---@return self +function ActionTimeline:gotoFrameAndPlay (startIndex,endIndex,currentFrameIndex,loop) end +---* +---@param animationName string +---@return boolean +function ActionTimeline:IsAnimationInfoExists (animationName) end +---* End frame of this action.<br> +---* When action play to this frame, if action is not loop, then it will stop, <br> +---* or it will play from start frame again. +---@return int +function ActionTimeline:getEndFrame () end +---* Set the animation speed, this will speed up or slow down the speed. +---@param speed float +---@return self +function ActionTimeline:setTimeSpeed (speed) end +---* +---@return self +function ActionTimeline:clearLastFrameCallFunc () end +---* duration of the whole action +---@param duration int +---@return self +function ActionTimeline:setDuration (duration) end +---* Set current frame index, this will cause action plays to this frame. +---@param frameIndex int +---@return self +function ActionTimeline:setCurrentFrame (frameIndex) end +---* +---@param frameIndex int +---@param funcKey string +---@return self +function ActionTimeline:removeFrameEndCallFunc (frameIndex,funcKey) end +---* +---@return self +function ActionTimeline:create () end +---* +---@param target cc.Node +---@return self +function ActionTimeline:startWithTarget (target) end +---* Returns a reverse of ActionTimeline. <br> +---* Not implement yet. +---@return self +function ActionTimeline:reverse () end +---* Returns a clone of ActionTimeline +---@return self +function ActionTimeline:clone () end +---* +---@return self +function ActionTimeline:stop () end +---* +---@param delta float +---@return self +function ActionTimeline:step (delta) end +---* +---@return boolean +function ActionTimeline:isDone () end +---* +---@return self +function ActionTimeline:ActionTimeline () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionTimelineCache.lua b/meta/3rd/Cocos4.0/ccs.ActionTimelineCache.lua new file mode 100644 index 00000000..32c7278a --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionTimelineCache.lua @@ -0,0 +1,55 @@ + +---@class ccs.ActionTimelineCache +local ActionTimelineCache={ } +ccs.ActionTimelineCache=ActionTimelineCache + + + + +---* Clone a action with the specified name from the container. +---@param fileName string +---@return ccs.ActionTimeline +function ActionTimelineCache:createActionFromJson (fileName) end +---* +---@param fileName string +---@return ccs.ActionTimeline +function ActionTimelineCache:createActionWithFlatBuffersFile (fileName) end +---* +---@param fileName string +---@return ccs.ActionTimeline +function ActionTimelineCache:loadAnimationActionWithFlatBuffersFile (fileName) end +---* +---@param fileName string +---@param content string +---@return ccs.ActionTimeline +function ActionTimelineCache:createActionFromContent (fileName,content) end +---* +---@return self +function ActionTimelineCache:purge () end +---* +---@return self +function ActionTimelineCache:init () end +---* +---@param fileName string +---@param content string +---@return ccs.ActionTimeline +function ActionTimelineCache:loadAnimationActionWithContent (fileName,content) end +---* +---@param fileName string +---@return ccs.ActionTimeline +function ActionTimelineCache:loadAnimationActionWithFile (fileName) end +---* Remove action with filename, and also remove other resource relate with this file +---@param fileName string +---@return self +function ActionTimelineCache:removeAction (fileName) end +---* +---@param fileName string +---@return ccs.ActionTimeline +function ActionTimelineCache:createActionWithFlatBuffersForSimulator (fileName) end +---* Destroys the singleton +---@return self +function ActionTimelineCache:destroyInstance () end +---* +---@param fileName string +---@return ccs.ActionTimeline +function ActionTimelineCache:createAction (fileName) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionTimelineData.lua b/meta/3rd/Cocos4.0/ccs.ActionTimelineData.lua new file mode 100644 index 00000000..4bdfa867 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionTimelineData.lua @@ -0,0 +1,26 @@ + +---@class ccs.ActionTimelineData :cc.Ref +local ActionTimelineData={ } +ccs.ActionTimelineData=ActionTimelineData + + + + +---* +---@param actionTag int +---@return self +function ActionTimelineData:setActionTag (actionTag) end +---* +---@param actionTag int +---@return boolean +function ActionTimelineData:init (actionTag) end +---* +---@return int +function ActionTimelineData:getActionTag () end +---* +---@param actionTag int +---@return self +function ActionTimelineData:create (actionTag) end +---* +---@return self +function ActionTimelineData:ActionTimelineData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionTimelineNode.lua b/meta/3rd/Cocos4.0/ccs.ActionTimelineNode.lua new file mode 100644 index 00000000..631002d6 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionTimelineNode.lua @@ -0,0 +1,38 @@ + +---@class ccs.ActionTimelineNode :cc.Node +local ActionTimelineNode={ } +ccs.ActionTimelineNode=ActionTimelineNode + + + + +---* +---@return cc.Node +function ActionTimelineNode:getRoot () end +---* +---@return ccs.ActionTimeline +function ActionTimelineNode:getActionTimeline () end +---* +---@param action ccs.ActionTimeline +---@return self +function ActionTimelineNode:setActionTimeline (action) end +---* +---@param root cc.Node +---@param action ccs.ActionTimeline +---@return boolean +function ActionTimelineNode:init (root,action) end +---* +---@param root cc.Node +---@return self +function ActionTimelineNode:setRoot (root) end +---* +---@param root cc.Node +---@param action ccs.ActionTimeline +---@return self +function ActionTimelineNode:create (root,action) end +---* +---@return boolean +function ActionTimelineNode:init () end +---* +---@return self +function ActionTimelineNode:ActionTimelineNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ActionTintFrame.lua b/meta/3rd/Cocos4.0/ccs.ActionTintFrame.lua new file mode 100644 index 00000000..803a3928 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ActionTintFrame.lua @@ -0,0 +1,26 @@ + +---@class ccs.ActionTintFrame :ccs.ActionFrame +local ActionTintFrame={ } +ccs.ActionTintFrame=ActionTintFrame + + + + +---* Gets the tint action color.<br> +---* return the tint action color. +---@return color3b_table +function ActionTintFrame:getColor () end +---* Gets the ActionInterval of ActionFrame.<br> +---* param duration the duration time of ActionFrame<br> +---* return ActionInterval +---@param duration float +---@return cc.ActionInterval +function ActionTintFrame:getAction (duration) end +---* Changes the tint action color.<br> +---* param ccolor the tint action color +---@param ccolor color3b_table +---@return self +function ActionTintFrame:setColor (ccolor) end +---* Default constructor +---@return self +function ActionTintFrame:ActionTintFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.AlphaFrame.lua b/meta/3rd/Cocos4.0/ccs.AlphaFrame.lua new file mode 100644 index 00000000..75d03adc --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.AlphaFrame.lua @@ -0,0 +1,24 @@ + +---@class ccs.AlphaFrame :ccs.Frame +local AlphaFrame={ } +ccs.AlphaFrame=AlphaFrame + + + + +---* +---@return unsigned_char +function AlphaFrame:getAlpha () end +---* +---@param alpha unsigned_char +---@return self +function AlphaFrame:setAlpha (alpha) end +---* +---@return self +function AlphaFrame:create () end +---* +---@return ccs.Frame +function AlphaFrame:clone () end +---* +---@return self +function AlphaFrame:AlphaFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.AnchorPointFrame.lua b/meta/3rd/Cocos4.0/ccs.AnchorPointFrame.lua new file mode 100644 index 00000000..7bfcfe06 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.AnchorPointFrame.lua @@ -0,0 +1,24 @@ + +---@class ccs.AnchorPointFrame :ccs.Frame +local AnchorPointFrame={ } +ccs.AnchorPointFrame=AnchorPointFrame + + + + +---* +---@param point vec2_table +---@return self +function AnchorPointFrame:setAnchorPoint (point) end +---* +---@return vec2_table +function AnchorPointFrame:getAnchorPoint () end +---* +---@return self +function AnchorPointFrame:create () end +---* +---@return ccs.Frame +function AnchorPointFrame:clone () end +---* +---@return self +function AnchorPointFrame:AnchorPointFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.AnimationData.lua b/meta/3rd/Cocos4.0/ccs.AnimationData.lua new file mode 100644 index 00000000..8c688d6b --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.AnimationData.lua @@ -0,0 +1,25 @@ + +---@class ccs.AnimationData :cc.Ref +local AnimationData={ } +ccs.AnimationData=AnimationData + + + + +---* +---@param movementName string +---@return ccs.MovementData +function AnimationData:getMovement (movementName) end +---* +---@return int +function AnimationData:getMovementCount () end +---* +---@param movData ccs.MovementData +---@return self +function AnimationData:addMovement (movData) end +---* +---@return self +function AnimationData:create () end +---* js ctor +---@return self +function AnimationData:AnimationData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.Armature.lua b/meta/3rd/Cocos4.0/ccs.Armature.lua new file mode 100644 index 00000000..671111f0 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.Armature.lua @@ -0,0 +1,138 @@ + +---@class ccs.Armature :cc.Node@all parent class: Node,BlendProtocol +local Armature={ } +ccs.Armature=Armature + + + + +---* Get a bone with the specified name<br> +---* param name The bone's name you want to get +---@param name string +---@return ccs.Bone +function Armature:getBone (name) end +---* Change a bone's parent with the specified parent name.<br> +---* param bone The bone you want to change parent<br> +---* param parentName The new parent's name. +---@param bone ccs.Bone +---@param parentName string +---@return self +function Armature:changeBoneParent (bone,parentName) end +---* +---@param animation ccs.ArmatureAnimation +---@return self +function Armature:setAnimation (animation) end +---* +---@param x float +---@param y float +---@return ccs.Bone +function Armature:getBoneAtPoint (x,y) end +---* +---@return boolean +function Armature:getArmatureTransformDirty () end +---* +---@param version float +---@return self +function Armature:setVersion (version) end +---* Set contentsize and Calculate anchor point. +---@return self +function Armature:updateOffsetPoint () end +---* +---@return ccs.Bone +function Armature:getParentBone () end +---* Remove a bone with the specified name. If recursion it will also remove child Bone recursionly.<br> +---* param bone The bone you want to remove<br> +---* param recursion Determine whether remove the bone's child recursion. +---@param bone ccs.Bone +---@param recursion boolean +---@return self +function Armature:removeBone (bone,recursion) end +---* +---@return ccs.BatchNode +function Armature:getBatchNode () end +---@overload fun(string:string,ccs.Bone:ccs.Bone):self +---@overload fun(string:string):self +---@param name string +---@param parentBone ccs.Bone +---@return boolean +function Armature:init (name,parentBone) end +---* +---@param parentBone ccs.Bone +---@return self +function Armature:setParentBone (parentBone) end +---* +---@param batchNode ccs.BatchNode +---@return self +function Armature:setBatchNode (batchNode) end +---* js NA<br> +---* lua NA +---@return cc.BlendFunc +function Armature:getBlendFunc () end +---* +---@param armatureData ccs.ArmatureData +---@return self +function Armature:setArmatureData (armatureData) end +---* Add a Bone to this Armature,<br> +---* param bone The Bone you want to add to Armature<br> +---* param parentName The parent Bone's name you want to add to . If it's nullptr, then set Armature to its parent +---@param bone ccs.Bone +---@param parentName string +---@return self +function Armature:addBone (bone,parentName) end +---* +---@return ccs.ArmatureData +function Armature:getArmatureData () end +---* +---@return float +function Armature:getVersion () end +---* +---@return ccs.ArmatureAnimation +function Armature:getAnimation () end +---* +---@return vec2_table +function Armature:getOffsetPoints () end +---* js NA<br> +---* lua NA +---@param blendFunc cc.BlendFunc +---@return self +function Armature:setBlendFunc (blendFunc) end +---* Get Armature's bone dictionary<br> +---* return Armature's bone dictionary +---@return map_table +function Armature:getBoneDic () end +---@overload fun(string:string):self +---@overload fun():self +---@overload fun(string:string,ccs.Bone:ccs.Bone):self +---@param name string +---@param parentBone ccs.Bone +---@return self +function Armature:create (name,parentBone) end +---* +---@param point vec2_table +---@return self +function Armature:setAnchorPoint (point) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function Armature:draw (renderer,transform,flags) end +---* +---@return vec2_table +function Armature:getAnchorPointInPoints () end +---* +---@param dt float +---@return self +function Armature:update (dt) end +---* Init the empty armature +---@return boolean +function Armature:init () end +---* +---@return mat4_table +function Armature:getNodeToParentTransform () end +---* This boundingBox will calculate all bones' boundingBox every time +---@return rect_table +function Armature:getBoundingBox () end +---* js ctor +---@return self +function Armature:Armature () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ArmatureAnimation.lua b/meta/3rd/Cocos4.0/ccs.ArmatureAnimation.lua new file mode 100644 index 00000000..c2a5e809 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ArmatureAnimation.lua @@ -0,0 +1,102 @@ + +---@class ccs.ArmatureAnimation +local ArmatureAnimation={ } +ccs.ArmatureAnimation=ArmatureAnimation + + + + +---* +---@return float +function ArmatureAnimation:getSpeedScale () end +---* Play animation by animation name.<br> +---* param animationName The animation name you want to play<br> +---* param durationTo The frames between two animation changing-over.<br> +---* It's meaning is changing to this animation need how many frames<br> +---* -1 : use the value from MovementData get from flash design panel<br> +---* param loop Whether the animation is loop<br> +---* loop < 0 : use the value from MovementData get from flash design panel<br> +---* loop = 0 : this animation is not loop<br> +---* loop > 0 : this animation is loop +---@param animationName string +---@param durationTo int +---@param loop int +---@return self +function ArmatureAnimation:play (animationName,durationTo,loop) end +---* Go to specified frame and pause current movement. +---@param frameIndex int +---@return self +function ArmatureAnimation:gotoAndPause (frameIndex) end +---* +---@param movementIndexes array_table +---@param durationTo int +---@param loop boolean +---@return self +function ArmatureAnimation:playWithIndexes (movementIndexes,durationTo,loop) end +---* +---@param data ccs.AnimationData +---@return self +function ArmatureAnimation:setAnimationData (data) end +---* Scale animation play speed.<br> +---* param animationScale Scale value +---@param speedScale float +---@return self +function ArmatureAnimation:setSpeedScale (speedScale) end +---* +---@return ccs.AnimationData +function ArmatureAnimation:getAnimationData () end +---* Go to specified frame and play current movement.<br> +---* You need first switch to the movement you want to play, then call this function.<br> +---* example : playByIndex(0);<br> +---* gotoAndPlay(0);<br> +---* playByIndex(1);<br> +---* gotoAndPlay(0);<br> +---* gotoAndPlay(15); +---@param frameIndex int +---@return self +function ArmatureAnimation:gotoAndPlay (frameIndex) end +---* Init with a Armature<br> +---* param armature The Armature ArmatureAnimation will bind to +---@param armature ccs.Armature +---@return boolean +function ArmatureAnimation:init (armature) end +---* +---@param movementNames array_table +---@param durationTo int +---@param loop boolean +---@return self +function ArmatureAnimation:playWithNames (movementNames,durationTo,loop) end +---* Get movement count +---@return int +function ArmatureAnimation:getMovementCount () end +---* +---@param animationIndex int +---@param durationTo int +---@param loop int +---@return self +function ArmatureAnimation:playWithIndex (animationIndex,durationTo,loop) end +---* Get current movementID<br> +---* return The name of current movement +---@return string +function ArmatureAnimation:getCurrentMovementID () end +---* Create with a Armature<br> +---* param armature The Armature ArmatureAnimation will bind to +---@param armature ccs.Armature +---@return self +function ArmatureAnimation:create (armature) end +---* Pause the Process +---@return self +function ArmatureAnimation:pause () end +---* Stop the Process +---@return self +function ArmatureAnimation:stop () end +---* +---@param dt float +---@return self +function ArmatureAnimation:update (dt) end +---* Resume the Process +---@return self +function ArmatureAnimation:resume () end +---* js ctor +---@return self +function ArmatureAnimation:ArmatureAnimation () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ArmatureData.lua b/meta/3rd/Cocos4.0/ccs.ArmatureData.lua new file mode 100644 index 00000000..e4978073 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ArmatureData.lua @@ -0,0 +1,25 @@ + +---@class ccs.ArmatureData :cc.Ref +local ArmatureData={ } +ccs.ArmatureData=ArmatureData + + + + +---* +---@param boneData ccs.BoneData +---@return self +function ArmatureData:addBoneData (boneData) end +---* +---@return boolean +function ArmatureData:init () end +---* +---@param boneName string +---@return ccs.BoneData +function ArmatureData:getBoneData (boneName) end +---* +---@return self +function ArmatureData:create () end +---* js ctor +---@return self +function ArmatureData:ArmatureData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ArmatureDataManager.lua b/meta/3rd/Cocos4.0/ccs.ArmatureDataManager.lua new file mode 100644 index 00000000..13166c10 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ArmatureDataManager.lua @@ -0,0 +1,103 @@ + +---@class ccs.ArmatureDataManager :cc.Ref +local ArmatureDataManager={ } +ccs.ArmatureDataManager=ArmatureDataManager + + + + +---* brief remove animation data<br> +---* param id the id of the animation data +---@param id string +---@return self +function ArmatureDataManager:removeAnimationData (id) end +---* Add armature data<br> +---* param id The id of the armature data<br> +---* param armatureData ArmatureData * +---@param id string +---@param armatureData ccs.ArmatureData +---@param configFilePath string +---@return self +function ArmatureDataManager:addArmatureData (id,armatureData,configFilePath) end +---@overload fun(string:string,string:string,string:string):self +---@overload fun(string:string):self +---@param imagePath string +---@param plistPath string +---@param configFilePath string +---@return self +function ArmatureDataManager:addArmatureFileInfo (imagePath,plistPath,configFilePath) end +---* +---@param configFilePath string +---@return self +function ArmatureDataManager:removeArmatureFileInfo (configFilePath) end +---* +---@return map_table +function ArmatureDataManager:getTextureDatas () end +---* brief get texture data<br> +---* param id the id of the texture data you want to get<br> +---* return TextureData * +---@param id string +---@return ccs.TextureData +function ArmatureDataManager:getTextureData (id) end +---* brief get armature data<br> +---* param id the id of the armature data you want to get<br> +---* return ArmatureData * +---@param id string +---@return ccs.ArmatureData +function ArmatureDataManager:getArmatureData (id) end +---* brief get animation data from _animationDatas(Dictionary)<br> +---* param id the id of the animation data you want to get<br> +---* return AnimationData * +---@param id string +---@return ccs.AnimationData +function ArmatureDataManager:getAnimationData (id) end +---* brief add animation data<br> +---* param id the id of the animation data<br> +---* return AnimationData * +---@param id string +---@param animationData ccs.AnimationData +---@param configFilePath string +---@return self +function ArmatureDataManager:addAnimationData (id,animationData,configFilePath) end +---* Init ArmatureDataManager +---@return boolean +function ArmatureDataManager:init () end +---* brief remove armature data<br> +---* param id the id of the armature data you want to get +---@param id string +---@return self +function ArmatureDataManager:removeArmatureData (id) end +---* +---@return map_table +function ArmatureDataManager:getArmatureDatas () end +---* brief remove texture data<br> +---* param id the id of the texture data you want to get +---@param id string +---@return self +function ArmatureDataManager:removeTextureData (id) end +---* brief add texture data<br> +---* param id the id of the texture data<br> +---* return TextureData * +---@param id string +---@param textureData ccs.TextureData +---@param configFilePath string +---@return self +function ArmatureDataManager:addTextureData (id,textureData,configFilePath) end +---* +---@return map_table +function ArmatureDataManager:getAnimationDatas () end +---* brief Judge whether or not need auto load sprite file +---@return boolean +function ArmatureDataManager:isAutoLoadSpriteFile () end +---* brief Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name +---@param plistPath string +---@param imagePath string +---@param configFilePath string +---@return self +function ArmatureDataManager:addSpriteFrameFromFile (plistPath,imagePath,configFilePath) end +---* +---@return self +function ArmatureDataManager:destroyInstance () end +---* +---@return self +function ArmatureDataManager:getInstance () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ArmatureDisplayData.lua b/meta/3rd/Cocos4.0/ccs.ArmatureDisplayData.lua new file mode 100644 index 00000000..f6412722 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ArmatureDisplayData.lua @@ -0,0 +1,14 @@ + +---@class ccs.ArmatureDisplayData :ccs.DisplayData +local ArmatureDisplayData={ } +ccs.ArmatureDisplayData=ArmatureDisplayData + + + + +---* +---@return self +function ArmatureDisplayData:create () end +---* js ctor +---@return self +function ArmatureDisplayData:ArmatureDisplayData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.BaseData.lua b/meta/3rd/Cocos4.0/ccs.BaseData.lua new file mode 100644 index 00000000..1feeb5c8 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.BaseData.lua @@ -0,0 +1,21 @@ + +---@class ccs.BaseData :cc.Ref +local BaseData={ } +ccs.BaseData=BaseData + + + + +---* +---@return color4b_table +function BaseData:getColor () end +---* +---@param color color4b_table +---@return self +function BaseData:setColor (color) end +---* +---@return self +function BaseData:create () end +---* js ctor +---@return self +function BaseData:BaseData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.BatchNode.lua b/meta/3rd/Cocos4.0/ccs.BatchNode.lua new file mode 100644 index 00000000..73f87551 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.BatchNode.lua @@ -0,0 +1,32 @@ + +---@class ccs.BatchNode :cc.Node +local BatchNode={ } +ccs.BatchNode=BatchNode + + + + +---* +---@return self +function BatchNode:create () end +---@overload fun(cc.Node:cc.Node,int:int,int2:string):self +---@overload fun(cc.Node:cc.Node,int:int,int:int):self +---@param pChild cc.Node +---@param zOrder int +---@param tag int +---@return self +function BatchNode:addChild (pChild,zOrder,tag) end +---* js NA +---@return boolean +function BatchNode:init () end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function BatchNode:draw (renderer,transform,flags) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function BatchNode:removeChild (child,cleanup) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.BlendFuncFrame.lua b/meta/3rd/Cocos4.0/ccs.BlendFuncFrame.lua new file mode 100644 index 00000000..3b268682 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.BlendFuncFrame.lua @@ -0,0 +1,24 @@ + +---@class ccs.BlendFuncFrame :ccs.Frame +local BlendFuncFrame={ } +ccs.BlendFuncFrame=BlendFuncFrame + + + + +---* +---@return cc.BlendFunc +function BlendFuncFrame:getBlendFunc () end +---* +---@param blendFunc cc.BlendFunc +---@return self +function BlendFuncFrame:setBlendFunc (blendFunc) end +---* +---@return self +function BlendFuncFrame:create () end +---* +---@return ccs.Frame +function BlendFuncFrame:clone () end +---* +---@return self +function BlendFuncFrame:BlendFuncFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.Bone.lua b/meta/3rd/Cocos4.0/ccs.Bone.lua new file mode 100644 index 00000000..2c2b16dc --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.Bone.lua @@ -0,0 +1,166 @@ + +---@class ccs.Bone :cc.Node +local Bone={ } +ccs.Bone=Bone + + + + +---* +---@return boolean +function Bone:isTransformDirty () end +---* +---@param blendFunc cc.BlendFunc +---@return self +function Bone:setBlendFunc (blendFunc) end +---* +---@return boolean +function Bone:isIgnoreMovementBoneData () end +---* Update zorder +---@return self +function Bone:updateZOrder () end +---* +---@return cc.Node +function Bone:getDisplayRenderNode () end +---* +---@return boolean +function Bone:isBlendDirty () end +---* Add a child to this bone, and it will let this child call setParent(Bone *parent) function to set self to it's parent<br> +---* param child the child you want to add +---@param child ccs.Bone +---@return self +function Bone:addChildBone (child) end +---* +---@return ccs.BaseData +function Bone:getWorldInfo () end +---* +---@return ccs.Tween +function Bone:getTween () end +---* Get parent bone<br> +---* return parent bone +---@return self +function Bone:getParentBone () end +---* Update color to render display +---@return self +function Bone:updateColor () end +---* +---@param dirty boolean +---@return self +function Bone:setTransformDirty (dirty) end +---* +---@return int +function Bone:getDisplayRenderNodeType () end +---* +---@param index int +---@return self +function Bone:removeDisplay (index) end +---* +---@param boneData ccs.BoneData +---@return self +function Bone:setBoneData (boneData) end +---* Initializes a Bone with the specified name<br> +---* param name Bone's name. +---@param name string +---@return boolean +function Bone:init (name) end +---* Set parent bone.<br> +---* If parent is null, then also remove this bone from armature.<br> +---* It will not set the Armature, if you want to add the bone to a Armature, you should use Armature::addBone(Bone *bone, const char* parentName).<br> +---* param parent the parent bone.<br> +---* nullptr : remove this bone from armature +---@param parent ccs.Bone +---@return self +function Bone:setParentBone (parent) end +---@overload fun(ccs.DisplayData0:cc.Node,int:int):self +---@overload fun(ccs.DisplayData:ccs.DisplayData,int:int):self +---@param displayData ccs.DisplayData +---@param index int +---@return self +function Bone:addDisplay (displayData,index) end +---* +---@return cc.BlendFunc +function Bone:getBlendFunc () end +---* Remove itself from its parent.<br> +---* param recursion whether or not to remove childBone's display +---@param recursion boolean +---@return self +function Bone:removeFromParent (recursion) end +---* +---@return ccs.ColliderDetector +function Bone:getColliderDetector () end +---* +---@return ccs.Armature +function Bone:getChildArmature () end +---* +---@return ccs.FrameData +function Bone:getTweenData () end +---* +---@param index int +---@param force boolean +---@return self +function Bone:changeDisplayWithIndex (index,force) end +---* +---@param name string +---@param force boolean +---@return self +function Bone:changeDisplayWithName (name,force) end +---* +---@param armature ccs.Armature +---@return self +function Bone:setArmature (armature) end +---* +---@param dirty boolean +---@return self +function Bone:setBlendDirty (dirty) end +---* Removes a child Bone<br> +---* param bone the bone you want to remove +---@param bone ccs.Bone +---@param recursion boolean +---@return self +function Bone:removeChildBone (bone,recursion) end +---* +---@param childArmature ccs.Armature +---@return self +function Bone:setChildArmature (childArmature) end +---* +---@return mat4_table +function Bone:getNodeToArmatureTransform () end +---* +---@return ccs.DisplayManager +function Bone:getDisplayManager () end +---* +---@return ccs.Armature +function Bone:getArmature () end +---* +---@return ccs.BoneData +function Bone:getBoneData () end +---@overload fun(string:string):self +---@overload fun():self +---@param name string +---@return self +function Bone:create (name) end +---* +---@return mat4_table +function Bone:getNodeToWorldTransform () end +---* +---@param zOrder int +---@return self +function Bone:setLocalZOrder (zOrder) end +---* +---@param delta float +---@return self +function Bone:update (delta) end +---* +---@param parentOpacity unsigned_char +---@return self +function Bone:updateDisplayedOpacity (parentOpacity) end +---* Initializes an empty Bone with nothing init. +---@return boolean +function Bone:init () end +---* +---@param parentColor color3b_table +---@return self +function Bone:updateDisplayedColor (parentColor) end +---* js ctor +---@return self +function Bone:Bone () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.BoneData.lua b/meta/3rd/Cocos4.0/ccs.BoneData.lua new file mode 100644 index 00000000..efa0c997 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.BoneData.lua @@ -0,0 +1,25 @@ + +---@class ccs.BoneData :ccs.BaseData +local BoneData={ } +ccs.BoneData=BoneData + + + + +---* +---@param index int +---@return ccs.DisplayData +function BoneData:getDisplayData (index) end +---* +---@return boolean +function BoneData:init () end +---* +---@param displayData ccs.DisplayData +---@return self +function BoneData:addDisplayData (displayData) end +---* +---@return self +function BoneData:create () end +---* js ctor +---@return self +function BoneData:BoneData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.BoneNode.lua b/meta/3rd/Cocos4.0/ccs.BoneNode.lua new file mode 100644 index 00000000..de50aeef --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.BoneNode.lua @@ -0,0 +1,131 @@ + +---@class ccs.BoneNode :cc.Node@all parent class: Node,BlendProtocol +local BoneNode={ } +ccs.BoneNode=BoneNode + + + + +---* +---@return float +function BoneNode:getDebugDrawWidth () end +---@overload fun():self +---@overload fun():self +---@return array_table +function BoneNode:getChildBones () end +---* +---@return cc.BlendFunc +function BoneNode:getBlendFunc () end +---* brief: get all bones in this bone tree +---@return array_table +function BoneNode:getAllSubBones () end +---* +---@param blendFunc cc.BlendFunc +---@return self +function BoneNode:setBlendFunc (blendFunc) end +---* +---@param isDebugDraw boolean +---@return self +function BoneNode:setDebugDrawEnabled (isDebugDraw) end +---* get displayings rect in self transform +---@return rect_table +function BoneNode:getVisibleSkinsRect () end +---* brief: get all skins in this bone tree +---@return array_table +function BoneNode:getAllSubSkins () end +---@overload fun(cc.Node0:string,boolean:boolean):self +---@overload fun(cc.Node:cc.Node,boolean:boolean):self +---@param skin cc.Node +---@param hideOthers boolean +---@return self +function BoneNode:displaySkin (skin,hideOthers) end +---* +---@return boolean +function BoneNode:isDebugDrawEnabled () end +---@overload fun(cc.Node:cc.Node,boolean:boolean,boolean:boolean):self +---@overload fun(cc.Node:cc.Node,boolean:boolean):self +---@param skin cc.Node +---@param display boolean +---@param hideOthers boolean +---@return self +function BoneNode:addSkin (skin,display,hideOthers) end +---* +---@return ccs.SkeletonNode +function BoneNode:getRootSkeletonNode () end +---* +---@param length float +---@return self +function BoneNode:setDebugDrawLength (length) end +---@overload fun():self +---@overload fun():self +---@return array_table +function BoneNode:getSkins () end +---* +---@return array_table +function BoneNode:getVisibleSkins () end +---* +---@param width float +---@return self +function BoneNode:setDebugDrawWidth (width) end +---* +---@return float +function BoneNode:getDebugDrawLength () end +---* +---@param color color4f_table +---@return self +function BoneNode:setDebugDrawColor (color) end +---* +---@return color4f_table +function BoneNode:getDebugDrawColor () end +---@overload fun(int:int):self +---@overload fun():self +---@param length int +---@return self +function BoneNode:create (length) end +---@overload fun(cc.Node:cc.Node,int:int,string2:int):self +---@overload fun(cc.Node:cc.Node,int:int,string:string):self +---@param child cc.Node +---@param localZOrder int +---@param name string +---@return self +function BoneNode:addChild (child,localZOrder,name) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function BoneNode:draw (renderer,transform,flags) end +---* +---@param name string +---@return self +function BoneNode:setName (name) end +---* +---@param anchorPoint vec2_table +---@return self +function BoneNode:setAnchorPoint (anchorPoint) end +---* +---@param localZOrder int +---@return self +function BoneNode:setLocalZOrder (localZOrder) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function BoneNode:removeChild (child,cleanup) end +---* +---@return boolean +function BoneNode:init () end +---* +---@return rect_table +function BoneNode:getBoundingBox () end +---* +---@param contentSize size_table +---@return self +function BoneNode:setContentSize (contentSize) end +---* +---@param visible boolean +---@return self +function BoneNode:setVisible (visible) end +---* +---@return self +function BoneNode:BoneNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ColorFrame.lua b/meta/3rd/Cocos4.0/ccs.ColorFrame.lua new file mode 100644 index 00000000..db979355 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ColorFrame.lua @@ -0,0 +1,24 @@ + +---@class ccs.ColorFrame :ccs.Frame +local ColorFrame={ } +ccs.ColorFrame=ColorFrame + + + + +---* +---@return color3b_table +function ColorFrame:getColor () end +---* +---@param color color3b_table +---@return self +function ColorFrame:setColor (color) end +---* +---@return self +function ColorFrame:create () end +---* +---@return ccs.Frame +function ColorFrame:clone () end +---* +---@return self +function ColorFrame:ColorFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ComAttribute.lua b/meta/3rd/Cocos4.0/ccs.ComAttribute.lua new file mode 100644 index 00000000..bc4eaa14 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ComAttribute.lua @@ -0,0 +1,65 @@ + +---@class ccs.ComAttribute :cc.Component +local ComAttribute={ } +ccs.ComAttribute=ComAttribute + + + + +---* +---@param key string +---@param def float +---@return float +function ComAttribute:getFloat (key,def) end +---* +---@param key string +---@param def string +---@return string +function ComAttribute:getString (key,def) end +---* +---@param key string +---@param value float +---@return self +function ComAttribute:setFloat (key,value) end +---* +---@param key string +---@param value string +---@return self +function ComAttribute:setString (key,value) end +---* +---@param key string +---@param def boolean +---@return boolean +function ComAttribute:getBool (key,def) end +---* +---@param key string +---@param value int +---@return self +function ComAttribute:setInt (key,value) end +---* +---@param jsonFile string +---@return boolean +function ComAttribute:parse (jsonFile) end +---* +---@param key string +---@param def int +---@return int +function ComAttribute:getInt (key,def) end +---* +---@param key string +---@param value boolean +---@return self +function ComAttribute:setBool (key,value) end +---* +---@return self +function ComAttribute:create () end +---* +---@return cc.Ref +function ComAttribute:createInstance () end +---* +---@return boolean +function ComAttribute:init () end +---* +---@param r void +---@return boolean +function ComAttribute:serialize (r) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ComAudio.lua b/meta/3rd/Cocos4.0/ccs.ComAudio.lua new file mode 100644 index 00000000..5c75e872 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ComAudio.lua @@ -0,0 +1,133 @@ + +---@class ccs.ComAudio :cc.Component@all parent class: Component,PlayableProtocol +local ComAudio={ } +ccs.ComAudio=ComAudio + + + + +---* +---@return self +function ComAudio:stopAllEffects () end +---* +---@return float +function ComAudio:getEffectsVolume () end +---* +---@param nSoundId unsigned_int +---@return self +function ComAudio:stopEffect (nSoundId) end +---* +---@return float +function ComAudio:getBackgroundMusicVolume () end +---* +---@return boolean +function ComAudio:willPlayBackgroundMusic () end +---* +---@param volume float +---@return self +function ComAudio:setBackgroundMusicVolume (volume) end +---* / @{/ @name implement Playable Protocol +---@return self +function ComAudio:start () end +---@overload fun():self +---@overload fun(boolean:boolean):self +---@param bReleaseData boolean +---@return self +function ComAudio:stopBackgroundMusic (bReleaseData) end +---* +---@return self +function ComAudio:pauseBackgroundMusic () end +---* +---@return boolean +function ComAudio:isBackgroundMusicPlaying () end +---* +---@return boolean +function ComAudio:isLoop () end +---* +---@return self +function ComAudio:resumeAllEffects () end +---* +---@return self +function ComAudio:pauseAllEffects () end +---* +---@param pszFilePath char +---@return self +function ComAudio:preloadBackgroundMusic (pszFilePath) end +---@overload fun(char:char):self +---@overload fun(char:char,boolean:boolean):self +---@overload fun():self +---@param pszFilePath char +---@param bLoop boolean +---@return self +function ComAudio:playBackgroundMusic (pszFilePath,bLoop) end +---* +---@return self +function ComAudio:stop () end +---* lua endToLua +---@return self +function ComAudio:endToLua () end +---@overload fun(char:char):self +---@overload fun(char:char,boolean:boolean):self +---@overload fun():self +---@param pszFilePath char +---@param bLoop boolean +---@return unsigned_int +function ComAudio:playEffect (pszFilePath,bLoop) end +---* +---@param pszFilePath char +---@return self +function ComAudio:preloadEffect (pszFilePath) end +---* +---@param bLoop boolean +---@return self +function ComAudio:setLoop (bLoop) end +---* +---@param pszFilePath char +---@return self +function ComAudio:unloadEffect (pszFilePath) end +---* +---@return self +function ComAudio:rewindBackgroundMusic () end +---* +---@param nSoundId unsigned_int +---@return self +function ComAudio:pauseEffect (nSoundId) end +---* +---@return self +function ComAudio:resumeBackgroundMusic () end +---* +---@param pszFilePath char +---@return self +function ComAudio:setFile (pszFilePath) end +---* +---@param volume float +---@return self +function ComAudio:setEffectsVolume (volume) end +---* +---@return char +function ComAudio:getFile () end +---* +---@param nSoundId unsigned_int +---@return self +function ComAudio:resumeEffect (nSoundId) end +---* +---@return self +function ComAudio:create () end +---* +---@return cc.Ref +function ComAudio:createInstance () end +---* js NA<br> +---* lua NA +---@return self +function ComAudio:onRemove () end +---* +---@param r void +---@return boolean +function ComAudio:serialize (r) end +---* +---@return boolean +function ComAudio:init () end +---* js NA<br> +---* lua NA +---@return self +function ComAudio:onAdd () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ComController.lua b/meta/3rd/Cocos4.0/ccs.ComController.lua new file mode 100644 index 00000000..bae6f17a --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ComController.lua @@ -0,0 +1,32 @@ + +---@class ccs.ComController :cc.Component@all parent class: Component,InputDelegate +local ComController={ } +ccs.ComController=ComController + + + + +---* +---@return self +function ComController:create () end +---* +---@return cc.Ref +function ComController:createInstance () end +---* js NA<br> +---* lua NA +---@return self +function ComController:onRemove () end +---* +---@param delta float +---@return self +function ComController:update (delta) end +---* +---@return boolean +function ComController:init () end +---* js NA<br> +---* lua NA +---@return self +function ComController:onAdd () end +---* js ctor +---@return self +function ComController:ComController () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ComExtensionData.lua b/meta/3rd/Cocos4.0/ccs.ComExtensionData.lua new file mode 100644 index 00000000..a33c74b4 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ComExtensionData.lua @@ -0,0 +1,42 @@ + +---@class ccs.ComExtensionData :cc.Component +local ComExtensionData={ } +ccs.ComExtensionData=ComExtensionData + + + + +---* +---@param actionTag int +---@return self +function ComExtensionData:setActionTag (actionTag) end +---* +---@return string +function ComExtensionData:getCustomProperty () end +---* +---@return int +function ComExtensionData:getActionTag () end +---* +---@param customProperty string +---@return self +function ComExtensionData:setCustomProperty (customProperty) end +---* +---@return self +function ComExtensionData:create () end +---* +---@return cc.Ref +function ComExtensionData:createInstance () end +---* +---@return boolean +function ComExtensionData:init () end +---* js NA<br> +---* lua NA +---@return self +function ComExtensionData:onRemove () end +---* js NA<br> +---* lua NA +---@return self +function ComExtensionData:onAdd () end +---* +---@return self +function ComExtensionData:ComExtensionData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ComRender.lua b/meta/3rd/Cocos4.0/ccs.ComRender.lua new file mode 100644 index 00000000..f874f218 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ComRender.lua @@ -0,0 +1,36 @@ + +---@class ccs.ComRender :cc.Component +local ComRender={ } +ccs.ComRender=ComRender + + + + +---* +---@param node cc.Node +---@return self +function ComRender:setNode (node) end +---* +---@return cc.Node +function ComRender:getNode () end +---@overload fun(cc.Node:cc.Node,char:char):self +---@overload fun():self +---@param node cc.Node +---@param comName char +---@return self +function ComRender:create (node,comName) end +---* +---@return cc.Ref +function ComRender:createInstance () end +---* +---@param r void +---@return boolean +function ComRender:serialize (r) end +---* js NA<br> +---* lua NA +---@return self +function ComRender:onRemove () end +---* js NA<br> +---* lua NA +---@return self +function ComRender:onAdd () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ContourData.lua b/meta/3rd/Cocos4.0/ccs.ContourData.lua new file mode 100644 index 00000000..eb4c31a3 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ContourData.lua @@ -0,0 +1,21 @@ + +---@class ccs.ContourData :cc.Ref +local ContourData={ } +ccs.ContourData=ContourData + + + + +---* +---@return boolean +function ContourData:init () end +---* +---@param vertex vec2_table +---@return self +function ContourData:addVertex (vertex) end +---* +---@return self +function ContourData:create () end +---* js ctor +---@return self +function ContourData:ContourData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.DisplayData.lua b/meta/3rd/Cocos4.0/ccs.DisplayData.lua new file mode 100644 index 00000000..3d3595ca --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.DisplayData.lua @@ -0,0 +1,22 @@ + +---@class ccs.DisplayData :cc.Ref +local DisplayData={ } +ccs.DisplayData=DisplayData + + + + +---* +---@param displayData ccs.DisplayData +---@return self +function DisplayData:copy (displayData) end +---* +---@param displayName string +---@return string +function DisplayData:changeDisplayToTexture (displayName) end +---* +---@return self +function DisplayData:create () end +---* js ctor +---@return self +function DisplayData:DisplayData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.DisplayManager.lua b/meta/3rd/Cocos4.0/ccs.DisplayManager.lua new file mode 100644 index 00000000..9d5fb46c --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.DisplayManager.lua @@ -0,0 +1,91 @@ + +---@class ccs.DisplayManager :cc.Ref +local DisplayManager={ } +ccs.DisplayManager=DisplayManager + + + + +---* +---@return cc.Node +function DisplayManager:getDisplayRenderNode () end +---* +---@return vec2_table +function DisplayManager:getAnchorPointInPoints () end +---* +---@return int +function DisplayManager:getDisplayRenderNodeType () end +---* +---@param index int +---@return self +function DisplayManager:removeDisplay (index) end +---* +---@param force boolean +---@return self +function DisplayManager:setForceChangeDisplay (force) end +---* +---@param bone ccs.Bone +---@return boolean +function DisplayManager:init (bone) end +---* +---@return size_table +function DisplayManager:getContentSize () end +---* +---@return rect_table +function DisplayManager:getBoundingBox () end +---@overload fun(ccs.DisplayData0:cc.Node,int:int):self +---@overload fun(ccs.DisplayData:ccs.DisplayData,int:int):self +---@param displayData ccs.DisplayData +---@param index int +---@return self +function DisplayManager:addDisplay (displayData,index) end +---@overload fun(float:float,float:float):self +---@overload fun(float0:vec2_table):self +---@param x float +---@param y float +---@return boolean +function DisplayManager:containPoint (x,y) end +---* Change display by index. You can just use this method to change display in the display list.<br> +---* The display list is just used for this bone, and it is the displays you may use in every frame.<br> +---* Note : if index is the same with prev index, the method will not effect<br> +---* param index The index of the display you want to change<br> +---* param force If true, then force change display to specified display, or current display will set to display index edit in the flash every key frame. +---@param index int +---@param force boolean +---@return self +function DisplayManager:changeDisplayWithIndex (index,force) end +---* +---@param name string +---@param force boolean +---@return self +function DisplayManager:changeDisplayWithName (name,force) end +---* +---@return boolean +function DisplayManager:isForceChangeDisplay () end +---* +---@return int +function DisplayManager:getCurrentDisplayIndex () end +---* +---@return vec2_table +function DisplayManager:getAnchorPoint () end +---* +---@return array_table +function DisplayManager:getDecorativeDisplayList () end +---* Determines if the display is visible<br> +---* see setVisible(bool)<br> +---* return true if the node is visible, false if the node is hidden. +---@return boolean +function DisplayManager:isVisible () end +---* Sets whether the display is visible<br> +---* The default value is true, a node is default to visible<br> +---* param visible true if the node is visible, false if the node is hidden. +---@param visible boolean +---@return self +function DisplayManager:setVisible (visible) end +---* +---@param bone ccs.Bone +---@return self +function DisplayManager:create (bone) end +---* +---@return self +function DisplayManager:DisplayManager () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.EventFrame.lua b/meta/3rd/Cocos4.0/ccs.EventFrame.lua new file mode 100644 index 00000000..8fe8815e --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.EventFrame.lua @@ -0,0 +1,31 @@ + +---@class ccs.EventFrame :ccs.Frame +local EventFrame={ } +ccs.EventFrame=EventFrame + + + + +---* +---@param event string +---@return self +function EventFrame:setEvent (event) end +---* +---@return self +function EventFrame:init () end +---* +---@return string +function EventFrame:getEvent () end +---* +---@return self +function EventFrame:create () end +---* +---@return ccs.Frame +function EventFrame:clone () end +---* +---@param node cc.Node +---@return self +function EventFrame:setNode (node) end +---* +---@return self +function EventFrame:EventFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.Frame.lua b/meta/3rd/Cocos4.0/ccs.Frame.lua new file mode 100644 index 00000000..8f72e267 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.Frame.lua @@ -0,0 +1,60 @@ + +---@class ccs.Frame :cc.Ref +local Frame={ } +ccs.Frame=Frame + + + + +---* +---@return self +function Frame:clone () end +---* +---@param tweenType int +---@return self +function Frame:setTweenType (tweenType) end +---* +---@param node cc.Node +---@return self +function Frame:setNode (node) end +---* +---@param timeline ccs.Timeline +---@return self +function Frame:setTimeline (timeline) end +---* +---@return boolean +function Frame:isEnterWhenPassed () end +---* +---@return int +function Frame:getTweenType () end +---* +---@return array_table +function Frame:getEasingParams () end +---* +---@param easingParams array_table +---@return self +function Frame:setEasingParams (easingParams) end +---* +---@return unsigned_int +function Frame:getFrameIndex () end +---* +---@param percent float +---@return self +function Frame:apply (percent) end +---* +---@return boolean +function Frame:isTween () end +---* +---@param frameIndex unsigned_int +---@return self +function Frame:setFrameIndex (frameIndex) end +---* +---@param tween boolean +---@return self +function Frame:setTween (tween) end +---* +---@return ccs.Timeline +function Frame:getTimeline () end +---* +---@return cc.Node +function Frame:getNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.FrameData.lua b/meta/3rd/Cocos4.0/ccs.FrameData.lua new file mode 100644 index 00000000..834958d7 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.FrameData.lua @@ -0,0 +1,18 @@ + +---@class ccs.FrameData :ccs.BaseData +local FrameData={ } +ccs.FrameData=FrameData + + + + +---* +---@param baseData ccs.BaseData +---@return self +function FrameData:copy (baseData) end +---* +---@return self +function FrameData:create () end +---* js ctor +---@return self +function FrameData:FrameData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.GUIReader.lua b/meta/3rd/Cocos4.0/ccs.GUIReader.lua new file mode 100644 index 00000000..ac26a5ad --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.GUIReader.lua @@ -0,0 +1,33 @@ + +---@class ccs.GUIReader :cc.Ref +local GUIReader={ } +ccs.GUIReader=GUIReader + + + + +---* +---@param strFilePath string +---@return self +function GUIReader:setFilePath (strFilePath) end +---* +---@param fileName char +---@return ccui.Widget +function GUIReader:widgetFromJsonFile (fileName) end +---* +---@return string +function GUIReader:getFilePath () end +---* +---@param fileName char +---@return ccui.Widget +function GUIReader:widgetFromBinaryFile (fileName) end +---* +---@param str char +---@return int +function GUIReader:getVersionInteger (str) end +---* +---@return self +function GUIReader:destroyInstance () end +---* +---@return self +function GUIReader:getInstance () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.InnerActionFrame.lua b/meta/3rd/Cocos4.0/ccs.InnerActionFrame.lua new file mode 100644 index 00000000..d1eff16a --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.InnerActionFrame.lua @@ -0,0 +1,53 @@ + +---@class ccs.InnerActionFrame :ccs.Frame +local InnerActionFrame={ } +ccs.InnerActionFrame=InnerActionFrame + + + + +---* +---@return int +function InnerActionFrame:getEndFrameIndex () end +---* +---@return int +function InnerActionFrame:getStartFrameIndex () end +---* +---@return int +function InnerActionFrame:getInnerActionType () end +---* +---@param frameIndex int +---@return self +function InnerActionFrame:setEndFrameIndex (frameIndex) end +---* +---@param isEnterWithName boolean +---@return self +function InnerActionFrame:setEnterWithName (isEnterWithName) end +---* +---@param frameIndex int +---@return self +function InnerActionFrame:setSingleFrameIndex (frameIndex) end +---* +---@param frameIndex int +---@return self +function InnerActionFrame:setStartFrameIndex (frameIndex) end +---* +---@return int +function InnerActionFrame:getSingleFrameIndex () end +---* +---@param type int +---@return self +function InnerActionFrame:setInnerActionType (type) end +---* +---@param animationNamed string +---@return self +function InnerActionFrame:setAnimationName (animationNamed) end +---* +---@return self +function InnerActionFrame:create () end +---* +---@return ccs.Frame +function InnerActionFrame:clone () end +---* +---@return self +function InnerActionFrame:InnerActionFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.MovementBoneData.lua b/meta/3rd/Cocos4.0/ccs.MovementBoneData.lua new file mode 100644 index 00000000..57f132bd --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.MovementBoneData.lua @@ -0,0 +1,25 @@ + +---@class ccs.MovementBoneData :cc.Ref +local MovementBoneData={ } +ccs.MovementBoneData=MovementBoneData + + + + +---* +---@return boolean +function MovementBoneData:init () end +---* +---@param index int +---@return ccs.FrameData +function MovementBoneData:getFrameData (index) end +---* +---@param frameData ccs.FrameData +---@return self +function MovementBoneData:addFrameData (frameData) end +---* +---@return self +function MovementBoneData:create () end +---* js ctor +---@return self +function MovementBoneData:MovementBoneData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.MovementData.lua b/meta/3rd/Cocos4.0/ccs.MovementData.lua new file mode 100644 index 00000000..8e4e8c9c --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.MovementData.lua @@ -0,0 +1,22 @@ + +---@class ccs.MovementData :cc.Ref +local MovementData={ } +ccs.MovementData=MovementData + + + + +---* +---@param boneName string +---@return ccs.MovementBoneData +function MovementData:getMovementBoneData (boneName) end +---* +---@param movBoneData ccs.MovementBoneData +---@return self +function MovementData:addMovementBoneData (movBoneData) end +---* +---@return self +function MovementData:create () end +---* js ctor +---@return self +function MovementData:MovementData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ParticleDisplayData.lua b/meta/3rd/Cocos4.0/ccs.ParticleDisplayData.lua new file mode 100644 index 00000000..a051caa8 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ParticleDisplayData.lua @@ -0,0 +1,14 @@ + +---@class ccs.ParticleDisplayData :ccs.DisplayData +local ParticleDisplayData={ } +ccs.ParticleDisplayData=ParticleDisplayData + + + + +---* +---@return self +function ParticleDisplayData:create () end +---* js ctor +---@return self +function ParticleDisplayData:ParticleDisplayData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.PlayableFrame.lua b/meta/3rd/Cocos4.0/ccs.PlayableFrame.lua new file mode 100644 index 00000000..cdfddf75 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.PlayableFrame.lua @@ -0,0 +1,24 @@ + +---@class ccs.PlayableFrame :ccs.Frame +local PlayableFrame={ } +ccs.PlayableFrame=PlayableFrame + + + + +---* +---@param playact string +---@return self +function PlayableFrame:setPlayableAct (playact) end +---* +---@return string +function PlayableFrame:getPlayableAct () end +---* +---@return self +function PlayableFrame:create () end +---* +---@return ccs.Frame +function PlayableFrame:clone () end +---* +---@return self +function PlayableFrame:PlayableFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.PositionFrame.lua b/meta/3rd/Cocos4.0/ccs.PositionFrame.lua new file mode 100644 index 00000000..91bb9057 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.PositionFrame.lua @@ -0,0 +1,38 @@ + +---@class ccs.PositionFrame :ccs.Frame +local PositionFrame={ } +ccs.PositionFrame=PositionFrame + + + + +---* +---@return float +function PositionFrame:getX () end +---* +---@return float +function PositionFrame:getY () end +---* +---@param position vec2_table +---@return self +function PositionFrame:setPosition (position) end +---* +---@param x float +---@return self +function PositionFrame:setX (x) end +---* +---@param y float +---@return self +function PositionFrame:setY (y) end +---* +---@return vec2_table +function PositionFrame:getPosition () end +---* +---@return self +function PositionFrame:create () end +---* +---@return ccs.Frame +function PositionFrame:clone () end +---* +---@return self +function PositionFrame:PositionFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.RotationFrame.lua b/meta/3rd/Cocos4.0/ccs.RotationFrame.lua new file mode 100644 index 00000000..ecc19937 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.RotationFrame.lua @@ -0,0 +1,24 @@ + +---@class ccs.RotationFrame :ccs.Frame +local RotationFrame={ } +ccs.RotationFrame=RotationFrame + + + + +---* +---@param rotation float +---@return self +function RotationFrame:setRotation (rotation) end +---* +---@return float +function RotationFrame:getRotation () end +---* +---@return self +function RotationFrame:create () end +---* +---@return ccs.Frame +function RotationFrame:clone () end +---* +---@return self +function RotationFrame:RotationFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.RotationSkewFrame.lua b/meta/3rd/Cocos4.0/ccs.RotationSkewFrame.lua new file mode 100644 index 00000000..0c3c5d55 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.RotationSkewFrame.lua @@ -0,0 +1,17 @@ + +---@class ccs.RotationSkewFrame :ccs.SkewFrame +local RotationSkewFrame={ } +ccs.RotationSkewFrame=RotationSkewFrame + + + + +---* +---@return self +function RotationSkewFrame:create () end +---* +---@return ccs.Frame +function RotationSkewFrame:clone () end +---* +---@return self +function RotationSkewFrame:RotationSkewFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ScaleFrame.lua b/meta/3rd/Cocos4.0/ccs.ScaleFrame.lua new file mode 100644 index 00000000..52266579 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ScaleFrame.lua @@ -0,0 +1,35 @@ + +---@class ccs.ScaleFrame :ccs.Frame +local ScaleFrame={ } +ccs.ScaleFrame=ScaleFrame + + + + +---* +---@param scaleY float +---@return self +function ScaleFrame:setScaleY (scaleY) end +---* +---@param scaleX float +---@return self +function ScaleFrame:setScaleX (scaleX) end +---* +---@return float +function ScaleFrame:getScaleY () end +---* +---@return float +function ScaleFrame:getScaleX () end +---* +---@param scale float +---@return self +function ScaleFrame:setScale (scale) end +---* +---@return self +function ScaleFrame:create () end +---* +---@return ccs.Frame +function ScaleFrame:clone () end +---* +---@return self +function ScaleFrame:ScaleFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.SceneReader.lua b/meta/3rd/Cocos4.0/ccs.SceneReader.lua new file mode 100644 index 00000000..fbd06711 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.SceneReader.lua @@ -0,0 +1,34 @@ + +---@class ccs.SceneReader +local SceneReader={ } +ccs.SceneReader=SceneReader + + + + +---* +---@param selector function +---@return self +function SceneReader:setTarget (selector) end +---* +---@param fileName string +---@param attachComponent int +---@return cc.Node +function SceneReader:createNodeWithSceneFile (fileName,attachComponent) end +---* +---@return int +function SceneReader:getAttachComponentType () end +---* +---@param nTag int +---@return cc.Node +function SceneReader:getNodeByTag (nTag) end +---* js purge<br> +---* lua destroySceneReader +---@return self +function SceneReader:destroyInstance () end +---* +---@return char +function SceneReader:sceneReaderVersion () end +---* +---@return self +function SceneReader:getInstance () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.SkeletonNode.lua b/meta/3rd/Cocos4.0/ccs.SkeletonNode.lua new file mode 100644 index 00000000..33442fb3 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.SkeletonNode.lua @@ -0,0 +1,39 @@ + +---@class ccs.SkeletonNode :ccs.BoneNode +local SkeletonNode={ } +ccs.SkeletonNode=SkeletonNode + + + + +---* get bonenode in skeleton node by bone name +---@param boneName string +---@return ccs.BoneNode +function SkeletonNode:getBoneNode (boneName) end +---@overload fun(map_table0:string):self +---@overload fun(map_table:map_table):self +---@param boneSkinNameMap map_table +---@return self +function SkeletonNode:changeSkins (boneSkinNameMap) end +---* brief: add a boneSkinNameMap as a SkinGroup named groupName<br> +---* param: groupName, key<br> +---* param: boneSkinNameMap, map <name of bone, name of skin to display which added to bone> +---@param groupName string +---@param boneSkinNameMap map_table +---@return self +function SkeletonNode:addSkinGroup (groupName,boneSkinNameMap) end +---* get All bones in this skeleton, <bone's name, BoneNode> +---@return map_table +function SkeletonNode:getAllSubBonesMap () end +---* +---@return self +function SkeletonNode:create () end +---* +---@return rect_table +function SkeletonNode:getBoundingBox () end +---* +---@return boolean +function SkeletonNode:init () end +---* +---@return self +function SkeletonNode:SkeletonNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.SkewFrame.lua b/meta/3rd/Cocos4.0/ccs.SkewFrame.lua new file mode 100644 index 00000000..83ba6155 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.SkewFrame.lua @@ -0,0 +1,31 @@ + +---@class ccs.SkewFrame :ccs.Frame +local SkewFrame={ } +ccs.SkewFrame=SkewFrame + + + + +---* +---@return float +function SkewFrame:getSkewY () end +---* +---@param skewx float +---@return self +function SkewFrame:setSkewX (skewx) end +---* +---@param skewy float +---@return self +function SkewFrame:setSkewY (skewy) end +---* +---@return float +function SkewFrame:getSkewX () end +---* +---@return self +function SkewFrame:create () end +---* +---@return ccs.Frame +function SkewFrame:clone () end +---* +---@return self +function SkewFrame:SkewFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.Skin.lua b/meta/3rd/Cocos4.0/ccs.Skin.lua new file mode 100644 index 00000000..e78c86ba --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.Skin.lua @@ -0,0 +1,56 @@ + +---@class ccs.Skin :cc.Sprite +local Skin={ } +ccs.Skin=Skin + + + + +---* +---@return ccs.Bone +function Skin:getBone () end +---* +---@return mat4_table +function Skin:getNodeToWorldTransformAR () end +---* +---@return string +function Skin:getDisplayName () end +---* +---@return self +function Skin:updateArmatureTransform () end +---* +---@param bone ccs.Bone +---@return self +function Skin:setBone (bone) end +---@overload fun(string:string):self +---@overload fun():self +---@param pszFileName string +---@return self +function Skin:create (pszFileName) end +---* +---@param pszSpriteFrameName string +---@return self +function Skin:createWithSpriteFrameName (pszSpriteFrameName) end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function Skin:draw (renderer,transform,flags) end +---* +---@return mat4_table +function Skin:getNodeToWorldTransform () end +---* +---@param spriteFrameName string +---@return boolean +function Skin:initWithSpriteFrameName (spriteFrameName) end +---* +---@param filename string +---@return boolean +function Skin:initWithFile (filename) end +---* +---@return self +function Skin:updateTransform () end +---* js ctor +---@return self +function Skin:Skin () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.SpriteDisplayData.lua b/meta/3rd/Cocos4.0/ccs.SpriteDisplayData.lua new file mode 100644 index 00000000..4d67a228 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.SpriteDisplayData.lua @@ -0,0 +1,18 @@ + +---@class ccs.SpriteDisplayData :ccs.DisplayData +local SpriteDisplayData={ } +ccs.SpriteDisplayData=SpriteDisplayData + + + + +---* +---@param displayData ccs.DisplayData +---@return self +function SpriteDisplayData:copy (displayData) end +---* +---@return self +function SpriteDisplayData:create () end +---* js ctor +---@return self +function SpriteDisplayData:SpriteDisplayData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.TextureData.lua b/meta/3rd/Cocos4.0/ccs.TextureData.lua new file mode 100644 index 00000000..d9fdb2a9 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.TextureData.lua @@ -0,0 +1,25 @@ + +---@class ccs.TextureData :cc.Ref +local TextureData={ } +ccs.TextureData=TextureData + + + + +---* +---@param index int +---@return ccs.ContourData +function TextureData:getContourData (index) end +---* +---@return boolean +function TextureData:init () end +---* +---@param contourData ccs.ContourData +---@return self +function TextureData:addContourData (contourData) end +---* +---@return self +function TextureData:create () end +---* js ctor +---@return self +function TextureData:TextureData () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.TextureFrame.lua b/meta/3rd/Cocos4.0/ccs.TextureFrame.lua new file mode 100644 index 00000000..a7888a37 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.TextureFrame.lua @@ -0,0 +1,28 @@ + +---@class ccs.TextureFrame :ccs.Frame +local TextureFrame={ } +ccs.TextureFrame=TextureFrame + + + + +---* +---@return string +function TextureFrame:getTextureName () end +---* +---@param textureName string +---@return self +function TextureFrame:setTextureName (textureName) end +---* +---@return self +function TextureFrame:create () end +---* +---@return ccs.Frame +function TextureFrame:clone () end +---* +---@param node cc.Node +---@return self +function TextureFrame:setNode (node) end +---* +---@return self +function TextureFrame:TextureFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.Timeline.lua b/meta/3rd/Cocos4.0/ccs.Timeline.lua new file mode 100644 index 00000000..06c18a43 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.Timeline.lua @@ -0,0 +1,62 @@ + +---@class ccs.Timeline :cc.Ref +local Timeline={ } +ccs.Timeline=Timeline + + + + +---* +---@return self +function Timeline:clone () end +---* +---@param frameIndex int +---@return self +function Timeline:gotoFrame (frameIndex) end +---* +---@param node cc.Node +---@return self +function Timeline:setNode (node) end +---* +---@return ccs.ActionTimeline +function Timeline:getActionTimeline () end +---* +---@param frame ccs.Frame +---@param index int +---@return self +function Timeline:insertFrame (frame,index) end +---* +---@param tag int +---@return self +function Timeline:setActionTag (tag) end +---* +---@param frame ccs.Frame +---@return self +function Timeline:addFrame (frame) end +---* +---@return array_table +function Timeline:getFrames () end +---* +---@return int +function Timeline:getActionTag () end +---* +---@return cc.Node +function Timeline:getNode () end +---* +---@param frame ccs.Frame +---@return self +function Timeline:removeFrame (frame) end +---* +---@param action ccs.ActionTimeline +---@return self +function Timeline:setActionTimeline (action) end +---* +---@param frameIndex int +---@return self +function Timeline:stepToFrame (frameIndex) end +---* +---@return self +function Timeline:create () end +---* +---@return self +function Timeline:Timeline () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.Tween.lua b/meta/3rd/Cocos4.0/ccs.Tween.lua new file mode 100644 index 00000000..660edd6a --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.Tween.lua @@ -0,0 +1,57 @@ + +---@class ccs.Tween +local Tween={ } +ccs.Tween=Tween + + + + +---* +---@return ccs.ArmatureAnimation +function Tween:getAnimation () end +---* +---@param frameIndex int +---@return self +function Tween:gotoAndPause (frameIndex) end +---* Start the Process<br> +---* param movementBoneData the MovementBoneData include all FrameData<br> +---* param durationTo the number of frames changing to this animation needs.<br> +---* param durationTween the number of frames this animation actual last.<br> +---* param loop whether the animation is loop<br> +---* loop < 0 : use the value from MovementData get from Action Editor<br> +---* loop = 0 : this animation is not loop<br> +---* loop > 0 : this animation is loop<br> +---* param tweenEasing tween easing is used for calculate easing effect<br> +---* TWEEN_EASING_MAX : use the value from MovementData get from Action Editor<br> +---* -1 : fade out<br> +---* 0 : line<br> +---* 1 : fade in<br> +---* 2 : fade in and out +---@param movementBoneData ccs.MovementBoneData +---@param durationTo int +---@param durationTween int +---@param loop int +---@param tweenEasing int +---@return self +function Tween:play (movementBoneData,durationTo,durationTween,loop,tweenEasing) end +---* +---@param frameIndex int +---@return self +function Tween:gotoAndPlay (frameIndex) end +---* Init with a Bone<br> +---* param bone the Bone Tween will bind to +---@param bone ccs.Bone +---@return boolean +function Tween:init (bone) end +---* +---@param animation ccs.ArmatureAnimation +---@return self +function Tween:setAnimation (animation) end +---* Create with a Bone<br> +---* param bone the Bone Tween will bind to +---@param bone ccs.Bone +---@return self +function Tween:create (bone) end +---* +---@return self +function Tween:Tween () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.VisibleFrame.lua b/meta/3rd/Cocos4.0/ccs.VisibleFrame.lua new file mode 100644 index 00000000..aeb68de7 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.VisibleFrame.lua @@ -0,0 +1,24 @@ + +---@class ccs.VisibleFrame :ccs.Frame +local VisibleFrame={ } +ccs.VisibleFrame=VisibleFrame + + + + +---* +---@return boolean +function VisibleFrame:isVisible () end +---* +---@param visible boolean +---@return self +function VisibleFrame:setVisible (visible) end +---* +---@return self +function VisibleFrame:create () end +---* +---@return ccs.Frame +function VisibleFrame:clone () end +---* +---@return self +function VisibleFrame:VisibleFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccs.ZOrderFrame.lua b/meta/3rd/Cocos4.0/ccs.ZOrderFrame.lua new file mode 100644 index 00000000..2f2051cc --- /dev/null +++ b/meta/3rd/Cocos4.0/ccs.ZOrderFrame.lua @@ -0,0 +1,24 @@ + +---@class ccs.ZOrderFrame :ccs.Frame +local ZOrderFrame={ } +ccs.ZOrderFrame=ZOrderFrame + + + + +---* +---@return int +function ZOrderFrame:getZOrder () end +---* +---@param zorder int +---@return self +function ZOrderFrame:setZOrder (zorder) end +---* +---@return self +function ZOrderFrame:create () end +---* +---@return ccs.Frame +function ZOrderFrame:clone () end +---* +---@return self +function ZOrderFrame:ZOrderFrame () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.AbstractCheckButton.lua b/meta/3rd/Cocos4.0/ccui.AbstractCheckButton.lua new file mode 100644 index 00000000..02665ac5 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.AbstractCheckButton.lua @@ -0,0 +1,132 @@ + +---@class ccui.AbstractCheckButton :ccui.Widget +local AbstractCheckButton={ } +ccui.AbstractCheckButton=AbstractCheckButton + + + + +---* +---@return cc.ResourceData +function AbstractCheckButton:getCrossDisabledFile () end +---* +---@return cc.ResourceData +function AbstractCheckButton:getBackDisabledFile () end +---* Load background selected state texture for check button.<br> +---* param backGroundSelected The background selected state image name.<br> +---* param texType @see `Widget::TextureResType` +---@param backGroundSelected string +---@param texType int +---@return self +function AbstractCheckButton:loadTextureBackGroundSelected (backGroundSelected,texType) end +---* Load background disabled state texture for checkbox.<br> +---* param backGroundDisabled The background disabled state texture name.<br> +---* param texType @see `Widget::TextureResType` +---@param backGroundDisabled string +---@param texType int +---@return self +function AbstractCheckButton:loadTextureBackGroundDisabled (backGroundDisabled,texType) end +---* +---@return cc.ResourceData +function AbstractCheckButton:getCrossNormalFile () end +---* Change CheckBox state.<br> +---* Set to true will cause the CheckBox's state to "selected", false otherwise.<br> +---* param selected Set to true will change CheckBox to selected state, false otherwise. +---@param selected boolean +---@return self +function AbstractCheckButton:setSelected (selected) end +---* +---@return cc.ResourceData +function AbstractCheckButton:getBackPressedFile () end +---* brief Return the sprite instance of front cross when disabled<br> +---* return the sprite instance of front cross when disabled +---@return cc.Sprite +function AbstractCheckButton:getRendererFrontCrossDisabled () end +---* brief Return the sprite instance of background<br> +---* return the sprite instance of background. +---@return cc.Sprite +function AbstractCheckButton:getRendererBackground () end +---* Load cross texture for check button.<br> +---* param crossTextureName The cross texture name.<br> +---* param texType @see `Widget::TextureResType` +---@param crossTextureName string +---@param texType int +---@return self +function AbstractCheckButton:loadTextureFrontCross (crossTextureName,texType) end +---* brief Return the sprite instance of background when disabled<br> +---* return the sprite instance of background when disabled +---@return cc.Sprite +function AbstractCheckButton:getRendererBackgroundDisabled () end +---* Query whether CheckBox is selected or not.<br> +---* return true means "selected", false otherwise. +---@return boolean +function AbstractCheckButton:isSelected () end +---* +---@param backGround string +---@param backGroundSelected string +---@param cross string +---@param backGroundDisabled string +---@param frontCrossDisabled string +---@param texType int +---@return boolean +function AbstractCheckButton:init (backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end +---* +---@return cc.ResourceData +function AbstractCheckButton:getBackNormalFile () end +---* Load all textures for initializing a check button.<br> +---* param background The background image name.<br> +---* param backgroundSelected The background selected image name.<br> +---* param cross The cross image name.<br> +---* param backgroundDisabled The background disabled state texture.<br> +---* param frontCrossDisabled The front cross disabled state image name.<br> +---* param texType @see `Widget::TextureResType` +---@param background string +---@param backgroundSelected string +---@param cross string +---@param backgroundDisabled string +---@param frontCrossDisabled string +---@param texType int +---@return self +function AbstractCheckButton:loadTextures (background,backgroundSelected,cross,backgroundDisabled,frontCrossDisabled,texType) end +---* brief Return a zoom scale<br> +---* return A zoom scale of Checkbox.<br> +---* since v3.3 +---@return float +function AbstractCheckButton:getZoomScale () end +---* brief Return the sprite instance of front cross<br> +---* return the sprite instance of front cross +---@return cc.Sprite +function AbstractCheckButton:getRendererFrontCross () end +---* brief Return the sprite instance of background when selected<br> +---* return the sprite instance of background when selected +---@return cc.Sprite +function AbstractCheckButton:getRendererBackgroundSelected () end +---* Load background texture for check button.<br> +---* param backGround The background image name.<br> +---* param type @see `Widget::TextureResType` +---@param backGround string +---@param type int +---@return self +function AbstractCheckButton:loadTextureBackGround (backGround,type) end +---* When user pressed the CheckBox, the button will zoom to a scale.<br> +---* The final scale of the CheckBox equals (CheckBox original scale + _zoomScale)<br> +---* since v3.3 +---@param scale float +---@return self +function AbstractCheckButton:setZoomScale (scale) end +---* Load frontcross disabled texture for checkbox.<br> +---* param frontCrossDisabled The front cross disabled state texture name.<br> +---* param texType @see `Widget::TextureResType` +---@param frontCrossDisabled string +---@param texType int +---@return self +function AbstractCheckButton:loadTextureFrontCrossDisabled (frontCrossDisabled,texType) end +---* +---@return cc.Node +function AbstractCheckButton:getVirtualRenderer () end +---* +---@return boolean +function AbstractCheckButton:init () end +---* +---@return size_table +function AbstractCheckButton:getVirtualRendererSize () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.Button.lua b/meta/3rd/Cocos4.0/ccui.Button.lua new file mode 100644 index 00000000..ca3170fc --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.Button.lua @@ -0,0 +1,225 @@ + +---@class ccui.Button :ccui.Widget +local Button={ } +ccui.Button=Button + + + + +---* +---@return size_table +function Button:getNormalTextureSize () end +---* Query the button title content.<br> +---* return Get the button's title content. +---@return string +function Button:getTitleText () end +---* replaces the current Label node with a new one +---@param label cc.Label +---@return self +function Button:setTitleLabel (label) end +---* Change the font size of button's title<br> +---* param size Title font size in float. +---@param size float +---@return self +function Button:setTitleFontSize (size) end +---* +---@return self +function Button:resetPressedRender () end +---* Enable scale9 renderer.<br> +---* param enable Set to true will use scale9 renderer, false otherwise. +---@param enable boolean +---@return self +function Button:setScale9Enabled (enable) end +---* +---@return self +function Button:resetDisabledRender () end +---* Return the inner title renderer of Button.<br> +---* return The button title.<br> +---* since v3.3 +---@return cc.Label +function Button:getTitleRenderer () end +---* brief Return the nine-patch sprite of clicked state<br> +---* return the nine-patch sprite of clicked state<br> +---* since v3.9 +---@return ccui.Scale9Sprite +function Button:getRendererClicked () end +---* +---@return cc.ResourceData +function Button:getDisabledFile () end +---* brief Return a zoom scale<br> +---* return the zoom scale in float<br> +---* since v3.3 +---@return float +function Button:getZoomScale () end +---* Return the capInsets of disabled state scale9sprite.<br> +---* return The disabled scale9 renderer capInsets. +---@return rect_table +function Button:getCapInsetsDisabledRenderer () end +---* Change the color of button's title.<br> +---* param color The title color in Color3B. +---@param color color3b_table +---@return self +function Button:setTitleColor (color) end +---* +---@return cc.ResourceData +function Button:getNormalFile () end +---* +---@return self +function Button:resetNormalRender () end +---* brief Return the nine-patch sprite of disabled state<br> +---* return the nine-patch sprite of disabled state<br> +---* since v3.9 +---@return ccui.Scale9Sprite +function Button:getRendererDisabled () end +---* Sets capInsets for button, only the disabled state scale9 renderer will be affected.<br> +---* param capInsets capInsets in Rect. +---@param capInsets rect_table +---@return self +function Button:setCapInsetsDisabledRenderer (capInsets) end +---* Sets capInsets for button.<br> +---* The capInset affects all button scale9 renderer only if `setScale9Enabled(true)` is called<br> +---* param capInsets capInset in Rect. +---@param capInsets rect_table +---@return self +function Button:setCapInsets (capInsets) end +---* Load disabled state texture for button.<br> +---* param disabled dark state texture.<br> +---* param texType @see `TextureResType` +---@param disabled string +---@param texType int +---@return self +function Button:loadTextureDisabled (disabled,texType) end +---* +---@param normalImage string +---@param selectedImage string +---@param disableImage string +---@param texType int +---@return boolean +function Button:init (normalImage,selectedImage,disableImage,texType) end +---* Change the content of button's title.<br> +---* param text The title in std::string. +---@param text string +---@return self +function Button:setTitleText (text) end +---* Sets capInsets for button, only the normal state scale9 renderer will be affected.<br> +---* param capInsets capInsets in Rect. +---@param capInsets rect_table +---@return self +function Button:setCapInsetsNormalRenderer (capInsets) end +---* Load selected state texture for button.<br> +---* param selected selected state texture.<br> +---* param texType @see `TextureResType` +---@param selected string +---@param texType int +---@return self +function Button:loadTexturePressed (selected,texType) end +---* Change the font name of button's title<br> +---* param fontName a font name string. +---@param fontName string +---@return self +function Button:setTitleFontName (fontName) end +---* Return the capInsets of normal state scale9sprite.<br> +---* return The normal scale9 renderer capInsets. +---@return rect_table +function Button:getCapInsetsNormalRenderer () end +---@overload fun(int:int,int:int):self +---@overload fun(int:int):self +---@param hAlignment int +---@param vAlignment int +---@return self +function Button:setTitleAlignment (hAlignment,vAlignment) end +---* Return the capInsets of pressed state scale9sprite.<br> +---* return The pressed scale9 renderer capInsets. +---@return rect_table +function Button:getCapInsetsPressedRenderer () end +---* Load textures for button.<br> +---* param normal normal state texture name.<br> +---* param selected selected state texture name.<br> +---* param disabled disabled state texture name.<br> +---* param texType @see `TextureResType` +---@param normal string +---@param selected string +---@param disabled string +---@param texType int +---@return self +function Button:loadTextures (normal,selected,disabled,texType) end +---* Query whether button is using scale9 renderer or not.<br> +---* return whether button use scale9 renderer or not. +---@return boolean +function Button:isScale9Enabled () end +---* Load normal state texture for button.<br> +---* param normal normal state texture.<br> +---* param texType @see `TextureResType` +---@param normal string +---@param texType int +---@return self +function Button:loadTextureNormal (normal,texType) end +---* Sets capInsets for button, only the pressed state scale9 renderer will be affected.<br> +---* param capInsets capInsets in Rect +---@param capInsets rect_table +---@return self +function Button:setCapInsetsPressedRenderer (capInsets) end +---* +---@return cc.ResourceData +function Button:getPressedFile () end +---* returns the current Label being used +---@return cc.Label +function Button:getTitleLabel () end +---* Query the font size of button title<br> +---* return font size in float. +---@return float +function Button:getTitleFontSize () end +---* brief Return the nine-patch sprite of normal state<br> +---* return the nine-patch sprite of normal state<br> +---* since v3.9 +---@return ccui.Scale9Sprite +function Button:getRendererNormal () end +---* Query the font name of button's title<br> +---* return font name in std::string +---@return string +function Button:getTitleFontName () end +---* Query the button title color.<br> +---* return Color3B of button title. +---@return color3b_table +function Button:getTitleColor () end +---* Enable zooming action when button is pressed.<br> +---* param enabled Set to true will enable zoom effect, false otherwise. +---@param enabled boolean +---@return self +function Button:setPressedActionEnabled (enabled) end +---* @brief When user pressed the button, the button will zoom to a scale.<br> +---* The final scale of the button equals (button original scale + _zoomScale)<br> +---* since v3.3 +---@param scale float +---@return self +function Button:setZoomScale (scale) end +---@overload fun(string:string,string:string,string:string,int:int):self +---@overload fun():self +---@param normalImage string +---@param selectedImage string +---@param disableImage string +---@param texType int +---@return self +function Button:create (normalImage,selectedImage,disableImage,texType) end +---* +---@return cc.Ref +function Button:createInstance () end +---* +---@return cc.Node +function Button:getVirtualRenderer () end +---* +---@return boolean +function Button:init () end +---* +---@return string +function Button:getDescription () end +---* +---@return size_table +function Button:getVirtualRendererSize () end +---* +---@param ignore boolean +---@return self +function Button:ignoreContentAdaptWithSize (ignore) end +---* Default constructor. +---@return self +function Button:Button () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.CheckBox.lua b/meta/3rd/Cocos4.0/ccui.CheckBox.lua new file mode 100644 index 00000000..93b855f7 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.CheckBox.lua @@ -0,0 +1,34 @@ + +---@class ccui.CheckBox :ccui.AbstractCheckButton +local CheckBox={ } +ccui.CheckBox=CheckBox + + + + +---* Add a callback function which would be called when checkbox is selected or unselected.<br> +---* param callback A std::function with type @see `ccCheckBoxCallback` +---@param callback function +---@return self +function CheckBox:addEventListener (callback) end +---@overload fun(string:string,string:string,string:string,string:string,string:string,int:int):self +---@overload fun():self +---@overload fun(string:string,string:string,string2:int):self +---@param backGround string +---@param backGroundSelected string +---@param cross string +---@param backGroundDisabled string +---@param frontCrossDisabled string +---@param texType int +---@return self +function CheckBox:create (backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end +---* +---@return cc.Ref +function CheckBox:createInstance () end +---* +---@return string +function CheckBox:getDescription () end +---* Default constructor.<br> +---* lua new +---@return self +function CheckBox:CheckBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.EditBox.lua b/meta/3rd/Cocos4.0/ccui.EditBox.lua new file mode 100644 index 00000000..83196123 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.EditBox.lua @@ -0,0 +1,322 @@ + +---@class ccui.EditBox :ccui.Widget@all parent class: Widget,IMEDelegate +local EditBox={ } +ccui.EditBox=EditBox + + + + +---* Get the font size.<br> +---* return The font size. +---@return int +function EditBox:getFontSize () end +---* js NA<br> +---* lua NA +---@param info cc.IMEKeyboardNotificationInfo +---@return self +function EditBox:keyboardDidShow (info) end +---* Sets the maximum input length of the edit box.<br> +---* Setting this value enables multiline input mode by default.<br> +---* Available on Android, iOS and Windows Phone.<br> +---* param maxLength The maximum length. +---@param maxLength int +---@return self +function EditBox:setMaxLength (maxLength) end +---* +---@return self +function EditBox:openKeyboard () end +---* Set the font size.<br> +---* param fontSize The font size. +---@param fontSize int +---@return self +function EditBox:setFontSize (fontSize) end +---* Get the text entered in the edit box.<br> +---* return The text entered in the edit box. +---@return char +function EditBox:getText () end +---* Get the input mode of the edit box.<br> +---* return One of the EditBox::InputMode constants. +---@return int +function EditBox:getInputMode () end +---@overload fun(size_table:size_table,ccui.Scale9Sprite:ccui.Scale9Sprite):self +---@overload fun(size_table:size_table,ccui.Scale9Sprite1:string,ccui.Scale9Sprite2:int):self +---@overload fun(size_table:size_table,ccui.Scale9Sprite:ccui.Scale9Sprite,ccui.Scale9Sprite:ccui.Scale9Sprite,ccui.Scale9Sprite:ccui.Scale9Sprite):self +---@param size size_table +---@param normalSprite ccui.Scale9Sprite +---@param pressedSprite ccui.Scale9Sprite +---@param disabledSprite ccui.Scale9Sprite +---@return boolean +function EditBox:initWithSizeAndBackgroundSprite (size,normalSprite,pressedSprite,disabledSprite) end +---* Get the placeholder's font name. only system font is allowed.<br> +---* return The font name. +---@return char +function EditBox:getPlaceholderFontName () end +---* js NA<br> +---* lua NA +---@param info cc.IMEKeyboardNotificationInfo +---@return self +function EditBox:keyboardDidHide (info) end +---* Set the placeholder's font name. only system font is allowed.<br> +---* param pFontName The font name. +---@param pFontName char +---@return self +function EditBox:setPlaceholderFontName (pFontName) end +---* Get the placeholder's font size.<br> +---* return The font size. +---@return int +function EditBox:getPlaceholderFontSize () end +---* Return the capInsets of disabled state scale9sprite.<br> +---* return The disabled scale9 renderer capInsets. +---@return rect_table +function EditBox:getCapInsetsDisabledRenderer () end +---* Get a text in the edit box that acts as a placeholder when an<br> +---* edit box is empty. +---@return char +function EditBox:getPlaceHolder () end +---* Set the font name. Only system font is allowed.<br> +---* param pFontName The font name. +---@param pFontName char +---@return self +function EditBox:setFontName (pFontName) end +---* Registers a script function that will be called for EditBox events.<br> +---* This handler will be removed automatically after onExit() called.<br> +---* code<br> +---* -- lua sample<br> +---* local function editboxEventHandler(eventType)<br> +---* if eventType == "began" then<br> +---* -- triggered when an edit box gains focus after keyboard is shown<br> +---* elseif eventType == "ended" then<br> +---* -- triggered when an edit box loses focus after keyboard is hidden.<br> +---* elseif eventType == "changed" then<br> +---* -- triggered when the edit box text was changed.<br> +---* elseif eventType == "return" then<br> +---* -- triggered when the return button was pressed or the outside area of keyboard was touched.<br> +---* end<br> +---* end<br> +---* local editbox = EditBox:create(Size(...), Scale9Sprite:create(...))<br> +---* editbox = registerScriptEditBoxHandler(editboxEventHandler)<br> +---* endcode<br> +---* param handler A number that indicates a lua function.<br> +---* js NA<br> +---* lua NA +---@param handler int +---@return self +function EditBox:registerScriptEditBoxHandler (handler) end +---* Sets capInsets for edit box, only the disabled state scale9 renderer will be affected.<br> +---* param capInsets capInsets in Rect. +---@param capInsets rect_table +---@return self +function EditBox:setCapInsetsDisabledRenderer (capInsets) end +---* Set the placeholder's font size.<br> +---* param fontSize The font size. +---@param fontSize int +---@return self +function EditBox:setPlaceholderFontSize (fontSize) end +---* Load disabled state texture for edit box.<br> +---* param disabled dark state texture.<br> +---* param texType @see `TextureResType` +---@param disabled string +---@param texType int +---@return self +function EditBox:loadTextureDisabled (disabled,texType) end +---* Set the input mode of the edit box.<br> +---* param inputMode One of the EditBox::InputMode constants. +---@param inputMode int +---@return self +function EditBox:setInputMode (inputMode) end +---* Unregisters a script function that will be called for EditBox events.<br> +---* js NA<br> +---* lua NA +---@return self +function EditBox:unregisterScriptEditBoxHandler () end +---* js NA<br> +---* lua NA +---@param info cc.IMEKeyboardNotificationInfo +---@return self +function EditBox:keyboardWillShow (info) end +---@overload fun(color3b_table0:color4b_table):self +---@overload fun(color3b_table:color3b_table):self +---@param color color3b_table +---@return self +function EditBox:setPlaceholderFontColor (color) end +---* Get the return type that are to be applied to the edit box.<br> +---* return One of the EditBox::KeyboardReturnType constants. +---@return int +function EditBox:getReturnType () end +---@overload fun(color3b_table0:color4b_table):self +---@overload fun(color3b_table:color3b_table):self +---@param color color3b_table +---@return self +function EditBox:setFontColor (color) end +---* Get the font name.<br> +---* return The font name. +---@return char +function EditBox:getFontName () end +---* js NA<br> +---* lua NA +---@param info cc.IMEKeyboardNotificationInfo +---@return self +function EditBox:keyboardWillHide (info) end +---* Sets capInsets for edit box, only the normal state scale9 renderer will be affected.<br> +---* param capInsets capInsets in Rect. +---@param capInsets rect_table +---@return self +function EditBox:setCapInsetsNormalRenderer (capInsets) end +---* Load pressed state texture for edit box.<br> +---* param pressed pressed state texture.<br> +---* param texType @see `TextureResType` +---@param pressed string +---@param texType int +---@return self +function EditBox:loadTexturePressed (pressed,texType) end +---* Get the font color of the widget's text. +---@return color4b_table +function EditBox:getFontColor () end +---* Get the input flags that are to be applied to the edit box.<br> +---* return One of the EditBox::InputFlag constants. +---@return int +function EditBox:getInputFlag () end +---* Init edit box with specified size. This method should be invoked right after constructor.<br> +---* param size The size of edit box.<br> +---* param normalImage normal state texture name.<br> +---* param pressedImage pressed state texture name.<br> +---* param disabledImage disabled state texture name.<br> +---* return Whether initialization is successfully or not. +---@param size size_table +---@param normalImage string +---@param pressedImage string +---@param disabledImage string +---@param texType int +---@return boolean +function EditBox:initWithSizeAndTexture (size,normalImage,pressedImage,disabledImage,texType) end +---* Get the text horizontal alignment. +---@return int +function EditBox:getTextHorizontalAlignment () end +---* Return the capInsets of normal state scale9sprite.<br> +---* return The normal scale9 renderer capInsets. +---@return rect_table +function EditBox:getCapInsetsNormalRenderer () end +---* Return the capInsets of pressed state scale9sprite.<br> +---* return The pressed scale9 renderer capInsets. +---@return rect_table +function EditBox:getCapInsetsPressedRenderer () end +---* get a script Handler<br> +---* js NA<br> +---* lua NA +---@return int +function EditBox:getScriptEditBoxHandler () end +---* Load textures for edit box.<br> +---* param normal normal state texture name.<br> +---* param pressed pressed state texture name.<br> +---* param disabled disabled state texture name.<br> +---* param texType @see `TextureResType` +---@param normal string +---@param pressed string +---@param disabled string +---@param texType int +---@return self +function EditBox:loadTextures (normal,pressed,disabled,texType) end +---* Set a text in the edit box that acts as a placeholder when an<br> +---* edit box is empty.<br> +---* param pText The given text. +---@param pText char +---@return self +function EditBox:setPlaceHolder (pText) end +---* Set the input flags that are to be applied to the edit box.<br> +---* param inputFlag One of the EditBox::InputFlag constants. +---@param inputFlag int +---@return self +function EditBox:setInputFlag (inputFlag) end +---* Set the return type that are to be applied to the edit box.<br> +---* param returnType One of the EditBox::KeyboardReturnType constants. +---@param returnType int +---@return self +function EditBox:setReturnType (returnType) end +---* Load normal state texture for edit box.<br> +---* param normal normal state texture.<br> +---* param texType @see `TextureResType` +---@param normal string +---@param texType int +---@return self +function EditBox:loadTextureNormal (normal,texType) end +---* Gets the maximum input length of the edit box.<br> +---* return Maximum input length. +---@return int +function EditBox:getMaxLength () end +---* Sets capInsets for edit box, only the pressed state scale9 renderer will be affected.<br> +---* param capInsets capInsets in Rect +---@param capInsets rect_table +---@return self +function EditBox:setCapInsetsPressedRenderer (capInsets) end +---* Set the text entered in the edit box.<br> +---* param pText The given text. +---@param pText char +---@return self +function EditBox:setText (pText) end +---* Set the placeholder's font. Only system font is allowed.<br> +---* param pFontName The font name.<br> +---* param fontSize The font size. +---@param pFontName char +---@param fontSize int +---@return self +function EditBox:setPlaceholderFont (pFontName,fontSize) end +---* Get the font color of the placeholder text when the edit box is empty. +---@return color4b_table +function EditBox:getPlaceholderFontColor () end +---* Sets capInsets for edit box.<br> +---* param capInsets capInset in Rect. +---@param capInsets rect_table +---@return self +function EditBox:setCapInsets (capInsets) end +---* Set the font. Only system font is allowed.<br> +---* param pFontName The font name.<br> +---* param fontSize The font size. +---@param pFontName char +---@param fontSize int +---@return self +function EditBox:setFont (pFontName,fontSize) end +---* Set the text horizontal alignment. +---@param alignment int +---@return self +function EditBox:setTextHorizontalAlignment (alignment) end +---@overload fun(size_table:size_table,string:string,string2:int):self +---@overload fun(size_table:size_table,string1:ccui.Scale9Sprite,string2:ccui.Scale9Sprite,string3:ccui.Scale9Sprite):self +---@overload fun(size_table:size_table,string:string,string:string,string:string,int:int):self +---@param size size_table +---@param normalImage string +---@param pressedImage string +---@param disabledImage string +---@param texType int +---@return self +function EditBox:create (size,normalImage,pressedImage,disabledImage,texType) end +---* +---@param anchorPoint vec2_table +---@return self +function EditBox:setAnchorPoint (anchorPoint) end +---* js NA<br> +---* lua NA +---@param renderer cc.Renderer +---@param parentTransform mat4_table +---@param parentFlags unsigned_int +---@return self +function EditBox:draw (renderer,parentTransform,parentFlags) end +---* Returns the "class name" of widget. +---@return string +function EditBox:getDescription () end +---* +---@param pos vec2_table +---@return self +function EditBox:setPosition (pos) end +---* +---@param visible boolean +---@return self +function EditBox:setVisible (visible) end +---* +---@param size size_table +---@return self +function EditBox:setContentSize (size) end +---* Constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function EditBox:EditBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.HBox.lua b/meta/3rd/Cocos4.0/ccui.HBox.lua new file mode 100644 index 00000000..a2d05d7f --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.HBox.lua @@ -0,0 +1,25 @@ + +---@class ccui.HBox :ccui.Layout +local HBox={ } +ccui.HBox=HBox + + + + +---* +---@param size size_table +---@return boolean +function HBox:initWithSize (size) end +---@overload fun(size_table:size_table):self +---@overload fun():self +---@param size size_table +---@return self +function HBox:create (size) end +---* +---@return boolean +function HBox:init () end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function HBox:HBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.Helper.lua b/meta/3rd/Cocos4.0/ccui.Helper.lua new file mode 100644 index 00000000..e8a665ca --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.Helper.lua @@ -0,0 +1,72 @@ + +---@class ccui.Helper +local Helper={ } +ccui.Helper=Helper + + + + +---* brief Get a UTF8 substring from a std::string with a given start position and length<br> +---* Sample: std::string str = "中国中国中国"; substr = getSubStringOfUTF8String(str,0,2) will = "中国"<br> +---* param str The source string.<br> +---* param start The start position of the substring.<br> +---* param length The length of the substring in UTF8 count<br> +---* return a UTF8 substring<br> +---* js NA +---@param str string +---@param start unsigned_int +---@param length unsigned_int +---@return string +function Helper:getSubStringOfUTF8String (str,start,length) end +---* brief Convert a node's boundingBox rect into screen coordinates.<br> +---* param node Any node pointer.<br> +---* return A Rect in screen coordinates. +---@param node cc.Node +---@return rect_table +function Helper:convertBoundingBoxToScreen (node) end +---* Change the active property of Layout's @see `LayoutComponent`<br> +---* param active A boolean value. +---@param active boolean +---@return self +function Helper:changeLayoutSystemActiveState (active) end +---* Find a widget with a specific action tag from root widget<br> +---* This search will be recursive through all child widgets.<br> +---* param root The be searched root widget.<br> +---* param tag The widget action's tag.<br> +---* return Widget instance pointer. +---@param root ccui.Widget +---@param tag int +---@return ccui.Widget +function Helper:seekActionWidgetByActionTag (root,tag) end +---* Find a widget with a specific name from root widget.<br> +---* This search will be recursive through all child widgets.<br> +---* param root The be searched root widget.<br> +---* param name The widget name.<br> +---* return Widget instance pointer. +---@param root ccui.Widget +---@param name string +---@return ccui.Widget +function Helper:seekWidgetByName (root,name) end +---* Find a widget with a specific tag from root widget.<br> +---* This search will be recursive through all child widgets.<br> +---* param root The be searched root widget.<br> +---* param tag The widget tag.<br> +---* return Widget instance pointer. +---@param root ccui.Widget +---@param tag int +---@return ccui.Widget +function Helper:seekWidgetByTag (root,tag) end +---* brief restrict capInsetSize, when the capInsets's width is larger than the textureSize, it will restrict to 0,<br> +---* the height goes the same way as width.<br> +---* param capInsets A user defined capInsets.<br> +---* param textureSize The size of a scale9enabled texture<br> +---* return a restricted capInset. +---@param capInsets rect_table +---@param textureSize size_table +---@return rect_table +function Helper:restrictCapInsetRect (capInsets,textureSize) end +---* Refresh object and it's children layout state<br> +---* param rootNode A Node* or Node* descendant instance pointer. +---@param rootNode cc.Node +---@return self +function Helper:doLayout (rootNode) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.ImageView.lua b/meta/3rd/Cocos4.0/ccui.ImageView.lua new file mode 100644 index 00000000..a1404a47 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.ImageView.lua @@ -0,0 +1,91 @@ + +---@class ccui.ImageView :ccui.Widget@all parent class: Widget,BlendProtocol +local ImageView={ } +ccui.ImageView=ImageView + + + + +---* Returns the blending function that is currently being used.<br> +---* return A BlendFunc structure with source and destination factor which specified pixel arithmetic.<br> +---* js NA<br> +---* lua NA +---@return cc.BlendFunc +function ImageView:getBlendFunc () end +---* Load texture for imageview.<br> +---* param fileName file name of texture.<br> +---* param texType @see `Widget::TextureResType` +---@param fileName string +---@param texType int +---@return self +function ImageView:loadTexture (fileName,texType) end +---* Sets the source blending function.<br> +---* param blendFunc A structure with source and destination factor to specify pixel arithmetic. e.g. {BlendFactor::ONE, BlendFactor::ONE}, {BlendFactor::SRC_ALPHA, BlendFactor::ONE_MINUS_SRC_ALPHA}.<br> +---* js NA<br> +---* lua NA +---@param blendFunc cc.BlendFunc +---@return self +function ImageView:setBlendFunc (blendFunc) end +---* +---@param imageFileName string +---@param texType int +---@return boolean +function ImageView:init (imageFileName,texType) end +---* Enable scale9 renderer.<br> +---* param enabled Set to true will use scale9 renderer, false otherwise. +---@param enabled boolean +---@return self +function ImageView:setScale9Enabled (enabled) end +---* Updates the texture rect of the ImageView in points.<br> +---* It will call setTextureRect:rotated:untrimmedSize with rotated = NO, and utrimmedSize = rect.size. +---@param rect rect_table +---@return self +function ImageView:setTextureRect (rect) end +---* Sets capInsets for imageview.<br> +---* The capInsets affects the ImageView's renderer only if `setScale9Enabled(true)` is called.<br> +---* param capInsets capinsets for imageview +---@param capInsets rect_table +---@return self +function ImageView:setCapInsets (capInsets) end +---* +---@return cc.ResourceData +function ImageView:getRenderFile () end +---* Get ImageView's capInsets size.<br> +---* return Query capInsets size in Rect<br> +---* see `setCapInsets(const Rect&)` +---@return rect_table +function ImageView:getCapInsets () end +---* Query whether button is using scale9 renderer or not.<br> +---* return whether button use scale9 renderer or not. +---@return boolean +function ImageView:isScale9Enabled () end +---@overload fun(string:string,int:int):self +---@overload fun():self +---@param imageFileName string +---@param texType int +---@return self +function ImageView:create (imageFileName,texType) end +---* +---@return cc.Ref +function ImageView:createInstance () end +---* +---@return cc.Node +function ImageView:getVirtualRenderer () end +---* +---@return boolean +function ImageView:init () end +---* +---@return string +function ImageView:getDescription () end +---* +---@return size_table +function ImageView:getVirtualRendererSize () end +---* +---@param ignore boolean +---@return self +function ImageView:ignoreContentAdaptWithSize (ignore) end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function ImageView:ImageView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.Layout.lua b/meta/3rd/Cocos4.0/ccui.Layout.lua new file mode 100644 index 00000000..1b4ae970 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.Layout.lua @@ -0,0 +1,219 @@ + +---@class ccui.Layout :ccui.Widget@all parent class: Widget,LayoutProtocol +local Layout={ } +ccui.Layout=Layout + + + + +---* Sets background color vector for layout.<br> +---* This setting only take effect when layout's color type is BackGroundColorType::GRADIENT<br> +---* param vector The color vector in `Vec2`. +---@param vector vec2_table +---@return self +function Layout:setBackGroundColorVector (vector) end +---* Change the clipping type of layout.<br> +---* On default, the clipping type is `ClippingType::STENCIL`.<br> +---* see `ClippingType`<br> +---* param type The clipping type of layout. +---@param type int +---@return self +function Layout:setClippingType (type) end +---* Sets Color Type for layout's background<br> +---* param type @see `BackGroundColorType` +---@param type int +---@return self +function Layout:setBackGroundColorType (type) end +---* If a layout is loop focused which means that the focus movement will be inside the layout<br> +---* param loop pass true to let the focus movement loop inside the layout +---@param loop boolean +---@return self +function Layout:setLoopFocus (loop) end +---* Set layout's background image color.<br> +---* param color Background color value in `Color3B`. +---@param color color3b_table +---@return self +function Layout:setBackGroundImageColor (color) end +---* Get the layout's background color vector.<br> +---* return Background color vector. +---@return vec2_table +function Layout:getBackGroundColorVector () end +---* see `setClippingType(ClippingType)` +---@return int +function Layout:getClippingType () end +---* +---@return cc.ResourceData +function Layout:getRenderFile () end +---* return If focus loop is enabled, then it will return true, otherwise it returns false. The default value is false. +---@return boolean +function Layout:isLoopFocus () end +---* Remove the background image of layout. +---@return self +function Layout:removeBackGroundImage () end +---* Get the layout's background color opacity.<br> +---* return Background color opacity value. +---@return unsigned_char +function Layout:getBackGroundColorOpacity () end +---* Gets if layout is clipping enabled.<br> +---* return if layout is clipping enabled. +---@return boolean +function Layout:isClippingEnabled () end +---* Set opacity of background image.<br> +---* param opacity Background image opacity in GLubyte. +---@param opacity unsigned_char +---@return self +function Layout:setBackGroundImageOpacity (opacity) end +---* Sets a background image for layout.<br> +---* param fileName image file path.<br> +---* param texType @see TextureResType. +---@param fileName string +---@param texType int +---@return self +function Layout:setBackGroundImage (fileName,texType) end +---@overload fun(color3b_table:color3b_table,color3b_table:color3b_table):self +---@overload fun(color3b_table:color3b_table):self +---@param startColor color3b_table +---@param endColor color3b_table +---@return self +function Layout:setBackGroundColor (startColor,endColor) end +---* request to refresh widget layout +---@return self +function Layout:requestDoLayout () end +---* Query background image's capInsets size.<br> +---* return The background image capInsets. +---@return rect_table +function Layout:getBackGroundImageCapInsets () end +---* Query the layout's background color.<br> +---* return Background color in Color3B. +---@return color3b_table +function Layout:getBackGroundColor () end +---* Toggle layout clipping.<br> +---* If you do need clipping, you pass true to this function.<br> +---* param enabled Pass true to enable clipping, false otherwise. +---@param enabled boolean +---@return self +function Layout:setClippingEnabled (enabled) end +---* Get color of layout's background image.<br> +---* return Layout's background image color. +---@return color3b_table +function Layout:getBackGroundImageColor () end +---* Query background image scale9 enable status.<br> +---* return Whether background image is scale9 enabled or not. +---@return boolean +function Layout:isBackGroundImageScale9Enabled () end +---* Query the layout's background color type.<br> +---* return The layout's background color type. +---@return int +function Layout:getBackGroundColorType () end +---* Get the gradient background end color.<br> +---* return Gradient background end color value. +---@return color3b_table +function Layout:getBackGroundEndColor () end +---* Sets background color opacity of layout.<br> +---* param opacity The opacity in `GLubyte`. +---@param opacity unsigned_char +---@return self +function Layout:setBackGroundColorOpacity (opacity) end +---* Get the opacity of layout's background image.<br> +---* return The opacity of layout's background image. +---@return unsigned_char +function Layout:getBackGroundImageOpacity () end +---* return To query whether the layout will pass the focus to its children or not. The default value is true +---@return boolean +function Layout:isPassFocusToChild () end +---* Sets a background image capinsets for layout, it only affects the scale9 enabled background image<br> +---* param capInsets The capInsets in Rect. +---@param capInsets rect_table +---@return self +function Layout:setBackGroundImageCapInsets (capInsets) end +---* Gets background image texture size.<br> +---* return background image texture size. +---@return size_table +function Layout:getBackGroundImageTextureSize () end +---* force refresh widget layout +---@return self +function Layout:forceDoLayout () end +---* Query layout type.<br> +---* return Get the layout type. +---@return int +function Layout:getLayoutType () end +---* param pass To specify whether the layout pass its focus to its child +---@param pass boolean +---@return self +function Layout:setPassFocusToChild (pass) end +---* Get the gradient background start color.<br> +---* return Gradient background start color value. +---@return color3b_table +function Layout:getBackGroundStartColor () end +---* Enable background image scale9 rendering.<br> +---* param enabled True means enable scale9 rendering for background image, false otherwise. +---@param enabled boolean +---@return self +function Layout:setBackGroundImageScale9Enabled (enabled) end +---* Change the layout type.<br> +---* param type Layout type. +---@param type int +---@return self +function Layout:setLayoutType (type) end +---* Create a empty layout. +---@return self +function Layout:create () end +---* +---@return cc.Ref +function Layout:createInstance () end +---@overload fun(cc.Node:cc.Node,int:int):self +---@overload fun(cc.Node:cc.Node):self +---@overload fun(cc.Node:cc.Node,int:int,string2:int):self +---@overload fun(cc.Node:cc.Node,int:int,string:string):self +---@param child cc.Node +---@param localZOrder int +---@param name string +---@return self +function Layout:addChild (child,localZOrder,name) end +---* Returns the "class name" of widget. +---@return string +function Layout:getDescription () end +---* Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter.<br> +---* param cleanup true if all running actions on all children nodes should be cleanup, false otherwise.<br> +---* js removeAllChildren<br> +---* lua removeAllChildren +---@param cleanup boolean +---@return self +function Layout:removeAllChildrenWithCleanup (cleanup) end +---* Removes all children from the container with a cleanup.<br> +---* see `removeAllChildrenWithCleanup(bool)` +---@return self +function Layout:removeAllChildren () end +---* When a widget is in a layout, you could call this method to get the next focused widget within a specified direction.<br> +---* If the widget is not in a layout, it will return itself<br> +---* param direction the direction to look for the next focused widget in a layout<br> +---* param current the current focused widget<br> +---* return the next focused widget in a layout +---@param direction int +---@param current ccui.Widget +---@return ccui.Widget +function Layout:findNextFocusedWidget (direction,current) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function Layout:removeChild (child,cleanup) end +---* +---@return boolean +function Layout:init () end +---* Override function. Set camera mask, the node is visible by the camera whose camera flag & node's camera mask is true. <br> +---* param mask Mask being set<br> +---* param applyChildren If true call this function recursively from this node to its children. +---@param mask unsigned short +---@param applyChildren boolean +---@return self +function Layout:setCameraMask (mask,applyChildren) end +---* +---@param globalZOrder float +---@return self +function Layout:setGlobalZOrder (globalZOrder) end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function Layout:Layout () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.LayoutComponent.lua b/meta/3rd/Cocos4.0/ccui.LayoutComponent.lua new file mode 100644 index 00000000..b7a5c260 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.LayoutComponent.lua @@ -0,0 +1,250 @@ + +---@class ccui.LayoutComponent :cc.Component +local LayoutComponent={ } +ccui.LayoutComponent=LayoutComponent + + + + +---* Toggle enable stretch width.<br> +---* param isUsed True if enable stretch width, false otherwise. +---@param isUsed boolean +---@return self +function LayoutComponent:setStretchWidthEnabled (isUsed) end +---* Change percent width of owner.<br> +---* param percentWidth Percent Width in float. +---@param percentWidth float +---@return self +function LayoutComponent:setPercentWidth (percentWidth) end +---* Query the anchor position.<br> +---* return Anchor position to it's parent +---@return vec2_table +function LayoutComponent:getAnchorPosition () end +---* Toggle position percentX enabled.<br> +---* param isUsed True if enable position percentX, false otherwise. +---@param isUsed boolean +---@return self +function LayoutComponent:setPositionPercentXEnabled (isUsed) end +---* Toggle enable stretch height.<br> +---* param isUsed True if stretch height is enabled, false otherwise. +---@param isUsed boolean +---@return self +function LayoutComponent:setStretchHeightEnabled (isUsed) end +---* Toggle active enabled of LayoutComponent's owner.<br> +---* param enable True if active layout component, false otherwise. +---@param enable boolean +---@return self +function LayoutComponent:setActiveEnabled (enable) end +---* Query the right margin of owner relative to its parent.<br> +---* return Right margin in float. +---@return float +function LayoutComponent:getRightMargin () end +---* Query owner's content size.<br> +---* return Owner's content size. +---@return size_table +function LayoutComponent:getSize () end +---* Change the anchor position to it's parent.<br> +---* param point A value in (x,y) format. +---@param point vec2_table +---@return self +function LayoutComponent:setAnchorPosition (point) end +---* Refresh layout of the owner. +---@return self +function LayoutComponent:refreshLayout () end +---* Query whether percent width is enabled or not.<br> +---* return True if percent width is enabled, false, otherwise. +---@return boolean +function LayoutComponent:isPercentWidthEnabled () end +---* Change element's vertical dock type.<br> +---* param vEage Vertical dock type @see `VerticalEdge`. +---@param vEage int +---@return self +function LayoutComponent:setVerticalEdge (vEage) end +---* Query the top margin of owner relative to its parent.<br> +---* return Top margin in float. +---@return float +function LayoutComponent:getTopMargin () end +---* Change content size width of owner.<br> +---* param width Content size width in float. +---@param width float +---@return self +function LayoutComponent:setSizeWidth (width) end +---* Query the percent content size value.<br> +---* return Percent (x,y) in Vec2. +---@return vec2_table +function LayoutComponent:getPercentContentSize () end +---* Query element vertical dock type.<br> +---* return Vertical dock type. +---@return int +function LayoutComponent:getVerticalEdge () end +---* Toggle enable percent width.<br> +---* param isUsed True if percent width is enabled, false otherwise. +---@param isUsed boolean +---@return self +function LayoutComponent:setPercentWidthEnabled (isUsed) end +---* Query whether stretch width is enabled or not.<br> +---* return True if stretch width is enabled, false otherwise. +---@return boolean +function LayoutComponent:isStretchWidthEnabled () end +---* Change left margin of owner relative to its parent.<br> +---* param margin Margin in float. +---@param margin float +---@return self +function LayoutComponent:setLeftMargin (margin) end +---* Query content size width of owner.<br> +---* return Content size width in float. +---@return float +function LayoutComponent:getSizeWidth () end +---* Toggle position percentY enabled.<br> +---* param isUsed True if position percentY is enabled, false otherwise. +---@param isUsed boolean +---@return self +function LayoutComponent:setPositionPercentYEnabled (isUsed) end +---* Query size height of owner.<br> +---* return Size height in float. +---@return float +function LayoutComponent:getSizeHeight () end +---* Query the position percentY Y value.<br> +---* return Position percent Y value in float. +---@return float +function LayoutComponent:getPositionPercentY () end +---* Query the position percent X value.<br> +---* return Position percent X value in float. +---@return float +function LayoutComponent:getPositionPercentX () end +---* Change the top margin of owner relative to its parent.<br> +---* param margin Margin in float. +---@param margin float +---@return self +function LayoutComponent:setTopMargin (margin) end +---* Query percent height of owner. <br> +---* return Percent height in float. +---@return float +function LayoutComponent:getPercentHeight () end +---* Query whether use percent content size or not.<br> +---* return True if using percent content size, false otherwise. +---@return boolean +function LayoutComponent:getUsingPercentContentSize () end +---* Change position percentY value.<br> +---* param percentMargin Margin in float. +---@param percentMargin float +---@return self +function LayoutComponent:setPositionPercentY (percentMargin) end +---* Change position percent X value.<br> +---* param percentMargin Margin in float. +---@param percentMargin float +---@return self +function LayoutComponent:setPositionPercentX (percentMargin) end +---* Change right margin of owner relative to its parent.<br> +---* param margin Margin in float. +---@param margin float +---@return self +function LayoutComponent:setRightMargin (margin) end +---* Whether position percentY is enabled or not.<br> +---* see `setPositionPercentYEnabled`<br> +---* return True if position percentY is enabled, false otherwise. +---@return boolean +function LayoutComponent:isPositionPercentYEnabled () end +---* Change percent height value of owner.<br> +---* param percentHeight Percent height in float. +---@param percentHeight float +---@return self +function LayoutComponent:setPercentHeight (percentHeight) end +---* Toggle enable percent only.<br> +---* param enable True if percent only is enabled, false otherwise. +---@param enable boolean +---@return self +function LayoutComponent:setPercentOnlyEnabled (enable) end +---* Change element's horizontal dock type.<br> +---* param hEage Horizontal dock type @see `HorizontalEdge` +---@param hEage int +---@return self +function LayoutComponent:setHorizontalEdge (hEage) end +---* Change the position of component owner.<br> +---* param position A position in (x,y) +---@param position vec2_table +---@return self +function LayoutComponent:setPosition (position) end +---* Percent content size is used to adapt node's content size based on parent's content size.<br> +---* If set to true then node's content size will be changed based on the value set by @see setPercentContentSize<br> +---* param isUsed True to enable percent content size, false otherwise. +---@param isUsed boolean +---@return self +function LayoutComponent:setUsingPercentContentSize (isUsed) end +---* Query left margin of owner relative to its parent.<br> +---* return Left margin in float. +---@return float +function LayoutComponent:getLeftMargin () end +---* Query the owner's position.<br> +---* return The owner's position. +---@return vec2_table +function LayoutComponent:getPosition () end +---* Change size height of owner.<br> +---* param height Size height in float. +---@param height float +---@return self +function LayoutComponent:setSizeHeight (height) end +---* Whether position percentX is enabled or not. <br> +---* return True if position percentX is enable, false otherwise. +---@return boolean +function LayoutComponent:isPositionPercentXEnabled () end +---* Query the bottom margin of owner relative to its parent.<br> +---* return Bottom margin in float. +---@return float +function LayoutComponent:getBottomMargin () end +---* Toggle enable percent height.<br> +---* param isUsed True if percent height is enabled, false otherwise. +---@param isUsed boolean +---@return self +function LayoutComponent:setPercentHeightEnabled (isUsed) end +---* Set percent content size.<br> +---* The value should be [0-1], 0 means the child's content size will be 0<br> +---* and 1 means the child's content size is the same as its parents.<br> +---* param percent The percent (x,y) of the node in [0-1] scope. +---@param percent vec2_table +---@return self +function LayoutComponent:setPercentContentSize (percent) end +---* Query whether percent height is enabled or not.<br> +---* return True if percent height is enabled, false otherwise. +---@return boolean +function LayoutComponent:isPercentHeightEnabled () end +---* Query percent width of owner.<br> +---* return percent width in float. +---@return float +function LayoutComponent:getPercentWidth () end +---* Query element horizontal dock type.<br> +---* return Horizontal dock type. +---@return int +function LayoutComponent:getHorizontalEdge () end +---* Query whether stretch height is enabled or not.<br> +---* return True if stretch height is enabled, false otherwise. +---@return boolean +function LayoutComponent:isStretchHeightEnabled () end +---* Change the bottom margin of owner relative to its parent.<br> +---* param margin in float. +---@param margin float +---@return self +function LayoutComponent:setBottomMargin (margin) end +---* Change the content size of owner.<br> +---* param size Content size in @see `Size`. +---@param size size_table +---@return self +function LayoutComponent:setSize (size) end +---* +---@return self +function LayoutComponent:create () end +---* Bind a LayoutComponent to a specified node.<br> +---* If the node has already binded a LayoutComponent named __LAYOUT_COMPONENT_NAME, just return the LayoutComponent.<br> +---* Otherwise, create a new LayoutComponent and bind the LayoutComponent to the node.<br> +---* param node A Node* instance pointer.<br> +---* return The binded LayoutComponent instance pointer. +---@param node cc.Node +---@return self +function LayoutComponent:bindLayoutComponent (node) end +---* +---@return boolean +function LayoutComponent:init () end +---* Default constructor<br> +---* lua new +---@return self +function LayoutComponent:LayoutComponent () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.LayoutParameter.lua b/meta/3rd/Cocos4.0/ccui.LayoutParameter.lua new file mode 100644 index 00000000..5671e374 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.LayoutParameter.lua @@ -0,0 +1,34 @@ + +---@class ccui.LayoutParameter :cc.Ref +local LayoutParameter={ } +ccui.LayoutParameter=LayoutParameter + + + + +---* Create a copy of original LayoutParameter.<br> +---* return A LayoutParameter pointer. +---@return self +function LayoutParameter:clone () end +---* Gets LayoutParameterType of LayoutParameter.<br> +---* see LayoutParameterType.<br> +---* return LayoutParameterType +---@return int +function LayoutParameter:getLayoutType () end +---* Create a cloned instance of LayoutParameter.<br> +---* return A LayoutParameter pointer. +---@return self +function LayoutParameter:createCloneInstance () end +---* Copy all the member field from argument LayoutParameter to self.<br> +---* param model A LayoutParameter instance. +---@param model ccui.LayoutParameter +---@return self +function LayoutParameter:copyProperties (model) end +---* Create a empty LayoutParameter.<br> +---* return A autorelease LayoutParameter instance. +---@return self +function LayoutParameter:create () end +---* Default constructor.<br> +---* lua new +---@return self +function LayoutParameter:LayoutParameter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.LinearLayoutParameter.lua b/meta/3rd/Cocos4.0/ccui.LinearLayoutParameter.lua new file mode 100644 index 00000000..91148982 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.LinearLayoutParameter.lua @@ -0,0 +1,34 @@ + +---@class ccui.LinearLayoutParameter :ccui.LayoutParameter +local LinearLayoutParameter={ } +ccui.LinearLayoutParameter=LinearLayoutParameter + + + + +---* Sets LinearGravity parameter for LayoutParameter.<br> +---* see LinearGravity<br> +---* param gravity Gravity in LinearGravity. +---@param gravity int +---@return self +function LinearLayoutParameter:setGravity (gravity) end +---* Gets LinearGravity parameter for LayoutParameter.<br> +---* see LinearGravity<br> +---* return LinearGravity +---@return int +function LinearLayoutParameter:getGravity () end +---* Create a empty LinearLayoutParameter instance.<br> +---* return A initialized LayoutParameter which is marked as "autorelease". +---@return self +function LinearLayoutParameter:create () end +---* +---@return ccui.LayoutParameter +function LinearLayoutParameter:createCloneInstance () end +---* +---@param model ccui.LayoutParameter +---@return self +function LinearLayoutParameter:copyProperties (model) end +---* Default constructor.<br> +---* lua new +---@return self +function LinearLayoutParameter:LinearLayoutParameter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.ListView.lua b/meta/3rd/Cocos4.0/ccui.ListView.lua new file mode 100644 index 00000000..9501dce8 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.ListView.lua @@ -0,0 +1,304 @@ + +---@class ccui.ListView :ccui.ScrollView +local ListView={ } +ccui.ListView=ListView + + + + +---* Set the gravity of ListView.<br> +---* see `ListViewGravity` +---@param gravity int +---@return self +function ListView:setGravity (gravity) end +---* Removes the last item of ListView. +---@return self +function ListView:removeLastItem () end +---* Get the left padding in ListView<br> +---* return Left padding in float +---@return float +function ListView:getLeftPadding () end +---* brief Query the center item<br> +---* return An item instance. +---@return ccui.Widget +function ListView:getCenterItemInCurrentView () end +---* brief Query current selected widget's index.<br> +---* return An index of a selected item. +---@return int +function ListView:getCurSelectedIndex () end +---* Get the time in seconds to scroll between items.<br> +---* return The time in seconds to scroll between items<br> +---* see setScrollDuration(float) +---@return float +function ListView:getScrollDuration () end +---* Query whether the magnetic out of boundary is allowed. +---@return boolean +function ListView:getMagneticAllowedOutOfBoundary () end +---* brief Query margin between each item in ListView.<br> +---* return A margin in float. +---@return float +function ListView:getItemsMargin () end +---@overload fun(int:int,vec2_table:vec2_table,vec2_table:vec2_table,float:float):self +---@overload fun(int:int,vec2_table:vec2_table,vec2_table:vec2_table):self +---@param itemIndex int +---@param positionRatioInView vec2_table +---@param itemAnchorPoint vec2_table +---@param timeInSec float +---@return self +function ListView:scrollToItem (itemIndex,positionRatioInView,itemAnchorPoint,timeInSec) end +---* brief Jump to specific item<br> +---* param itemIndex Specifies the item's index<br> +---* param positionRatioInView Specifies the position with ratio in list view's content size.<br> +---* param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance. +---@param itemIndex int +---@param positionRatioInView vec2_table +---@param itemAnchorPoint vec2_table +---@return self +function ListView:jumpToItem (itemIndex,positionRatioInView,itemAnchorPoint) end +---* Change padding with top padding<br> +---* param t Top padding in float +---@param t float +---@return self +function ListView:setTopPadding (t) end +---* Return the index of specified widget.<br> +---* param item A widget pointer.<br> +---* return The index of a given widget in ListView. +---@param item ccui.Widget +---@return int +function ListView:getIndex (item) end +---* Insert a custom item into the end of ListView.<br> +---* param item An item in `Widget*`. +---@param item ccui.Widget +---@return self +function ListView:pushBackCustomItem (item) end +---* brief Set current selected widget's index and call TouchEventType::ENDED event.<br> +---* param itemIndex A index of a selected item. +---@param itemIndex int +---@return self +function ListView:setCurSelectedIndex (itemIndex) end +---* Insert a default item(create by cloning model) into listview at a give index.<br> +---* param index An index in ssize_t. +---@param index int +---@return self +function ListView:insertDefaultItem (index) end +---* Set magnetic type of ListView.<br> +---* see `MagneticType` +---@param magneticType int +---@return self +function ListView:setMagneticType (magneticType) end +---* Set magnetic allowed out of boundary. +---@param magneticAllowedOutOfBoundary boolean +---@return self +function ListView:setMagneticAllowedOutOfBoundary (magneticAllowedOutOfBoundary) end +---* Add an event click callback to ListView, then one item of Listview is clicked, the callback will be called.<br> +---* param callback A callback function with type of `ccListViewCallback`. +---@param callback function +---@return self +function ListView:addEventListener (callback) end +---* +---@return self +function ListView:doLayout () end +---* brief Query the topmost item in horizontal list<br> +---* return An item instance. +---@return ccui.Widget +function ListView:getTopmostItemInCurrentView () end +---* Change padding with left, top, right, and bottom padding.<br> +---* param l Left padding in float.<br> +---* param t Top margin in float.<br> +---* param r Right margin in float.<br> +---* param b Bottom margin in float. +---@param l float +---@param t float +---@param r float +---@param b float +---@return self +function ListView:setPadding (l,t,r,b) end +---* brief Remove all items in current ListView. +---@return self +function ListView:removeAllItems () end +---* Get the right padding in ListView<br> +---* return Right padding in float +---@return float +function ListView:getRightPadding () end +---* brief Query the bottommost item in horizontal list<br> +---* return An item instance. +---@return ccui.Widget +function ListView:getBottommostItemInCurrentView () end +---* Return all items in a ListView.<br> +---* returns A vector of widget pointers. +---@return array_table +function ListView:getItems () end +---* brief Query the leftmost item in horizontal list<br> +---* return An item instance. +---@return ccui.Widget +function ListView:getLeftmostItemInCurrentView () end +---* Set the margin between each item in ListView.<br> +---* param margin A margin in float. +---@param margin float +---@return self +function ListView:setItemsMargin (margin) end +---* Get magnetic type of ListView. +---@return int +function ListView:getMagneticType () end +---* Return an item at a given index.<br> +---* param index A given index in ssize_t.<br> +---* return A widget instance. +---@param index int +---@return ccui.Widget +function ListView:getItem (index) end +---* Remove an item at given index.<br> +---* param index A given index in ssize_t. +---@param index int +---@return self +function ListView:removeItem (index) end +---* Get the top padding in ListView<br> +---* return Top padding in float +---@return float +function ListView:getTopPadding () end +---* Insert a default item(create by a cloned model) at the end of the listview. +---@return self +function ListView:pushBackDefaultItem () end +---* Change padding with left padding<br> +---* param l Left padding in float. +---@param l float +---@return self +function ListView:setLeftPadding (l) end +---* brief Query the closest item to a specific position in inner container.<br> +---* param targetPosition Specifies the target position in inner container's coordinates.<br> +---* param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance.<br> +---* return An item instance if list view is not empty. Otherwise, returns null. +---@param targetPosition vec2_table +---@param itemAnchorPoint vec2_table +---@return ccui.Widget +function ListView:getClosestItemToPosition (targetPosition,itemAnchorPoint) end +---* Change padding with bottom padding<br> +---* param b Bottom padding in float +---@param b float +---@return self +function ListView:setBottomPadding (b) end +---* Set the time in seconds to scroll between items.<br> +---* Subsequent calls of function 'scrollToItem', will take 'time' seconds for scrolling.<br> +---* param time The seconds needed to scroll between two items. 'time' must be >= 0<br> +---* see scrollToItem(ssize_t, const Vec2&, const Vec2&) +---@param time float +---@return self +function ListView:setScrollDuration (time) end +---* brief Query the closest item to a specific position in current view.<br> +---* For instance, to find the item in the center of view, call 'getClosestItemToPositionInCurrentView(Vec2::ANCHOR_MIDDLE, Vec2::ANCHOR_MIDDLE)'.<br> +---* param positionRatioInView Specifies the target position with ratio in list view's content size.<br> +---* param itemAnchorPoint Specifies an anchor point of each item for position to calculate distance.<br> +---* return An item instance if list view is not empty. Otherwise, returns null. +---@param positionRatioInView vec2_table +---@param itemAnchorPoint vec2_table +---@return ccui.Widget +function ListView:getClosestItemToPositionInCurrentView (positionRatioInView,itemAnchorPoint) end +---* brief Query the rightmost item in horizontal list<br> +---* return An item instance. +---@return ccui.Widget +function ListView:getRightmostItemInCurrentView () end +---* Change padding with right padding<br> +---* param r Right padding in float +---@param r float +---@return self +function ListView:setRightPadding (r) end +---* Set an item model for listview.<br> +---* When calling `pushBackDefaultItem`, the model will be used as a blueprint and new model copy will be inserted into ListView.<br> +---* param model Model in `Widget*`. +---@param model ccui.Widget +---@return self +function ListView:setItemModel (model) end +---* Get the bottom padding in ListView<br> +---* return Bottom padding in float +---@return float +function ListView:getBottomPadding () end +---* brief Insert a custom widget into ListView at a given index.<br> +---* param item A widget pointer to be inserted.<br> +---* param index A given index in ssize_t. +---@param item ccui.Widget +---@param index int +---@return self +function ListView:insertCustomItem (item,index) end +---* Create an empty ListView.<br> +---* return A ListView instance. +---@return self +function ListView:create () end +---* +---@return cc.Ref +function ListView:createInstance () end +---@overload fun(cc.Node:cc.Node,int:int):self +---@overload fun(cc.Node:cc.Node):self +---@overload fun(cc.Node:cc.Node,int:int,string2:int):self +---@overload fun(cc.Node:cc.Node,int:int,string:string):self +---@param child cc.Node +---@param zOrder int +---@param name string +---@return self +function ListView:addChild (child,zOrder,name) end +---* Override functions +---@return self +function ListView:jumpToBottom () end +---* +---@return boolean +function ListView:init () end +---* Changes scroll direction of scrollview.<br> +---* Direction Direction::VERTICAL means vertical scroll, Direction::HORIZONTAL means horizontal scroll.<br> +---* param dir Set the list view's scroll direction. +---@param dir int +---@return self +function ListView:setDirection (dir) end +---* +---@return self +function ListView:jumpToTopRight () end +---* +---@return self +function ListView:jumpToLeft () end +---* +---@param cleanup boolean +---@return self +function ListView:removeAllChildrenWithCleanup (cleanup) end +---* +---@return self +function ListView:requestDoLayout () end +---* +---@return self +function ListView:removeAllChildren () end +---* +---@return self +function ListView:jumpToTopLeft () end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function ListView:removeChild (child,cleanup) end +---* +---@return self +function ListView:jumpToBottomRight () end +---* +---@return self +function ListView:jumpToTop () end +---* +---@return self +function ListView:jumpToBottomLeft () end +---* +---@param percent vec2_table +---@return self +function ListView:jumpToPercentBothDirection (percent) end +---* +---@param percent float +---@return self +function ListView:jumpToPercentHorizontal (percent) end +---* +---@return self +function ListView:jumpToRight () end +---* +---@return string +function ListView:getDescription () end +---* +---@param percent float +---@return self +function ListView:jumpToPercentVertical (percent) end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function ListView:ListView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.LoadingBar.lua b/meta/3rd/Cocos4.0/ccui.LoadingBar.lua new file mode 100644 index 00000000..82dc2ad6 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.LoadingBar.lua @@ -0,0 +1,86 @@ + +---@class ccui.LoadingBar :ccui.Widget +local LoadingBar={ } +ccui.LoadingBar=LoadingBar + + + + +---* Changes the progress value of LoadingBar.<br> +---* param percent Percent value from 1 to 100. +---@param percent float +---@return self +function LoadingBar:setPercent (percent) end +---* Load texture for LoadingBar.<br> +---* param texture File name of texture.<br> +---* param texType Texture resource type,@see TextureResType. +---@param texture string +---@param texType int +---@return self +function LoadingBar:loadTexture (texture,texType) end +---* Change the progress direction of LoadingBar.<br> +---* see Direction `LEFT` means progress left to right, `RIGHT` otherwise.<br> +---* param direction Direction +---@param direction int +---@return self +function LoadingBar:setDirection (direction) end +---* +---@return cc.ResourceData +function LoadingBar:getRenderFile () end +---* Enable scale9 renderer.<br> +---* param enabled Set to true will use scale9 renderer, false otherwise. +---@param enabled boolean +---@return self +function LoadingBar:setScale9Enabled (enabled) end +---* Set capInsets for LoadingBar.<br> +---* This setting only take effect when enable scale9 renderer.<br> +---* param capInsets CapInset in `Rect`. +---@param capInsets rect_table +---@return self +function LoadingBar:setCapInsets (capInsets) end +---* Get the progress direction of LoadingBar.<br> +---* see Direction `LEFT` means progress left to right, `RIGHT` otherwise.<br> +---* return LoadingBar progress direction. +---@return int +function LoadingBar:getDirection () end +---* brief Query LoadingBar's capInsets.<br> +---* return CapInsets of LoadingBar. +---@return rect_table +function LoadingBar:getCapInsets () end +---* brief Query whether LoadingBar is using scale9 renderer or not.<br> +---* return Whether LoadingBar uses scale9 renderer or not. +---@return boolean +function LoadingBar:isScale9Enabled () end +---* Get the progress value of LoadingBar.<br> +---* return Progress value from 1 to 100. +---@return float +function LoadingBar:getPercent () end +---@overload fun(string:string,int1:float):self +---@overload fun():self +---@overload fun(string:string,int:int,float:float):self +---@param textureName string +---@param texType int +---@param percentage float +---@return self +function LoadingBar:create (textureName,texType,percentage) end +---* +---@return cc.Ref +function LoadingBar:createInstance () end +---* +---@return cc.Node +function LoadingBar:getVirtualRenderer () end +---* +---@return string +function LoadingBar:getDescription () end +---* +---@return size_table +function LoadingBar:getVirtualRendererSize () end +---* +---@param ignore boolean +---@return self +function LoadingBar:ignoreContentAdaptWithSize (ignore) end +---* Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function LoadingBar:LoadingBar () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.PageView.lua b/meta/3rd/Cocos4.0/ccui.PageView.lua new file mode 100644 index 00000000..39536c95 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.PageView.lua @@ -0,0 +1,179 @@ + +---@class ccui.PageView :ccui.ListView +local PageView={ } +ccui.PageView=PageView + + + + +---* brief Set space between page indicator's index nodes.<br> +---* param spaceBetweenIndexNodes Space between nodes in pixel. +---@param spaceBetweenIndexNodes float +---@return self +function PageView:setIndicatorSpaceBetweenIndexNodes (spaceBetweenIndexNodes) end +---* Insert a page into PageView at a given index.<br> +---* param page Page to be inserted.<br> +---* param idx A given index. +---@param page ccui.Widget +---@param idx int +---@return self +function PageView:insertPage (page,idx) end +---* brief Set opacity of page indicator's index nodes.<br> +---* param opacity New indicator node opacity. +---@param opacity unsigned_char +---@return self +function PageView:setIndicatorIndexNodesOpacity (opacity) end +---* brief Set opacity of page indicator's selected index.<br> +---* param color New opacity for selected (current) index. +---@param opacity unsigned_char +---@return self +function PageView:setIndicatorSelectedIndexOpacity (opacity) end +---* brief Remove all pages of the PageView. +---@return self +function PageView:removeAllPages () end +---* +---@param epsilon float +---@return self +function PageView:setAutoScrollStopEpsilon (epsilon) end +---* brief Set scale of page indicator's index nodes.<br> +---* param indexNodesScale Scale of index nodes. +---@param indexNodesScale float +---@return self +function PageView:setIndicatorIndexNodesScale (indexNodesScale) end +---* brief Toggle page indicator enabled.<br> +---* param enabled True if enable page indicator, false otherwise. +---@param enabled boolean +---@return self +function PageView:setIndicatorEnabled (enabled) end +---* brief Set color of page indicator's selected index.<br> +---* param color New color for selected (current) index. +---@param color color3b_table +---@return self +function PageView:setIndicatorSelectedIndexColor (color) end +---* brief Add a page turn callback to PageView, then when one page is turning, the callback will be called.<br> +---* param callback A page turning callback. +---@param callback function +---@return self +function PageView:addEventListener (callback) end +---* brief Get the page indicator's position.<br> +---* return positionAsAnchorPoint +---@return vec2_table +function PageView:getIndicatorPosition () end +---* Jump to a page with a given index without scrolling.<br> +---* This is the different between scrollToPage.<br> +---* param index A given index in PageView. Index start from 0 to pageCount -1. +---@param index int +---@return self +function PageView:setCurrentPageIndex (index) end +---* brief Get the color of page indicator's index nodes.<br> +---* return color +---@return color3b_table +function PageView:getIndicatorIndexNodesColor () end +---* brief Get the color of page indicator's selected index.<br> +---* return color +---@return color3b_table +function PageView:getIndicatorSelectedIndexColor () end +---* brief Get scale of page indicator's index nodes.<br> +---* return indexNodesScale +---@return float +function PageView:getIndicatorIndexNodesScale () end +---* brief Set the page indicator's position in page view.<br> +---* param position The position in page view +---@param position vec2_table +---@return self +function PageView:setIndicatorPosition (position) end +---* brief Get the opacity of page indicator's selected index.<br> +---* return opacity +---@return unsigned_char +function PageView:getIndicatorSelectedIndexOpacity () end +---@overload fun(int:int,float:float):self +---@overload fun(int:int):self +---@param idx int +---@param time float +---@return self +function PageView:scrollToPage (idx,time) end +---* brief Set the page indicator's position using anchor point.<br> +---* param positionAsAnchorPoint The position as anchor point. +---@param positionAsAnchorPoint vec2_table +---@return self +function PageView:setIndicatorPositionAsAnchorPoint (positionAsAnchorPoint) end +---@overload fun(int:int,float:float):self +---@overload fun(int:int):self +---@param idx int +---@param time float +---@return self +function PageView:scrollToItem (idx,time) end +---* brief Set color of page indicator's index nodes.<br> +---* param color New indicator node color. +---@param color color3b_table +---@return self +function PageView:setIndicatorIndexNodesColor (color) end +---* brief Get the opacity of page indicator's index nodes.<br> +---* return opacity +---@return unsigned_char +function PageView:getIndicatorIndexNodesOpacity () end +---* brief Get the page indicator's position as anchor point.<br> +---* return positionAsAnchorPoint +---@return vec2_table +function PageView:getIndicatorPositionAsAnchorPoint () end +---* Gets current displayed page index.<br> +---* return current page index. +---@return int +function PageView:getCurrentPageIndex () end +---* Remove a page of PageView.<br> +---* param page Page to be removed. +---@param page ccui.Widget +---@return self +function PageView:removePage (page) end +---* sets texture for index nodes.<br> +---* param fileName File name of texture.<br> +---* param resType @see TextureResType . +---@param texName string +---@param texType int +---@return self +function PageView:setIndicatorIndexNodesTexture (texName,texType) end +---* brief Query page indicator state.<br> +---* return True if page indicator is enabled, false otherwise. +---@return boolean +function PageView:getIndicatorEnabled () end +---* Remove a page at a given index of PageView.<br> +---* param index A given index. +---@param index int +---@return self +function PageView:removePageAtIndex (index) end +---* brief Get the space between page indicator's index nodes.<br> +---* return spaceBetweenIndexNodes +---@return float +function PageView:getIndicatorSpaceBetweenIndexNodes () end +---* Insert a page into the end of PageView.<br> +---* param page Page to be inserted. +---@param page ccui.Widget +---@return self +function PageView:addPage (page) end +---* Create an empty PageView.<br> +---* return A PageView instance. +---@return self +function PageView:create () end +---* +---@return cc.Ref +function PageView:createInstance () end +---* +---@return self +function PageView:doLayout () end +---* +---@return boolean +function PageView:init () end +---* +---@return string +function PageView:getDescription () end +---* Changes direction<br> +---* Direction Direction::VERTICAL means vertical scroll, Direction::HORIZONTAL means horizontal scroll.<br> +---* param direction Set the page view's scroll direction. +---@param direction int +---@return self +function PageView:setDirection (direction) end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function PageView:PageView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RadioButton.lua b/meta/3rd/Cocos4.0/ccui.RadioButton.lua new file mode 100644 index 00000000..4484ddf5 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RadioButton.lua @@ -0,0 +1,34 @@ + +---@class ccui.RadioButton :ccui.AbstractCheckButton +local RadioButton={ } +ccui.RadioButton=RadioButton + + + + +---* Add a callback function which would be called when radio button is selected or unselected.<br> +---* param callback A std::function with type @see `ccRadioButtonCallback` +---@param callback function +---@return self +function RadioButton:addEventListener (callback) end +---@overload fun(string:string,string:string,string:string,string:string,string:string,int:int):self +---@overload fun():self +---@overload fun(string:string,string:string,string2:int):self +---@param backGround string +---@param backGroundSelected string +---@param cross string +---@param backGroundDisabled string +---@param frontCrossDisabled string +---@param texType int +---@return self +function RadioButton:create (backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end +---* +---@return cc.Ref +function RadioButton:createInstance () end +---* +---@return string +function RadioButton:getDescription () end +---* Default constructor.<br> +---* lua new +---@return self +function RadioButton:RadioButton () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RadioButtonGroup.lua b/meta/3rd/Cocos4.0/ccui.RadioButtonGroup.lua new file mode 100644 index 00000000..6ece2d02 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RadioButtonGroup.lua @@ -0,0 +1,72 @@ + +---@class ccui.RadioButtonGroup :ccui.Widget +local RadioButtonGroup={ } +ccui.RadioButtonGroup=RadioButtonGroup + + + + +---* Remove a radio button from this group.<br> +---* param radio button instance +---@param radioButton ccui.RadioButton +---@return self +function RadioButtonGroup:removeRadioButton (radioButton) end +---* Query whether no-selection is allowed or not.<br> +---* param true means no-selection is allowed, false means no-selection is not allowed. +---@return boolean +function RadioButtonGroup:isAllowedNoSelection () end +---* Get the index of selected radio button.<br> +---* return the selected button's index. Returns -1 if no button is selected. +---@return int +function RadioButtonGroup:getSelectedButtonIndex () end +---* Set a flag for allowing no-selection feature.<br> +---* If it is allowed, no radio button can be selected.<br> +---* If it is not allowed, one radio button must be selected all time except it is empty.<br> +---* Default is not allowed.<br> +---* param true means allowing no-selection, false means disallowing no-selection. +---@param allowedNoSelection boolean +---@return self +function RadioButtonGroup:setAllowedNoSelection (allowedNoSelection) end +---@overload fun(int0:ccui.RadioButton):self +---@overload fun(int:int):self +---@param index int +---@return self +function RadioButtonGroup:setSelectedButtonWithoutEvent (index) end +---* Add a callback function which would be called when radio button is selected or unselected.<br> +---* param callback A std::function with type @see `ccRadioButtonGroupCallback` +---@param callback function +---@return self +function RadioButtonGroup:addEventListener (callback) end +---* Remove all radio button from this group. +---@return self +function RadioButtonGroup:removeAllRadioButtons () end +---* Get a radio button in this group by index.<br> +---* param index of the radio button<br> +---* return radio button instance. Returns nullptr if out of index. +---@param index int +---@return ccui.RadioButton +function RadioButtonGroup:getRadioButtonByIndex (index) end +---* Get the number of radio buttons in this group.<br> +---* return the number of radio buttons in this group +---@return int +function RadioButtonGroup:getNumberOfRadioButtons () end +---* Add a radio button into this group.<br> +---* param radio button instance +---@param radioButton ccui.RadioButton +---@return self +function RadioButtonGroup:addRadioButton (radioButton) end +---@overload fun(int0:ccui.RadioButton):self +---@overload fun(int:int):self +---@param index int +---@return self +function RadioButtonGroup:setSelectedButton (index) end +---* Create and return a empty RadioButtonGroup instance pointer. +---@return self +function RadioButtonGroup:create () end +---* +---@return string +function RadioButtonGroup:getDescription () end +---* Default constructor.<br> +---* lua new +---@return self +function RadioButtonGroup:RadioButtonGroup () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RelativeBox.lua b/meta/3rd/Cocos4.0/ccui.RelativeBox.lua new file mode 100644 index 00000000..d69733c9 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RelativeBox.lua @@ -0,0 +1,25 @@ + +---@class ccui.RelativeBox :ccui.Layout +local RelativeBox={ } +ccui.RelativeBox=RelativeBox + + + + +---* +---@param size size_table +---@return boolean +function RelativeBox:initWithSize (size) end +---@overload fun(size_table:size_table):self +---@overload fun():self +---@param size size_table +---@return self +function RelativeBox:create (size) end +---* +---@return boolean +function RelativeBox:init () end +---* Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function RelativeBox:RelativeBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RelativeLayoutParameter.lua b/meta/3rd/Cocos4.0/ccui.RelativeLayoutParameter.lua new file mode 100644 index 00000000..b9f62818 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RelativeLayoutParameter.lua @@ -0,0 +1,52 @@ + +---@class ccui.RelativeLayoutParameter :ccui.LayoutParameter +local RelativeLayoutParameter={ } +ccui.RelativeLayoutParameter=RelativeLayoutParameter + + + + +---* Sets RelativeAlign parameter for LayoutParameter.<br> +---* see RelativeAlign<br> +---* param align Relative align in `RelativeAlign`. +---@param align int +---@return self +function RelativeLayoutParameter:setAlign (align) end +---* Set widget name your widget want to relative to.<br> +---* param name Relative widget name. +---@param name string +---@return self +function RelativeLayoutParameter:setRelativeToWidgetName (name) end +---* Get a name of LayoutParameter in Relative Layout.<br> +---* return name Relative name in string. +---@return string +function RelativeLayoutParameter:getRelativeName () end +---* Get the relative widget name.<br> +---* return name A relative widget name in string. +---@return string +function RelativeLayoutParameter:getRelativeToWidgetName () end +---* Set a name for LayoutParameter in Relative Layout.<br> +---* param name A string name. +---@param name string +---@return self +function RelativeLayoutParameter:setRelativeName (name) end +---* Get RelativeAlign parameter for LayoutParameter.<br> +---* see RelativeAlign<br> +---* return A RelativeAlign variable. +---@return int +function RelativeLayoutParameter:getAlign () end +---* Create a RelativeLayoutParameter instance.<br> +---* return A initialized LayoutParameter which is marked as "autorelease". +---@return self +function RelativeLayoutParameter:create () end +---* +---@return ccui.LayoutParameter +function RelativeLayoutParameter:createCloneInstance () end +---* +---@param model ccui.LayoutParameter +---@return self +function RelativeLayoutParameter:copyProperties (model) end +---* Default constructor<br> +---* lua new +---@return self +function RelativeLayoutParameter:RelativeLayoutParameter () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RichElement.lua b/meta/3rd/Cocos4.0/ccui.RichElement.lua new file mode 100644 index 00000000..4dfab535 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RichElement.lua @@ -0,0 +1,31 @@ + +---@class ccui.RichElement :cc.Ref +local RichElement={ } +ccui.RichElement=RichElement + + + + +---* +---@param type int +---@return boolean +function RichElement:equalType (type) end +---* brief Initialize a rich element with different arguments.<br> +---* param tag A integer tag value.<br> +---* param color A color in @see `Color3B`.<br> +---* param opacity A opacity value in `GLubyte`.<br> +---* return True if initialize success, false otherwise. +---@param tag int +---@param color color3b_table +---@param opacity unsigned_char +---@return boolean +function RichElement:init (tag,color,opacity) end +---* +---@param color color3b_table +---@return self +function RichElement:setColor (color) end +---* brief Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function RichElement:RichElement () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RichElementCustomNode.lua b/meta/3rd/Cocos4.0/ccui.RichElementCustomNode.lua new file mode 100644 index 00000000..4992f52c --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RichElementCustomNode.lua @@ -0,0 +1,37 @@ + +---@class ccui.RichElementCustomNode :ccui.RichElement +local RichElementCustomNode={ } +ccui.RichElementCustomNode=RichElementCustomNode + + + + +---* brief Initialize a RichElementCustomNode with various arguments.<br> +---* param tag A integer tag value.<br> +---* param color A color in Color3B.<br> +---* param opacity A opacity in GLubyte.<br> +---* param customNode A custom node pointer.<br> +---* return True if initialize success, false otherwise. +---@param tag int +---@param color color3b_table +---@param opacity unsigned_char +---@param customNode cc.Node +---@return boolean +function RichElementCustomNode:init (tag,color,opacity,customNode) end +---* brief Create a RichElementCustomNode with various arguments.<br> +---* param tag A integer tag value.<br> +---* param color A color in Color3B.<br> +---* param opacity A opacity in GLubyte.<br> +---* param customNode A custom node pointer.<br> +---* return A RichElementCustomNode instance. +---@param tag int +---@param color color3b_table +---@param opacity unsigned_char +---@param customNode cc.Node +---@return self +function RichElementCustomNode:create (tag,color,opacity,customNode) end +---* brief Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function RichElementCustomNode:RichElementCustomNode () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RichElementImage.lua b/meta/3rd/Cocos4.0/ccui.RichElementImage.lua new file mode 100644 index 00000000..480ad671 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RichElementImage.lua @@ -0,0 +1,57 @@ + +---@class ccui.RichElementImage :ccui.RichElement +local RichElementImage={ } +ccui.RichElementImage=RichElementImage + + + + +---* +---@param height int +---@return self +function RichElementImage:setHeight (height) end +---* brief Initialize a RichElementImage with various arguments.<br> +---* param tag A integer tag value.<br> +---* param color A color in Color3B.<br> +---* param opacity A opacity in GLubyte.<br> +---* param filePath A image file name.<br> +---* param url uniform resource locator<br> +---* param texType texture type, may be a valid file path, or a sprite frame name<br> +---* return True if initialize success, false otherwise. +---@param tag int +---@param color color3b_table +---@param opacity unsigned_char +---@param filePath string +---@param url string +---@param texType int +---@return boolean +function RichElementImage:init (tag,color,opacity,filePath,url,texType) end +---* +---@param width int +---@return self +function RichElementImage:setWidth (width) end +---* +---@param url string +---@return self +function RichElementImage:setUrl (url) end +---* brief Create a RichElementImage with various arguments.<br> +---* param tag A integer tag value.<br> +---* param color A color in Color3B.<br> +---* param opacity A opacity in GLubyte.<br> +---* param filePath A image file name.<br> +---* param url uniform resource locator<br> +---* param texType texture type, may be a valid file path, or a sprite frame name<br> +---* return A RichElementImage instance. +---@param tag int +---@param color color3b_table +---@param opacity unsigned_char +---@param filePath string +---@param url string +---@param texType int +---@return self +function RichElementImage:create (tag,color,opacity,filePath,url,texType) end +---* brief Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function RichElementImage:RichElementImage () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RichElementNewLine.lua b/meta/3rd/Cocos4.0/ccui.RichElementNewLine.lua new file mode 100644 index 00000000..deb0b9e9 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RichElementNewLine.lua @@ -0,0 +1,23 @@ + +---@class ccui.RichElementNewLine :ccui.RichElement +local RichElementNewLine={ } +ccui.RichElementNewLine=RichElementNewLine + + + + +---* brief Create a RichElementNewLine with various arguments.<br> +---* param tag A integer tag value.<br> +---* param color A color in Color3B.<br> +---* param opacity A opacity in GLubyte.<br> +---* return A RichElementNewLine instance. +---@param tag int +---@param color color3b_table +---@param opacity unsigned_char +---@return self +function RichElementNewLine:create (tag,color,opacity) end +---* brief Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function RichElementNewLine:RichElementNewLine () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RichElementText.lua b/meta/3rd/Cocos4.0/ccui.RichElementText.lua new file mode 100644 index 00000000..8dbd18dd --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RichElementText.lua @@ -0,0 +1,77 @@ + +---@class ccui.RichElementText :ccui.RichElement +local RichElementText={ } +ccui.RichElementText=RichElementText + + + + +---* brief Initialize a RichElementText with various arguments.<br> +---* param tag A integer tag value.<br> +---* param color A color in Color3B.<br> +---* param opacity A opacity in GLubyte.<br> +---* param text Content string.<br> +---* param fontName Content font name.<br> +---* param fontSize Content font size.<br> +---* param flags italics, bold, underline, strikethrough, url, outline, shadow or glow<br> +---* param url uniform resource locator<br> +---* param outlineColor the color of the outline<br> +---* param outlineSize the outline effect size value<br> +---* param shadowColor the shadow effect color value<br> +---* param shadowOffset shadow effect offset value<br> +---* param shadowBlurRadius the shadow effect blur radius<br> +---* param glowColor glow color<br> +---* return True if initialize success, false otherwise. +---@param tag int +---@param color color3b_table +---@param opacity unsigned_char +---@param text string +---@param fontName string +---@param fontSize float +---@param flags unsigned_int +---@param url string +---@param outlineColor color3b_table +---@param outlineSize int +---@param shadowColor color3b_table +---@param shadowOffset size_table +---@param shadowBlurRadius int +---@param glowColor color3b_table +---@return boolean +function RichElementText:init (tag,color,opacity,text,fontName,fontSize,flags,url,outlineColor,outlineSize,shadowColor,shadowOffset,shadowBlurRadius,glowColor) end +---* brief Create a RichElementText with various arguments.<br> +---* param tag A integer tag value.<br> +---* param color A color in Color3B.<br> +---* param opacity A opacity in GLubyte.<br> +---* param text Content string.<br> +---* param fontName Content font name.<br> +---* param fontSize Content font size.<br> +---* param flags italics, bold, underline, strikethrough, url, outline, shadow or glow<br> +---* param url uniform resource locator<br> +---* param outlineColor the color of the outline<br> +---* param outlineSize the outline effect size value<br> +---* param shadowColor the shadow effect color value<br> +---* param shadowOffset shadow effect offset value<br> +---* param shadowBlurRadius the shadow effect blur radius<br> +---* param glowColor glow color<br> +---* return RichElementText instance. +---@param tag int +---@param color color3b_table +---@param opacity unsigned_char +---@param text string +---@param fontName string +---@param fontSize float +---@param flags unsigned_int +---@param url string +---@param outlineColor color3b_table +---@param outlineSize int +---@param shadowColor color3b_table +---@param shadowOffset size_table +---@param shadowBlurRadius int +---@param glowColor color3b_table +---@return self +function RichElementText:create (tag,color,opacity,text,fontName,fontSize,flags,url,outlineColor,outlineSize,shadowColor,shadowOffset,shadowBlurRadius,glowColor) end +---* brief Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function RichElementText:RichElementText () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.RichText.lua b/meta/3rd/Cocos4.0/ccui.RichText.lua new file mode 100644 index 00000000..3908b431 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.RichText.lua @@ -0,0 +1,210 @@ + +---@class ccui.RichText :ccui.Widget +local RichText={ } +ccui.RichText=RichText + + + + +---* brief Insert a RichElement at a given index.<br> +---* param element A RichElement type.<br> +---* param index A given index. +---@param element ccui.RichElement +---@param index int +---@return self +function RichText:insertElement (element,index) end +---* @brief enable the outline of a-tag +---@param enable boolean +---@param outlineColor color3b_table +---@param outlineSize int +---@return self +function RichText:setAnchorTextOutline (enable,outlineColor,outlineSize) end +---* +---@return float +function RichText:getFontSize () end +---* brief Add a RichElement at the end of RichText.<br> +---* param element A RichElement instance. +---@param element ccui.RichElement +---@return self +function RichText:pushBackElement (element) end +---* +---@param enable boolean +---@return self +function RichText:setAnchorTextBold (enable) end +---* +---@return string +function RichText:getAnchorFontColor () end +---* +---@return int +function RichText:getAnchorTextShadowBlurRadius () end +---* @brief enable the shadow of a-tag +---@param enable boolean +---@param shadowColor color3b_table +---@param offset size_table +---@param blurRadius int +---@return self +function RichText:setAnchorTextShadow (enable,shadowColor,offset,blurRadius) end +---* +---@return boolean +function RichText:isAnchorTextItalicEnabled () end +---* +---@param color string +---@return self +function RichText:setAnchorFontColor (color) end +---* +---@param face string +---@return self +function RichText:setFontFace (face) end +---* +---@param enable boolean +---@param glowColor color3b_table +---@return self +function RichText:setAnchorTextGlow (enable,glowColor) end +---* +---@return int +function RichText:getHorizontalAlignment () end +---* +---@param a int +---@return self +function RichText:setHorizontalAlignment (a) end +---* +---@param enable boolean +---@return self +function RichText:setAnchorTextDel (enable) end +---* +---@return color3b_table +function RichText:getAnchorTextOutlineColor3B () end +---* +---@param color4b color4b_table +---@return string +function RichText:stringWithColor4B (color4b) end +---* +---@param xml string +---@param defaults map_table +---@param handleOpenUrl function +---@return boolean +function RichText:initWithXML (xml,defaults,handleOpenUrl) end +---* +---@return color3b_table +function RichText:getAnchorFontColor3B () end +---* brief Rearrange all RichElement in the RichText.<br> +---* It's usually called internally. +---@return self +function RichText:formatText () end +---* +---@return color3b_table +function RichText:getAnchorTextGlowColor3B () end +---* +---@param url string +---@return self +function RichText:openUrl (url) end +---* +---@return string +function RichText:getFontFace () end +---* +---@param color string +---@return self +function RichText:setFontColor (color) end +---* +---@return boolean +function RichText:isAnchorTextGlowEnabled () end +---* +---@return map_table +function RichText:getDefaults () end +---* +---@return boolean +function RichText:isAnchorTextUnderlineEnabled () end +---* +---@return string +function RichText:getFontColor () end +---* +---@return boolean +function RichText:isAnchorTextShadowEnabled () end +---* +---@return int +function RichText:getAnchorTextOutlineSize () end +---* brief Set vertical space between each RichElement.<br> +---* param space Point in float. +---@param space float +---@return self +function RichText:setVerticalSpace (space) end +---* +---@return boolean +function RichText:isAnchorTextDelEnabled () end +---* +---@param defaults map_table +---@return self +function RichText:setDefaults (defaults) end +---* +---@param wrapMode int +---@return self +function RichText:setWrapMode (wrapMode) end +---* +---@param size float +---@return self +function RichText:setFontSize (size) end +---@overload fun(int0:ccui.RichElement):self +---@overload fun(int:int):self +---@param index int +---@return self +function RichText:removeElement (index) end +---* +---@param enable boolean +---@return self +function RichText:setAnchorTextItalic (enable) end +---* +---@return size_table +function RichText:getAnchorTextShadowOffset () end +---* +---@return boolean +function RichText:isAnchorTextBoldEnabled () end +---* +---@return color3b_table +function RichText:getAnchorTextShadowColor3B () end +---* +---@param color3b color3b_table +---@return string +function RichText:stringWithColor3B (color3b) end +---* +---@return boolean +function RichText:isAnchorTextOutlineEnabled () end +---* +---@return color3b_table +function RichText:getFontColor3B () end +---* +---@return int +function RichText:getWrapMode () end +---* +---@param enable boolean +---@return self +function RichText:setAnchorTextUnderline (enable) end +---* +---@param color string +---@return color3b_table +function RichText:color3BWithString (color) end +---* brief Create a empty RichText.<br> +---* return RichText instance. +---@return self +function RichText:create () end +---* brief Create a RichText from an XML<br> +---* return RichText instance. +---@param xml string +---@param defaults map_table +---@param handleOpenUrl function +---@return self +function RichText:createWithXML (xml,defaults,handleOpenUrl) end +---* +---@return boolean +function RichText:init () end +---* +---@return string +function RichText:getDescription () end +---* +---@param ignore boolean +---@return self +function RichText:ignoreContentAdaptWithSize (ignore) end +---* brief Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function RichText:RichText () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.Scale9Sprite.lua b/meta/3rd/Cocos4.0/ccui.Scale9Sprite.lua new file mode 100644 index 00000000..3c02eeb8 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.Scale9Sprite.lua @@ -0,0 +1,224 @@ + +---@class ccui.Scale9Sprite :cc.Sprite +local Scale9Sprite={ } +ccui.Scale9Sprite=Scale9Sprite + + + + +---@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean:boolean,vec2_table:vec2_table,size_table:size_table,rect_table:rect_table):self +---@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean:boolean,vec2_table3:rect_table):self +---@param sprite cc.Sprite +---@param rect rect_table +---@param rotated boolean +---@param offset vec2_table +---@param originalSize size_table +---@param capInsets rect_table +---@return boolean +function Scale9Sprite:updateWithSprite (sprite,rect,rotated,offset,originalSize,capInsets) end +---* Creates and returns a new sprite object with the specified cap insets.<br> +---* You use this method to add cap insets to a sprite or to change the existing<br> +---* cap insets of a sprite. In both cases, you get back a new image and the<br> +---* original sprite remains untouched.<br> +---* param capInsets The values to use for the cap insets.<br> +---* return A Scale9Sprite instance. +---@param capInsets rect_table +---@return self +function Scale9Sprite:resizableSpriteWithCapInsets (capInsets) end +---* Returns the Cap Insets +---@return rect_table +function Scale9Sprite:getCapInsets () end +---* Change the state of 9-slice sprite.<br> +---* see `State`<br> +---* param state A enum value in State.<br> +---* since v3.4 +---@param state int +---@return self +function Scale9Sprite:setState (state) end +---* brief Change the bottom sprite's cap inset.<br> +---* param bottomInset The values to use for the cap inset. +---@param bottomInset float +---@return self +function Scale9Sprite:setInsetBottom (bottomInset) end +---* Initializes a 9-slice sprite with an sprite frame name and with the specified<br> +---* cap insets.<br> +---* Once the sprite is created, you can then call its "setContentSize:" method<br> +---* to resize the sprite will all it's 9-slice goodness interact.<br> +---* It respects the anchorPoint too.<br> +---* param spriteFrameName The sprite frame name.<br> +---* param capInsets The values to use for the cap insets.<br> +---* return True if initializes success, false otherwise. +---@param spriteFrameName string +---@param capInsets rect_table +---@return boolean +function Scale9Sprite:initWithSpriteFrameName (spriteFrameName,capInsets) end +---* brief Get the original no 9-sliced sprite<br> +---* return A sprite instance. +---@return cc.Sprite +function Scale9Sprite:getSprite () end +---* brief Change the top sprite's cap inset.<br> +---* param topInset The values to use for the cap inset. +---@param topInset float +---@return self +function Scale9Sprite:setInsetTop (topInset) end +---* Set the slice sprite rendering type.<br> +---* When setting to SIMPLE, only 4 vertexes is used to rendering.<br> +---* otherwise 16 vertexes will be used to rendering.<br> +---* see RenderingType +---@param type int +---@return self +function Scale9Sprite:setRenderingType (type) end +---@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean2:rect_table):self +---@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean:boolean,vec2_table3:rect_table):self +---@overload fun(cc.Sprite:cc.Sprite,rect_table:rect_table,boolean:boolean,vec2_table:vec2_table,size_table:size_table,rect_table:rect_table):self +---@param sprite cc.Sprite +---@param rect rect_table +---@param rotated boolean +---@param offset vec2_table +---@param originalSize size_table +---@param capInsets rect_table +---@return boolean +function Scale9Sprite:init (sprite,rect,rotated,offset,originalSize,capInsets) end +---* brief Change the preferred size of Scale9Sprite.<br> +---* param size A delimitation zone. +---@param size size_table +---@return self +function Scale9Sprite:setPreferredSize (size) end +---* brief copies self to copy +---@param copy ccui.Scale9Sprite +---@return self +function Scale9Sprite:copyTo (copy) end +---* brief Change inner sprite's sprite frame.<br> +---* param spriteFrame A sprite frame pointer.<br> +---* param capInsets The values to use for the cap insets. +---@param spriteFrame cc.SpriteFrame +---@param capInsets rect_table +---@return self +function Scale9Sprite:setSpriteFrame (spriteFrame,capInsets) end +---* Query the current bright state.<br> +---* return @see `State`<br> +---* since v3.7 +---@return int +function Scale9Sprite:getState () end +---* brief Query the bottom sprite's cap inset.<br> +---* return The bottom sprite's cap inset. +---@return float +function Scale9Sprite:getInsetBottom () end +---* brief Toggle 9-slice feature.<br> +---* If Scale9Sprite is 9-slice disabled, the Scale9Sprite will rendered as a normal sprite.<br> +---* warning: Don't use setScale9Enabled(false), use setRenderingType(RenderingType::SIMPLE) instead.<br> +---* The setScale9Enabled(false) is kept only for back back compatibility.<br> +---* param enabled True to enable 9-slice, false otherwise.<br> +---* js NA +---@param enabled boolean +---@return self +function Scale9Sprite:setScale9Enabled (enabled) end +---* brief Query whether the Scale9Sprite is enable 9-slice or not.<br> +---* return True if 9-slice is enabled, false otherwise.<br> +---* js NA +---@return boolean +function Scale9Sprite:isScale9Enabled () end +---* +---@return self +function Scale9Sprite:resetRender () end +---* Return the slice sprite rendering type. +---@return int +function Scale9Sprite:getRenderingType () end +---* brief Query the right sprite's cap inset.<br> +---* return The right sprite's cap inset. +---@return float +function Scale9Sprite:getInsetRight () end +---* brief Query the sprite's original size.<br> +---* return Sprite size. +---@return size_table +function Scale9Sprite:getOriginalSize () end +---@overload fun(string0:rect_table,rect_table1:string):self +---@overload fun(string:string,rect_table:rect_table,rect_table:rect_table):self +---@param file string +---@param rect rect_table +---@param capInsets rect_table +---@return boolean +function Scale9Sprite:initWithFile (file,rect,capInsets) end +---* brief Query the top sprite's cap inset.<br> +---* return The top sprite's cap inset. +---@return float +function Scale9Sprite:getInsetTop () end +---* brief Change the left sprite's cap inset.<br> +---* param leftInset The values to use for the cap inset. +---@param leftInset float +---@return self +function Scale9Sprite:setInsetLeft (leftInset) end +---* Initializes a 9-slice sprite with an sprite frame and with the specified<br> +---* cap insets.<br> +---* Once the sprite is created, you can then call its "setContentSize:" method<br> +---* to resize the sprite will all it's 9-slice goodness interact.<br> +---* It respects the anchorPoint too.<br> +---* param spriteFrame The sprite frame object.<br> +---* param capInsets The values to use for the cap insets.<br> +---* return True if initializes success, false otherwise. +---@param spriteFrame cc.SpriteFrame +---@param capInsets rect_table +---@return boolean +function Scale9Sprite:initWithSpriteFrame (spriteFrame,capInsets) end +---* brief Query the Scale9Sprite's preferred size.<br> +---* return Scale9Sprite's preferred size. +---@return size_table +function Scale9Sprite:getPreferredSize () end +---* Set the Cap Insets in Points using the untrimmed size as reference +---@param insets rect_table +---@return self +function Scale9Sprite:setCapInsets (insets) end +---* brief Query the left sprite's cap inset.<br> +---* return The left sprite's cap inset. +---@return float +function Scale9Sprite:getInsetLeft () end +---* brief Change the right sprite's cap inset.<br> +---* param rightInset The values to use for the cap inset. +---@param rightInset float +---@return self +function Scale9Sprite:setInsetRight (rightInset) end +---@overload fun(string:string,rect_table:rect_table,rect_table:rect_table):self +---@overload fun():self +---@overload fun(string0:rect_table,rect_table1:string):self +---@overload fun(string:string,rect_table:rect_table):self +---@overload fun(string:string):self +---@param file string +---@param rect rect_table +---@param capInsets rect_table +---@return self +function Scale9Sprite:create (file,rect,capInsets) end +---@overload fun(string:string,rect_table:rect_table):self +---@overload fun(string:string):self +---@param spriteFrameName string +---@param capInsets rect_table +---@return self +function Scale9Sprite:createWithSpriteFrameName (spriteFrameName,capInsets) end +---@overload fun(cc.SpriteFrame:cc.SpriteFrame,rect_table:rect_table):self +---@overload fun(cc.SpriteFrame:cc.SpriteFrame):self +---@param spriteFrame cc.SpriteFrame +---@param capInsets rect_table +---@return self +function Scale9Sprite:createWithSpriteFrame (spriteFrame,capInsets) end +---* Initializes a 9-slice sprite with an sprite frame name.<br> +---* Once the sprite is created, you can then call its "setContentSize:" method<br> +---* to resize the sprite will all it's 9-slice goodness interact.<br> +---* It respects the anchorPoint too.<br> +---* param spriteFrameName The sprite frame name.<br> +---* return True if initializes success, false otherwise. +---@param spriteFrameName string +---@return boolean +function Scale9Sprite:initWithSpriteFrameName (spriteFrameName) end +---@overload fun(string:string):self +---@overload fun(string:string,rect_table:rect_table):self +---@param file string +---@param rect rect_table +---@return boolean +function Scale9Sprite:initWithFile (file,rect) end +---* +---@return boolean +function Scale9Sprite:init () end +---* Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function Scale9Sprite:Scale9Sprite () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.ScrollView.lua b/meta/3rd/Cocos4.0/ccui.ScrollView.lua new file mode 100644 index 00000000..960bde08 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.ScrollView.lua @@ -0,0 +1,377 @@ + +---@class ccui.ScrollView :ccui.Layout +local ScrollView={ } +ccui.ScrollView=ScrollView + + + + +---* Scroll inner container to top boundary of scrollview.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToTop (timeInSec,attenuated) end +---* Scroll inner container to horizontal percent position of scrollview.<br> +---* param percent A value between 0 and 100.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param percent float +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToPercentHorizontal (percent,timeInSec,attenuated) end +---* brief Set the scroll bar's opacity<br> +---* param the scroll bar's opacity +---@param opacity unsigned_char +---@return self +function ScrollView:setScrollBarOpacity (opacity) end +---* brief Toggle scroll bar enabled.<br> +---* param enabled True if enable scroll bar, false otherwise. +---@param enabled boolean +---@return self +function ScrollView:setScrollBarEnabled (enabled) end +---* brief Query inertia scroll state.<br> +---* return True if inertia is enabled, false otherwise. +---@return boolean +function ScrollView:isInertiaScrollEnabled () end +---* Scroll inner container to bottom boundary of scrollview.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToBottom (timeInSec,attenuated) end +---* return How far the scroll view is scrolled in both axes, combined as a Vec2 +---@return vec2_table +function ScrollView:getScrolledPercentBothDirection () end +---* Query scroll direction of scrollview.<br> +---* see `Direction` Direction::VERTICAL means vertical scroll, Direction::HORIZONTAL means horizontal scroll<br> +---* return Scrollview scroll direction. +---@return int +function ScrollView:getDirection () end +---* brief Set the scroll bar's color<br> +---* param the scroll bar's color +---@param color color3b_table +---@return self +function ScrollView:setScrollBarColor (color) end +---* Scroll inner container to bottom and left boundary of scrollview.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToBottomLeft (timeInSec,attenuated) end +---* Get inner container of scrollview.<br> +---* Inner container is a child of scrollview.<br> +---* return Inner container pointer. +---@return ccui.Layout +function ScrollView:getInnerContainer () end +---* Move inner container to bottom boundary of scrollview. +---@return self +function ScrollView:jumpToBottom () end +---* Set inner container position<br> +---* param pos Inner container position. +---@param pos vec2_table +---@return self +function ScrollView:setInnerContainerPosition (pos) end +---* Changes scroll direction of scrollview.<br> +---* see `Direction`<br> +---* param dir Scroll direction enum. +---@param dir int +---@return self +function ScrollView:setDirection (dir) end +---* Scroll inner container to top and left boundary of scrollview.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToTopLeft (timeInSec,attenuated) end +---* Move inner container to top and right boundary of scrollview. +---@return self +function ScrollView:jumpToTopRight () end +---* Scroll inner container to both direction percent position of scrollview.<br> +---* param percent A value between 0 and 100.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param percent vec2_table +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToPercentBothDirection (percent,timeInSec,attenuated) end +---* Change inner container size of scrollview.<br> +---* Inner container size must be larger than or equal scrollview's size.<br> +---* param size Inner container size. +---@param size size_table +---@return self +function ScrollView:setInnerContainerSize (size) end +---* Get inner container position<br> +---* return The inner container position. +---@return vec2_table +function ScrollView:getInnerContainerPosition () end +---* Move inner container to top boundary of scrollview. +---@return self +function ScrollView:jumpToTop () end +---* return How far the scroll view is scrolled in the vertical axis +---@return float +function ScrollView:getScrolledPercentVertical () end +---* brief Query bounce state.<br> +---* return True if bounce is enabled, false otherwise. +---@return boolean +function ScrollView:isBounceEnabled () end +---* Move inner container to vertical percent position of scrollview.<br> +---* param percent A value between 0 and 100. +---@param percent float +---@return self +function ScrollView:jumpToPercentVertical (percent) end +---* Add callback function which will be called when scrollview event triggered.<br> +---* param callback A callback function with type of `ccScrollViewCallback`. +---@param callback function +---@return self +function ScrollView:addEventListener (callback) end +---* brief Set scroll bar auto hide time<br> +---* param scroll bar auto hide time +---@param autoHideTime float +---@return self +function ScrollView:setScrollBarAutoHideTime (autoHideTime) end +---* Immediately stops inner container scroll (auto scrolling is not affected). +---@return self +function ScrollView:stopScroll () end +---* brief Set the horizontal scroll bar position from left-bottom corner.<br> +---* param positionFromCorner The position from left-bottom corner +---@param positionFromCorner vec2_table +---@return self +function ScrollView:setScrollBarPositionFromCornerForHorizontal (positionFromCorner) end +---* brief Toggle whether enable scroll inertia while scrolling.<br> +---* param enabled True if enable inertia, false otherwise. +---@param enabled boolean +---@return self +function ScrollView:setInertiaScrollEnabled (enabled) end +---* brief Set scroll bar auto hide state<br> +---* param scroll bar auto hide state +---@param autoHideEnabled boolean +---@return self +function ScrollView:setScrollBarAutoHideEnabled (autoHideEnabled) end +---* brief Get the scroll bar's color<br> +---* return the scroll bar's color +---@return color3b_table +function ScrollView:getScrollBarColor () end +---* Move inner container to top and left boundary of scrollview. +---@return self +function ScrollView:jumpToTopLeft () end +---* brief Query scroll bar state.<br> +---* return True if scroll bar is enabled, false otherwise. +---@return boolean +function ScrollView:isScrollBarEnabled () end +---* return Whether the ScrollView is currently scrolling because of a bounceback or inertia slowdown. +---@return boolean +function ScrollView:isAutoScrolling () end +---* Move inner container to bottom and right boundary of scrollview. +---@return self +function ScrollView:jumpToBottomRight () end +---* brief Set the touch total time threshold<br> +---* param the touch total time threshold +---@param touchTotalTimeThreshold float +---@return self +function ScrollView:setTouchTotalTimeThreshold (touchTotalTimeThreshold) end +---* brief Get the touch total time threshold<br> +---* return the touch total time threshold +---@return float +function ScrollView:getTouchTotalTimeThreshold () end +---* brief Get the horizontal scroll bar's position from right-top corner.<br> +---* return positionFromCorner +---@return vec2_table +function ScrollView:getScrollBarPositionFromCornerForHorizontal () end +---* return How far the scroll view is scrolled in the horizontal axis +---@return float +function ScrollView:getScrolledPercentHorizontal () end +---* brief Toggle bounce enabled when scroll to the edge.<br> +---* param enabled True if enable bounce, false otherwise. +---@param enabled boolean +---@return self +function ScrollView:setBounceEnabled (enabled) end +---* Immediately stops inner container scroll initiated by any of the "scrollTo*" member functions +---@return self +function ScrollView:stopAutoScroll () end +---* Scroll inner container to top and right boundary of scrollview.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToTopRight (timeInSec,attenuated) end +---* return Whether the user is currently dragging the ScrollView to scroll it +---@return boolean +function ScrollView:isScrolling () end +---* Scroll inner container to left boundary of scrollview.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToLeft (timeInSec,attenuated) end +---* Move inner container to both direction percent position of scrollview.<br> +---* param percent A value between 0 and 100. +---@param percent vec2_table +---@return self +function ScrollView:jumpToPercentBothDirection (percent) end +---* Immediately stops inner container scroll if any. +---@return self +function ScrollView:stopOverallScroll () end +---* Scroll inner container to vertical percent position of scrollview.<br> +---* param percent A value between 0 and 100.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param percent float +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToPercentVertical (percent,timeInSec,attenuated) end +---* brief Set the scroll bar's width<br> +---* param width The scroll bar's width +---@param width float +---@return self +function ScrollView:setScrollBarWidth (width) end +---* brief Get the scroll bar's opacity<br> +---* return the scroll bar's opacity +---@return unsigned_char +function ScrollView:getScrollBarOpacity () end +---* Scroll inner container to bottom and right boundary of scrollview.<br> +---* param timeInSec Time in seconds<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToBottomRight (timeInSec,attenuated) end +---* brief Set the scroll bar positions from the left-bottom corner (horizontal) and right-top corner (vertical).<br> +---* param positionFromCorner The position from the left-bottom corner (horizontal) and right-top corner (vertical). +---@param positionFromCorner vec2_table +---@return self +function ScrollView:setScrollBarPositionFromCorner (positionFromCorner) end +---* brief Set the vertical scroll bar position from right-top corner.<br> +---* param positionFromCorner The position from right-top corner +---@param positionFromCorner vec2_table +---@return self +function ScrollView:setScrollBarPositionFromCornerForVertical (positionFromCorner) end +---* brief Get the scroll bar's auto hide time<br> +---* return the scroll bar's auto hide time +---@return float +function ScrollView:getScrollBarAutoHideTime () end +---* Move inner container to left boundary of scrollview. +---@return self +function ScrollView:jumpToLeft () end +---* Scroll inner container to right boundary of scrollview.<br> +---* param timeInSec Time in seconds.<br> +---* param attenuated Whether scroll speed attenuate or not. +---@param timeInSec float +---@param attenuated boolean +---@return self +function ScrollView:scrollToRight (timeInSec,attenuated) end +---* brief Get the vertical scroll bar's position from right-top corner.<br> +---* return positionFromCorner +---@return vec2_table +function ScrollView:getScrollBarPositionFromCornerForVertical () end +---* brief Get the scroll bar's width<br> +---* return the scroll bar's width +---@return float +function ScrollView:getScrollBarWidth () end +---* brief Query scroll bar auto hide state<br> +---* return True if scroll bar auto hide is enabled, false otherwise. +---@return boolean +function ScrollView:isScrollBarAutoHideEnabled () end +---* Move inner container to bottom and left boundary of scrollview. +---@return self +function ScrollView:jumpToBottomLeft () end +---* Move inner container to right boundary of scrollview. +---@return self +function ScrollView:jumpToRight () end +---* Get inner container size of scrollview.<br> +---* Inner container size must be larger than or equal scrollview's size.<br> +---* return The inner container size. +---@return size_table +function ScrollView:getInnerContainerSize () end +---* Move inner container to horizontal percent position of scrollview.<br> +---* param percent A value between 0 and 100. +---@param percent float +---@return self +function ScrollView:jumpToPercentHorizontal (percent) end +---* Create an empty ScrollView.<br> +---* return A ScrollView instance. +---@return self +function ScrollView:create () end +---* +---@return cc.Ref +function ScrollView:createInstance () end +---@overload fun(cc.Node:cc.Node,int:int):self +---@overload fun(cc.Node:cc.Node):self +---@overload fun(cc.Node:cc.Node,int:int,string2:int):self +---@overload fun(cc.Node:cc.Node,int:int,string:string):self +---@param child cc.Node +---@param localZOrder int +---@param name string +---@return self +function ScrollView:addChild (child,localZOrder,name) end +---* +---@return boolean +function ScrollView:init () end +---* +---@param name string +---@return cc.Node +function ScrollView:getChildByName (name) end +---* Return the "class name" of widget. +---@return string +function ScrollView:getDescription () end +---* +---@param dt float +---@return self +function ScrollView:update (dt) end +---* Get the layout type for scrollview.<br> +---* see `Layout::Type`<br> +---* return LayoutType +---@return int +function ScrollView:getLayoutType () end +---* +---@param cleanup boolean +---@return self +function ScrollView:removeAllChildrenWithCleanup (cleanup) end +---* +---@return self +function ScrollView:removeAllChildren () end +---* When a widget is in a layout, you could call this method to get the next focused widget within a specified direction.<br> +---* If the widget is not in a layout, it will return itself<br> +---* param direction the direction to look for the next focused widget in a layout<br> +---* param current the current focused widget<br> +---* return the next focused widget in a layout +---@param direction int +---@param current ccui.Widget +---@return ccui.Widget +function ScrollView:findNextFocusedWidget (direction,current) end +---* +---@param child cc.Node +---@param cleanup boolean +---@return self +function ScrollView:removeChild (child,cleanup) end +---@overload fun():self +---@overload fun():self +---@return array_table +function ScrollView:getChildren () end +---* +---@param tag int +---@return cc.Node +function ScrollView:getChildByTag (tag) end +---* +---@return int +function ScrollView:getChildrenCount () end +---* Set layout type for scrollview.<br> +---* see `Layout::Type`<br> +---* param type Layout type enum. +---@param type int +---@return self +function ScrollView:setLayoutType (type) end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function ScrollView:ScrollView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.Slider.lua b/meta/3rd/Cocos4.0/ccui.Slider.lua new file mode 100644 index 00000000..994a82d2 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.Slider.lua @@ -0,0 +1,190 @@ + +---@class ccui.Slider :ccui.Widget +local Slider={ } +ccui.Slider=Slider + + + + +---* Changes the progress direction of slider.<br> +---* param percent Percent value from 1 to 100. +---@param percent int +---@return self +function Slider:setPercent (percent) end +---* Query the maximum percent of Slider. The default value is 100.<br> +---* since v3.7<br> +---* return The maximum percent of the Slider. +---@return int +function Slider:getMaxPercent () end +---* Load normal state texture for slider ball.<br> +---* param normal Normal state texture.<br> +---* param resType @see TextureResType . +---@param normal string +---@param resType int +---@return self +function Slider:loadSlidBallTextureNormal (normal,resType) end +---* Load dark state texture for slider progress bar.<br> +---* param fileName File path of texture.<br> +---* param resType @see TextureResType . +---@param fileName string +---@param resType int +---@return self +function Slider:loadProgressBarTexture (fileName,resType) end +---* +---@return cc.ResourceData +function Slider:getBallNormalFile () end +---* +---@return cc.Sprite +function Slider:getSlidBallDisabledRenderer () end +---* Sets if slider is using scale9 renderer.<br> +---* param able True that using scale9 renderer, false otherwise. +---@param able boolean +---@return self +function Slider:setScale9Enabled (able) end +---* +---@return cc.ResourceData +function Slider:getBallPressedFile () end +---* brief Return a zoom scale<br> +---* since v3.3 +---@return float +function Slider:getZoomScale () end +---* Sets capinsets for progress bar slider, if slider is using scale9 renderer.<br> +---* param capInsets Capinsets for progress bar slider.<br> +---* js NA +---@param capInsets rect_table +---@return self +function Slider:setCapInsetProgressBarRenderer (capInsets) end +---* Load textures for slider ball.<br> +---* param normal Normal state texture.<br> +---* param pressed Pressed state texture.<br> +---* param disabled Disabled state texture.<br> +---* param texType @see TextureResType . +---@param normal string +---@param pressed string +---@param disabled string +---@param texType int +---@return self +function Slider:loadSlidBallTextures (normal,pressed,disabled,texType) end +---* +---@return cc.Node +function Slider:getSlidBallRenderer () end +---* Add call back function called when slider's percent has changed to slider.<br> +---* param callback An given call back function called when slider's percent has changed to slider. +---@param callback function +---@return self +function Slider:addEventListener (callback) end +---* Set a large value could give more control to the precision.<br> +---* since v3.7<br> +---* param percent The max percent of Slider. +---@param percent int +---@return self +function Slider:setMaxPercent (percent) end +---* Load texture for slider bar.<br> +---* param fileName File name of texture.<br> +---* param resType @see TextureResType . +---@param fileName string +---@param resType int +---@return self +function Slider:loadBarTexture (fileName,resType) end +---* +---@return cc.ResourceData +function Slider:getProgressBarFile () end +---* Gets capinsets for bar slider, if slider is using scale9 renderer.<br> +---* return capInsets Capinsets for bar slider. +---@return rect_table +function Slider:getCapInsetsBarRenderer () end +---* Updates the visual elements of the slider. +---@return self +function Slider:updateVisualSlider () end +---* Gets capinsets for progress bar slider, if slider is using scale9 renderer.<br> +---* return Capinsets for progress bar slider.<br> +---* js NA +---@return rect_table +function Slider:getCapInsetsProgressBarRenderer () end +---* +---@return cc.Sprite +function Slider:getSlidBallPressedRenderer () end +---* Load pressed state texture for slider ball.<br> +---* param pressed Pressed state texture.<br> +---* param resType @see TextureResType . +---@param pressed string +---@param resType int +---@return self +function Slider:loadSlidBallTexturePressed (pressed,resType) end +---* +---@return cc.ResourceData +function Slider:getBackFile () end +---* Gets If slider is using scale9 renderer.<br> +---* return True that using scale9 renderer, false otherwise. +---@return boolean +function Slider:isScale9Enabled () end +---* +---@return cc.ResourceData +function Slider:getBallDisabledFile () end +---* Sets capinsets for bar slider, if slider is using scale9 renderer.<br> +---* param capInsets Capinsets for bar slider. +---@param capInsets rect_table +---@return self +function Slider:setCapInsetsBarRenderer (capInsets) end +---* Gets the progress direction of slider.<br> +---* return percent Percent value from 1 to 100. +---@return int +function Slider:getPercent () end +---* Sets capinsets for slider, if slider is using scale9 renderer.<br> +---* param capInsets Capinsets for slider. +---@param capInsets rect_table +---@return self +function Slider:setCapInsets (capInsets) end +---* Load disabled state texture for slider ball.<br> +---* param disabled Disabled state texture.<br> +---* param resType @see TextureResType . +---@param disabled string +---@param resType int +---@return self +function Slider:loadSlidBallTextureDisabled (disabled,resType) end +---* +---@return cc.Sprite +function Slider:getSlidBallNormalRenderer () end +---* When user pressed the button, the button will zoom to a scale.<br> +---* The final scale of the button equals (button original scale + _zoomScale)<br> +---* since v3.3 +---@param scale float +---@return self +function Slider:setZoomScale (scale) end +---@overload fun(string:string,string:string,int:int):self +---@overload fun():self +---@param barTextureName string +---@param normalBallTextureName string +---@param resType int +---@return self +function Slider:create (barTextureName,normalBallTextureName,resType) end +---* +---@return cc.Ref +function Slider:createInstance () end +---* +---@return cc.Node +function Slider:getVirtualRenderer () end +---* +---@param ignore boolean +---@return self +function Slider:ignoreContentAdaptWithSize (ignore) end +---* Returns the "class name" of widget. +---@return string +function Slider:getDescription () end +---* +---@param pt vec2_table +---@param camera cc.Camera +---@param p vec3_table +---@return boolean +function Slider:hitTest (pt,camera,p) end +---* +---@return boolean +function Slider:init () end +---* +---@return size_table +function Slider:getVirtualRendererSize () end +---* Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function Slider:Slider () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.TabControl.lua b/meta/3rd/Cocos4.0/ccui.TabControl.lua new file mode 100644 index 00000000..9bd736d0 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.TabControl.lua @@ -0,0 +1,103 @@ + +---@class ccui.TabControl :ccui.Widget +local TabControl={ } +ccui.TabControl=TabControl + + + + +---* set header width, affect all tab<br> +---* param headerWidth each tab header's width +---@param headerWidth float +---@return self +function TabControl:setHeaderWidth (headerWidth) end +---* remove the tab from this TabControl<br> +---* param index The index of tab +---@param index int +---@return self +function TabControl:removeTab (index) end +---* get the count of tabs in this TabControl<br> +---* return the count of tabs +---@return unsigned_int +function TabControl:getTabCount () end +---* +---@return int +function TabControl:getHeaderDockPlace () end +---* get current selected tab's index<br> +---* return the current selected tab index +---@return int +function TabControl:getSelectedTabIndex () end +---* insert tab, and init the position of header and container<br> +---* param index The index tab should be<br> +---* param header The header Button, will be a protected child in TabControl<br> +---* param container The container, will be a protected child in TabControl +---@param index int +---@param header ccui.TabHeader +---@param container ccui.Layout +---@return self +function TabControl:insertTab (index,header,container) end +---* ignore the textures' size in header, scale them with _headerWidth and _headerHeight<br> +---* param ignore is `true`, the header's texture scale with _headerWidth and _headerHeight<br> +---* ignore is `false`, use the texture's size, do not scale them +---@param ignore boolean +---@return self +function TabControl:ignoreHeadersTextureSize (ignore) end +---* get tab header's width<br> +---* return header's width +---@return float +function TabControl:getHeaderWidth () end +---* the header dock place of header in TabControl<br> +---* param dockPlace The strip place +---@param dockPlace int +---@return self +function TabControl:setHeaderDockPlace (dockPlace) end +---@overload fun(int0:ccui.TabHeader):self +---@overload fun(int:int):self +---@param index int +---@return self +function TabControl:setSelectTab (index) end +---* get TabHeader<br> +---* param index The index of tab +---@param index int +---@return ccui.TabHeader +function TabControl:getTabHeader (index) end +---* get whether ignore the textures' size in header, scale them with _headerWidth and _headerHeight<br> +---* return whether ignore the textures' size in header +---@return boolean +function TabControl:isIgnoreHeadersTextureSize () end +---* Add a callback function which would be called when selected tab changed<br> +---* param callback A std::function with type @see `ccTabControlCallback` +---@param callback function +---@return self +function TabControl:setTabChangedEventListener (callback) end +---* set the delta zoom of selected tab<br> +---* param zoom The delta zoom +---@param zoom float +---@return self +function TabControl:setHeaderSelectedZoom (zoom) end +---* set header height, affect all tab<br> +---* param headerHeight each tab header's height +---@param headerHeight float +---@return self +function TabControl:setHeaderHeight (headerHeight) end +---* get the index of tabCell in TabView, return -1 if not exists in.<br> +---* return the index of tabCell in TabView, `-1` means not exists in. +---@param tabCell ccui.TabHeader +---@return int +function TabControl:indexOfTabHeader (tabCell) end +---* get Container<br> +---* param index The index of tab +---@param index int +---@return ccui.Layout +function TabControl:getTabContainer (index) end +---* get the delta zoom of selected tab<br> +---* return zoom, the delta zoom +---@return float +function TabControl:getHeaderSelectedZoom () end +---* get tab header's height<br> +---* return header's height +---@return int +function TabControl:getHeaderHeight () end +---* +---@return self +function TabControl:create () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.TabHeader.lua b/meta/3rd/Cocos4.0/ccui.TabHeader.lua new file mode 100644 index 00000000..532dbba8 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.TabHeader.lua @@ -0,0 +1,64 @@ + +---@class ccui.TabHeader :ccui.AbstractCheckButton +local TabHeader={ } +ccui.TabHeader=TabHeader + + + + +---* get the index this header in the TabControl<br> +---* return -1 means not in any TabControl +---@return int +function TabHeader:getIndexInTabControl () end +---* get the TabHeader text<br> +---* return he TabHeader text +---@return string +function TabHeader:getTitleText () end +---* Change the font size of TabHeader text<br> +---* param size TabHeader text's font size in float. +---@param size float +---@return self +function TabHeader:setTitleFontSize (size) end +---* Change the font name of TabHeader text<br> +---* param fontName a font name string. +---@param fontName string +---@return self +function TabHeader:setTitleFontName (fontName) end +---* get the font size of TabHeader text<br> +---* return TabHeader text's font size in float. +---@return float +function TabHeader:getTitleFontSize () end +---* get the font name of TabHeader text<br> +---* return font name in std::string +---@return string +function TabHeader:getTitleFontName () end +---* get the TabHeader text color.<br> +---* return Color4B of TabHeader text. +---@return color4b_table +function TabHeader:getTitleColor () end +---* Return the inner Label renderer of TabHeader.<br> +---* return The TabHeader Label. +---@return cc.Label +function TabHeader:getTitleRenderer () end +---* Change the content of Header's text.<br> +---* param text The Header's text. +---@param text string +---@return self +function TabHeader:setTitleText (text) end +---* Change the color of he TabHeader text<br> +---* param color The he TabHeader text's color in Color4B. +---@param color color4b_table +---@return self +function TabHeader:setTitleColor (color) end +---@overload fun(string:string,string:string,string:string,string3:int):self +---@overload fun():self +---@overload fun(string:string,string:string,string:string,string:string,string:string,string:string,int:int):self +---@param titleStr string +---@param backGround string +---@param backGroundSelected string +---@param cross string +---@param backGroundDisabled string +---@param frontCrossDisabled string +---@param texType int +---@return self +function TabHeader:create (titleStr,backGround,backGroundSelected,cross,backGroundDisabled,frontCrossDisabled,texType) end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.Text.lua b/meta/3rd/Cocos4.0/ccui.Text.lua new file mode 100644 index 00000000..4de3f7db --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.Text.lua @@ -0,0 +1,205 @@ + +---@class ccui.Text :ccui.Widget@all parent class: Widget,BlendProtocol +local Text={ } +ccui.Text=Text + + + + +---* Enable shadow for the label.<br> +---* todo support blur for shadow effect<br> +---* param shadowColor The color of shadow effect.<br> +---* param offset The offset of shadow effect.<br> +---* param blurRadius The blur radius of shadow effect. +---@return self +function Text:enableShadow () end +---* Gets the font size of label.<br> +---* return The font size. +---@return float +function Text:getFontSize () end +---* Gets the string value of label.<br> +---* return String value. +---@return string +function Text:getString () end +---@overload fun(int:int):self +---@overload fun():self +---@param effect int +---@return self +function Text:disableEffect (effect) end +---* Return current effect type. +---@return int +function Text:getLabelEffectType () end +---* Gets text color.<br> +---* return Text color. +---@return color4b_table +function Text:getTextColor () end +---* Returns the blending function that is currently being used.<br> +---* return A BlendFunc structure with source and destination factor which specified pixel arithmetic.<br> +---* js NA<br> +---* lua NA +---@return cc.BlendFunc +function Text:getBlendFunc () end +---* Sets text vertical alignment.<br> +---* param alignment vertical text alignment type +---@param alignment int +---@return self +function Text:setTextVerticalAlignment (alignment) end +---* Sets the font name of label.<br> +---* If you are trying to use a system font, you could just pass a font name<br> +---* If you are trying to use a TTF, you should pass a file path to the TTF file<br> +---* Usage:<br> +---* code<br> +---* create a system font UIText<br> +---* Text *text = Text::create("Hello", "Arial", 20);<br> +---* it will change the font to system font no matter the previous font type is TTF or system font<br> +---* text->setFontName("Marfelt");<br> +---* it will change the font to TTF font no matter the previous font type is TTF or system font<br> +---* text->setFontName("xxxx/xxx.ttf");<br> +---* endcode<br> +---* param name Font name. +---@param name string +---@return self +function Text:setFontName (name) end +---* Sets the touch scale enabled of label.<br> +---* param enabled Touch scale enabled of label. +---@param enabled boolean +---@return self +function Text:setTouchScaleChangeEnabled (enabled) end +---* Return shadow effect offset value. +---@return size_table +function Text:getShadowOffset () end +---* Changes the string value of label.<br> +---* param text String value. +---@param text string +---@return self +function Text:setString (text) end +---* Return the outline effect size value. +---@return int +function Text:getOutlineSize () end +---* +---@param textContent string +---@param fontName string +---@param fontSize float +---@return boolean +function Text:init (textContent,fontName,fontSize) end +---* Return the shadow effect blur radius. +---@return float +function Text:getShadowBlurRadius () end +---* Gets the touch scale enabled of label.<br> +---* return Touch scale enabled of label. +---@return boolean +function Text:isTouchScaleChangeEnabled () end +---* Gets the font name.<br> +---* return Font name. +---@return string +function Text:getFontName () end +---* Sets the rendering size of the text, you should call this method<br> +---* along with calling `ignoreContentAdaptWithSize(false)`, otherwise the text area<br> +---* size is calculated by the real size of the text content.<br> +---* param size The text rendering area size. +---@param size size_table +---@return self +function Text:setTextAreaSize (size) end +---* Gets the string length of the label.<br> +---* Note: This length will be larger than the raw string length,<br> +---* if you want to get the raw string length,<br> +---* you should call this->getString().size() instead.<br> +---* return String length. +---@return int +function Text:getStringLength () end +---* Gets the render size in auto mode.<br> +---* return The size of render size in auto mode. +---@return size_table +function Text:getAutoRenderSize () end +---* Enable outline for the label.<br> +---* It only works on IOS and Android when you use System fonts.<br> +---* param outlineColor The color of outline.<br> +---* param outlineSize The size of outline. +---@param outlineColor color4b_table +---@param outlineSize int +---@return self +function Text:enableOutline (outlineColor,outlineSize) end +---* Return current effect color value. +---@return color4b_table +function Text:getEffectColor () end +---* Gets the font type.<br> +---* return The font type. +---@return int +function Text:getType () end +---* Gets text horizontal alignment.<br> +---* return Horizontal text alignment type +---@return int +function Text:getTextHorizontalAlignment () end +---* Return whether the shadow effect is enabled. +---@return boolean +function Text:isShadowEnabled () end +---* Sets the font size of label.<br> +---* param size The font size. +---@param size float +---@return self +function Text:setFontSize (size) end +---* Return the shadow effect color value. +---@return color4b_table +function Text:getShadowColor () end +---* Sets text color.<br> +---* param color Text color. +---@param color color4b_table +---@return self +function Text:setTextColor (color) end +---* Only support for TTF.<br> +---* param glowColor The color of glow. +---@param glowColor color4b_table +---@return self +function Text:enableGlow (glowColor) end +---* Provides a way to treat each character like a Sprite.<br> +---* warning No support system font. +---@param lettetIndex int +---@return cc.Sprite +function Text:getLetter (lettetIndex) end +---* Sets the source blending function.<br> +---* param blendFunc A structure with source and destination factor to specify pixel arithmetic. e.g. {BlendFactor::ONE, BlendFactor::ONE}, {BlendFactor::SRC_ALPHA, BlendFactor::ONE_MINUS_SRC_ALPHA}.<br> +---* js NA<br> +---* lua NA +---@param blendFunc cc.BlendFunc +---@return self +function Text:setBlendFunc (blendFunc) end +---* Gets text vertical alignment.<br> +---* return Vertical text alignment type +---@return int +function Text:getTextVerticalAlignment () end +---* Return the text rendering area size.<br> +---* return The text rendering area size. +---@return size_table +function Text:getTextAreaSize () end +---* Sets text horizontal alignment.<br> +---* param alignment Horizontal text alignment type +---@param alignment int +---@return self +function Text:setTextHorizontalAlignment (alignment) end +---@overload fun(string:string,string:string,float:float):self +---@overload fun():self +---@param textContent string +---@param fontName string +---@param fontSize float +---@return self +function Text:create (textContent,fontName,fontSize) end +---* +---@return cc.Ref +function Text:createInstance () end +---* +---@return cc.Node +function Text:getVirtualRenderer () end +---* +---@return boolean +function Text:init () end +---* Returns the "class name" of widget. +---@return string +function Text:getDescription () end +---* +---@return size_table +function Text:getVirtualRendererSize () end +---* Default constructor.<br> +---* js ctor<br> +---* lua new +---@return self +function Text:Text () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.TextAtlas.lua b/meta/3rd/Cocos4.0/ccui.TextAtlas.lua new file mode 100644 index 00000000..2fd03da2 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.TextAtlas.lua @@ -0,0 +1,67 @@ + +---@class ccui.TextAtlas :ccui.Widget +local TextAtlas={ } +ccui.TextAtlas=TextAtlas + + + + +---* Gets the string length of the label.<br> +---* Note: This length will be larger than the raw string length,<br> +---* if you want to get the raw string length, you should call this->getString().size() instead<br> +---* return string length. +---@return int +function TextAtlas:getStringLength () end +---* Get string value for labelatlas.<br> +---* return The string value of TextAtlas. +---@return string +function TextAtlas:getString () end +---* Set string value for labelatlas.<br> +---* param value A given string needs to be displayed. +---@param value string +---@return self +function TextAtlas:setString (value) end +---* +---@return cc.ResourceData +function TextAtlas:getRenderFile () end +---* Initializes the LabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas.<br> +---* param stringValue A given string needs to be displayed.<br> +---* param charMapFile A given char map file name.<br> +---* param itemWidth The element width.<br> +---* param itemHeight The element height.<br> +---* param startCharMap The starting char of the atlas. +---@param stringValue string +---@param charMapFile string +---@param itemWidth int +---@param itemHeight int +---@param startCharMap string +---@return self +function TextAtlas:setProperty (stringValue,charMapFile,itemWidth,itemHeight,startCharMap) end +---* js NA +---@return self +function TextAtlas:adaptRenderers () end +---@overload fun(string:string,string:string,int:int,int:int,string:string):self +---@overload fun():self +---@param stringValue string +---@param charMapFile string +---@param itemWidth int +---@param itemHeight int +---@param startCharMap string +---@return self +function TextAtlas:create (stringValue,charMapFile,itemWidth,itemHeight,startCharMap) end +---* +---@return cc.Ref +function TextAtlas:createInstance () end +---* +---@return cc.Node +function TextAtlas:getVirtualRenderer () end +---* Returns the "class name" of widget. +---@return string +function TextAtlas:getDescription () end +---* +---@return size_table +function TextAtlas:getVirtualRendererSize () end +---* Default constructor.<br> +---* lua new +---@return self +function TextAtlas:TextAtlas () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.TextBMFont.lua b/meta/3rd/Cocos4.0/ccui.TextBMFont.lua new file mode 100644 index 00000000..81268c8a --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.TextBMFont.lua @@ -0,0 +1,54 @@ + +---@class ccui.TextBMFont :ccui.Widget +local TextBMFont={ } +ccui.TextBMFont=TextBMFont + + + + +---* Gets the string length of the label.<br> +---* Note: This length will be larger than the raw string length,<br> +---* if you want to get the raw string length, you should call this->getString().size() instead<br> +---* return string length. +---@return int +function TextBMFont:getStringLength () end +---* get string value for labelbmfont +---@return string +function TextBMFont:getString () end +---* set string value for labelbmfont +---@param value string +---@return self +function TextBMFont:setString (value) end +---* +---@return cc.ResourceData +function TextBMFont:getRenderFile () end +---* init a bitmap font atlas with an initial string and the FNT file +---@param fileName string +---@return self +function TextBMFont:setFntFile (fileName) end +---* reset TextBMFont inner label +---@return self +function TextBMFont:resetRender () end +---@overload fun(string:string,string:string):self +---@overload fun():self +---@param text string +---@param filename string +---@return self +function TextBMFont:create (text,filename) end +---* +---@return cc.Ref +function TextBMFont:createInstance () end +---* +---@return cc.Node +function TextBMFont:getVirtualRenderer () end +---* Returns the "class name" of widget. +---@return string +function TextBMFont:getDescription () end +---* +---@return size_table +function TextBMFont:getVirtualRendererSize () end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function TextBMFont:TextBMFont () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.TextField.lua b/meta/3rd/Cocos4.0/ccui.TextField.lua new file mode 100644 index 00000000..12d9189f --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.TextField.lua @@ -0,0 +1,247 @@ + +---@class ccui.TextField :ccui.Widget +local TextField={ } +ccui.TextField=TextField + + + + +---* brief Toggle attach with IME.<br> +---* param attach True if attach with IME, false otherwise. +---@param attach boolean +---@return self +function TextField:setAttachWithIME (attach) end +---* brief Query the font size.<br> +---* return The integer font size. +---@return int +function TextField:getFontSize () end +---* Query the content of TextField.<br> +---* return The string value of TextField. +---@return string +function TextField:getString () end +---* brief Change password style text.<br> +---* param styleText The styleText for password mask, the default value is "*". +---@param styleText char +---@return self +function TextField:setPasswordStyleText (styleText) end +---* brief Whether it is ready to delete backward in TextField.<br> +---* return True is the delete backward is enabled, false otherwise. +---@return boolean +function TextField:getDeleteBackward () end +---* brief Query the text string color.<br> +---* return The color of the text. +---@return color4b_table +function TextField:getTextColor () end +---* brief Get the placeholder of TextField.<br> +---* return A placeholder string. +---@return string +function TextField:getPlaceHolder () end +---* brief Query whether the IME is attached or not.<br> +---* return True if IME is attached, false otherwise. +---@return boolean +function TextField:getAttachWithIME () end +---* brief Change the font name of TextField.<br> +---* param name The font name string. +---@param name string +---@return self +function TextField:setFontName (name) end +---* brief Whether it is ready to get the inserted text or not.<br> +---* return True if the insert text is ready, false otherwise. +---@return boolean +function TextField:getInsertText () end +---* brief Toggle enable insert text mode<br> +---* param insertText True if enable insert text, false otherwise. +---@param insertText boolean +---@return self +function TextField:setInsertText (insertText) end +---* Change content of TextField.<br> +---* param text A string content. +---@param text string +---@return self +function TextField:setString (text) end +---* brief Query whether IME is detached or not.<br> +---* return True if IME is detached, false otherwise. +---@return boolean +function TextField:getDetachWithIME () end +---* brief Change the vertical text alignment.<br> +---* param alignment A alignment arguments in @see `TextVAlignment`. +---@param alignment int +---@return self +function TextField:setTextVerticalAlignment (alignment) end +---* Add a event listener to TextField, when some predefined event happens, the callback will be called.<br> +---* param callback A callback function with type of `ccTextFieldCallback`. +---@param callback function +---@return self +function TextField:addEventListener (callback) end +---* brief Detach the IME. +---@return self +function TextField:didNotSelectSelf () end +---* brief Query the TextField's font name.<br> +---* return The font name string. +---@return string +function TextField:getFontName () end +---* brief Change the text area size.<br> +---* param size A delimitation zone. +---@param size size_table +---@return self +function TextField:setTextAreaSize (size) end +---* brief Attach the IME for inputing. +---@return self +function TextField:attachWithIME () end +---* brief Query the input string length.<br> +---* return A integer length value. +---@return int +function TextField:getStringLength () end +---* brief Get the renderer size in auto mode.<br> +---* return A delimitation zone. +---@return size_table +function TextField:getAutoRenderSize () end +---* brief Toggle enable password input mode.<br> +---* param enable True if enable password input mode, false otherwise. +---@param enable boolean +---@return self +function TextField:setPasswordEnabled (enable) end +---* brief Query the placeholder string color.<br> +---* return The color of placeholder. +---@return color4b_table +function TextField:getPlaceHolderColor () end +---* brief Query the password style text.<br> +---* return A password style text. +---@return char +function TextField:getPasswordStyleText () end +---* brief Toggle maximize length enable<br> +---* param enable True if enable maximize length, false otherwise. +---@param enable boolean +---@return self +function TextField:setMaxLengthEnabled (enable) end +---* brief Query whether password is enabled or not.<br> +---* return True if password is enabled, false otherwise. +---@return boolean +function TextField:isPasswordEnabled () end +---* brief Toggle enable delete backward mode.<br> +---* param deleteBackward True is delete backward is enabled, false otherwise. +---@param deleteBackward boolean +---@return self +function TextField:setDeleteBackward (deleteBackward) end +---* Set cursor position, if enabled<br> +---* js NA +---@param cursorPosition unsigned_int +---@return self +function TextField:setCursorPosition (cursorPosition) end +---* brief Inquire the horizontal alignment<br> +---* return The horizontal alignment +---@return int +function TextField:getTextHorizontalAlignment () end +---* brief Change font size of TextField.<br> +---* param size The integer font size. +---@param size int +---@return self +function TextField:setFontSize (size) end +---* brief Set placeholder of TextField.<br> +---* param value The string value of placeholder. +---@param value string +---@return self +function TextField:setPlaceHolder (value) end +---* Set cursor position to hit letter, if enabled<br> +---* js NA +---@param point vec2_table +---@param camera cc.Camera +---@return self +function TextField:setCursorFromPoint (point,camera) end +---@overload fun(color3b_table0:color4b_table):self +---@overload fun(color3b_table:color3b_table):self +---@param color color3b_table +---@return self +function TextField:setPlaceHolderColor (color) end +---* brief Change horizontal text alignment.<br> +---* param alignment A alignment arguments in @see `TextHAlignment`. +---@param alignment int +---@return self +function TextField:setTextHorizontalAlignment (alignment) end +---* brief Change the text color.<br> +---* param textColor The color value in `Color4B`. +---@param textColor color4b_table +---@return self +function TextField:setTextColor (textColor) end +---* Set char showing cursor.<br> +---* js NA +---@param cursor char +---@return self +function TextField:setCursorChar (cursor) end +---* brief Query maximize input length of TextField.<br> +---* return The integer value of maximize input length. +---@return int +function TextField:getMaxLength () end +---* brief Query whether max length is enabled or not.<br> +---* return True if maximize length is enabled, false otherwise. +---@return boolean +function TextField:isMaxLengthEnabled () end +---* brief Toggle detach with IME.<br> +---* param detach True if detach with IME, false otherwise. +---@param detach boolean +---@return self +function TextField:setDetachWithIME (detach) end +---* brief Inquire the horizontal alignment<br> +---* return The horizontal alignment +---@return int +function TextField:getTextVerticalAlignment () end +---* brief Toggle enable touch area.<br> +---* param enable True if enable touch area, false otherwise. +---@param enable boolean +---@return self +function TextField:setTouchAreaEnabled (enable) end +---* brief Change maximize input length limitation.<br> +---* param length A character count in integer. +---@param length int +---@return self +function TextField:setMaxLength (length) end +---* Set enable cursor use.<br> +---* js NA +---@param enabled boolean +---@return self +function TextField:setCursorEnabled (enabled) end +---* brief Set the touch size<br> +---* The touch size is used for @see `hitTest`.<br> +---* param size A delimitation zone. +---@param size size_table +---@return self +function TextField:setTouchSize (size) end +---* brief Get current touch size of TextField.<br> +---* return The TextField's touch size. +---@return size_table +function TextField:getTouchSize () end +---@overload fun(string:string,string:string,int:int):self +---@overload fun():self +---@param placeholder string +---@param fontName string +---@param fontSize int +---@return self +function TextField:create (placeholder,fontName,fontSize) end +---* +---@return cc.Ref +function TextField:createInstance () end +---* +---@return cc.Node +function TextField:getVirtualRenderer () end +---* Returns the "class name" of widget. +---@return string +function TextField:getDescription () end +---* +---@param dt float +---@return self +function TextField:update (dt) end +---* +---@param pt vec2_table +---@param camera cc.Camera +---@param p vec3_table +---@return boolean +function TextField:hitTest (pt,camera,p) end +---* +---@return boolean +function TextField:init () end +---* +---@return size_table +function TextField:getVirtualRendererSize () end +---* brief Default constructor. +---@return self +function TextField:TextField () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.VBox.lua b/meta/3rd/Cocos4.0/ccui.VBox.lua new file mode 100644 index 00000000..9015a292 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.VBox.lua @@ -0,0 +1,25 @@ + +---@class ccui.VBox :ccui.Layout +local VBox={ } +ccui.VBox=VBox + + + + +---* +---@param size size_table +---@return boolean +function VBox:initWithSize (size) end +---@overload fun(size_table:size_table):self +---@overload fun():self +---@param size size_table +---@return self +function VBox:create (size) end +---* +---@return boolean +function VBox:init () end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function VBox:VBox () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.VideoPlayer.lua b/meta/3rd/Cocos4.0/ccui.VideoPlayer.lua new file mode 100644 index 00000000..0e098f08 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.VideoPlayer.lua @@ -0,0 +1,113 @@ + +---@class ccui.VideoPlayer :ccui.Widget +local VideoPlayer={ } +ccui.VideoPlayer=VideoPlayer + + + + +---* brief Get the local video file name.<br> +---* return The video file name. +---@return string +function VideoPlayer:getFileName () end +---* brief Get the URL of remoting video source.<br> +---* return A remoting URL address. +---@return string +function VideoPlayer:getURL () end +---* Starts playback. +---@return self +function VideoPlayer:play () end +---* Checks whether the VideoPlayer is set to listen user input to resume and pause the video<br> +---* return true if the videoplayer user input is set, false otherwise. +---@return boolean +function VideoPlayer:isUserInputEnabled () end +---* Causes the video player to keep aspect ratio or no when displaying the video.<br> +---* param enable Specify true to keep aspect ratio or false to scale the video until <br> +---* both dimensions fit the visible bounds of the view exactly. +---@param enable boolean +---@return self +function VideoPlayer:setKeepAspectRatioEnabled (enable) end +---* Stops playback. +---@return self +function VideoPlayer:stop () end +---* Causes the video player to enter or exit full-screen mode.<br> +---* param fullscreen Specify true to enter full-screen mode or false to exit full-screen mode. +---@param fullscreen boolean +---@return self +function VideoPlayer:setFullScreenEnabled (fullscreen) end +---* Sets a file path as a video source for VideoPlayer. +---@param videoPath string +---@return self +function VideoPlayer:setFileName (videoPath) end +---* Sets a URL as a video source for VideoPlayer. +---@param _videoURL string +---@return self +function VideoPlayer:setURL (_videoURL) end +---* Set the style of the player<br> +---* param style The corresponding style +---@param style int +---@return self +function VideoPlayer:setStyle (style) end +---* Seeks to specified time position.<br> +---* param sec The offset in seconds from the start to seek to. +---@param sec float +---@return self +function VideoPlayer:seekTo (sec) end +---* Indicates whether the video player keep aspect ratio when displaying the video. +---@return boolean +function VideoPlayer:isKeepAspectRatioEnabled () end +---* brief A function which will be called when video is playing.<br> +---* param event @see VideoPlayer::EventType. +---@param event int +---@return self +function VideoPlayer:onPlayEvent (event) end +---* Indicates whether the video player is in full-screen mode.<br> +---* return True if the video player is in full-screen mode, false otherwise. +---@return boolean +function VideoPlayer:isFullScreenEnabled () end +---* Checks whether the VideoPlayer is set with looping mode.<br> +---* return true if the videoplayer is set to loop, false otherwise. +---@return boolean +function VideoPlayer:isLooping () end +---* Checks whether the VideoPlayer is playing.<br> +---* return True if currently playing, false otherwise. +---@return boolean +function VideoPlayer:isPlaying () end +---* brief Set if playback is done in loop mode<br> +---* param looping the video will or not automatically restart at the end +---@param looping boolean +---@return self +function VideoPlayer:setLooping (looping) end +---* Set if the player will enable user input for basic pause and resume of video<br> +---* param enableInput If true, input will be handled for basic functionality (pause/resume) +---@param enableInput boolean +---@return self +function VideoPlayer:setUserInputEnabled (enableInput) end +---* +---@return self +function VideoPlayer:create () end +---* +---@param renderer cc.Renderer +---@param transform mat4_table +---@param flags unsigned_int +---@return self +function VideoPlayer:draw (renderer,transform,flags) end +---* Pauses playback. +---@return self +function VideoPlayer:pause () end +---* +---@return self +function VideoPlayer:onEnter () end +---* +---@return self +function VideoPlayer:onExit () end +---* Resumes playback. +---@return self +function VideoPlayer:resume () end +---* +---@param visible boolean +---@return self +function VideoPlayer:setVisible (visible) end +---* +---@return self +function VideoPlayer:VideoPlayer () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.WebView.lua b/meta/3rd/Cocos4.0/ccui.WebView.lua new file mode 100644 index 00000000..191c8286 --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.WebView.lua @@ -0,0 +1,92 @@ + +---@class ccui.WebView :ccui.Widget +local WebView={ } +ccui.WebView=WebView + + + + +---* SetOpacity of webview. +---@param opacity float +---@return self +function WebView:setOpacityWebView (opacity) end +---* Gets whether this WebView has a back history item.<br> +---* return WebView has a back history item. +---@return boolean +function WebView:canGoBack () end +---* Sets the main page content and base URL.<br> +---* param string The content for the main page.<br> +---* param baseURL The base URL for the content. +---@param string string +---@param baseURL string +---@return self +function WebView:loadHTMLString (string,baseURL) end +---* Goes forward in the history. +---@return self +function WebView:goForward () end +---* Goes back in the history. +---@return self +function WebView:goBack () end +---* Set WebView should support zooming. The default value is false. +---@param scalesPageToFit boolean +---@return self +function WebView:setScalesPageToFit (scalesPageToFit) end +---* Loads the given fileName.<br> +---* param fileName Content fileName. +---@param fileName string +---@return self +function WebView:loadFile (fileName) end +---@overload fun(string:string,boolean:boolean):self +---@overload fun(string:string):self +---@param url string +---@param cleanCachedData boolean +---@return self +function WebView:loadURL (url,cleanCachedData) end +---* Set whether the webview bounces at end of scroll of WebView. +---@param bounce boolean +---@return self +function WebView:setBounces (bounce) end +---* Evaluates JavaScript in the context of the currently displayed page. +---@param js string +---@return self +function WebView:evaluateJS (js) end +---* set the background transparent +---@return self +function WebView:setBackgroundTransparent () end +---* Get the Javascript callback. +---@return function +function WebView:getOnJSCallback () end +---* Gets whether this WebView has a forward history item.<br> +---* return WebView has a forward history item. +---@return boolean +function WebView:canGoForward () end +---* Stops the current load. +---@return self +function WebView:stopLoading () end +---* getOpacity of webview. +---@return float +function WebView:getOpacityWebView () end +---* Reloads the current URL. +---@return self +function WebView:reload () end +---* Set javascript interface scheme.<br> +---* see WebView::setOnJSCallback() +---@param scheme string +---@return self +function WebView:setJavascriptInterfaceScheme (scheme) end +---* Allocates and initializes a WebView. +---@return self +function WebView:create () end +---* +---@return self +function WebView:onEnter () end +---* Toggle visibility of WebView. +---@param visible boolean +---@return self +function WebView:setVisible (visible) end +---* +---@return self +function WebView:onExit () end +---* Default constructor. +---@return self +function WebView:WebView () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/ccui.Widget.lua b/meta/3rd/Cocos4.0/ccui.Widget.lua new file mode 100644 index 00000000..b390800d --- /dev/null +++ b/meta/3rd/Cocos4.0/ccui.Widget.lua @@ -0,0 +1,398 @@ + +---@class ccui.Widget :cc.ProtectedNode@all parent class: ProtectedNode,LayoutParameterProtocol +local Widget={ } +ccui.Widget=Widget + + + + +---* Toggle layout component enable.<br> +---* param enable Layout Component of a widget +---@param enable boolean +---@return self +function Widget:setLayoutComponentEnabled (enable) end +---* Changes the percent that is widget's percent size<br> +---* param percent that is widget's percent size +---@param percent vec2_table +---@return self +function Widget:setSizePercent (percent) end +---* Get the user defined widget size.<br> +---* return User defined size. +---@return size_table +function Widget:getCustomSize () end +---* Gets the left boundary position of this widget in parent's coordination system.<br> +---* return The left boundary position of this widget. +---@return float +function Widget:getLeftBoundary () end +---* Sets whether the widget should be flipped horizontally or not.<br> +---* param flippedX true if the widget should be flipped horizontally, false otherwise. +---@param flippedX boolean +---@return self +function Widget:setFlippedX (flippedX) end +---* Set callback name.<br> +---* param callbackName A string representation of callback name. +---@param callbackName string +---@return self +function Widget:setCallbackName (callbackName) end +---* Gets the inner Renderer node of widget.<br> +---* For example, a button's Virtual Renderer is it's texture renderer.<br> +---* return Node pointer. +---@return cc.Node +function Widget:getVirtualRenderer () end +---* brief Allow widget touch events to propagate to its parents. Set false will disable propagation<br> +---* param isPropagate True to allow propagation, false otherwise.<br> +---* since v3.3 +---@param isPropagate boolean +---@return self +function Widget:setPropagateTouchEvents (isPropagate) end +---* Query whether unify size enable state. <br> +---* return true represent the widget use Unify Size, false represent the widget couldn't use Unify Size +---@return boolean +function Widget:isUnifySizeEnabled () end +---* Get size percent of widget.<br> +---* return Percent size. +---@return vec2_table +function Widget:getSizePercent () end +---* Set the percent(x,y) of the widget in OpenGL coordinates<br> +---* param percent The percent (x,y) of the widget in OpenGL coordinates +---@param percent vec2_table +---@return self +function Widget:setPositionPercent (percent) end +---* Toggle widget swallow touch option.<br> +---* brief Specify widget to swallow touches or not<br> +---* param swallow True to swallow touch, false otherwise.<br> +---* since v3.3 +---@param swallow boolean +---@return self +function Widget:setSwallowTouches (swallow) end +---* Get the content size of widget.<br> +---* warning This API exists mainly for keeping back compatibility.<br> +---* return +---@return size_table +function Widget:getLayoutSize () end +---* Sets whether the widget is highlighted<br> +---* The default value is false, a widget is default to not highlighted<br> +---* param highlight true if the widget is highlighted, false if the widget is not highlighted. +---@param highlight boolean +---@return self +function Widget:setHighlighted (highlight) end +---* Changes the position type of the widget<br> +---* see `PositionType`<br> +---* param type the position type of widget +---@param type int +---@return self +function Widget:setPositionType (type) end +---* Query whether the widget ignores user defined content size or not<br> +---* return True means ignore user defined content size, false otherwise. +---@return boolean +function Widget:isIgnoreContentAdaptWithSize () end +---* Get the virtual renderer's size<br> +---* return Widget virtual renderer size. +---@return size_table +function Widget:getVirtualRendererSize () end +---* Determines if the widget is highlighted<br> +---* return true if the widget is highlighted, false if the widget is not highlighted. +---@return boolean +function Widget:isHighlighted () end +---* Gets LayoutParameter of widget.<br> +---* see LayoutParameter<br> +---* return LayoutParameter +---@return ccui.LayoutParameter +function Widget:getLayoutParameter () end +---* Gets the position type of the widget<br> +---* see `PositionType`<br> +---* return type the position type of widget +---@return int +function Widget:getPositionType () end +---* Gets the top boundary position of this widget in parent's coordination system.<br> +---* return The top boundary position of this widget. +---@return float +function Widget:getTopBoundary () end +---* Toggle whether ignore user defined content size for widget.<br> +---* Set true will ignore user defined content size which means <br> +---* the widget size is always equal to the return value of `getVirtualRendererSize`.<br> +---* param ignore set member variable _ignoreSize to ignore +---@param ignore boolean +---@return self +function Widget:ignoreContentAdaptWithSize (ignore) end +---* When a widget is in a layout, you could call this method to get the next focused widget within a specified direction. <br> +---* If the widget is not in a layout, it will return itself<br> +---* param direction the direction to look for the next focused widget in a layout<br> +---* param current the current focused widget<br> +---* return the next focused widget in a layout +---@param direction int +---@param current ccui.Widget +---@return self +function Widget:findNextFocusedWidget (direction,current) end +---* Determines if the widget is enabled or not.<br> +---* return true if the widget is enabled, false if the widget is disabled. +---@return boolean +function Widget:isEnabled () end +---* Query whether widget is focused or not.<br> +---* return whether the widget is focused or not +---@return boolean +function Widget:isFocused () end +---* Gets the touch began point of widget when widget is selected.<br> +---* return the touch began point. +---@return vec2_table +function Widget:getTouchBeganPosition () end +---* Determines if the widget is touch enabled<br> +---* return true if the widget is touch enabled, false if the widget is touch disabled. +---@return boolean +function Widget:isTouchEnabled () end +---* Query callback name.<br> +---* return The callback name. +---@return string +function Widget:getCallbackName () end +---* Get the action tag.<br> +---* return Action tag. +---@return int +function Widget:getActionTag () end +---* Gets position of widget in world space.<br> +---* return Position of widget in world space. +---@return vec2_table +function Widget:getWorldPosition () end +---* Query widget's focus enable state.<br> +---* return true represent the widget could accept focus, false represent the widget couldn't accept focus +---@return boolean +function Widget:isFocusEnabled () end +---* Toggle widget focus status.<br> +---* param focus pass true to let the widget get focus or pass false to let the widget lose focus +---@param focus boolean +---@return self +function Widget:setFocused (focus) end +---* Set the tag of action.<br> +---* param tag A integer tag value. +---@param tag int +---@return self +function Widget:setActionTag (tag) end +---* Sets whether the widget is touch enabled.<br> +---* The default value is false, a widget is default to touch disabled.<br> +---* param enabled True if the widget is touch enabled, false if the widget is touch disabled. +---@param enabled boolean +---@return self +function Widget:setTouchEnabled (enabled) end +---* Sets whether the widget should be flipped vertically or not.<br> +---* param flippedY true if the widget should be flipped vertically, false otherwise. +---@param flippedY boolean +---@return self +function Widget:setFlippedY (flippedY) end +---* Sets whether the widget is enabled<br> +---* true if the widget is enabled, widget may be touched , false if the widget is disabled, widget cannot be touched.<br> +---* Note: If you want to change the widget's appearance to disabled state, you should also call `setBright(false)`.<br> +---* The default value is true, a widget is default to enable touch.<br> +---* param enabled Set to true to enable touch, false otherwise. +---@param enabled boolean +---@return self +function Widget:setEnabled (enabled) end +---* Gets the right boundary position of this widget in parent's coordination system.<br> +---* return The right boundary position of this widget. +---@return float +function Widget:getRightBoundary () end +---* To set the bright style of widget.<br> +---* see BrightStyle<br> +---* param style BrightStyle::NORMAL means the widget is in normal state, BrightStyle::HIGHLIGHT means the widget is in highlight state. +---@param style int +---@return self +function Widget:setBrightStyle (style) end +---* Sets a LayoutParameter to widget.<br> +---* see LayoutParameter<br> +---* param parameter LayoutParameter pointer +---@param parameter ccui.LayoutParameter +---@return self +function Widget:setLayoutParameter (parameter) end +---* Create a new widget copy of the original one.<br> +---* return A cloned widget copy of original. +---@return self +function Widget:clone () end +---* Allow widget to accept focus.<br> +---* param enable pass true/false to enable/disable the focus ability of a widget +---@param enable boolean +---@return self +function Widget:setFocusEnabled (enable) end +---* Gets the bottom boundary position of this widget in parent's coordination system.<br> +---* return The bottom boundary position of this widget. +---@return float +function Widget:getBottomBoundary () end +---* Determines if the widget is bright<br> +---* return true if the widget is bright, false if the widget is dark. +---@return boolean +function Widget:isBright () end +---* Dispatch a EventFocus through a EventDispatcher<br> +---* param widgetLoseFocus The widget which lose its focus<br> +---* param widgetGetFocus he widget which get its focus +---@param widgetLoseFocus ccui.Widget +---@param widgetGetFocus ccui.Widget +---@return self +function Widget:dispatchFocusEvent (widgetLoseFocus,widgetGetFocus) end +---* Toggle use unify size.<br> +---* param enable True to use unify size, false otherwise. +---@param enable boolean +---@return self +function Widget:setUnifySizeEnabled (enable) end +---* Return whether the widget is propagate touch events to its parents or not<br> +---* return whether touch event propagation is allowed or not.<br> +---* since v3.3 +---@return boolean +function Widget:isPropagateTouchEvents () end +---* Checks a point is in widget's content space.<br> +---* This function is used for determining touch area of widget.<br> +---* param pt The point in `Vec2`.<br> +---* param camera The camera look at widget, used to convert GL screen point to near/far plane.<br> +---* param p Point to a Vec3 for store the intersect point, if don't need them set to nullptr.<br> +---* return true if the point is in widget's content space, false otherwise. +---@param pt vec2_table +---@param camera cc.Camera +---@param p vec3_table +---@return boolean +function Widget:hitTest (pt,camera,p) end +---* Query whether layout component is enabled or not. <br> +---* return true represent the widget use Layout Component, false represent the widget couldn't use Layout Component. +---@return boolean +function Widget:isLayoutComponentEnabled () end +---* when a widget calls this method, it will get focus immediately. +---@return self +function Widget:requestFocus () end +---@overload fun(size_table:size_table):self +---@overload fun():self +---@param parentSize size_table +---@return self +function Widget:updateSizeAndPosition (parentSize) end +---* This method is called when a focus change event happens<br> +---* param widgetLostFocus The widget which lose its focus<br> +---* param widgetGetFocus The widget which get its focus +---@param widgetLostFocus ccui.Widget +---@param widgetGetFocus ccui.Widget +---@return self +function Widget:onFocusChange (widgetLostFocus,widgetGetFocus) end +---* +---@return vec2_table +function Widget:getTouchMovePosition () end +---* Gets the size type of widget.<br> +---* see `SizeType` +---@return int +function Widget:getSizeType () end +---* Query callback type.<br> +---* return Callback type string. +---@return string +function Widget:getCallbackType () end +---* +---@return vec2_table +function Widget:getTouchEndPosition () end +---* Gets the percent (x,y) of the widget in OpenGL coordinates<br> +---* see setPosition(const Vec2&)<br> +---* return The percent (x,y) of the widget in OpenGL coordinates +---@return vec2_table +function Widget:getPositionPercent () end +---* brief Propagate touch events to its parents +---@param event int +---@param sender ccui.Widget +---@param touch cc.Touch +---@return self +function Widget:propagateTouchEvent (event,sender,touch) end +---* Returns the flag which indicates whether the widget is flipped horizontally or not.<br> +---* It not only flips the texture of the widget, but also the texture of the widget's children.<br> +---* Also, flipping relies on widget's anchor point.<br> +---* Internally, it just use setScaleX(-1) to flip the widget.<br> +---* return true if the widget is flipped horizontally, false otherwise. +---@return boolean +function Widget:isFlippedX () end +---* Return the flag which indicates whether the widget is flipped vertically or not.<br> +---* It not only flips the texture of the widget, but also the texture of the widget's children.<br> +---* Also, flipping relies on widget's anchor point.<br> +---* Internally, it just use setScaleY(-1) to flip the widget.<br> +---* return true if the widget is flipped vertically, false otherwise. +---@return boolean +function Widget:isFlippedY () end +---* Checks a point if in parent's area.<br> +---* param pt A point in `Vec2`.<br> +---* return true if the point is in parent's area, false otherwise. +---@param pt vec2_table +---@return boolean +function Widget:isClippingParentContainsPoint (pt) end +---* Changes the size type of widget.<br> +---* see `SizeType`<br> +---* param type that is widget's size type +---@param type int +---@return self +function Widget:setSizeType (type) end +---* +---@param event int +---@param sender ccui.Widget +---@param touch cc.Touch +---@return self +function Widget:interceptTouchEvent (event,sender,touch) end +---* Sets whether the widget is bright<br> +---* The default value is true, a widget is default to bright<br> +---* param bright true if the widget is bright, false if the widget is dark. +---@param bright boolean +---@return self +function Widget:setBright (bright) end +---* Set callback type.<br> +---* param callbackType A string representation of callback type. +---@param callbackType string +---@return self +function Widget:setCallbackType (callbackType) end +---* Return whether the widget is swallowing touch or not<br> +---* return Whether touch is swallowed.<br> +---* since v3.3 +---@return boolean +function Widget:isSwallowTouches () end +---* +---@param enable boolean +---@return self +function Widget:enableDpadNavigation (enable) end +---* Return a current focused widget in your UI scene.<br> +---* No matter what widget object you call this method on , it will return you the exact one focused widget. +---@return self +function Widget:getCurrentFocusedWidget () end +---* Create and return a empty Widget instance pointer. +---@return self +function Widget:create () end +---* +---@param scaleY float +---@return self +function Widget:setScaleY (scaleY) end +---* +---@param scaleX float +---@return self +function Widget:setScaleX (scaleX) end +---* +---@return float +function Widget:getScaleY () end +---* +---@return float +function Widget:getScaleX () end +---* Returns the string representation of widget class name<br> +---* return get the class description. +---@return string +function Widget:getDescription () end +---@overload fun(float:float,float:float):self +---@overload fun(float:float):self +---@param scalex float +---@param scaley float +---@return self +function Widget:setScale (scalex,scaley) end +---* +---@return boolean +function Widget:init () end +---* Changes the position (x,y) of the widget in OpenGL coordinates<br> +---* Usually we use p(x,y) to compose a Vec2 object.<br> +---* The original point (0,0) is at the left-bottom corner of screen.<br> +---* param pos The position (x,y) of the widget in OpenGL coordinates +---@param pos vec2_table +---@return self +function Widget:setPosition (pos) end +---* Changes the size that is widget's size<br> +---* param contentSize A content size in `Size`. +---@param contentSize size_table +---@return self +function Widget:setContentSize (contentSize) end +---* +---@return float +function Widget:getScale () end +---* Default constructor<br> +---* js ctor<br> +---* lua new +---@return self +function Widget:Widget () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/global.lua b/meta/3rd/Cocos4.0/global.lua new file mode 100644 index 00000000..994b0f22 --- /dev/null +++ b/meta/3rd/Cocos4.0/global.lua @@ -0,0 +1,215 @@ + +---require emmylua 0.3.36 + +---@class ccui +ccui={} +---@class cc +cc={} +---@class ccs +ccs={} +---@class ccb +ccb={} +---@class sp +sp={} +---@class cc.ResourceData + +---@class int + +---@class float + +---@class size_table + +---@class unsigned_int + +---@class vec3_table + +---@class array_table + +---@class char + +---@class vec2_table + +---@class ccs.ActionNode + +---@class ccs.AnimationInfo + +---@class color3b_table + +---@class unsigned_char + +---@class map_table + +---@class rect_table + +---@class cc.Animation3DData + +---@class cc.BlendFunc + +---@class mat4_table + +---@class void + +---@class cc.TextureAtlas + +---@class cc.Bone3D + +---@class color4b_table + +---@class cc._ccBezierConfig + +---@class ccs.ColliderDetector + +---@class color4f_table + +---@class cc.SkinData + +---@class cc.MaterialDatas + +---@class cc.NodeDatas + +---@class cc.AABB + +---@class cc.Viewport + +---@class cc.Camer + +---@class point_table + +---@class unsigned short + +---@class color3b_tabl + +---@class double + +---@class cc.IMEKeyboardNotificationInfo + +---@class cc.Value + +---@class floa + +---@class boo + +---@class GLContextAttrs + +---@class cc._ttfConfig + +---@class cc.FontAtlas + +---@class cc.backend.ProgramState + +---@class cc.MeshCommand + +---@class cc.backend.Buffer + +---@class cc.MeshVertexAttrib + +---@class vec4_table + +---@class cc.MeshIndexData + +---@class cc.MeshSkin + +---@class cc.Quaternion + +---@class cc.OffMeshLinkData + +---@class cc.NavMeshAgentParam + +---@class cc.AffineTransform + +---@class cc.Particle3DAffector + +---@class cc.Particle3DRender + +---@class cc.Particle3DEmitter + +---@class voi + +---@class unsigned in + +---@class cc.VertexAttribBinding + +---@class cc.backend.TextureBacken + +---@class btTypedConstraint + +---@class btRigidBody + +---@class cc.Physics3DRigidBodyDes + +---@class btCollisionShape + +---@class cpBody + +---@class cc.PhysicsMaterial + +---@class cc.PhysicsContactData + +---@class cc.V3F_C4B_T2F_Quad + +---@class cc.TrianglesCommand.Triangles + +---@class cc.backend.UniformLocation + +---@class cc.backend.Program + +---@class cc.backend.TextureBackend + +---@class long + +---@class cc.PUEmitter + +---@class cc.PUListener + +---@class cc.PUBehaviour + +---@class cc.PUParticle3D + +---@class cc.PUObserver + +---@class cc.RenderCommand + +---@class cc.ScissorRect + +---@class cc.MeshComman + +---@class cc.backend.ShaderCache + +---@class cc.backend.ShaderModule + +---@class spTrackEntry + +---@class spAnimation + +---@class spAtlas + +---@class spSkeletonData + +---@class spVertexEffect + +---@class spSkeleton + +---@class cc.TextureCub + +---@class cc.ScrollView + +---@class cc.Terrain.DetailMap + +---@class cc.Terrain.TerrainData + +---@class cc.FontDefinition + +---@class cc.backend.Texture2DBackend + +---@class cc.backend.SamplerDescriptor + +---@class cc.backend.TextureDescriptor + +---@class cc.backend.SamplerDescripto + +---@class cc.backend.TextureCubemapBackend + +---@class short + +---@class cc.backend.VertexLayout + diff --git a/meta/3rd/Cocos4.0/sp.SkeletonAnimation.lua b/meta/3rd/Cocos4.0/sp.SkeletonAnimation.lua new file mode 100644 index 00000000..94e91249 --- /dev/null +++ b/meta/3rd/Cocos4.0/sp.SkeletonAnimation.lua @@ -0,0 +1,113 @@ + +---@class sp.SkeletonAnimation :sp.SkeletonRenderer +local SkeletonAnimation={ } +sp.SkeletonAnimation=SkeletonAnimation + + + + +---* +---@param entry spTrackEntry +---@param listener function +---@return self +function SkeletonAnimation:setTrackCompleteListener (entry,listener) end +---* +---@param name string +---@return spAnimation +function SkeletonAnimation:findAnimation (name) end +---* +---@param listener function +---@return self +function SkeletonAnimation:setCompleteListener (listener) end +---* +---@param fromAnimation string +---@param toAnimation string +---@param duration float +---@return self +function SkeletonAnimation:setMix (fromAnimation,toAnimation,duration) end +---* +---@param entry spTrackEntry +---@param listener function +---@return self +function SkeletonAnimation:setTrackStartListener (entry,listener) end +---* +---@param trackIndex int +---@param mixDuration float +---@param delay float +---@return spTrackEntry +function SkeletonAnimation:addEmptyAnimation (trackIndex,mixDuration,delay) end +---* +---@param listener function +---@return self +function SkeletonAnimation:setDisposeListener (listener) end +---* +---@param entry spTrackEntry +---@param listener function +---@return self +function SkeletonAnimation:setTrackInterruptListener (entry,listener) end +---* +---@param listener function +---@return self +function SkeletonAnimation:setEndListener (listener) end +---* +---@param entry spTrackEntry +---@param listener function +---@return self +function SkeletonAnimation:setTrackDisposeListener (entry,listener) end +---* +---@param listener function +---@return self +function SkeletonAnimation:setEventListener (listener) end +---* +---@param trackIndex int +---@param mixDuration float +---@return spTrackEntry +function SkeletonAnimation:setEmptyAnimation (trackIndex,mixDuration) end +---* +---@param entry spTrackEntry +---@param listener function +---@return self +function SkeletonAnimation:setTrackEventListener (entry,listener) end +---* +---@return self +function SkeletonAnimation:clearTrack () end +---* +---@param listener function +---@return self +function SkeletonAnimation:setInterruptListener (listener) end +---* +---@param mixDuration float +---@return self +function SkeletonAnimation:setEmptyAnimations (mixDuration) end +---* +---@return self +function SkeletonAnimation:clearTracks () end +---* +---@param entry spTrackEntry +---@param listener function +---@return self +function SkeletonAnimation:setTrackEndListener (entry,listener) end +---* +---@param listener function +---@return self +function SkeletonAnimation:setStartListener (listener) end +---@overload fun(string:string,spAtlas1:string,float:float):self +---@overload fun(string:string,spAtlas:spAtlas,float:float):self +---@param skeletonBinaryFile string +---@param atlas spAtlas +---@param scale float +---@return self +function SkeletonAnimation:createWithBinaryFile (skeletonBinaryFile,atlas,scale) end +---* +---@return self +function SkeletonAnimation:create () end +---@overload fun(string:string,spAtlas1:string,float:float):self +---@overload fun(string:string,spAtlas:spAtlas,float:float):self +---@param skeletonJsonFile string +---@param atlas spAtlas +---@param scale float +---@return self +function SkeletonAnimation:createWithJsonFile (skeletonJsonFile,atlas,scale) end +---* +---@return self +function SkeletonAnimation:initialize () end
\ No newline at end of file diff --git a/meta/3rd/Cocos4.0/sp.SkeletonRenderer.lua b/meta/3rd/Cocos4.0/sp.SkeletonRenderer.lua new file mode 100644 index 00000000..cb399c48 --- /dev/null +++ b/meta/3rd/Cocos4.0/sp.SkeletonRenderer.lua @@ -0,0 +1,128 @@ + +---@class sp.SkeletonRenderer :cc.Node@all parent class: Node,BlendProtocol +local SkeletonRenderer={ } +sp.SkeletonRenderer=SkeletonRenderer + + + + +---* +---@param scale float +---@return self +function SkeletonRenderer:setTimeScale (scale) end +---* +---@return boolean +function SkeletonRenderer:getDebugSlotsEnabled () end +---* +---@return self +function SkeletonRenderer:setBonesToSetupPose () end +---* +---@param skeletonData spSkeletonData +---@param ownsSkeletonData boolean +---@return self +function SkeletonRenderer:initWithData (skeletonData,ownsSkeletonData) end +---* +---@param enabled boolean +---@return self +function SkeletonRenderer:setDebugSlotsEnabled (enabled) end +---@overload fun(string:string,spAtlas1:string,float:float):self +---@overload fun(string:string,spAtlas:spAtlas,float:float):self +---@param skeletonDataFile string +---@param atlas spAtlas +---@param scale float +---@return self +function SkeletonRenderer:initWithJsonFile (skeletonDataFile,atlas,scale) end +---* +---@return self +function SkeletonRenderer:setSlotsToSetupPose () end +---@overload fun(string:string,spAtlas1:string,float:float):self +---@overload fun(string:string,spAtlas:spAtlas,float:float):self +---@param skeletonDataFile string +---@param atlas spAtlas +---@param scale float +---@return self +function SkeletonRenderer:initWithBinaryFile (skeletonDataFile,atlas,scale) end +---* +---@return self +function SkeletonRenderer:setToSetupPose () end +---* +---@param enabled boolean +---@return self +function SkeletonRenderer:setDebugMeshesEnabled (enabled) end +---* +---@return boolean +function SkeletonRenderer:isTwoColorTint () end +---* +---@return cc.BlendFunc +function SkeletonRenderer:getBlendFunc () end +---* +---@return self +function SkeletonRenderer:initialize () end +---* +---@param enabled boolean +---@return self +function SkeletonRenderer:setDebugBonesEnabled (enabled) end +---* +---@return boolean +function SkeletonRenderer:getDebugBonesEnabled () end +---* +---@return float +function SkeletonRenderer:getTimeScale () end +---* +---@param enabled boolean +---@return self +function SkeletonRenderer:setTwoColorTint (enabled) end +---* +---@return boolean +function SkeletonRenderer:getDebugMeshesEnabled () end +---* +---@param blendFunc cc.BlendFunc +---@return self +function SkeletonRenderer:setBlendFunc (blendFunc) end +---* +---@param effect spVertexEffect +---@return self +function SkeletonRenderer:setVertexEffect (effect) end +---@overload fun(string0:char):self +---@overload fun(string:string):self +---@param skinName string +---@return boolean +function SkeletonRenderer:setSkin (skinName) end +---* +---@return spSkeleton +function SkeletonRenderer:getSkeleton () end +---@overload fun(string:string,spAtlas1:string,float:float):self +---@overload fun(string:string,spAtlas:spAtlas,float:float):self +---@param skeletonDataFile string +---@param atlas spAtlas +---@param scale float +---@return self +function SkeletonRenderer:createWithFile (skeletonDataFile,atlas,scale) end +---* +---@return self +function SkeletonRenderer:create () end +---* +---@return self +function SkeletonRenderer:onEnter () end +---* +---@return self +function SkeletonRenderer:onExit () end +---* +---@param value boolean +---@return self +function SkeletonRenderer:setOpacityModifyRGB (value) end +---* +---@return rect_table +function SkeletonRenderer:getBoundingBox () end +---* +---@return boolean +function SkeletonRenderer:isOpacityModifyRGB () end +---@overload fun(string0:spSkeletonData,string1:boolean):self +---@overload fun():self +---@overload fun(string:string,string1:spAtlas,float:float):self +---@overload fun(string:string,string:string,float:float):self +---@param skeletonDataFile string +---@param atlasFile string +---@param scale float +---@return self +function SkeletonRenderer:SkeletonRenderer (skeletonDataFile,atlasFile,scale) end
\ No newline at end of file diff --git a/meta/3rd/Jass/common.lua b/meta/3rd/Jass/common.lua new file mode 100644 index 00000000..75fabf03 --- /dev/null +++ b/meta/3rd/Jass/common.lua @@ -0,0 +1,12329 @@ +---@class real +---@class handle +---@class agent +---@class event +---@class player +---@class widget +---@class unit +---@class destructable +---@class item +---@class ability +---@class buff +---@class force +---@class group +---@class trigger +---@class triggercondition +---@class triggeraction +---@class timer +---@class location +---@class region +---@class rect +---@class boolexpr +---@class sound +---@class conditionfunc +---@class filterfunc +---@class unitpool +---@class itempool +---@class race +---@class alliancetype +---@class racepreference +---@class gamestate +---@class igamestate +---@class fgamestate +---@class playerstate +---@class playerscore +---@class playergameresult +---@class unitstate +---@class aidifficulty +---@class eventid +---@class gameevent +---@class playerevent +---@class playerunitevent +---@class unitevent +---@class limitop +---@class widgetevent +---@class dialogevent +---@class unittype +---@class gamespeed +---@class gamedifficulty +---@class gametype +---@class mapflag +---@class mapvisibility +---@class mapsetting +---@class mapdensity +---@class mapcontrol +---@class minimapicon +---@class playerslotstate +---@class volumegroup +---@class camerafield +---@class camerasetup +---@class playercolor +---@class placement +---@class startlocprio +---@class raritycontrol +---@class blendmode +---@class texmapflags +---@class effect +---@class effecttype +---@class weathereffect +---@class terraindeformation +---@class fogstate +---@class fogmodifier +---@class dialog +---@class button +---@class quest +---@class questitem +---@class defeatcondition +---@class timerdialog +---@class leaderboard +---@class multiboard +---@class multiboarditem +---@class trackable +---@class gamecache +---@class version +---@class itemtype +---@class texttag +---@class attacktype +---@class damagetype +---@class weapontype +---@class soundtype +---@class lightning +---@class pathingtype +---@class mousebuttontype +---@class animtype +---@class subanimtype +---@class image +---@class ubersplat +---@class hashtable +---@class framehandle +---@class originframetype +---@class framepointtype +---@class textaligntype +---@class frameeventtype +---@class oskeytype +---@class abilityintegerfield +---@class abilityrealfield +---@class abilitybooleanfield +---@class abilitystringfield +---@class abilityintegerlevelfield +---@class abilityreallevelfield +---@class abilitybooleanlevelfield +---@class abilitystringlevelfield +---@class abilityintegerlevelarrayfield +---@class abilityreallevelarrayfield +---@class abilitybooleanlevelarrayfield +---@class abilitystringlevelarrayfield +---@class unitintegerfield +---@class unitrealfield +---@class unitbooleanfield +---@class unitstringfield +---@class unitweaponintegerfield +---@class unitweaponrealfield +---@class unitweaponbooleanfield +---@class unitweaponstringfield +---@class itemintegerfield +---@class itemrealfield +---@class itembooleanfield +---@class itemstringfield +---@class movetype +---@class targetflag +---@class armortype +---@class heroattribute +---@class defensetype +---@class regentype +---@class unitcategory +---@class pathingflag +---@class commandbuttoneffect +---@meta + +---'common' +---@class common +--- +---FALSE 'common.FALSE' +---@field FALSE boolean _false +--- +---TRUE 'common.TRUE' +---@field TRUE boolean _true +--- +---JASS_MAX_ARRAY_SIZE 'common.JASS_MAX_ARRAY_SIZE' +---@field JASS_MAX_ARRAY_SIZE integer _8192 +--- +---PLAYER_NEUTRAL_PASSIVE 'common.PLAYER_NEUTRAL_PASSIVE' +---@field PLAYER_NEUTRAL_PASSIVE integer _GetPlayerNeutralPassive() +--- +---PLAYER_NEUTRAL_AGGRESSIVE 'common.PLAYER_NEUTRAL_AGGRESSIVE' +---@field PLAYER_NEUTRAL_AGGRESSIVE integer _GetPlayerNeutralAggressive() +--- +---PLAYER_COLOR_RED 'common.PLAYER_COLOR_RED' +---@field PLAYER_COLOR_RED playercolor _ConvertPlayerColor(0) +--- +---PLAYER_COLOR_BLUE 'common.PLAYER_COLOR_BLUE' +---@field PLAYER_COLOR_BLUE playercolor _ConvertPlayerColor(1) +--- +---PLAYER_COLOR_CYAN 'common.PLAYER_COLOR_CYAN' +---@field PLAYER_COLOR_CYAN playercolor _ConvertPlayerColor(2) +--- +---PLAYER_COLOR_PURPLE 'common.PLAYER_COLOR_PURPLE' +---@field PLAYER_COLOR_PURPLE playercolor _ConvertPlayerColor(3) +--- +---PLAYER_COLOR_YELLOW 'common.PLAYER_COLOR_YELLOW' +---@field PLAYER_COLOR_YELLOW playercolor _ConvertPlayerColor(4) +--- +---PLAYER_COLOR_ORANGE 'common.PLAYER_COLOR_ORANGE' +---@field PLAYER_COLOR_ORANGE playercolor _ConvertPlayerColor(5) +--- +---PLAYER_COLOR_GREEN 'common.PLAYER_COLOR_GREEN' +---@field PLAYER_COLOR_GREEN playercolor _ConvertPlayerColor(6) +--- +---PLAYER_COLOR_PINK 'common.PLAYER_COLOR_PINK' +---@field PLAYER_COLOR_PINK playercolor _ConvertPlayerColor(7) +--- +---PLAYER_COLOR_LIGHT_GRAY 'common.PLAYER_COLOR_LIGHT_GRAY' +---@field PLAYER_COLOR_LIGHT_GRAY playercolor _ConvertPlayerColor(8) +--- +---PLAYER_COLOR_LIGHT_BLUE 'common.PLAYER_COLOR_LIGHT_BLUE' +---@field PLAYER_COLOR_LIGHT_BLUE playercolor _ConvertPlayerColor(9) +--- +---PLAYER_COLOR_AQUA 'common.PLAYER_COLOR_AQUA' +---@field PLAYER_COLOR_AQUA playercolor _ConvertPlayerColor(10) +--- +---PLAYER_COLOR_BROWN 'common.PLAYER_COLOR_BROWN' +---@field PLAYER_COLOR_BROWN playercolor _ConvertPlayerColor(11) +--- +---PLAYER_COLOR_MAROON 'common.PLAYER_COLOR_MAROON' +---@field PLAYER_COLOR_MAROON playercolor _ConvertPlayerColor(12) +--- +---PLAYER_COLOR_NAVY 'common.PLAYER_COLOR_NAVY' +---@field PLAYER_COLOR_NAVY playercolor _ConvertPlayerColor(13) +--- +---PLAYER_COLOR_TURQUOISE 'common.PLAYER_COLOR_TURQUOISE' +---@field PLAYER_COLOR_TURQUOISE playercolor _ConvertPlayerColor(14) +--- +---PLAYER_COLOR_VIOLET 'common.PLAYER_COLOR_VIOLET' +---@field PLAYER_COLOR_VIOLET playercolor _ConvertPlayerColor(15) +--- +---PLAYER_COLOR_WHEAT 'common.PLAYER_COLOR_WHEAT' +---@field PLAYER_COLOR_WHEAT playercolor _ConvertPlayerColor(16) +--- +---PLAYER_COLOR_PEACH 'common.PLAYER_COLOR_PEACH' +---@field PLAYER_COLOR_PEACH playercolor _ConvertPlayerColor(17) +--- +---PLAYER_COLOR_MINT 'common.PLAYER_COLOR_MINT' +---@field PLAYER_COLOR_MINT playercolor _ConvertPlayerColor(18) +--- +---PLAYER_COLOR_LAVENDER 'common.PLAYER_COLOR_LAVENDER' +---@field PLAYER_COLOR_LAVENDER playercolor _ConvertPlayerColor(19) +--- +---PLAYER_COLOR_COAL 'common.PLAYER_COLOR_COAL' +---@field PLAYER_COLOR_COAL playercolor _ConvertPlayerColor(20) +--- +---PLAYER_COLOR_SNOW 'common.PLAYER_COLOR_SNOW' +---@field PLAYER_COLOR_SNOW playercolor _ConvertPlayerColor(21) +--- +---PLAYER_COLOR_EMERALD 'common.PLAYER_COLOR_EMERALD' +---@field PLAYER_COLOR_EMERALD playercolor _ConvertPlayerColor(22) +--- +---PLAYER_COLOR_PEANUT 'common.PLAYER_COLOR_PEANUT' +---@field PLAYER_COLOR_PEANUT playercolor _ConvertPlayerColor(23) +--- +---RACE_HUMAN 'common.RACE_HUMAN' +---@field RACE_HUMAN race _ConvertRace(1) +--- +---RACE_ORC 'common.RACE_ORC' +---@field RACE_ORC race _ConvertRace(2) +--- +---RACE_UNDEAD 'common.RACE_UNDEAD' +---@field RACE_UNDEAD race _ConvertRace(3) +--- +---RACE_NIGHTELF 'common.RACE_NIGHTELF' +---@field RACE_NIGHTELF race _ConvertRace(4) +--- +---RACE_DEMON 'common.RACE_DEMON' +---@field RACE_DEMON race _ConvertRace(5) +--- +---RACE_OTHER 'common.RACE_OTHER' +---@field RACE_OTHER race _ConvertRace(7) +--- +---PLAYER_GAME_RESULT_VICTORY 'common.PLAYER_GAME_RESULT_VICTORY' +---@field PLAYER_GAME_RESULT_VICTORY playergameresult _ConvertPlayerGameResult(0) +--- +---PLAYER_GAME_RESULT_DEFEAT 'common.PLAYER_GAME_RESULT_DEFEAT' +---@field PLAYER_GAME_RESULT_DEFEAT playergameresult _ConvertPlayerGameResult(1) +--- +---PLAYER_GAME_RESULT_TIE 'common.PLAYER_GAME_RESULT_TIE' +---@field PLAYER_GAME_RESULT_TIE playergameresult _ConvertPlayerGameResult(2) +--- +---PLAYER_GAME_RESULT_NEUTRAL 'common.PLAYER_GAME_RESULT_NEUTRAL' +---@field PLAYER_GAME_RESULT_NEUTRAL playergameresult _ConvertPlayerGameResult(3) +--- +---ALLIANCE_PASSIVE 'common.ALLIANCE_PASSIVE' +---@field ALLIANCE_PASSIVE alliancetype _ConvertAllianceType(0) +--- +---ALLIANCE_HELP_REQUEST 'common.ALLIANCE_HELP_REQUEST' +---@field ALLIANCE_HELP_REQUEST alliancetype _ConvertAllianceType(1) +--- +---ALLIANCE_HELP_RESPONSE 'common.ALLIANCE_HELP_RESPONSE' +---@field ALLIANCE_HELP_RESPONSE alliancetype _ConvertAllianceType(2) +--- +---ALLIANCE_SHARED_XP 'common.ALLIANCE_SHARED_XP' +---@field ALLIANCE_SHARED_XP alliancetype _ConvertAllianceType(3) +--- +---ALLIANCE_SHARED_SPELLS 'common.ALLIANCE_SHARED_SPELLS' +---@field ALLIANCE_SHARED_SPELLS alliancetype _ConvertAllianceType(4) +--- +---ALLIANCE_SHARED_VISION 'common.ALLIANCE_SHARED_VISION' +---@field ALLIANCE_SHARED_VISION alliancetype _ConvertAllianceType(5) +--- +---ALLIANCE_SHARED_CONTROL 'common.ALLIANCE_SHARED_CONTROL' +---@field ALLIANCE_SHARED_CONTROL alliancetype _ConvertAllianceType(6) +--- +---ALLIANCE_SHARED_ADVANCED_CONTROL 'common.ALLIANCE_SHARED_ADVANCED_CONTROL' +---@field ALLIANCE_SHARED_ADVANCED_CONTROL alliancetype _ConvertAllianceType(7) +--- +---ALLIANCE_RESCUABLE 'common.ALLIANCE_RESCUABLE' +---@field ALLIANCE_RESCUABLE alliancetype _ConvertAllianceType(8) +--- +---ALLIANCE_SHARED_VISION_FORCED 'common.ALLIANCE_SHARED_VISION_FORCED' +---@field ALLIANCE_SHARED_VISION_FORCED alliancetype _ConvertAllianceType(9) +--- +---VERSION_REIGN_OF_CHAOS 'common.VERSION_REIGN_OF_CHAOS' +---@field VERSION_REIGN_OF_CHAOS version _ConvertVersion(0) +--- +---VERSION_FROZEN_THRONE 'common.VERSION_FROZEN_THRONE' +---@field VERSION_FROZEN_THRONE version _ConvertVersion(1) +--- +---ATTACK_TYPE_NORMAL 'common.ATTACK_TYPE_NORMAL' +---@field ATTACK_TYPE_NORMAL attacktype _ConvertAttackType(0) +--- +---ATTACK_TYPE_MELEE 'common.ATTACK_TYPE_MELEE' +---@field ATTACK_TYPE_MELEE attacktype _ConvertAttackType(1) +--- +---ATTACK_TYPE_PIERCE 'common.ATTACK_TYPE_PIERCE' +---@field ATTACK_TYPE_PIERCE attacktype _ConvertAttackType(2) +--- +---ATTACK_TYPE_SIEGE 'common.ATTACK_TYPE_SIEGE' +---@field ATTACK_TYPE_SIEGE attacktype _ConvertAttackType(3) +--- +---ATTACK_TYPE_MAGIC 'common.ATTACK_TYPE_MAGIC' +---@field ATTACK_TYPE_MAGIC attacktype _ConvertAttackType(4) +--- +---ATTACK_TYPE_CHAOS 'common.ATTACK_TYPE_CHAOS' +---@field ATTACK_TYPE_CHAOS attacktype _ConvertAttackType(5) +--- +---ATTACK_TYPE_HERO 'common.ATTACK_TYPE_HERO' +---@field ATTACK_TYPE_HERO attacktype _ConvertAttackType(6) +--- +---DAMAGE_TYPE_UNKNOWN 'common.DAMAGE_TYPE_UNKNOWN' +---@field DAMAGE_TYPE_UNKNOWN damagetype _ConvertDamageType(0) +--- +---DAMAGE_TYPE_NORMAL 'common.DAMAGE_TYPE_NORMAL' +---@field DAMAGE_TYPE_NORMAL damagetype _ConvertDamageType(4) +--- +---DAMAGE_TYPE_ENHANCED 'common.DAMAGE_TYPE_ENHANCED' +---@field DAMAGE_TYPE_ENHANCED damagetype _ConvertDamageType(5) +--- +---DAMAGE_TYPE_FIRE 'common.DAMAGE_TYPE_FIRE' +---@field DAMAGE_TYPE_FIRE damagetype _ConvertDamageType(8) +--- +---DAMAGE_TYPE_COLD 'common.DAMAGE_TYPE_COLD' +---@field DAMAGE_TYPE_COLD damagetype _ConvertDamageType(9) +--- +---DAMAGE_TYPE_LIGHTNING 'common.DAMAGE_TYPE_LIGHTNING' +---@field DAMAGE_TYPE_LIGHTNING damagetype _ConvertDamageType(10) +--- +---DAMAGE_TYPE_POISON 'common.DAMAGE_TYPE_POISON' +---@field DAMAGE_TYPE_POISON damagetype _ConvertDamageType(11) +--- +---DAMAGE_TYPE_DISEASE 'common.DAMAGE_TYPE_DISEASE' +---@field DAMAGE_TYPE_DISEASE damagetype _ConvertDamageType(12) +--- +---DAMAGE_TYPE_DIVINE 'common.DAMAGE_TYPE_DIVINE' +---@field DAMAGE_TYPE_DIVINE damagetype _ConvertDamageType(13) +--- +---DAMAGE_TYPE_MAGIC 'common.DAMAGE_TYPE_MAGIC' +---@field DAMAGE_TYPE_MAGIC damagetype _ConvertDamageType(14) +--- +---DAMAGE_TYPE_SONIC 'common.DAMAGE_TYPE_SONIC' +---@field DAMAGE_TYPE_SONIC damagetype _ConvertDamageType(15) +--- +---DAMAGE_TYPE_ACID 'common.DAMAGE_TYPE_ACID' +---@field DAMAGE_TYPE_ACID damagetype _ConvertDamageType(16) +--- +---DAMAGE_TYPE_FORCE 'common.DAMAGE_TYPE_FORCE' +---@field DAMAGE_TYPE_FORCE damagetype _ConvertDamageType(17) +--- +---DAMAGE_TYPE_DEATH 'common.DAMAGE_TYPE_DEATH' +---@field DAMAGE_TYPE_DEATH damagetype _ConvertDamageType(18) +--- +---DAMAGE_TYPE_MIND 'common.DAMAGE_TYPE_MIND' +---@field DAMAGE_TYPE_MIND damagetype _ConvertDamageType(19) +--- +---DAMAGE_TYPE_PLANT 'common.DAMAGE_TYPE_PLANT' +---@field DAMAGE_TYPE_PLANT damagetype _ConvertDamageType(20) +--- +---DAMAGE_TYPE_DEFENSIVE 'common.DAMAGE_TYPE_DEFENSIVE' +---@field DAMAGE_TYPE_DEFENSIVE damagetype _ConvertDamageType(21) +--- +---DAMAGE_TYPE_DEMOLITION 'common.DAMAGE_TYPE_DEMOLITION' +---@field DAMAGE_TYPE_DEMOLITION damagetype _ConvertDamageType(22) +--- +---DAMAGE_TYPE_SLOW_POISON 'common.DAMAGE_TYPE_SLOW_POISON' +---@field DAMAGE_TYPE_SLOW_POISON damagetype _ConvertDamageType(23) +--- +---DAMAGE_TYPE_SPIRIT_LINK 'common.DAMAGE_TYPE_SPIRIT_LINK' +---@field DAMAGE_TYPE_SPIRIT_LINK damagetype _ConvertDamageType(24) +--- +---DAMAGE_TYPE_SHADOW_STRIKE 'common.DAMAGE_TYPE_SHADOW_STRIKE' +---@field DAMAGE_TYPE_SHADOW_STRIKE damagetype _ConvertDamageType(25) +--- +---DAMAGE_TYPE_UNIVERSAL 'common.DAMAGE_TYPE_UNIVERSAL' +---@field DAMAGE_TYPE_UNIVERSAL damagetype _ConvertDamageType(26) +--- +---WEAPON_TYPE_WHOKNOWS 'common.WEAPON_TYPE_WHOKNOWS' +---@field WEAPON_TYPE_WHOKNOWS weapontype _ConvertWeaponType(0) +--- +---WEAPON_TYPE_METAL_LIGHT_CHOP 'common.WEAPON_TYPE_METAL_LIGHT_CHOP' +---@field WEAPON_TYPE_METAL_LIGHT_CHOP weapontype _ConvertWeaponType(1) +--- +---WEAPON_TYPE_METAL_MEDIUM_CHOP 'common.WEAPON_TYPE_METAL_MEDIUM_CHOP' +---@field WEAPON_TYPE_METAL_MEDIUM_CHOP weapontype _ConvertWeaponType(2) +--- +---WEAPON_TYPE_METAL_HEAVY_CHOP 'common.WEAPON_TYPE_METAL_HEAVY_CHOP' +---@field WEAPON_TYPE_METAL_HEAVY_CHOP weapontype _ConvertWeaponType(3) +--- +---WEAPON_TYPE_METAL_LIGHT_SLICE 'common.WEAPON_TYPE_METAL_LIGHT_SLICE' +---@field WEAPON_TYPE_METAL_LIGHT_SLICE weapontype _ConvertWeaponType(4) +--- +---WEAPON_TYPE_METAL_MEDIUM_SLICE 'common.WEAPON_TYPE_METAL_MEDIUM_SLICE' +---@field WEAPON_TYPE_METAL_MEDIUM_SLICE weapontype _ConvertWeaponType(5) +--- +---WEAPON_TYPE_METAL_HEAVY_SLICE 'common.WEAPON_TYPE_METAL_HEAVY_SLICE' +---@field WEAPON_TYPE_METAL_HEAVY_SLICE weapontype _ConvertWeaponType(6) +--- +---WEAPON_TYPE_METAL_MEDIUM_BASH 'common.WEAPON_TYPE_METAL_MEDIUM_BASH' +---@field WEAPON_TYPE_METAL_MEDIUM_BASH weapontype _ConvertWeaponType(7) +--- +---WEAPON_TYPE_METAL_HEAVY_BASH 'common.WEAPON_TYPE_METAL_HEAVY_BASH' +---@field WEAPON_TYPE_METAL_HEAVY_BASH weapontype _ConvertWeaponType(8) +--- +---WEAPON_TYPE_METAL_MEDIUM_STAB 'common.WEAPON_TYPE_METAL_MEDIUM_STAB' +---@field WEAPON_TYPE_METAL_MEDIUM_STAB weapontype _ConvertWeaponType(9) +--- +---WEAPON_TYPE_METAL_HEAVY_STAB 'common.WEAPON_TYPE_METAL_HEAVY_STAB' +---@field WEAPON_TYPE_METAL_HEAVY_STAB weapontype _ConvertWeaponType(10) +--- +---WEAPON_TYPE_WOOD_LIGHT_SLICE 'common.WEAPON_TYPE_WOOD_LIGHT_SLICE' +---@field WEAPON_TYPE_WOOD_LIGHT_SLICE weapontype _ConvertWeaponType(11) +--- +---WEAPON_TYPE_WOOD_MEDIUM_SLICE 'common.WEAPON_TYPE_WOOD_MEDIUM_SLICE' +---@field WEAPON_TYPE_WOOD_MEDIUM_SLICE weapontype _ConvertWeaponType(12) +--- +---WEAPON_TYPE_WOOD_HEAVY_SLICE 'common.WEAPON_TYPE_WOOD_HEAVY_SLICE' +---@field WEAPON_TYPE_WOOD_HEAVY_SLICE weapontype _ConvertWeaponType(13) +--- +---WEAPON_TYPE_WOOD_LIGHT_BASH 'common.WEAPON_TYPE_WOOD_LIGHT_BASH' +---@field WEAPON_TYPE_WOOD_LIGHT_BASH weapontype _ConvertWeaponType(14) +--- +---WEAPON_TYPE_WOOD_MEDIUM_BASH 'common.WEAPON_TYPE_WOOD_MEDIUM_BASH' +---@field WEAPON_TYPE_WOOD_MEDIUM_BASH weapontype _ConvertWeaponType(15) +--- +---WEAPON_TYPE_WOOD_HEAVY_BASH 'common.WEAPON_TYPE_WOOD_HEAVY_BASH' +---@field WEAPON_TYPE_WOOD_HEAVY_BASH weapontype _ConvertWeaponType(16) +--- +---WEAPON_TYPE_WOOD_LIGHT_STAB 'common.WEAPON_TYPE_WOOD_LIGHT_STAB' +---@field WEAPON_TYPE_WOOD_LIGHT_STAB weapontype _ConvertWeaponType(17) +--- +---WEAPON_TYPE_WOOD_MEDIUM_STAB 'common.WEAPON_TYPE_WOOD_MEDIUM_STAB' +---@field WEAPON_TYPE_WOOD_MEDIUM_STAB weapontype _ConvertWeaponType(18) +--- +---WEAPON_TYPE_CLAW_LIGHT_SLICE 'common.WEAPON_TYPE_CLAW_LIGHT_SLICE' +---@field WEAPON_TYPE_CLAW_LIGHT_SLICE weapontype _ConvertWeaponType(19) +--- +---WEAPON_TYPE_CLAW_MEDIUM_SLICE 'common.WEAPON_TYPE_CLAW_MEDIUM_SLICE' +---@field WEAPON_TYPE_CLAW_MEDIUM_SLICE weapontype _ConvertWeaponType(20) +--- +---WEAPON_TYPE_CLAW_HEAVY_SLICE 'common.WEAPON_TYPE_CLAW_HEAVY_SLICE' +---@field WEAPON_TYPE_CLAW_HEAVY_SLICE weapontype _ConvertWeaponType(21) +--- +---WEAPON_TYPE_AXE_MEDIUM_CHOP 'common.WEAPON_TYPE_AXE_MEDIUM_CHOP' +---@field WEAPON_TYPE_AXE_MEDIUM_CHOP weapontype _ConvertWeaponType(22) +--- +---WEAPON_TYPE_ROCK_HEAVY_BASH 'common.WEAPON_TYPE_ROCK_HEAVY_BASH' +---@field WEAPON_TYPE_ROCK_HEAVY_BASH weapontype _ConvertWeaponType(23) +--- +---PATHING_TYPE_ANY 'common.PATHING_TYPE_ANY' +---@field PATHING_TYPE_ANY pathingtype _ConvertPathingType(0) +--- +---PATHING_TYPE_WALKABILITY 'common.PATHING_TYPE_WALKABILITY' +---@field PATHING_TYPE_WALKABILITY pathingtype _ConvertPathingType(1) +--- +---PATHING_TYPE_FLYABILITY 'common.PATHING_TYPE_FLYABILITY' +---@field PATHING_TYPE_FLYABILITY pathingtype _ConvertPathingType(2) +--- +---PATHING_TYPE_BUILDABILITY 'common.PATHING_TYPE_BUILDABILITY' +---@field PATHING_TYPE_BUILDABILITY pathingtype _ConvertPathingType(3) +--- +---PATHING_TYPE_PEONHARVESTPATHING 'common.PATHING_TYPE_PEONHARVESTPATHING' +---@field PATHING_TYPE_PEONHARVESTPATHING pathingtype _ConvertPathingType(4) +--- +---PATHING_TYPE_BLIGHTPATHING 'common.PATHING_TYPE_BLIGHTPATHING' +---@field PATHING_TYPE_BLIGHTPATHING pathingtype _ConvertPathingType(5) +--- +---PATHING_TYPE_FLOATABILITY 'common.PATHING_TYPE_FLOATABILITY' +---@field PATHING_TYPE_FLOATABILITY pathingtype _ConvertPathingType(6) +--- +---PATHING_TYPE_AMPHIBIOUSPATHING 'common.PATHING_TYPE_AMPHIBIOUSPATHING' +---@field PATHING_TYPE_AMPHIBIOUSPATHING pathingtype _ConvertPathingType(7) +--- +---MOUSE_BUTTON_TYPE_LEFT 'common.MOUSE_BUTTON_TYPE_LEFT' +---@field MOUSE_BUTTON_TYPE_LEFT mousebuttontype _ConvertMouseButtonType(1) +--- +---MOUSE_BUTTON_TYPE_MIDDLE 'common.MOUSE_BUTTON_TYPE_MIDDLE' +---@field MOUSE_BUTTON_TYPE_MIDDLE mousebuttontype _ConvertMouseButtonType(2) +--- +---MOUSE_BUTTON_TYPE_RIGHT 'common.MOUSE_BUTTON_TYPE_RIGHT' +---@field MOUSE_BUTTON_TYPE_RIGHT mousebuttontype _ConvertMouseButtonType(3) +--- +---ANIM_TYPE_BIRTH 'common.ANIM_TYPE_BIRTH' +---@field ANIM_TYPE_BIRTH animtype _ConvertAnimType(0) +--- +---ANIM_TYPE_DEATH 'common.ANIM_TYPE_DEATH' +---@field ANIM_TYPE_DEATH animtype _ConvertAnimType(1) +--- +---ANIM_TYPE_DECAY 'common.ANIM_TYPE_DECAY' +---@field ANIM_TYPE_DECAY animtype _ConvertAnimType(2) +--- +---ANIM_TYPE_DISSIPATE 'common.ANIM_TYPE_DISSIPATE' +---@field ANIM_TYPE_DISSIPATE animtype _ConvertAnimType(3) +--- +---ANIM_TYPE_STAND 'common.ANIM_TYPE_STAND' +---@field ANIM_TYPE_STAND animtype _ConvertAnimType(4) +--- +---ANIM_TYPE_WALK 'common.ANIM_TYPE_WALK' +---@field ANIM_TYPE_WALK animtype _ConvertAnimType(5) +--- +---ANIM_TYPE_ATTACK 'common.ANIM_TYPE_ATTACK' +---@field ANIM_TYPE_ATTACK animtype _ConvertAnimType(6) +--- +---ANIM_TYPE_MORPH 'common.ANIM_TYPE_MORPH' +---@field ANIM_TYPE_MORPH animtype _ConvertAnimType(7) +--- +---ANIM_TYPE_SLEEP 'common.ANIM_TYPE_SLEEP' +---@field ANIM_TYPE_SLEEP animtype _ConvertAnimType(8) +--- +---ANIM_TYPE_SPELL 'common.ANIM_TYPE_SPELL' +---@field ANIM_TYPE_SPELL animtype _ConvertAnimType(9) +--- +---ANIM_TYPE_PORTRAIT 'common.ANIM_TYPE_PORTRAIT' +---@field ANIM_TYPE_PORTRAIT animtype _ConvertAnimType(10) +--- +---SUBANIM_TYPE_ROOTED 'common.SUBANIM_TYPE_ROOTED' +---@field SUBANIM_TYPE_ROOTED subanimtype _ConvertSubAnimType(11) +--- +---SUBANIM_TYPE_ALTERNATE_EX 'common.SUBANIM_TYPE_ALTERNATE_EX' +---@field SUBANIM_TYPE_ALTERNATE_EX subanimtype _ConvertSubAnimType(12) +--- +---SUBANIM_TYPE_LOOPING 'common.SUBANIM_TYPE_LOOPING' +---@field SUBANIM_TYPE_LOOPING subanimtype _ConvertSubAnimType(13) +--- +---SUBANIM_TYPE_SLAM 'common.SUBANIM_TYPE_SLAM' +---@field SUBANIM_TYPE_SLAM subanimtype _ConvertSubAnimType(14) +--- +---SUBANIM_TYPE_THROW 'common.SUBANIM_TYPE_THROW' +---@field SUBANIM_TYPE_THROW subanimtype _ConvertSubAnimType(15) +--- +---SUBANIM_TYPE_SPIKED 'common.SUBANIM_TYPE_SPIKED' +---@field SUBANIM_TYPE_SPIKED subanimtype _ConvertSubAnimType(16) +--- +---SUBANIM_TYPE_FAST 'common.SUBANIM_TYPE_FAST' +---@field SUBANIM_TYPE_FAST subanimtype _ConvertSubAnimType(17) +--- +---SUBANIM_TYPE_SPIN 'common.SUBANIM_TYPE_SPIN' +---@field SUBANIM_TYPE_SPIN subanimtype _ConvertSubAnimType(18) +--- +---SUBANIM_TYPE_READY 'common.SUBANIM_TYPE_READY' +---@field SUBANIM_TYPE_READY subanimtype _ConvertSubAnimType(19) +--- +---SUBANIM_TYPE_CHANNEL 'common.SUBANIM_TYPE_CHANNEL' +---@field SUBANIM_TYPE_CHANNEL subanimtype _ConvertSubAnimType(20) +--- +---SUBANIM_TYPE_DEFEND 'common.SUBANIM_TYPE_DEFEND' +---@field SUBANIM_TYPE_DEFEND subanimtype _ConvertSubAnimType(21) +--- +---SUBANIM_TYPE_VICTORY 'common.SUBANIM_TYPE_VICTORY' +---@field SUBANIM_TYPE_VICTORY subanimtype _ConvertSubAnimType(22) +--- +---SUBANIM_TYPE_TURN 'common.SUBANIM_TYPE_TURN' +---@field SUBANIM_TYPE_TURN subanimtype _ConvertSubAnimType(23) +--- +---SUBANIM_TYPE_LEFT 'common.SUBANIM_TYPE_LEFT' +---@field SUBANIM_TYPE_LEFT subanimtype _ConvertSubAnimType(24) +--- +---SUBANIM_TYPE_RIGHT 'common.SUBANIM_TYPE_RIGHT' +---@field SUBANIM_TYPE_RIGHT subanimtype _ConvertSubAnimType(25) +--- +---SUBANIM_TYPE_FIRE 'common.SUBANIM_TYPE_FIRE' +---@field SUBANIM_TYPE_FIRE subanimtype _ConvertSubAnimType(26) +--- +---SUBANIM_TYPE_FLESH 'common.SUBANIM_TYPE_FLESH' +---@field SUBANIM_TYPE_FLESH subanimtype _ConvertSubAnimType(27) +--- +---SUBANIM_TYPE_HIT 'common.SUBANIM_TYPE_HIT' +---@field SUBANIM_TYPE_HIT subanimtype _ConvertSubAnimType(28) +--- +---SUBANIM_TYPE_WOUNDED 'common.SUBANIM_TYPE_WOUNDED' +---@field SUBANIM_TYPE_WOUNDED subanimtype _ConvertSubAnimType(29) +--- +---SUBANIM_TYPE_LIGHT 'common.SUBANIM_TYPE_LIGHT' +---@field SUBANIM_TYPE_LIGHT subanimtype _ConvertSubAnimType(30) +--- +---SUBANIM_TYPE_MODERATE 'common.SUBANIM_TYPE_MODERATE' +---@field SUBANIM_TYPE_MODERATE subanimtype _ConvertSubAnimType(31) +--- +---SUBANIM_TYPE_SEVERE 'common.SUBANIM_TYPE_SEVERE' +---@field SUBANIM_TYPE_SEVERE subanimtype _ConvertSubAnimType(32) +--- +---SUBANIM_TYPE_CRITICAL 'common.SUBANIM_TYPE_CRITICAL' +---@field SUBANIM_TYPE_CRITICAL subanimtype _ConvertSubAnimType(33) +--- +---SUBANIM_TYPE_COMPLETE 'common.SUBANIM_TYPE_COMPLETE' +---@field SUBANIM_TYPE_COMPLETE subanimtype _ConvertSubAnimType(34) +--- +---SUBANIM_TYPE_GOLD 'common.SUBANIM_TYPE_GOLD' +---@field SUBANIM_TYPE_GOLD subanimtype _ConvertSubAnimType(35) +--- +---SUBANIM_TYPE_LUMBER 'common.SUBANIM_TYPE_LUMBER' +---@field SUBANIM_TYPE_LUMBER subanimtype _ConvertSubAnimType(36) +--- +---SUBANIM_TYPE_WORK 'common.SUBANIM_TYPE_WORK' +---@field SUBANIM_TYPE_WORK subanimtype _ConvertSubAnimType(37) +--- +---SUBANIM_TYPE_TALK 'common.SUBANIM_TYPE_TALK' +---@field SUBANIM_TYPE_TALK subanimtype _ConvertSubAnimType(38) +--- +---SUBANIM_TYPE_FIRST 'common.SUBANIM_TYPE_FIRST' +---@field SUBANIM_TYPE_FIRST subanimtype _ConvertSubAnimType(39) +--- +---SUBANIM_TYPE_SECOND 'common.SUBANIM_TYPE_SECOND' +---@field SUBANIM_TYPE_SECOND subanimtype _ConvertSubAnimType(40) +--- +---SUBANIM_TYPE_THIRD 'common.SUBANIM_TYPE_THIRD' +---@field SUBANIM_TYPE_THIRD subanimtype _ConvertSubAnimType(41) +--- +---SUBANIM_TYPE_FOURTH 'common.SUBANIM_TYPE_FOURTH' +---@field SUBANIM_TYPE_FOURTH subanimtype _ConvertSubAnimType(42) +--- +---SUBANIM_TYPE_FIFTH 'common.SUBANIM_TYPE_FIFTH' +---@field SUBANIM_TYPE_FIFTH subanimtype _ConvertSubAnimType(43) +--- +---SUBANIM_TYPE_ONE 'common.SUBANIM_TYPE_ONE' +---@field SUBANIM_TYPE_ONE subanimtype _ConvertSubAnimType(44) +--- +---SUBANIM_TYPE_TWO 'common.SUBANIM_TYPE_TWO' +---@field SUBANIM_TYPE_TWO subanimtype _ConvertSubAnimType(45) +--- +---SUBANIM_TYPE_THREE 'common.SUBANIM_TYPE_THREE' +---@field SUBANIM_TYPE_THREE subanimtype _ConvertSubAnimType(46) +--- +---SUBANIM_TYPE_FOUR 'common.SUBANIM_TYPE_FOUR' +---@field SUBANIM_TYPE_FOUR subanimtype _ConvertSubAnimType(47) +--- +---SUBANIM_TYPE_FIVE 'common.SUBANIM_TYPE_FIVE' +---@field SUBANIM_TYPE_FIVE subanimtype _ConvertSubAnimType(48) +--- +---SUBANIM_TYPE_SMALL 'common.SUBANIM_TYPE_SMALL' +---@field SUBANIM_TYPE_SMALL subanimtype _ConvertSubAnimType(49) +--- +---SUBANIM_TYPE_MEDIUM 'common.SUBANIM_TYPE_MEDIUM' +---@field SUBANIM_TYPE_MEDIUM subanimtype _ConvertSubAnimType(50) +--- +---SUBANIM_TYPE_LARGE 'common.SUBANIM_TYPE_LARGE' +---@field SUBANIM_TYPE_LARGE subanimtype _ConvertSubAnimType(51) +--- +---SUBANIM_TYPE_UPGRADE 'common.SUBANIM_TYPE_UPGRADE' +---@field SUBANIM_TYPE_UPGRADE subanimtype _ConvertSubAnimType(52) +--- +---SUBANIM_TYPE_DRAIN 'common.SUBANIM_TYPE_DRAIN' +---@field SUBANIM_TYPE_DRAIN subanimtype _ConvertSubAnimType(53) +--- +---SUBANIM_TYPE_FILL 'common.SUBANIM_TYPE_FILL' +---@field SUBANIM_TYPE_FILL subanimtype _ConvertSubAnimType(54) +--- +---SUBANIM_TYPE_CHAINLIGHTNING 'common.SUBANIM_TYPE_CHAINLIGHTNING' +---@field SUBANIM_TYPE_CHAINLIGHTNING subanimtype _ConvertSubAnimType(55) +--- +---SUBANIM_TYPE_EATTREE 'common.SUBANIM_TYPE_EATTREE' +---@field SUBANIM_TYPE_EATTREE subanimtype _ConvertSubAnimType(56) +--- +---SUBANIM_TYPE_PUKE 'common.SUBANIM_TYPE_PUKE' +---@field SUBANIM_TYPE_PUKE subanimtype _ConvertSubAnimType(57) +--- +---SUBANIM_TYPE_FLAIL 'common.SUBANIM_TYPE_FLAIL' +---@field SUBANIM_TYPE_FLAIL subanimtype _ConvertSubAnimType(58) +--- +---SUBANIM_TYPE_OFF 'common.SUBANIM_TYPE_OFF' +---@field SUBANIM_TYPE_OFF subanimtype _ConvertSubAnimType(59) +--- +---SUBANIM_TYPE_SWIM 'common.SUBANIM_TYPE_SWIM' +---@field SUBANIM_TYPE_SWIM subanimtype _ConvertSubAnimType(60) +--- +---SUBANIM_TYPE_ENTANGLE 'common.SUBANIM_TYPE_ENTANGLE' +---@field SUBANIM_TYPE_ENTANGLE subanimtype _ConvertSubAnimType(61) +--- +---SUBANIM_TYPE_BERSERK 'common.SUBANIM_TYPE_BERSERK' +---@field SUBANIM_TYPE_BERSERK subanimtype _ConvertSubAnimType(62) +--- +---RACE_PREF_HUMAN 'common.RACE_PREF_HUMAN' +---@field RACE_PREF_HUMAN racepreference _ConvertRacePref(1) +--- +---RACE_PREF_ORC 'common.RACE_PREF_ORC' +---@field RACE_PREF_ORC racepreference _ConvertRacePref(2) +--- +---RACE_PREF_NIGHTELF 'common.RACE_PREF_NIGHTELF' +---@field RACE_PREF_NIGHTELF racepreference _ConvertRacePref(4) +--- +---RACE_PREF_UNDEAD 'common.RACE_PREF_UNDEAD' +---@field RACE_PREF_UNDEAD racepreference _ConvertRacePref(8) +--- +---RACE_PREF_DEMON 'common.RACE_PREF_DEMON' +---@field RACE_PREF_DEMON racepreference _ConvertRacePref(16) +--- +---RACE_PREF_RANDOM 'common.RACE_PREF_RANDOM' +---@field RACE_PREF_RANDOM racepreference _ConvertRacePref(32) +--- +---RACE_PREF_USER_SELECTABLE 'common.RACE_PREF_USER_SELECTABLE' +---@field RACE_PREF_USER_SELECTABLE racepreference _ConvertRacePref(64) +--- +---MAP_CONTROL_USER 'common.MAP_CONTROL_USER' +---@field MAP_CONTROL_USER mapcontrol _ConvertMapControl(0) +--- +---MAP_CONTROL_COMPUTER 'common.MAP_CONTROL_COMPUTER' +---@field MAP_CONTROL_COMPUTER mapcontrol _ConvertMapControl(1) +--- +---MAP_CONTROL_RESCUABLE 'common.MAP_CONTROL_RESCUABLE' +---@field MAP_CONTROL_RESCUABLE mapcontrol _ConvertMapControl(2) +--- +---MAP_CONTROL_NEUTRAL 'common.MAP_CONTROL_NEUTRAL' +---@field MAP_CONTROL_NEUTRAL mapcontrol _ConvertMapControl(3) +--- +---MAP_CONTROL_CREEP 'common.MAP_CONTROL_CREEP' +---@field MAP_CONTROL_CREEP mapcontrol _ConvertMapControl(4) +--- +---MAP_CONTROL_NONE 'common.MAP_CONTROL_NONE' +---@field MAP_CONTROL_NONE mapcontrol _ConvertMapControl(5) +--- +---GAME_TYPE_MELEE 'common.GAME_TYPE_MELEE' +---@field GAME_TYPE_MELEE gametype _ConvertGameType(1) +--- +---GAME_TYPE_FFA 'common.GAME_TYPE_FFA' +---@field GAME_TYPE_FFA gametype _ConvertGameType(2) +--- +---GAME_TYPE_USE_MAP_SETTINGS 'common.GAME_TYPE_USE_MAP_SETTINGS' +---@field GAME_TYPE_USE_MAP_SETTINGS gametype _ConvertGameType(4) +--- +---GAME_TYPE_BLIZ 'common.GAME_TYPE_BLIZ' +---@field GAME_TYPE_BLIZ gametype _ConvertGameType(8) +--- +---GAME_TYPE_ONE_ON_ONE 'common.GAME_TYPE_ONE_ON_ONE' +---@field GAME_TYPE_ONE_ON_ONE gametype _ConvertGameType(16) +--- +---GAME_TYPE_TWO_TEAM_PLAY 'common.GAME_TYPE_TWO_TEAM_PLAY' +---@field GAME_TYPE_TWO_TEAM_PLAY gametype _ConvertGameType(32) +--- +---GAME_TYPE_THREE_TEAM_PLAY 'common.GAME_TYPE_THREE_TEAM_PLAY' +---@field GAME_TYPE_THREE_TEAM_PLAY gametype _ConvertGameType(64) +--- +---GAME_TYPE_FOUR_TEAM_PLAY 'common.GAME_TYPE_FOUR_TEAM_PLAY' +---@field GAME_TYPE_FOUR_TEAM_PLAY gametype _ConvertGameType(128) +--- +---MAP_FOG_HIDE_TERRAIN 'common.MAP_FOG_HIDE_TERRAIN' +---@field MAP_FOG_HIDE_TERRAIN mapflag _ConvertMapFlag(1) +--- +---MAP_FOG_MAP_EXPLORED 'common.MAP_FOG_MAP_EXPLORED' +---@field MAP_FOG_MAP_EXPLORED mapflag _ConvertMapFlag(2) +--- +---MAP_FOG_ALWAYS_VISIBLE 'common.MAP_FOG_ALWAYS_VISIBLE' +---@field MAP_FOG_ALWAYS_VISIBLE mapflag _ConvertMapFlag(4) +--- +---MAP_USE_HANDICAPS 'common.MAP_USE_HANDICAPS' +---@field MAP_USE_HANDICAPS mapflag _ConvertMapFlag(8) +--- +---MAP_OBSERVERS 'common.MAP_OBSERVERS' +---@field MAP_OBSERVERS mapflag _ConvertMapFlag(16) +--- +---MAP_OBSERVERS_ON_DEATH 'common.MAP_OBSERVERS_ON_DEATH' +---@field MAP_OBSERVERS_ON_DEATH mapflag _ConvertMapFlag(32) +--- +---MAP_FIXED_COLORS 'common.MAP_FIXED_COLORS' +---@field MAP_FIXED_COLORS mapflag _ConvertMapFlag(128) +--- +---MAP_LOCK_RESOURCE_TRADING 'common.MAP_LOCK_RESOURCE_TRADING' +---@field MAP_LOCK_RESOURCE_TRADING mapflag _ConvertMapFlag(256) +--- +---MAP_RESOURCE_TRADING_ALLIES_ONLY 'common.MAP_RESOURCE_TRADING_ALLIES_ONLY' +---@field MAP_RESOURCE_TRADING_ALLIES_ONLY mapflag _ConvertMapFlag(512) +--- +---MAP_LOCK_ALLIANCE_CHANGES 'common.MAP_LOCK_ALLIANCE_CHANGES' +---@field MAP_LOCK_ALLIANCE_CHANGES mapflag _ConvertMapFlag(1024) +--- +---MAP_ALLIANCE_CHANGES_HIDDEN 'common.MAP_ALLIANCE_CHANGES_HIDDEN' +---@field MAP_ALLIANCE_CHANGES_HIDDEN mapflag _ConvertMapFlag(2048) +--- +---MAP_CHEATS 'common.MAP_CHEATS' +---@field MAP_CHEATS mapflag _ConvertMapFlag(4096) +--- +---MAP_CHEATS_HIDDEN 'common.MAP_CHEATS_HIDDEN' +---@field MAP_CHEATS_HIDDEN mapflag _ConvertMapFlag(8192) +--- +---MAP_LOCK_SPEED 'common.MAP_LOCK_SPEED' +---@field MAP_LOCK_SPEED mapflag _ConvertMapFlag(8192*2) +--- +---MAP_LOCK_RANDOM_SEED 'common.MAP_LOCK_RANDOM_SEED' +---@field MAP_LOCK_RANDOM_SEED mapflag _ConvertMapFlag(8192*4) +--- +---MAP_SHARED_ADVANCED_CONTROL 'common.MAP_SHARED_ADVANCED_CONTROL' +---@field MAP_SHARED_ADVANCED_CONTROL mapflag _ConvertMapFlag(8192*8) +--- +---MAP_RANDOM_HERO 'common.MAP_RANDOM_HERO' +---@field MAP_RANDOM_HERO mapflag _ConvertMapFlag(8192*16) +--- +---MAP_RANDOM_RACES 'common.MAP_RANDOM_RACES' +---@field MAP_RANDOM_RACES mapflag _ConvertMapFlag(8192*32) +--- +---MAP_RELOADED 'common.MAP_RELOADED' +---@field MAP_RELOADED mapflag _ConvertMapFlag(8192*64) +--- +---MAP_PLACEMENT_RANDOM 'common.MAP_PLACEMENT_RANDOM' +---@field MAP_PLACEMENT_RANDOM placement _ConvertPlacement(0) +--- +---MAP_PLACEMENT_FIXED 'common.MAP_PLACEMENT_FIXED' +---@field MAP_PLACEMENT_FIXED placement _ConvertPlacement(1) +--- +---MAP_PLACEMENT_USE_MAP_SETTINGS 'common.MAP_PLACEMENT_USE_MAP_SETTINGS' +---@field MAP_PLACEMENT_USE_MAP_SETTINGS placement _ConvertPlacement(2) +--- +---MAP_PLACEMENT_TEAMS_TOGETHER 'common.MAP_PLACEMENT_TEAMS_TOGETHER' +---@field MAP_PLACEMENT_TEAMS_TOGETHER placement _ConvertPlacement(3) +--- +---MAP_LOC_PRIO_LOW 'common.MAP_LOC_PRIO_LOW' +---@field MAP_LOC_PRIO_LOW startlocprio _ConvertStartLocPrio(0) +--- +---MAP_LOC_PRIO_HIGH 'common.MAP_LOC_PRIO_HIGH' +---@field MAP_LOC_PRIO_HIGH startlocprio _ConvertStartLocPrio(1) +--- +---MAP_LOC_PRIO_NOT 'common.MAP_LOC_PRIO_NOT' +---@field MAP_LOC_PRIO_NOT startlocprio _ConvertStartLocPrio(2) +--- +---MAP_DENSITY_NONE 'common.MAP_DENSITY_NONE' +---@field MAP_DENSITY_NONE mapdensity _ConvertMapDensity(0) +--- +---MAP_DENSITY_LIGHT 'common.MAP_DENSITY_LIGHT' +---@field MAP_DENSITY_LIGHT mapdensity _ConvertMapDensity(1) +--- +---MAP_DENSITY_MEDIUM 'common.MAP_DENSITY_MEDIUM' +---@field MAP_DENSITY_MEDIUM mapdensity _ConvertMapDensity(2) +--- +---MAP_DENSITY_HEAVY 'common.MAP_DENSITY_HEAVY' +---@field MAP_DENSITY_HEAVY mapdensity _ConvertMapDensity(3) +--- +---MAP_DIFFICULTY_EASY 'common.MAP_DIFFICULTY_EASY' +---@field MAP_DIFFICULTY_EASY gamedifficulty _ConvertGameDifficulty(0) +--- +---MAP_DIFFICULTY_NORMAL 'common.MAP_DIFFICULTY_NORMAL' +---@field MAP_DIFFICULTY_NORMAL gamedifficulty _ConvertGameDifficulty(1) +--- +---MAP_DIFFICULTY_HARD 'common.MAP_DIFFICULTY_HARD' +---@field MAP_DIFFICULTY_HARD gamedifficulty _ConvertGameDifficulty(2) +--- +---MAP_DIFFICULTY_INSANE 'common.MAP_DIFFICULTY_INSANE' +---@field MAP_DIFFICULTY_INSANE gamedifficulty _ConvertGameDifficulty(3) +--- +---MAP_SPEED_SLOWEST 'common.MAP_SPEED_SLOWEST' +---@field MAP_SPEED_SLOWEST gamespeed _ConvertGameSpeed(0) +--- +---MAP_SPEED_SLOW 'common.MAP_SPEED_SLOW' +---@field MAP_SPEED_SLOW gamespeed _ConvertGameSpeed(1) +--- +---MAP_SPEED_NORMAL 'common.MAP_SPEED_NORMAL' +---@field MAP_SPEED_NORMAL gamespeed _ConvertGameSpeed(2) +--- +---MAP_SPEED_FAST 'common.MAP_SPEED_FAST' +---@field MAP_SPEED_FAST gamespeed _ConvertGameSpeed(3) +--- +---MAP_SPEED_FASTEST 'common.MAP_SPEED_FASTEST' +---@field MAP_SPEED_FASTEST gamespeed _ConvertGameSpeed(4) +--- +---PLAYER_SLOT_STATE_EMPTY 'common.PLAYER_SLOT_STATE_EMPTY' +---@field PLAYER_SLOT_STATE_EMPTY playerslotstate _ConvertPlayerSlotState(0) +--- +---PLAYER_SLOT_STATE_PLAYING 'common.PLAYER_SLOT_STATE_PLAYING' +---@field PLAYER_SLOT_STATE_PLAYING playerslotstate _ConvertPlayerSlotState(1) +--- +---PLAYER_SLOT_STATE_LEFT 'common.PLAYER_SLOT_STATE_LEFT' +---@field PLAYER_SLOT_STATE_LEFT playerslotstate _ConvertPlayerSlotState(2) +--- +---SOUND_VOLUMEGROUP_UNITMOVEMENT 'common.SOUND_VOLUMEGROUP_UNITMOVEMENT' +---@field SOUND_VOLUMEGROUP_UNITMOVEMENT volumegroup _ConvertVolumeGroup(0) +--- +---SOUND_VOLUMEGROUP_UNITSOUNDS 'common.SOUND_VOLUMEGROUP_UNITSOUNDS' +---@field SOUND_VOLUMEGROUP_UNITSOUNDS volumegroup _ConvertVolumeGroup(1) +--- +---SOUND_VOLUMEGROUP_COMBAT 'common.SOUND_VOLUMEGROUP_COMBAT' +---@field SOUND_VOLUMEGROUP_COMBAT volumegroup _ConvertVolumeGroup(2) +--- +---SOUND_VOLUMEGROUP_SPELLS 'common.SOUND_VOLUMEGROUP_SPELLS' +---@field SOUND_VOLUMEGROUP_SPELLS volumegroup _ConvertVolumeGroup(3) +--- +---SOUND_VOLUMEGROUP_UI 'common.SOUND_VOLUMEGROUP_UI' +---@field SOUND_VOLUMEGROUP_UI volumegroup _ConvertVolumeGroup(4) +--- +---SOUND_VOLUMEGROUP_MUSIC 'common.SOUND_VOLUMEGROUP_MUSIC' +---@field SOUND_VOLUMEGROUP_MUSIC volumegroup _ConvertVolumeGroup(5) +--- +---SOUND_VOLUMEGROUP_AMBIENTSOUNDS 'common.SOUND_VOLUMEGROUP_AMBIENTSOUNDS' +---@field SOUND_VOLUMEGROUP_AMBIENTSOUNDS volumegroup _ConvertVolumeGroup(6) +--- +---SOUND_VOLUMEGROUP_FIRE 'common.SOUND_VOLUMEGROUP_FIRE' +---@field SOUND_VOLUMEGROUP_FIRE volumegroup _ConvertVolumeGroup(7) +--- +---GAME_STATE_DIVINE_INTERVENTION 'common.GAME_STATE_DIVINE_INTERVENTION' +---@field GAME_STATE_DIVINE_INTERVENTION igamestate _ConvertIGameState(0) +--- +---GAME_STATE_DISCONNECTED 'common.GAME_STATE_DISCONNECTED' +---@field GAME_STATE_DISCONNECTED igamestate _ConvertIGameState(1) +--- +---GAME_STATE_TIME_OF_DAY 'common.GAME_STATE_TIME_OF_DAY' +---@field GAME_STATE_TIME_OF_DAY fgamestate _ConvertFGameState(2) +--- +---PLAYER_STATE_GAME_RESULT 'common.PLAYER_STATE_GAME_RESULT' +---@field PLAYER_STATE_GAME_RESULT playerstate _ConvertPlayerState(0) +--- +---current resource levels 'common.PLAYER_STATE_RESOURCE_GOLD' +---@field PLAYER_STATE_RESOURCE_GOLD playerstate _ConvertPlayerState(1) +--- +---PLAYER_STATE_RESOURCE_LUMBER 'common.PLAYER_STATE_RESOURCE_LUMBER' +---@field PLAYER_STATE_RESOURCE_LUMBER playerstate _ConvertPlayerState(2) +--- +---PLAYER_STATE_RESOURCE_HERO_TOKENS 'common.PLAYER_STATE_RESOURCE_HERO_TOKENS' +---@field PLAYER_STATE_RESOURCE_HERO_TOKENS playerstate _ConvertPlayerState(3) +--- +---PLAYER_STATE_RESOURCE_FOOD_CAP 'common.PLAYER_STATE_RESOURCE_FOOD_CAP' +---@field PLAYER_STATE_RESOURCE_FOOD_CAP playerstate _ConvertPlayerState(4) +--- +---PLAYER_STATE_RESOURCE_FOOD_USED 'common.PLAYER_STATE_RESOURCE_FOOD_USED' +---@field PLAYER_STATE_RESOURCE_FOOD_USED playerstate _ConvertPlayerState(5) +--- +---PLAYER_STATE_FOOD_CAP_CEILING 'common.PLAYER_STATE_FOOD_CAP_CEILING' +---@field PLAYER_STATE_FOOD_CAP_CEILING playerstate _ConvertPlayerState(6) +--- +---PLAYER_STATE_GIVES_BOUNTY 'common.PLAYER_STATE_GIVES_BOUNTY' +---@field PLAYER_STATE_GIVES_BOUNTY playerstate _ConvertPlayerState(7) +--- +---PLAYER_STATE_ALLIED_VICTORY 'common.PLAYER_STATE_ALLIED_VICTORY' +---@field PLAYER_STATE_ALLIED_VICTORY playerstate _ConvertPlayerState(8) +--- +---PLAYER_STATE_PLACED 'common.PLAYER_STATE_PLACED' +---@field PLAYER_STATE_PLACED playerstate _ConvertPlayerState(9) +--- +---PLAYER_STATE_OBSERVER_ON_DEATH 'common.PLAYER_STATE_OBSERVER_ON_DEATH' +---@field PLAYER_STATE_OBSERVER_ON_DEATH playerstate _ConvertPlayerState(10) +--- +---PLAYER_STATE_OBSERVER 'common.PLAYER_STATE_OBSERVER' +---@field PLAYER_STATE_OBSERVER playerstate _ConvertPlayerState(11) +--- +---PLAYER_STATE_UNFOLLOWABLE 'common.PLAYER_STATE_UNFOLLOWABLE' +---@field PLAYER_STATE_UNFOLLOWABLE playerstate _ConvertPlayerState(12) +--- +---taxation rate for each resource 'common.PLAYER_STATE_GOLD_UPKEEP_RATE' +---@field PLAYER_STATE_GOLD_UPKEEP_RATE playerstate _ConvertPlayerState(13) +--- +---PLAYER_STATE_LUMBER_UPKEEP_RATE 'common.PLAYER_STATE_LUMBER_UPKEEP_RATE' +---@field PLAYER_STATE_LUMBER_UPKEEP_RATE playerstate _ConvertPlayerState(14) +--- +---cumulative resources collected by the player during the mission 'common.PLAYER_STATE_GOLD_GATHERED' +---@field PLAYER_STATE_GOLD_GATHERED playerstate _ConvertPlayerState(15) +--- +---PLAYER_STATE_LUMBER_GATHERED 'common.PLAYER_STATE_LUMBER_GATHERED' +---@field PLAYER_STATE_LUMBER_GATHERED playerstate _ConvertPlayerState(16) +--- +---PLAYER_STATE_NO_CREEP_SLEEP 'common.PLAYER_STATE_NO_CREEP_SLEEP' +---@field PLAYER_STATE_NO_CREEP_SLEEP playerstate _ConvertPlayerState(25) +--- +---UNIT_STATE_LIFE 'common.UNIT_STATE_LIFE' +---@field UNIT_STATE_LIFE unitstate _ConvertUnitState(0) +--- +---UNIT_STATE_MAX_LIFE 'common.UNIT_STATE_MAX_LIFE' +---@field UNIT_STATE_MAX_LIFE unitstate _ConvertUnitState(1) +--- +---UNIT_STATE_MANA 'common.UNIT_STATE_MANA' +---@field UNIT_STATE_MANA unitstate _ConvertUnitState(2) +--- +---UNIT_STATE_MAX_MANA 'common.UNIT_STATE_MAX_MANA' +---@field UNIT_STATE_MAX_MANA unitstate _ConvertUnitState(3) +--- +---AI_DIFFICULTY_NEWBIE 'common.AI_DIFFICULTY_NEWBIE' +---@field AI_DIFFICULTY_NEWBIE aidifficulty _ConvertAIDifficulty(0) +--- +---AI_DIFFICULTY_NORMAL 'common.AI_DIFFICULTY_NORMAL' +---@field AI_DIFFICULTY_NORMAL aidifficulty _ConvertAIDifficulty(1) +--- +---AI_DIFFICULTY_INSANE 'common.AI_DIFFICULTY_INSANE' +---@field AI_DIFFICULTY_INSANE aidifficulty _ConvertAIDifficulty(2) +--- +---player score values 'common.PLAYER_SCORE_UNITS_TRAINED' +---@field PLAYER_SCORE_UNITS_TRAINED playerscore _ConvertPlayerScore(0) +--- +---PLAYER_SCORE_UNITS_KILLED 'common.PLAYER_SCORE_UNITS_KILLED' +---@field PLAYER_SCORE_UNITS_KILLED playerscore _ConvertPlayerScore(1) +--- +---PLAYER_SCORE_STRUCT_BUILT 'common.PLAYER_SCORE_STRUCT_BUILT' +---@field PLAYER_SCORE_STRUCT_BUILT playerscore _ConvertPlayerScore(2) +--- +---PLAYER_SCORE_STRUCT_RAZED 'common.PLAYER_SCORE_STRUCT_RAZED' +---@field PLAYER_SCORE_STRUCT_RAZED playerscore _ConvertPlayerScore(3) +--- +---PLAYER_SCORE_TECH_PERCENT 'common.PLAYER_SCORE_TECH_PERCENT' +---@field PLAYER_SCORE_TECH_PERCENT playerscore _ConvertPlayerScore(4) +--- +---PLAYER_SCORE_FOOD_MAXPROD 'common.PLAYER_SCORE_FOOD_MAXPROD' +---@field PLAYER_SCORE_FOOD_MAXPROD playerscore _ConvertPlayerScore(5) +--- +---PLAYER_SCORE_FOOD_MAXUSED 'common.PLAYER_SCORE_FOOD_MAXUSED' +---@field PLAYER_SCORE_FOOD_MAXUSED playerscore _ConvertPlayerScore(6) +--- +---PLAYER_SCORE_HEROES_KILLED 'common.PLAYER_SCORE_HEROES_KILLED' +---@field PLAYER_SCORE_HEROES_KILLED playerscore _ConvertPlayerScore(7) +--- +---PLAYER_SCORE_ITEMS_GAINED 'common.PLAYER_SCORE_ITEMS_GAINED' +---@field PLAYER_SCORE_ITEMS_GAINED playerscore _ConvertPlayerScore(8) +--- +---PLAYER_SCORE_MERCS_HIRED 'common.PLAYER_SCORE_MERCS_HIRED' +---@field PLAYER_SCORE_MERCS_HIRED playerscore _ConvertPlayerScore(9) +--- +---PLAYER_SCORE_GOLD_MINED_TOTAL 'common.PLAYER_SCORE_GOLD_MINED_TOTAL' +---@field PLAYER_SCORE_GOLD_MINED_TOTAL playerscore _ConvertPlayerScore(10) +--- +---PLAYER_SCORE_GOLD_MINED_UPKEEP 'common.PLAYER_SCORE_GOLD_MINED_UPKEEP' +---@field PLAYER_SCORE_GOLD_MINED_UPKEEP playerscore _ConvertPlayerScore(11) +--- +---PLAYER_SCORE_GOLD_LOST_UPKEEP 'common.PLAYER_SCORE_GOLD_LOST_UPKEEP' +---@field PLAYER_SCORE_GOLD_LOST_UPKEEP playerscore _ConvertPlayerScore(12) +--- +---PLAYER_SCORE_GOLD_LOST_TAX 'common.PLAYER_SCORE_GOLD_LOST_TAX' +---@field PLAYER_SCORE_GOLD_LOST_TAX playerscore _ConvertPlayerScore(13) +--- +---PLAYER_SCORE_GOLD_GIVEN 'common.PLAYER_SCORE_GOLD_GIVEN' +---@field PLAYER_SCORE_GOLD_GIVEN playerscore _ConvertPlayerScore(14) +--- +---PLAYER_SCORE_GOLD_RECEIVED 'common.PLAYER_SCORE_GOLD_RECEIVED' +---@field PLAYER_SCORE_GOLD_RECEIVED playerscore _ConvertPlayerScore(15) +--- +---PLAYER_SCORE_LUMBER_TOTAL 'common.PLAYER_SCORE_LUMBER_TOTAL' +---@field PLAYER_SCORE_LUMBER_TOTAL playerscore _ConvertPlayerScore(16) +--- +---PLAYER_SCORE_LUMBER_LOST_UPKEEP 'common.PLAYER_SCORE_LUMBER_LOST_UPKEEP' +---@field PLAYER_SCORE_LUMBER_LOST_UPKEEP playerscore _ConvertPlayerScore(17) +--- +---PLAYER_SCORE_LUMBER_LOST_TAX 'common.PLAYER_SCORE_LUMBER_LOST_TAX' +---@field PLAYER_SCORE_LUMBER_LOST_TAX playerscore _ConvertPlayerScore(18) +--- +---PLAYER_SCORE_LUMBER_GIVEN 'common.PLAYER_SCORE_LUMBER_GIVEN' +---@field PLAYER_SCORE_LUMBER_GIVEN playerscore _ConvertPlayerScore(19) +--- +---PLAYER_SCORE_LUMBER_RECEIVED 'common.PLAYER_SCORE_LUMBER_RECEIVED' +---@field PLAYER_SCORE_LUMBER_RECEIVED playerscore _ConvertPlayerScore(20) +--- +---PLAYER_SCORE_UNIT_TOTAL 'common.PLAYER_SCORE_UNIT_TOTAL' +---@field PLAYER_SCORE_UNIT_TOTAL playerscore _ConvertPlayerScore(21) +--- +---PLAYER_SCORE_HERO_TOTAL 'common.PLAYER_SCORE_HERO_TOTAL' +---@field PLAYER_SCORE_HERO_TOTAL playerscore _ConvertPlayerScore(22) +--- +---PLAYER_SCORE_RESOURCE_TOTAL 'common.PLAYER_SCORE_RESOURCE_TOTAL' +---@field PLAYER_SCORE_RESOURCE_TOTAL playerscore _ConvertPlayerScore(23) +--- +---PLAYER_SCORE_TOTAL 'common.PLAYER_SCORE_TOTAL' +---@field PLAYER_SCORE_TOTAL playerscore _ConvertPlayerScore(24) +--- +---EVENT_GAME_VICTORY 'common.EVENT_GAME_VICTORY' +---@field EVENT_GAME_VICTORY gameevent _ConvertGameEvent(0) +--- +---EVENT_GAME_END_LEVEL 'common.EVENT_GAME_END_LEVEL' +---@field EVENT_GAME_END_LEVEL gameevent _ConvertGameEvent(1) +--- +---EVENT_GAME_VARIABLE_LIMIT 'common.EVENT_GAME_VARIABLE_LIMIT' +---@field EVENT_GAME_VARIABLE_LIMIT gameevent _ConvertGameEvent(2) +--- +---EVENT_GAME_STATE_LIMIT 'common.EVENT_GAME_STATE_LIMIT' +---@field EVENT_GAME_STATE_LIMIT gameevent _ConvertGameEvent(3) +--- +---EVENT_GAME_TIMER_EXPIRED 'common.EVENT_GAME_TIMER_EXPIRED' +---@field EVENT_GAME_TIMER_EXPIRED gameevent _ConvertGameEvent(4) +--- +---EVENT_GAME_ENTER_REGION 'common.EVENT_GAME_ENTER_REGION' +---@field EVENT_GAME_ENTER_REGION gameevent _ConvertGameEvent(5) +--- +---EVENT_GAME_LEAVE_REGION 'common.EVENT_GAME_LEAVE_REGION' +---@field EVENT_GAME_LEAVE_REGION gameevent _ConvertGameEvent(6) +--- +---EVENT_GAME_TRACKABLE_HIT 'common.EVENT_GAME_TRACKABLE_HIT' +---@field EVENT_GAME_TRACKABLE_HIT gameevent _ConvertGameEvent(7) +--- +---EVENT_GAME_TRACKABLE_TRACK 'common.EVENT_GAME_TRACKABLE_TRACK' +---@field EVENT_GAME_TRACKABLE_TRACK gameevent _ConvertGameEvent(8) +--- +---EVENT_GAME_SHOW_SKILL 'common.EVENT_GAME_SHOW_SKILL' +---@field EVENT_GAME_SHOW_SKILL gameevent _ConvertGameEvent(9) +--- +---EVENT_GAME_BUILD_SUBMENU 'common.EVENT_GAME_BUILD_SUBMENU' +---@field EVENT_GAME_BUILD_SUBMENU gameevent _ConvertGameEvent(10) +--- +---For use with TriggerRegisterPlayerEvent 'common.EVENT_PLAYER_STATE_LIMIT' +---@field EVENT_PLAYER_STATE_LIMIT playerevent _ConvertPlayerEvent(11) +--- +---EVENT_PLAYER_ALLIANCE_CHANGED 'common.EVENT_PLAYER_ALLIANCE_CHANGED' +---@field EVENT_PLAYER_ALLIANCE_CHANGED playerevent _ConvertPlayerEvent(12) +--- +---EVENT_PLAYER_DEFEAT 'common.EVENT_PLAYER_DEFEAT' +---@field EVENT_PLAYER_DEFEAT playerevent _ConvertPlayerEvent(13) +--- +---EVENT_PLAYER_VICTORY 'common.EVENT_PLAYER_VICTORY' +---@field EVENT_PLAYER_VICTORY playerevent _ConvertPlayerEvent(14) +--- +---EVENT_PLAYER_LEAVE 'common.EVENT_PLAYER_LEAVE' +---@field EVENT_PLAYER_LEAVE playerevent _ConvertPlayerEvent(15) +--- +---EVENT_PLAYER_CHAT 'common.EVENT_PLAYER_CHAT' +---@field EVENT_PLAYER_CHAT playerevent _ConvertPlayerEvent(16) +--- +---EVENT_PLAYER_END_CINEMATIC 'common.EVENT_PLAYER_END_CINEMATIC' +---@field EVENT_PLAYER_END_CINEMATIC playerevent _ConvertPlayerEvent(17) +--- +---玩家單位被攻擊 'common.EVENT_PLAYER_UNIT_ATTACKED' +---@field EVENT_PLAYER_UNIT_ATTACKED playerunitevent _ConvertPlayerUnitEvent(18) +--- +---玩家單位被救援 'common.EVENT_PLAYER_UNIT_RESCUED' +---@field EVENT_PLAYER_UNIT_RESCUED playerunitevent _ConvertPlayerUnitEvent(19) +--- +---玩家單位死亡 'common.EVENT_PLAYER_UNIT_DEATH' +---@field EVENT_PLAYER_UNIT_DEATH playerunitevent _ConvertPlayerUnitEvent(20) +--- +---玩家單位開始腐爛 'common.EVENT_PLAYER_UNIT_DECAY' +---@field EVENT_PLAYER_UNIT_DECAY playerunitevent _ConvertPlayerUnitEvent(21) +--- +---EVENT_PLAYER_UNIT_DETECTED 'common.EVENT_PLAYER_UNIT_DETECTED' +---@field EVENT_PLAYER_UNIT_DETECTED playerunitevent _ConvertPlayerUnitEvent(22) +--- +---EVENT_PLAYER_UNIT_HIDDEN 'common.EVENT_PLAYER_UNIT_HIDDEN' +---@field EVENT_PLAYER_UNIT_HIDDEN playerunitevent _ConvertPlayerUnitEvent(23) +--- +---EVENT_PLAYER_UNIT_SELECTED 'common.EVENT_PLAYER_UNIT_SELECTED' +---@field EVENT_PLAYER_UNIT_SELECTED playerunitevent _ConvertPlayerUnitEvent(24) +--- +---EVENT_PLAYER_UNIT_DESELECTED 'common.EVENT_PLAYER_UNIT_DESELECTED' +---@field EVENT_PLAYER_UNIT_DESELECTED playerunitevent _ConvertPlayerUnitEvent(25) +--- +---EVENT_PLAYER_UNIT_CONSTRUCT_START 'common.EVENT_PLAYER_UNIT_CONSTRUCT_START' +---@field EVENT_PLAYER_UNIT_CONSTRUCT_START playerunitevent _ConvertPlayerUnitEvent(26) +--- +---EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL 'common.EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL' +---@field EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL playerunitevent _ConvertPlayerUnitEvent(27) +--- +---EVENT_PLAYER_UNIT_CONSTRUCT_FINISH 'common.EVENT_PLAYER_UNIT_CONSTRUCT_FINISH' +---@field EVENT_PLAYER_UNIT_CONSTRUCT_FINISH playerunitevent _ConvertPlayerUnitEvent(28) +--- +---EVENT_PLAYER_UNIT_UPGRADE_START 'common.EVENT_PLAYER_UNIT_UPGRADE_START' +---@field EVENT_PLAYER_UNIT_UPGRADE_START playerunitevent _ConvertPlayerUnitEvent(29) +--- +---EVENT_PLAYER_UNIT_UPGRADE_CANCEL 'common.EVENT_PLAYER_UNIT_UPGRADE_CANCEL' +---@field EVENT_PLAYER_UNIT_UPGRADE_CANCEL playerunitevent _ConvertPlayerUnitEvent(30) +--- +---EVENT_PLAYER_UNIT_UPGRADE_FINISH 'common.EVENT_PLAYER_UNIT_UPGRADE_FINISH' +---@field EVENT_PLAYER_UNIT_UPGRADE_FINISH playerunitevent _ConvertPlayerUnitEvent(31) +--- +---EVENT_PLAYER_UNIT_TRAIN_START 'common.EVENT_PLAYER_UNIT_TRAIN_START' +---@field EVENT_PLAYER_UNIT_TRAIN_START playerunitevent _ConvertPlayerUnitEvent(32) +--- +---EVENT_PLAYER_UNIT_TRAIN_CANCEL 'common.EVENT_PLAYER_UNIT_TRAIN_CANCEL' +---@field EVENT_PLAYER_UNIT_TRAIN_CANCEL playerunitevent _ConvertPlayerUnitEvent(33) +--- +---EVENT_PLAYER_UNIT_TRAIN_FINISH 'common.EVENT_PLAYER_UNIT_TRAIN_FINISH' +---@field EVENT_PLAYER_UNIT_TRAIN_FINISH playerunitevent _ConvertPlayerUnitEvent(34) +--- +---EVENT_PLAYER_UNIT_RESEARCH_START 'common.EVENT_PLAYER_UNIT_RESEARCH_START' +---@field EVENT_PLAYER_UNIT_RESEARCH_START playerunitevent _ConvertPlayerUnitEvent(35) +--- +---EVENT_PLAYER_UNIT_RESEARCH_CANCEL 'common.EVENT_PLAYER_UNIT_RESEARCH_CANCEL' +---@field EVENT_PLAYER_UNIT_RESEARCH_CANCEL playerunitevent _ConvertPlayerUnitEvent(36) +--- +---EVENT_PLAYER_UNIT_RESEARCH_FINISH 'common.EVENT_PLAYER_UNIT_RESEARCH_FINISH' +---@field EVENT_PLAYER_UNIT_RESEARCH_FINISH playerunitevent _ConvertPlayerUnitEvent(37) +--- +---EVENT_PLAYER_UNIT_ISSUED_ORDER 'common.EVENT_PLAYER_UNIT_ISSUED_ORDER' +---@field EVENT_PLAYER_UNIT_ISSUED_ORDER playerunitevent _ConvertPlayerUnitEvent(38) +--- +---EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER 'common.EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER' +---@field EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER playerunitevent _ConvertPlayerUnitEvent(39) +--- +---EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER 'common.EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER' +---@field EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER playerunitevent _ConvertPlayerUnitEvent(40) +--- +---EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER 'common.EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER' +---@field EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER playerunitevent _ConvertPlayerUnitEvent(40) +--- +---EVENT_PLAYER_HERO_LEVEL 'common.EVENT_PLAYER_HERO_LEVEL' +---@field EVENT_PLAYER_HERO_LEVEL playerunitevent _ConvertPlayerUnitEvent(41) +--- +---EVENT_PLAYER_HERO_SKILL 'common.EVENT_PLAYER_HERO_SKILL' +---@field EVENT_PLAYER_HERO_SKILL playerunitevent _ConvertPlayerUnitEvent(42) +--- +---EVENT_PLAYER_HERO_REVIVABLE 'common.EVENT_PLAYER_HERO_REVIVABLE' +---@field EVENT_PLAYER_HERO_REVIVABLE playerunitevent _ConvertPlayerUnitEvent(43) +--- +---EVENT_PLAYER_HERO_REVIVE_START 'common.EVENT_PLAYER_HERO_REVIVE_START' +---@field EVENT_PLAYER_HERO_REVIVE_START playerunitevent _ConvertPlayerUnitEvent(44) +--- +---EVENT_PLAYER_HERO_REVIVE_CANCEL 'common.EVENT_PLAYER_HERO_REVIVE_CANCEL' +---@field EVENT_PLAYER_HERO_REVIVE_CANCEL playerunitevent _ConvertPlayerUnitEvent(45) +--- +---EVENT_PLAYER_HERO_REVIVE_FINISH 'common.EVENT_PLAYER_HERO_REVIVE_FINISH' +---@field EVENT_PLAYER_HERO_REVIVE_FINISH playerunitevent _ConvertPlayerUnitEvent(46) +--- +---EVENT_PLAYER_UNIT_SUMMON 'common.EVENT_PLAYER_UNIT_SUMMON' +---@field EVENT_PLAYER_UNIT_SUMMON playerunitevent _ConvertPlayerUnitEvent(47) +--- +---EVENT_PLAYER_UNIT_DROP_ITEM 'common.EVENT_PLAYER_UNIT_DROP_ITEM' +---@field EVENT_PLAYER_UNIT_DROP_ITEM playerunitevent _ConvertPlayerUnitEvent(48) +--- +---EVENT_PLAYER_UNIT_PICKUP_ITEM 'common.EVENT_PLAYER_UNIT_PICKUP_ITEM' +---@field EVENT_PLAYER_UNIT_PICKUP_ITEM playerunitevent _ConvertPlayerUnitEvent(49) +--- +---EVENT_PLAYER_UNIT_USE_ITEM 'common.EVENT_PLAYER_UNIT_USE_ITEM' +---@field EVENT_PLAYER_UNIT_USE_ITEM playerunitevent _ConvertPlayerUnitEvent(50) +--- +---EVENT_PLAYER_UNIT_LOADED 'common.EVENT_PLAYER_UNIT_LOADED' +---@field EVENT_PLAYER_UNIT_LOADED playerunitevent _ConvertPlayerUnitEvent(51) +--- +---EVENT_PLAYER_UNIT_DAMAGED 'common.EVENT_PLAYER_UNIT_DAMAGED' +---@field EVENT_PLAYER_UNIT_DAMAGED playerunitevent _ConvertPlayerUnitEvent(308) +--- +---EVENT_PLAYER_UNIT_DAMAGING 'common.EVENT_PLAYER_UNIT_DAMAGING' +---@field EVENT_PLAYER_UNIT_DAMAGING playerunitevent _ConvertPlayerUnitEvent(315) +--- +---EVENT_UNIT_DAMAGED 'common.EVENT_UNIT_DAMAGED' +---@field EVENT_UNIT_DAMAGED unitevent _ConvertUnitEvent(52) +--- +---EVENT_UNIT_DAMAGING 'common.EVENT_UNIT_DAMAGING' +---@field EVENT_UNIT_DAMAGING unitevent _ConvertUnitEvent(314) +--- +---EVENT_UNIT_DEATH 'common.EVENT_UNIT_DEATH' +---@field EVENT_UNIT_DEATH unitevent _ConvertUnitEvent(53) +--- +---EVENT_UNIT_DECAY 'common.EVENT_UNIT_DECAY' +---@field EVENT_UNIT_DECAY unitevent _ConvertUnitEvent(54) +--- +---EVENT_UNIT_DETECTED 'common.EVENT_UNIT_DETECTED' +---@field EVENT_UNIT_DETECTED unitevent _ConvertUnitEvent(55) +--- +---EVENT_UNIT_HIDDEN 'common.EVENT_UNIT_HIDDEN' +---@field EVENT_UNIT_HIDDEN unitevent _ConvertUnitEvent(56) +--- +---EVENT_UNIT_SELECTED 'common.EVENT_UNIT_SELECTED' +---@field EVENT_UNIT_SELECTED unitevent _ConvertUnitEvent(57) +--- +---EVENT_UNIT_DESELECTED 'common.EVENT_UNIT_DESELECTED' +---@field EVENT_UNIT_DESELECTED unitevent _ConvertUnitEvent(58) +--- +---EVENT_UNIT_STATE_LIMIT 'common.EVENT_UNIT_STATE_LIMIT' +---@field EVENT_UNIT_STATE_LIMIT unitevent _ConvertUnitEvent(59) +--- +---Events which may have a filter for the "other unit" 'common.EVENT_UNIT_ACQUIRED_TARGET' +---@field EVENT_UNIT_ACQUIRED_TARGET unitevent _ConvertUnitEvent(60) +--- +---EVENT_UNIT_TARGET_IN_RANGE 'common.EVENT_UNIT_TARGET_IN_RANGE' +---@field EVENT_UNIT_TARGET_IN_RANGE unitevent _ConvertUnitEvent(61) +--- +---EVENT_UNIT_ATTACKED 'common.EVENT_UNIT_ATTACKED' +---@field EVENT_UNIT_ATTACKED unitevent _ConvertUnitEvent(62) +--- +---EVENT_UNIT_RESCUED 'common.EVENT_UNIT_RESCUED' +---@field EVENT_UNIT_RESCUED unitevent _ConvertUnitEvent(63) +--- +---EVENT_UNIT_CONSTRUCT_CANCEL 'common.EVENT_UNIT_CONSTRUCT_CANCEL' +---@field EVENT_UNIT_CONSTRUCT_CANCEL unitevent _ConvertUnitEvent(64) +--- +---EVENT_UNIT_CONSTRUCT_FINISH 'common.EVENT_UNIT_CONSTRUCT_FINISH' +---@field EVENT_UNIT_CONSTRUCT_FINISH unitevent _ConvertUnitEvent(65) +--- +---EVENT_UNIT_UPGRADE_START 'common.EVENT_UNIT_UPGRADE_START' +---@field EVENT_UNIT_UPGRADE_START unitevent _ConvertUnitEvent(66) +--- +---EVENT_UNIT_UPGRADE_CANCEL 'common.EVENT_UNIT_UPGRADE_CANCEL' +---@field EVENT_UNIT_UPGRADE_CANCEL unitevent _ConvertUnitEvent(67) +--- +---EVENT_UNIT_UPGRADE_FINISH 'common.EVENT_UNIT_UPGRADE_FINISH' +---@field EVENT_UNIT_UPGRADE_FINISH unitevent _ConvertUnitEvent(68) +--- +---Events which involve the specified unit performing +---training of other units 'common.EVENT_UNIT_TRAIN_START' +---@field EVENT_UNIT_TRAIN_START unitevent _ConvertUnitEvent(69) +--- +---EVENT_UNIT_TRAIN_CANCEL 'common.EVENT_UNIT_TRAIN_CANCEL' +---@field EVENT_UNIT_TRAIN_CANCEL unitevent _ConvertUnitEvent(70) +--- +---EVENT_UNIT_TRAIN_FINISH 'common.EVENT_UNIT_TRAIN_FINISH' +---@field EVENT_UNIT_TRAIN_FINISH unitevent _ConvertUnitEvent(71) +--- +---EVENT_UNIT_RESEARCH_START 'common.EVENT_UNIT_RESEARCH_START' +---@field EVENT_UNIT_RESEARCH_START unitevent _ConvertUnitEvent(72) +--- +---EVENT_UNIT_RESEARCH_CANCEL 'common.EVENT_UNIT_RESEARCH_CANCEL' +---@field EVENT_UNIT_RESEARCH_CANCEL unitevent _ConvertUnitEvent(73) +--- +---EVENT_UNIT_RESEARCH_FINISH 'common.EVENT_UNIT_RESEARCH_FINISH' +---@field EVENT_UNIT_RESEARCH_FINISH unitevent _ConvertUnitEvent(74) +--- +---EVENT_UNIT_ISSUED_ORDER 'common.EVENT_UNIT_ISSUED_ORDER' +---@field EVENT_UNIT_ISSUED_ORDER unitevent _ConvertUnitEvent(75) +--- +---EVENT_UNIT_ISSUED_POINT_ORDER 'common.EVENT_UNIT_ISSUED_POINT_ORDER' +---@field EVENT_UNIT_ISSUED_POINT_ORDER unitevent _ConvertUnitEvent(76) +--- +---EVENT_UNIT_ISSUED_TARGET_ORDER 'common.EVENT_UNIT_ISSUED_TARGET_ORDER' +---@field EVENT_UNIT_ISSUED_TARGET_ORDER unitevent _ConvertUnitEvent(77) +--- +---EVENT_UNIT_HERO_LEVEL 'common.EVENT_UNIT_HERO_LEVEL' +---@field EVENT_UNIT_HERO_LEVEL unitevent _ConvertUnitEvent(78) +--- +---EVENT_UNIT_HERO_SKILL 'common.EVENT_UNIT_HERO_SKILL' +---@field EVENT_UNIT_HERO_SKILL unitevent _ConvertUnitEvent(79) +--- +---EVENT_UNIT_HERO_REVIVABLE 'common.EVENT_UNIT_HERO_REVIVABLE' +---@field EVENT_UNIT_HERO_REVIVABLE unitevent _ConvertUnitEvent(80) +--- +---EVENT_UNIT_HERO_REVIVE_START 'common.EVENT_UNIT_HERO_REVIVE_START' +---@field EVENT_UNIT_HERO_REVIVE_START unitevent _ConvertUnitEvent(81) +--- +---EVENT_UNIT_HERO_REVIVE_CANCEL 'common.EVENT_UNIT_HERO_REVIVE_CANCEL' +---@field EVENT_UNIT_HERO_REVIVE_CANCEL unitevent _ConvertUnitEvent(82) +--- +---EVENT_UNIT_HERO_REVIVE_FINISH 'common.EVENT_UNIT_HERO_REVIVE_FINISH' +---@field EVENT_UNIT_HERO_REVIVE_FINISH unitevent _ConvertUnitEvent(83) +--- +---EVENT_UNIT_SUMMON 'common.EVENT_UNIT_SUMMON' +---@field EVENT_UNIT_SUMMON unitevent _ConvertUnitEvent(84) +--- +---EVENT_UNIT_DROP_ITEM 'common.EVENT_UNIT_DROP_ITEM' +---@field EVENT_UNIT_DROP_ITEM unitevent _ConvertUnitEvent(85) +--- +---EVENT_UNIT_PICKUP_ITEM 'common.EVENT_UNIT_PICKUP_ITEM' +---@field EVENT_UNIT_PICKUP_ITEM unitevent _ConvertUnitEvent(86) +--- +---EVENT_UNIT_USE_ITEM 'common.EVENT_UNIT_USE_ITEM' +---@field EVENT_UNIT_USE_ITEM unitevent _ConvertUnitEvent(87) +--- +---EVENT_UNIT_LOADED 'common.EVENT_UNIT_LOADED' +---@field EVENT_UNIT_LOADED unitevent _ConvertUnitEvent(88) +--- +---EVENT_WIDGET_DEATH 'common.EVENT_WIDGET_DEATH' +---@field EVENT_WIDGET_DEATH widgetevent _ConvertWidgetEvent(89) +--- +---EVENT_DIALOG_BUTTON_CLICK 'common.EVENT_DIALOG_BUTTON_CLICK' +---@field EVENT_DIALOG_BUTTON_CLICK dialogevent _ConvertDialogEvent(90) +--- +---EVENT_DIALOG_CLICK 'common.EVENT_DIALOG_CLICK' +---@field EVENT_DIALOG_CLICK dialogevent _ConvertDialogEvent(91) +--- +---EVENT_GAME_LOADED 'common.EVENT_GAME_LOADED' +---@field EVENT_GAME_LOADED gameevent _ConvertGameEvent(256) +--- +---EVENT_GAME_TOURNAMENT_FINISH_SOON 'common.EVENT_GAME_TOURNAMENT_FINISH_SOON' +---@field EVENT_GAME_TOURNAMENT_FINISH_SOON gameevent _ConvertGameEvent(257) +--- +---EVENT_GAME_TOURNAMENT_FINISH_NOW 'common.EVENT_GAME_TOURNAMENT_FINISH_NOW' +---@field EVENT_GAME_TOURNAMENT_FINISH_NOW gameevent _ConvertGameEvent(258) +--- +---EVENT_GAME_SAVE 'common.EVENT_GAME_SAVE' +---@field EVENT_GAME_SAVE gameevent _ConvertGameEvent(259) +--- +---EVENT_GAME_CUSTOM_UI_FRAME 'common.EVENT_GAME_CUSTOM_UI_FRAME' +---@field EVENT_GAME_CUSTOM_UI_FRAME gameevent _ConvertGameEvent(310) +--- +---EVENT_PLAYER_ARROW_LEFT_DOWN 'common.EVENT_PLAYER_ARROW_LEFT_DOWN' +---@field EVENT_PLAYER_ARROW_LEFT_DOWN playerevent _ConvertPlayerEvent(261) +--- +---EVENT_PLAYER_ARROW_LEFT_UP 'common.EVENT_PLAYER_ARROW_LEFT_UP' +---@field EVENT_PLAYER_ARROW_LEFT_UP playerevent _ConvertPlayerEvent(262) +--- +---EVENT_PLAYER_ARROW_RIGHT_DOWN 'common.EVENT_PLAYER_ARROW_RIGHT_DOWN' +---@field EVENT_PLAYER_ARROW_RIGHT_DOWN playerevent _ConvertPlayerEvent(263) +--- +---EVENT_PLAYER_ARROW_RIGHT_UP 'common.EVENT_PLAYER_ARROW_RIGHT_UP' +---@field EVENT_PLAYER_ARROW_RIGHT_UP playerevent _ConvertPlayerEvent(264) +--- +---EVENT_PLAYER_ARROW_DOWN_DOWN 'common.EVENT_PLAYER_ARROW_DOWN_DOWN' +---@field EVENT_PLAYER_ARROW_DOWN_DOWN playerevent _ConvertPlayerEvent(265) +--- +---EVENT_PLAYER_ARROW_DOWN_UP 'common.EVENT_PLAYER_ARROW_DOWN_UP' +---@field EVENT_PLAYER_ARROW_DOWN_UP playerevent _ConvertPlayerEvent(266) +--- +---EVENT_PLAYER_ARROW_UP_DOWN 'common.EVENT_PLAYER_ARROW_UP_DOWN' +---@field EVENT_PLAYER_ARROW_UP_DOWN playerevent _ConvertPlayerEvent(267) +--- +---EVENT_PLAYER_ARROW_UP_UP 'common.EVENT_PLAYER_ARROW_UP_UP' +---@field EVENT_PLAYER_ARROW_UP_UP playerevent _ConvertPlayerEvent(268) +--- +---EVENT_PLAYER_MOUSE_DOWN 'common.EVENT_PLAYER_MOUSE_DOWN' +---@field EVENT_PLAYER_MOUSE_DOWN playerevent _ConvertPlayerEvent(305) +--- +---EVENT_PLAYER_MOUSE_UP 'common.EVENT_PLAYER_MOUSE_UP' +---@field EVENT_PLAYER_MOUSE_UP playerevent _ConvertPlayerEvent(306) +--- +---EVENT_PLAYER_MOUSE_MOVE 'common.EVENT_PLAYER_MOUSE_MOVE' +---@field EVENT_PLAYER_MOUSE_MOVE playerevent _ConvertPlayerEvent(307) +--- +---EVENT_PLAYER_SYNC_DATA 'common.EVENT_PLAYER_SYNC_DATA' +---@field EVENT_PLAYER_SYNC_DATA playerevent _ConvertPlayerEvent(309) +--- +---EVENT_PLAYER_KEY 'common.EVENT_PLAYER_KEY' +---@field EVENT_PLAYER_KEY playerevent _ConvertPlayerEvent(311) +--- +---EVENT_PLAYER_KEY_DOWN 'common.EVENT_PLAYER_KEY_DOWN' +---@field EVENT_PLAYER_KEY_DOWN playerevent _ConvertPlayerEvent(312) +--- +---EVENT_PLAYER_KEY_UP 'common.EVENT_PLAYER_KEY_UP' +---@field EVENT_PLAYER_KEY_UP playerevent _ConvertPlayerEvent(313) +--- +---EVENT_PLAYER_UNIT_SELL 'common.EVENT_PLAYER_UNIT_SELL' +---@field EVENT_PLAYER_UNIT_SELL playerunitevent _ConvertPlayerUnitEvent(269) +--- +---玩家單位更改所有者 'common.EVENT_PLAYER_UNIT_CHANGE_OWNER' +---@field EVENT_PLAYER_UNIT_CHANGE_OWNER playerunitevent _ConvertPlayerUnitEvent(270) +--- +---玩家單位出售物品 'common.EVENT_PLAYER_UNIT_SELL_ITEM' +---@field EVENT_PLAYER_UNIT_SELL_ITEM playerunitevent _ConvertPlayerUnitEvent(271) +--- +---玩家單位準備施放技能 'common.EVENT_PLAYER_UNIT_SPELL_CHANNEL' +---@field EVENT_PLAYER_UNIT_SPELL_CHANNEL playerunitevent _ConvertPlayerUnitEvent(272) +--- +---玩家單位開始施放技能 'common.EVENT_PLAYER_UNIT_SPELL_CAST' +---@field EVENT_PLAYER_UNIT_SPELL_CAST playerunitevent _ConvertPlayerUnitEvent(273) +--- +---玩家單位發動技能效果 'common.EVENT_PLAYER_UNIT_SPELL_EFFECT' +---@field EVENT_PLAYER_UNIT_SPELL_EFFECT playerunitevent _ConvertPlayerUnitEvent(274) +--- +---玩家單位釋放技能結束 'common.EVENT_PLAYER_UNIT_SPELL_FINISH' +---@field EVENT_PLAYER_UNIT_SPELL_FINISH playerunitevent _ConvertPlayerUnitEvent(275) +--- +---玩家單位停止施放技能 'common.EVENT_PLAYER_UNIT_SPELL_ENDCAST' +---@field EVENT_PLAYER_UNIT_SPELL_ENDCAST playerunitevent _ConvertPlayerUnitEvent(276) +--- +---玩家單位抵押物品 'common.EVENT_PLAYER_UNIT_PAWN_ITEM' +---@field EVENT_PLAYER_UNIT_PAWN_ITEM playerunitevent _ConvertPlayerUnitEvent(277) +--- +---For use with TriggerRegisterUnitEvent +---单位出售 'common.EVENT_UNIT_SELL' +---@field EVENT_UNIT_SELL unitevent _ConvertUnitEvent(286) +--- +---单位所属改变 'common.EVENT_UNIT_CHANGE_OWNER' +---@field EVENT_UNIT_CHANGE_OWNER unitevent _ConvertUnitEvent(287) +--- +---出售物品 'common.EVENT_UNIT_SELL_ITEM' +---@field EVENT_UNIT_SELL_ITEM unitevent _ConvertUnitEvent(288) +--- +---准备施放技能 (前摇开始) 'common.EVENT_UNIT_SPELL_CHANNEL' +---@field EVENT_UNIT_SPELL_CHANNEL unitevent _ConvertUnitEvent(289) +--- +---开始施放技能 (前摇结束) 'common.EVENT_UNIT_SPELL_CAST' +---@field EVENT_UNIT_SPELL_CAST unitevent _ConvertUnitEvent(290) +--- +---发动技能效果 (后摇开始) 'common.EVENT_UNIT_SPELL_EFFECT' +---@field EVENT_UNIT_SPELL_EFFECT unitevent _ConvertUnitEvent(291) +--- +---发动技能结束 (后摇结束) 'common.EVENT_UNIT_SPELL_FINISH' +---@field EVENT_UNIT_SPELL_FINISH unitevent _ConvertUnitEvent(292) +--- +---停止施放技能 'common.EVENT_UNIT_SPELL_ENDCAST' +---@field EVENT_UNIT_SPELL_ENDCAST unitevent _ConvertUnitEvent(293) +--- +---抵押物品 'common.EVENT_UNIT_PAWN_ITEM' +---@field EVENT_UNIT_PAWN_ITEM unitevent _ConvertUnitEvent(294) +--- +---LESS_THAN 'common.LESS_THAN' +---@field LESS_THAN limitop _ConvertLimitOp(0) +--- +---LESS_THAN_OR_EQUAL 'common.LESS_THAN_OR_EQUAL' +---@field LESS_THAN_OR_EQUAL limitop _ConvertLimitOp(1) +--- +---EQUAL 'common.EQUAL' +---@field EQUAL limitop _ConvertLimitOp(2) +--- +---GREATER_THAN_OR_EQUAL 'common.GREATER_THAN_OR_EQUAL' +---@field GREATER_THAN_OR_EQUAL limitop _ConvertLimitOp(3) +--- +---GREATER_THAN 'common.GREATER_THAN' +---@field GREATER_THAN limitop _ConvertLimitOp(4) +--- +---NOT_EQUAL 'common.NOT_EQUAL' +---@field NOT_EQUAL limitop _ConvertLimitOp(5) +--- +---UNIT_TYPE_HERO 'common.UNIT_TYPE_HERO' +---@field UNIT_TYPE_HERO unittype _ConvertUnitType(0) +--- +---UNIT_TYPE_DEAD 'common.UNIT_TYPE_DEAD' +---@field UNIT_TYPE_DEAD unittype _ConvertUnitType(1) +--- +---UNIT_TYPE_STRUCTURE 'common.UNIT_TYPE_STRUCTURE' +---@field UNIT_TYPE_STRUCTURE unittype _ConvertUnitType(2) +--- +---UNIT_TYPE_FLYING 'common.UNIT_TYPE_FLYING' +---@field UNIT_TYPE_FLYING unittype _ConvertUnitType(3) +--- +---UNIT_TYPE_GROUND 'common.UNIT_TYPE_GROUND' +---@field UNIT_TYPE_GROUND unittype _ConvertUnitType(4) +--- +---UNIT_TYPE_ATTACKS_FLYING 'common.UNIT_TYPE_ATTACKS_FLYING' +---@field UNIT_TYPE_ATTACKS_FLYING unittype _ConvertUnitType(5) +--- +---UNIT_TYPE_ATTACKS_GROUND 'common.UNIT_TYPE_ATTACKS_GROUND' +---@field UNIT_TYPE_ATTACKS_GROUND unittype _ConvertUnitType(6) +--- +---UNIT_TYPE_MELEE_ATTACKER 'common.UNIT_TYPE_MELEE_ATTACKER' +---@field UNIT_TYPE_MELEE_ATTACKER unittype _ConvertUnitType(7) +--- +---UNIT_TYPE_RANGED_ATTACKER 'common.UNIT_TYPE_RANGED_ATTACKER' +---@field UNIT_TYPE_RANGED_ATTACKER unittype _ConvertUnitType(8) +--- +---UNIT_TYPE_GIANT 'common.UNIT_TYPE_GIANT' +---@field UNIT_TYPE_GIANT unittype _ConvertUnitType(9) +--- +---UNIT_TYPE_SUMMONED 'common.UNIT_TYPE_SUMMONED' +---@field UNIT_TYPE_SUMMONED unittype _ConvertUnitType(10) +--- +---UNIT_TYPE_STUNNED 'common.UNIT_TYPE_STUNNED' +---@field UNIT_TYPE_STUNNED unittype _ConvertUnitType(11) +--- +---UNIT_TYPE_PLAGUED 'common.UNIT_TYPE_PLAGUED' +---@field UNIT_TYPE_PLAGUED unittype _ConvertUnitType(12) +--- +---UNIT_TYPE_SNARED 'common.UNIT_TYPE_SNARED' +---@field UNIT_TYPE_SNARED unittype _ConvertUnitType(13) +--- +---UNIT_TYPE_UNDEAD 'common.UNIT_TYPE_UNDEAD' +---@field UNIT_TYPE_UNDEAD unittype _ConvertUnitType(14) +--- +---UNIT_TYPE_MECHANICAL 'common.UNIT_TYPE_MECHANICAL' +---@field UNIT_TYPE_MECHANICAL unittype _ConvertUnitType(15) +--- +---UNIT_TYPE_PEON 'common.UNIT_TYPE_PEON' +---@field UNIT_TYPE_PEON unittype _ConvertUnitType(16) +--- +---UNIT_TYPE_SAPPER 'common.UNIT_TYPE_SAPPER' +---@field UNIT_TYPE_SAPPER unittype _ConvertUnitType(17) +--- +---UNIT_TYPE_TOWNHALL 'common.UNIT_TYPE_TOWNHALL' +---@field UNIT_TYPE_TOWNHALL unittype _ConvertUnitType(18) +--- +---UNIT_TYPE_ANCIENT 'common.UNIT_TYPE_ANCIENT' +---@field UNIT_TYPE_ANCIENT unittype _ConvertUnitType(19) +--- +---UNIT_TYPE_TAUREN 'common.UNIT_TYPE_TAUREN' +---@field UNIT_TYPE_TAUREN unittype _ConvertUnitType(20) +--- +---UNIT_TYPE_POISONED 'common.UNIT_TYPE_POISONED' +---@field UNIT_TYPE_POISONED unittype _ConvertUnitType(21) +--- +---UNIT_TYPE_POLYMORPHED 'common.UNIT_TYPE_POLYMORPHED' +---@field UNIT_TYPE_POLYMORPHED unittype _ConvertUnitType(22) +--- +---UNIT_TYPE_SLEEPING 'common.UNIT_TYPE_SLEEPING' +---@field UNIT_TYPE_SLEEPING unittype _ConvertUnitType(23) +--- +---UNIT_TYPE_RESISTANT 'common.UNIT_TYPE_RESISTANT' +---@field UNIT_TYPE_RESISTANT unittype _ConvertUnitType(24) +--- +---UNIT_TYPE_ETHEREAL 'common.UNIT_TYPE_ETHEREAL' +---@field UNIT_TYPE_ETHEREAL unittype _ConvertUnitType(25) +--- +---UNIT_TYPE_MAGIC_IMMUNE 'common.UNIT_TYPE_MAGIC_IMMUNE' +---@field UNIT_TYPE_MAGIC_IMMUNE unittype _ConvertUnitType(26) +--- +---ITEM_TYPE_PERMANENT 'common.ITEM_TYPE_PERMANENT' +---@field ITEM_TYPE_PERMANENT itemtype _ConvertItemType(0) +--- +---ITEM_TYPE_CHARGED 'common.ITEM_TYPE_CHARGED' +---@field ITEM_TYPE_CHARGED itemtype _ConvertItemType(1) +--- +---ITEM_TYPE_POWERUP 'common.ITEM_TYPE_POWERUP' +---@field ITEM_TYPE_POWERUP itemtype _ConvertItemType(2) +--- +---ITEM_TYPE_ARTIFACT 'common.ITEM_TYPE_ARTIFACT' +---@field ITEM_TYPE_ARTIFACT itemtype _ConvertItemType(3) +--- +---ITEM_TYPE_PURCHASABLE 'common.ITEM_TYPE_PURCHASABLE' +---@field ITEM_TYPE_PURCHASABLE itemtype _ConvertItemType(4) +--- +---ITEM_TYPE_CAMPAIGN 'common.ITEM_TYPE_CAMPAIGN' +---@field ITEM_TYPE_CAMPAIGN itemtype _ConvertItemType(5) +--- +---ITEM_TYPE_MISCELLANEOUS 'common.ITEM_TYPE_MISCELLANEOUS' +---@field ITEM_TYPE_MISCELLANEOUS itemtype _ConvertItemType(6) +--- +---ITEM_TYPE_UNKNOWN 'common.ITEM_TYPE_UNKNOWN' +---@field ITEM_TYPE_UNKNOWN itemtype _ConvertItemType(7) +--- +---ITEM_TYPE_ANY 'common.ITEM_TYPE_ANY' +---@field ITEM_TYPE_ANY itemtype _ConvertItemType(8) +--- +---Deprecated, should use ITEM_TYPE_POWERUP 'common.ITEM_TYPE_TOME' +---@field ITEM_TYPE_TOME itemtype _ConvertItemType(2) +--- +---CAMERA_FIELD_TARGET_DISTANCE 'common.CAMERA_FIELD_TARGET_DISTANCE' +---@field CAMERA_FIELD_TARGET_DISTANCE camerafield _ConvertCameraField(0) +--- +---CAMERA_FIELD_FARZ 'common.CAMERA_FIELD_FARZ' +---@field CAMERA_FIELD_FARZ camerafield _ConvertCameraField(1) +--- +---CAMERA_FIELD_ANGLE_OF_ATTACK 'common.CAMERA_FIELD_ANGLE_OF_ATTACK' +---@field CAMERA_FIELD_ANGLE_OF_ATTACK camerafield _ConvertCameraField(2) +--- +---CAMERA_FIELD_FIELD_OF_VIEW 'common.CAMERA_FIELD_FIELD_OF_VIEW' +---@field CAMERA_FIELD_FIELD_OF_VIEW camerafield _ConvertCameraField(3) +--- +---CAMERA_FIELD_ROLL 'common.CAMERA_FIELD_ROLL' +---@field CAMERA_FIELD_ROLL camerafield _ConvertCameraField(4) +--- +---CAMERA_FIELD_ROTATION 'common.CAMERA_FIELD_ROTATION' +---@field CAMERA_FIELD_ROTATION camerafield _ConvertCameraField(5) +--- +---CAMERA_FIELD_ZOFFSET 'common.CAMERA_FIELD_ZOFFSET' +---@field CAMERA_FIELD_ZOFFSET camerafield _ConvertCameraField(6) +--- +---CAMERA_FIELD_NEARZ 'common.CAMERA_FIELD_NEARZ' +---@field CAMERA_FIELD_NEARZ camerafield _ConvertCameraField(7) +--- +---CAMERA_FIELD_LOCAL_PITCH 'common.CAMERA_FIELD_LOCAL_PITCH' +---@field CAMERA_FIELD_LOCAL_PITCH camerafield _ConvertCameraField(8) +--- +---CAMERA_FIELD_LOCAL_YAW 'common.CAMERA_FIELD_LOCAL_YAW' +---@field CAMERA_FIELD_LOCAL_YAW camerafield _ConvertCameraField(9) +--- +---CAMERA_FIELD_LOCAL_ROLL 'common.CAMERA_FIELD_LOCAL_ROLL' +---@field CAMERA_FIELD_LOCAL_ROLL camerafield _ConvertCameraField(10) +--- +---BLEND_MODE_NONE 'common.BLEND_MODE_NONE' +---@field BLEND_MODE_NONE blendmode _ConvertBlendMode(0) +--- +---BLEND_MODE_DONT_CARE 'common.BLEND_MODE_DONT_CARE' +---@field BLEND_MODE_DONT_CARE blendmode _ConvertBlendMode(0) +--- +---BLEND_MODE_KEYALPHA 'common.BLEND_MODE_KEYALPHA' +---@field BLEND_MODE_KEYALPHA blendmode _ConvertBlendMode(1) +--- +---BLEND_MODE_BLEND 'common.BLEND_MODE_BLEND' +---@field BLEND_MODE_BLEND blendmode _ConvertBlendMode(2) +--- +---BLEND_MODE_ADDITIVE 'common.BLEND_MODE_ADDITIVE' +---@field BLEND_MODE_ADDITIVE blendmode _ConvertBlendMode(3) +--- +---BLEND_MODE_MODULATE 'common.BLEND_MODE_MODULATE' +---@field BLEND_MODE_MODULATE blendmode _ConvertBlendMode(4) +--- +---BLEND_MODE_MODULATE_2X 'common.BLEND_MODE_MODULATE_2X' +---@field BLEND_MODE_MODULATE_2X blendmode _ConvertBlendMode(5) +--- +---RARITY_FREQUENT 'common.RARITY_FREQUENT' +---@field RARITY_FREQUENT raritycontrol _ConvertRarityControl(0) +--- +---RARITY_RARE 'common.RARITY_RARE' +---@field RARITY_RARE raritycontrol _ConvertRarityControl(1) +--- +---TEXMAP_FLAG_NONE 'common.TEXMAP_FLAG_NONE' +---@field TEXMAP_FLAG_NONE texmapflags _ConvertTexMapFlags(0) +--- +---TEXMAP_FLAG_WRAP_U 'common.TEXMAP_FLAG_WRAP_U' +---@field TEXMAP_FLAG_WRAP_U texmapflags _ConvertTexMapFlags(1) +--- +---TEXMAP_FLAG_WRAP_V 'common.TEXMAP_FLAG_WRAP_V' +---@field TEXMAP_FLAG_WRAP_V texmapflags _ConvertTexMapFlags(2) +--- +---TEXMAP_FLAG_WRAP_UV 'common.TEXMAP_FLAG_WRAP_UV' +---@field TEXMAP_FLAG_WRAP_UV texmapflags _ConvertTexMapFlags(3) +--- +---FOG_OF_WAR_MASKED 'common.FOG_OF_WAR_MASKED' +---@field FOG_OF_WAR_MASKED fogstate _ConvertFogState(1) +--- +---FOG_OF_WAR_FOGGED 'common.FOG_OF_WAR_FOGGED' +---@field FOG_OF_WAR_FOGGED fogstate _ConvertFogState(2) +--- +---FOG_OF_WAR_VISIBLE 'common.FOG_OF_WAR_VISIBLE' +---@field FOG_OF_WAR_VISIBLE fogstate _ConvertFogState(4) +--- +---CAMERA_MARGIN_LEFT 'common.CAMERA_MARGIN_LEFT' +---@field CAMERA_MARGIN_LEFT integer _0 +--- +---CAMERA_MARGIN_RIGHT 'common.CAMERA_MARGIN_RIGHT' +---@field CAMERA_MARGIN_RIGHT integer _1 +--- +---CAMERA_MARGIN_TOP 'common.CAMERA_MARGIN_TOP' +---@field CAMERA_MARGIN_TOP integer _2 +--- +---CAMERA_MARGIN_BOTTOM 'common.CAMERA_MARGIN_BOTTOM' +---@field CAMERA_MARGIN_BOTTOM integer _3 +--- +---EFFECT_TYPE_EFFECT 'common.EFFECT_TYPE_EFFECT' +---@field EFFECT_TYPE_EFFECT effecttype _ConvertEffectType(0) +--- +---EFFECT_TYPE_TARGET 'common.EFFECT_TYPE_TARGET' +---@field EFFECT_TYPE_TARGET effecttype _ConvertEffectType(1) +--- +---EFFECT_TYPE_CASTER 'common.EFFECT_TYPE_CASTER' +---@field EFFECT_TYPE_CASTER effecttype _ConvertEffectType(2) +--- +---EFFECT_TYPE_SPECIAL 'common.EFFECT_TYPE_SPECIAL' +---@field EFFECT_TYPE_SPECIAL effecttype _ConvertEffectType(3) +--- +---EFFECT_TYPE_AREA_EFFECT 'common.EFFECT_TYPE_AREA_EFFECT' +---@field EFFECT_TYPE_AREA_EFFECT effecttype _ConvertEffectType(4) +--- +---EFFECT_TYPE_MISSILE 'common.EFFECT_TYPE_MISSILE' +---@field EFFECT_TYPE_MISSILE effecttype _ConvertEffectType(5) +--- +---EFFECT_TYPE_LIGHTNING 'common.EFFECT_TYPE_LIGHTNING' +---@field EFFECT_TYPE_LIGHTNING effecttype _ConvertEffectType(6) +--- +---SOUND_TYPE_EFFECT 'common.SOUND_TYPE_EFFECT' +---@field SOUND_TYPE_EFFECT soundtype _ConvertSoundType(0) +--- +---SOUND_TYPE_EFFECT_LOOPED 'common.SOUND_TYPE_EFFECT_LOOPED' +---@field SOUND_TYPE_EFFECT_LOOPED soundtype _ConvertSoundType(1) +--- +---ORIGIN_FRAME_GAME_UI 'common.ORIGIN_FRAME_GAME_UI' +---@field ORIGIN_FRAME_GAME_UI originframetype _ConvertOriginFrameType(0) +--- +---ORIGIN_FRAME_COMMAND_BUTTON 'common.ORIGIN_FRAME_COMMAND_BUTTON' +---@field ORIGIN_FRAME_COMMAND_BUTTON originframetype _ConvertOriginFrameType(1) +--- +---ORIGIN_FRAME_HERO_BAR 'common.ORIGIN_FRAME_HERO_BAR' +---@field ORIGIN_FRAME_HERO_BAR originframetype _ConvertOriginFrameType(2) +--- +---ORIGIN_FRAME_HERO_BUTTON 'common.ORIGIN_FRAME_HERO_BUTTON' +---@field ORIGIN_FRAME_HERO_BUTTON originframetype _ConvertOriginFrameType(3) +--- +---ORIGIN_FRAME_HERO_HP_BAR 'common.ORIGIN_FRAME_HERO_HP_BAR' +---@field ORIGIN_FRAME_HERO_HP_BAR originframetype _ConvertOriginFrameType(4) +--- +---ORIGIN_FRAME_HERO_MANA_BAR 'common.ORIGIN_FRAME_HERO_MANA_BAR' +---@field ORIGIN_FRAME_HERO_MANA_BAR originframetype _ConvertOriginFrameType(5) +--- +---ORIGIN_FRAME_HERO_BUTTON_INDICATOR 'common.ORIGIN_FRAME_HERO_BUTTON_INDICATOR' +---@field ORIGIN_FRAME_HERO_BUTTON_INDICATOR originframetype _ConvertOriginFrameType(6) +--- +---ORIGIN_FRAME_ITEM_BUTTON 'common.ORIGIN_FRAME_ITEM_BUTTON' +---@field ORIGIN_FRAME_ITEM_BUTTON originframetype _ConvertOriginFrameType(7) +--- +---ORIGIN_FRAME_MINIMAP 'common.ORIGIN_FRAME_MINIMAP' +---@field ORIGIN_FRAME_MINIMAP originframetype _ConvertOriginFrameType(8) +--- +---ORIGIN_FRAME_MINIMAP_BUTTON 'common.ORIGIN_FRAME_MINIMAP_BUTTON' +---@field ORIGIN_FRAME_MINIMAP_BUTTON originframetype _ConvertOriginFrameType(9) +--- +---ORIGIN_FRAME_SYSTEM_BUTTON 'common.ORIGIN_FRAME_SYSTEM_BUTTON' +---@field ORIGIN_FRAME_SYSTEM_BUTTON originframetype _ConvertOriginFrameType(10) +--- +---ORIGIN_FRAME_TOOLTIP 'common.ORIGIN_FRAME_TOOLTIP' +---@field ORIGIN_FRAME_TOOLTIP originframetype _ConvertOriginFrameType(11) +--- +---ORIGIN_FRAME_UBERTOOLTIP 'common.ORIGIN_FRAME_UBERTOOLTIP' +---@field ORIGIN_FRAME_UBERTOOLTIP originframetype _ConvertOriginFrameType(12) +--- +---ORIGIN_FRAME_CHAT_MSG 'common.ORIGIN_FRAME_CHAT_MSG' +---@field ORIGIN_FRAME_CHAT_MSG originframetype _ConvertOriginFrameType(13) +--- +---ORIGIN_FRAME_UNIT_MSG 'common.ORIGIN_FRAME_UNIT_MSG' +---@field ORIGIN_FRAME_UNIT_MSG originframetype _ConvertOriginFrameType(14) +--- +---ORIGIN_FRAME_TOP_MSG 'common.ORIGIN_FRAME_TOP_MSG' +---@field ORIGIN_FRAME_TOP_MSG originframetype _ConvertOriginFrameType(15) +--- +---ORIGIN_FRAME_PORTRAIT 'common.ORIGIN_FRAME_PORTRAIT' +---@field ORIGIN_FRAME_PORTRAIT originframetype _ConvertOriginFrameType(16) +--- +---ORIGIN_FRAME_WORLD_FRAME 'common.ORIGIN_FRAME_WORLD_FRAME' +---@field ORIGIN_FRAME_WORLD_FRAME originframetype _ConvertOriginFrameType(17) +--- +---ORIGIN_FRAME_SIMPLE_UI_PARENT 'common.ORIGIN_FRAME_SIMPLE_UI_PARENT' +---@field ORIGIN_FRAME_SIMPLE_UI_PARENT originframetype _ConvertOriginFrameType(18) +--- +---ORIGIN_FRAME_PORTRAIT_HP_TEXT 'common.ORIGIN_FRAME_PORTRAIT_HP_TEXT' +---@field ORIGIN_FRAME_PORTRAIT_HP_TEXT originframetype _ConvertOriginFrameType(19) +--- +---ORIGIN_FRAME_PORTRAIT_MANA_TEXT 'common.ORIGIN_FRAME_PORTRAIT_MANA_TEXT' +---@field ORIGIN_FRAME_PORTRAIT_MANA_TEXT originframetype _ConvertOriginFrameType(20) +--- +---ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR 'common.ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR' +---@field ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR originframetype _ConvertOriginFrameType(21) +--- +---ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR_LABEL 'common.ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR_LABEL' +---@field ORIGIN_FRAME_UNIT_PANEL_BUFF_BAR_LABEL originframetype _ConvertOriginFrameType(22) +--- +---FRAMEPOINT_TOPLEFT 'common.FRAMEPOINT_TOPLEFT' +---@field FRAMEPOINT_TOPLEFT framepointtype _ConvertFramePointType(0) +--- +---FRAMEPOINT_TOP 'common.FRAMEPOINT_TOP' +---@field FRAMEPOINT_TOP framepointtype _ConvertFramePointType(1) +--- +---FRAMEPOINT_TOPRIGHT 'common.FRAMEPOINT_TOPRIGHT' +---@field FRAMEPOINT_TOPRIGHT framepointtype _ConvertFramePointType(2) +--- +---FRAMEPOINT_LEFT 'common.FRAMEPOINT_LEFT' +---@field FRAMEPOINT_LEFT framepointtype _ConvertFramePointType(3) +--- +---FRAMEPOINT_CENTER 'common.FRAMEPOINT_CENTER' +---@field FRAMEPOINT_CENTER framepointtype _ConvertFramePointType(4) +--- +---FRAMEPOINT_RIGHT 'common.FRAMEPOINT_RIGHT' +---@field FRAMEPOINT_RIGHT framepointtype _ConvertFramePointType(5) +--- +---FRAMEPOINT_BOTTOMLEFT 'common.FRAMEPOINT_BOTTOMLEFT' +---@field FRAMEPOINT_BOTTOMLEFT framepointtype _ConvertFramePointType(6) +--- +---FRAMEPOINT_BOTTOM 'common.FRAMEPOINT_BOTTOM' +---@field FRAMEPOINT_BOTTOM framepointtype _ConvertFramePointType(7) +--- +---FRAMEPOINT_BOTTOMRIGHT 'common.FRAMEPOINT_BOTTOMRIGHT' +---@field FRAMEPOINT_BOTTOMRIGHT framepointtype _ConvertFramePointType(8) +--- +---TEXT_JUSTIFY_TOP 'common.TEXT_JUSTIFY_TOP' +---@field TEXT_JUSTIFY_TOP textaligntype _ConvertTextAlignType(0) +--- +---TEXT_JUSTIFY_MIDDLE 'common.TEXT_JUSTIFY_MIDDLE' +---@field TEXT_JUSTIFY_MIDDLE textaligntype _ConvertTextAlignType(1) +--- +---TEXT_JUSTIFY_BOTTOM 'common.TEXT_JUSTIFY_BOTTOM' +---@field TEXT_JUSTIFY_BOTTOM textaligntype _ConvertTextAlignType(2) +--- +---TEXT_JUSTIFY_LEFT 'common.TEXT_JUSTIFY_LEFT' +---@field TEXT_JUSTIFY_LEFT textaligntype _ConvertTextAlignType(3) +--- +---TEXT_JUSTIFY_CENTER 'common.TEXT_JUSTIFY_CENTER' +---@field TEXT_JUSTIFY_CENTER textaligntype _ConvertTextAlignType(4) +--- +---TEXT_JUSTIFY_RIGHT 'common.TEXT_JUSTIFY_RIGHT' +---@field TEXT_JUSTIFY_RIGHT textaligntype _ConvertTextAlignType(5) +--- +---FRAMEEVENT_CONTROL_CLICK 'common.FRAMEEVENT_CONTROL_CLICK' +---@field FRAMEEVENT_CONTROL_CLICK frameeventtype _ConvertFrameEventType(1) +--- +---FRAMEEVENT_MOUSE_ENTER 'common.FRAMEEVENT_MOUSE_ENTER' +---@field FRAMEEVENT_MOUSE_ENTER frameeventtype _ConvertFrameEventType(2) +--- +---FRAMEEVENT_MOUSE_LEAVE 'common.FRAMEEVENT_MOUSE_LEAVE' +---@field FRAMEEVENT_MOUSE_LEAVE frameeventtype _ConvertFrameEventType(3) +--- +---FRAMEEVENT_MOUSE_UP 'common.FRAMEEVENT_MOUSE_UP' +---@field FRAMEEVENT_MOUSE_UP frameeventtype _ConvertFrameEventType(4) +--- +---FRAMEEVENT_MOUSE_DOWN 'common.FRAMEEVENT_MOUSE_DOWN' +---@field FRAMEEVENT_MOUSE_DOWN frameeventtype _ConvertFrameEventType(5) +--- +---FRAMEEVENT_MOUSE_WHEEL 'common.FRAMEEVENT_MOUSE_WHEEL' +---@field FRAMEEVENT_MOUSE_WHEEL frameeventtype _ConvertFrameEventType(6) +--- +---FRAMEEVENT_CHECKBOX_CHECKED 'common.FRAMEEVENT_CHECKBOX_CHECKED' +---@field FRAMEEVENT_CHECKBOX_CHECKED frameeventtype _ConvertFrameEventType(7) +--- +---FRAMEEVENT_CHECKBOX_UNCHECKED 'common.FRAMEEVENT_CHECKBOX_UNCHECKED' +---@field FRAMEEVENT_CHECKBOX_UNCHECKED frameeventtype _ConvertFrameEventType(8) +--- +---FRAMEEVENT_EDITBOX_TEXT_CHANGED 'common.FRAMEEVENT_EDITBOX_TEXT_CHANGED' +---@field FRAMEEVENT_EDITBOX_TEXT_CHANGED frameeventtype _ConvertFrameEventType(9) +--- +---FRAMEEVENT_POPUPMENU_ITEM_CHANGED 'common.FRAMEEVENT_POPUPMENU_ITEM_CHANGED' +---@field FRAMEEVENT_POPUPMENU_ITEM_CHANGED frameeventtype _ConvertFrameEventType(10) +--- +---FRAMEEVENT_MOUSE_DOUBLECLICK 'common.FRAMEEVENT_MOUSE_DOUBLECLICK' +---@field FRAMEEVENT_MOUSE_DOUBLECLICK frameeventtype _ConvertFrameEventType(11) +--- +---FRAMEEVENT_SPRITE_ANIM_UPDATE 'common.FRAMEEVENT_SPRITE_ANIM_UPDATE' +---@field FRAMEEVENT_SPRITE_ANIM_UPDATE frameeventtype _ConvertFrameEventType(12) +--- +---FRAMEEVENT_SLIDER_VALUE_CHANGED 'common.FRAMEEVENT_SLIDER_VALUE_CHANGED' +---@field FRAMEEVENT_SLIDER_VALUE_CHANGED frameeventtype _ConvertFrameEventType(13) +--- +---FRAMEEVENT_DIALOG_CANCEL 'common.FRAMEEVENT_DIALOG_CANCEL' +---@field FRAMEEVENT_DIALOG_CANCEL frameeventtype _ConvertFrameEventType(14) +--- +---FRAMEEVENT_DIALOG_ACCEPT 'common.FRAMEEVENT_DIALOG_ACCEPT' +---@field FRAMEEVENT_DIALOG_ACCEPT frameeventtype _ConvertFrameEventType(15) +--- +---FRAMEEVENT_EDITBOX_ENTER 'common.FRAMEEVENT_EDITBOX_ENTER' +---@field FRAMEEVENT_EDITBOX_ENTER frameeventtype _ConvertFrameEventType(16) +--- +---OSKEY_BACKSPACE 'common.OSKEY_BACKSPACE' +---@field OSKEY_BACKSPACE oskeytype _ConvertOsKeyType($08) +--- +---OSKEY_TAB 'common.OSKEY_TAB' +---@field OSKEY_TAB oskeytype _ConvertOsKeyType($09) +--- +---OSKEY_CLEAR 'common.OSKEY_CLEAR' +---@field OSKEY_CLEAR oskeytype _ConvertOsKeyType($0C) +--- +---OSKEY_RETURN 'common.OSKEY_RETURN' +---@field OSKEY_RETURN oskeytype _ConvertOsKeyType($0D) +--- +---OSKEY_SHIFT 'common.OSKEY_SHIFT' +---@field OSKEY_SHIFT oskeytype _ConvertOsKeyType($10) +--- +---OSKEY_CONTROL 'common.OSKEY_CONTROL' +---@field OSKEY_CONTROL oskeytype _ConvertOsKeyType($11) +--- +---OSKEY_ALT 'common.OSKEY_ALT' +---@field OSKEY_ALT oskeytype _ConvertOsKeyType($12) +--- +---OSKEY_PAUSE 'common.OSKEY_PAUSE' +---@field OSKEY_PAUSE oskeytype _ConvertOsKeyType($13) +--- +---OSKEY_CAPSLOCK 'common.OSKEY_CAPSLOCK' +---@field OSKEY_CAPSLOCK oskeytype _ConvertOsKeyType($14) +--- +---OSKEY_KANA 'common.OSKEY_KANA' +---@field OSKEY_KANA oskeytype _ConvertOsKeyType($15) +--- +---OSKEY_HANGUL 'common.OSKEY_HANGUL' +---@field OSKEY_HANGUL oskeytype _ConvertOsKeyType($15) +--- +---OSKEY_JUNJA 'common.OSKEY_JUNJA' +---@field OSKEY_JUNJA oskeytype _ConvertOsKeyType($17) +--- +---OSKEY_FINAL 'common.OSKEY_FINAL' +---@field OSKEY_FINAL oskeytype _ConvertOsKeyType($18) +--- +---OSKEY_HANJA 'common.OSKEY_HANJA' +---@field OSKEY_HANJA oskeytype _ConvertOsKeyType($19) +--- +---OSKEY_KANJI 'common.OSKEY_KANJI' +---@field OSKEY_KANJI oskeytype _ConvertOsKeyType($19) +--- +---OSKEY_ESCAPE 'common.OSKEY_ESCAPE' +---@field OSKEY_ESCAPE oskeytype _ConvertOsKeyType($1B) +--- +---OSKEY_CONVERT 'common.OSKEY_CONVERT' +---@field OSKEY_CONVERT oskeytype _ConvertOsKeyType($1C) +--- +---OSKEY_NONCONVERT 'common.OSKEY_NONCONVERT' +---@field OSKEY_NONCONVERT oskeytype _ConvertOsKeyType($1D) +--- +---OSKEY_ACCEPT 'common.OSKEY_ACCEPT' +---@field OSKEY_ACCEPT oskeytype _ConvertOsKeyType($1E) +--- +---OSKEY_MODECHANGE 'common.OSKEY_MODECHANGE' +---@field OSKEY_MODECHANGE oskeytype _ConvertOsKeyType($1F) +--- +---OSKEY_SPACE 'common.OSKEY_SPACE' +---@field OSKEY_SPACE oskeytype _ConvertOsKeyType($20) +--- +---OSKEY_PAGEUP 'common.OSKEY_PAGEUP' +---@field OSKEY_PAGEUP oskeytype _ConvertOsKeyType($21) +--- +---OSKEY_PAGEDOWN 'common.OSKEY_PAGEDOWN' +---@field OSKEY_PAGEDOWN oskeytype _ConvertOsKeyType($22) +--- +---OSKEY_END 'common.OSKEY_END' +---@field OSKEY_END oskeytype _ConvertOsKeyType($23) +--- +---OSKEY_HOME 'common.OSKEY_HOME' +---@field OSKEY_HOME oskeytype _ConvertOsKeyType($24) +--- +---OSKEY_LEFT 'common.OSKEY_LEFT' +---@field OSKEY_LEFT oskeytype _ConvertOsKeyType($25) +--- +---OSKEY_UP 'common.OSKEY_UP' +---@field OSKEY_UP oskeytype _ConvertOsKeyType($26) +--- +---OSKEY_RIGHT 'common.OSKEY_RIGHT' +---@field OSKEY_RIGHT oskeytype _ConvertOsKeyType($27) +--- +---OSKEY_DOWN 'common.OSKEY_DOWN' +---@field OSKEY_DOWN oskeytype _ConvertOsKeyType($28) +--- +---OSKEY_SELECT 'common.OSKEY_SELECT' +---@field OSKEY_SELECT oskeytype _ConvertOsKeyType($29) +--- +---OSKEY_PRINT 'common.OSKEY_PRINT' +---@field OSKEY_PRINT oskeytype _ConvertOsKeyType($2A) +--- +---OSKEY_EXECUTE 'common.OSKEY_EXECUTE' +---@field OSKEY_EXECUTE oskeytype _ConvertOsKeyType($2B) +--- +---OSKEY_PRINTSCREEN 'common.OSKEY_PRINTSCREEN' +---@field OSKEY_PRINTSCREEN oskeytype _ConvertOsKeyType($2C) +--- +---OSKEY_INSERT 'common.OSKEY_INSERT' +---@field OSKEY_INSERT oskeytype _ConvertOsKeyType($2D) +--- +---OSKEY_DELETE 'common.OSKEY_DELETE' +---@field OSKEY_DELETE oskeytype _ConvertOsKeyType($2E) +--- +---OSKEY_HELP 'common.OSKEY_HELP' +---@field OSKEY_HELP oskeytype _ConvertOsKeyType($2F) +--- +---OSKEY_0 'common.OSKEY_0' +---@field OSKEY_0 oskeytype _ConvertOsKeyType($30) +--- +---OSKEY_1 'common.OSKEY_1' +---@field OSKEY_1 oskeytype _ConvertOsKeyType($31) +--- +---OSKEY_2 'common.OSKEY_2' +---@field OSKEY_2 oskeytype _ConvertOsKeyType($32) +--- +---OSKEY_3 'common.OSKEY_3' +---@field OSKEY_3 oskeytype _ConvertOsKeyType($33) +--- +---OSKEY_4 'common.OSKEY_4' +---@field OSKEY_4 oskeytype _ConvertOsKeyType($34) +--- +---OSKEY_5 'common.OSKEY_5' +---@field OSKEY_5 oskeytype _ConvertOsKeyType($35) +--- +---OSKEY_6 'common.OSKEY_6' +---@field OSKEY_6 oskeytype _ConvertOsKeyType($36) +--- +---OSKEY_7 'common.OSKEY_7' +---@field OSKEY_7 oskeytype _ConvertOsKeyType($37) +--- +---OSKEY_8 'common.OSKEY_8' +---@field OSKEY_8 oskeytype _ConvertOsKeyType($38) +--- +---OSKEY_9 'common.OSKEY_9' +---@field OSKEY_9 oskeytype _ConvertOsKeyType($39) +--- +---OSKEY_A 'common.OSKEY_A' +---@field OSKEY_A oskeytype _ConvertOsKeyType($41) +--- +---OSKEY_B 'common.OSKEY_B' +---@field OSKEY_B oskeytype _ConvertOsKeyType($42) +--- +---OSKEY_C 'common.OSKEY_C' +---@field OSKEY_C oskeytype _ConvertOsKeyType($43) +--- +---OSKEY_D 'common.OSKEY_D' +---@field OSKEY_D oskeytype _ConvertOsKeyType($44) +--- +---OSKEY_E 'common.OSKEY_E' +---@field OSKEY_E oskeytype _ConvertOsKeyType($45) +--- +---OSKEY_F 'common.OSKEY_F' +---@field OSKEY_F oskeytype _ConvertOsKeyType($46) +--- +---OSKEY_G 'common.OSKEY_G' +---@field OSKEY_G oskeytype _ConvertOsKeyType($47) +--- +---OSKEY_H 'common.OSKEY_H' +---@field OSKEY_H oskeytype _ConvertOsKeyType($48) +--- +---OSKEY_I 'common.OSKEY_I' +---@field OSKEY_I oskeytype _ConvertOsKeyType($49) +--- +---OSKEY_J 'common.OSKEY_J' +---@field OSKEY_J oskeytype _ConvertOsKeyType($4A) +--- +---OSKEY_K 'common.OSKEY_K' +---@field OSKEY_K oskeytype _ConvertOsKeyType($4B) +--- +---OSKEY_L 'common.OSKEY_L' +---@field OSKEY_L oskeytype _ConvertOsKeyType($4C) +--- +---OSKEY_M 'common.OSKEY_M' +---@field OSKEY_M oskeytype _ConvertOsKeyType($4D) +--- +---OSKEY_N 'common.OSKEY_N' +---@field OSKEY_N oskeytype _ConvertOsKeyType($4E) +--- +---OSKEY_O 'common.OSKEY_O' +---@field OSKEY_O oskeytype _ConvertOsKeyType($4F) +--- +---OSKEY_P 'common.OSKEY_P' +---@field OSKEY_P oskeytype _ConvertOsKeyType($50) +--- +---OSKEY_Q 'common.OSKEY_Q' +---@field OSKEY_Q oskeytype _ConvertOsKeyType($51) +--- +---OSKEY_R 'common.OSKEY_R' +---@field OSKEY_R oskeytype _ConvertOsKeyType($52) +--- +---OSKEY_S 'common.OSKEY_S' +---@field OSKEY_S oskeytype _ConvertOsKeyType($53) +--- +---OSKEY_T 'common.OSKEY_T' +---@field OSKEY_T oskeytype _ConvertOsKeyType($54) +--- +---OSKEY_U 'common.OSKEY_U' +---@field OSKEY_U oskeytype _ConvertOsKeyType($55) +--- +---OSKEY_V 'common.OSKEY_V' +---@field OSKEY_V oskeytype _ConvertOsKeyType($56) +--- +---OSKEY_W 'common.OSKEY_W' +---@field OSKEY_W oskeytype _ConvertOsKeyType($57) +--- +---OSKEY_X 'common.OSKEY_X' +---@field OSKEY_X oskeytype _ConvertOsKeyType($58) +--- +---OSKEY_Y 'common.OSKEY_Y' +---@field OSKEY_Y oskeytype _ConvertOsKeyType($59) +--- +---OSKEY_Z 'common.OSKEY_Z' +---@field OSKEY_Z oskeytype _ConvertOsKeyType($5A) +--- +---OSKEY_LMETA 'common.OSKEY_LMETA' +---@field OSKEY_LMETA oskeytype _ConvertOsKeyType($5B) +--- +---OSKEY_RMETA 'common.OSKEY_RMETA' +---@field OSKEY_RMETA oskeytype _ConvertOsKeyType($5C) +--- +---OSKEY_APPS 'common.OSKEY_APPS' +---@field OSKEY_APPS oskeytype _ConvertOsKeyType($5D) +--- +---OSKEY_SLEEP 'common.OSKEY_SLEEP' +---@field OSKEY_SLEEP oskeytype _ConvertOsKeyType($5F) +--- +---OSKEY_NUMPAD0 'common.OSKEY_NUMPAD0' +---@field OSKEY_NUMPAD0 oskeytype _ConvertOsKeyType($60) +--- +---OSKEY_NUMPAD1 'common.OSKEY_NUMPAD1' +---@field OSKEY_NUMPAD1 oskeytype _ConvertOsKeyType($61) +--- +---OSKEY_NUMPAD2 'common.OSKEY_NUMPAD2' +---@field OSKEY_NUMPAD2 oskeytype _ConvertOsKeyType($62) +--- +---OSKEY_NUMPAD3 'common.OSKEY_NUMPAD3' +---@field OSKEY_NUMPAD3 oskeytype _ConvertOsKeyType($63) +--- +---OSKEY_NUMPAD4 'common.OSKEY_NUMPAD4' +---@field OSKEY_NUMPAD4 oskeytype _ConvertOsKeyType($64) +--- +---OSKEY_NUMPAD5 'common.OSKEY_NUMPAD5' +---@field OSKEY_NUMPAD5 oskeytype _ConvertOsKeyType($65) +--- +---OSKEY_NUMPAD6 'common.OSKEY_NUMPAD6' +---@field OSKEY_NUMPAD6 oskeytype _ConvertOsKeyType($66) +--- +---OSKEY_NUMPAD7 'common.OSKEY_NUMPAD7' +---@field OSKEY_NUMPAD7 oskeytype _ConvertOsKeyType($67) +--- +---OSKEY_NUMPAD8 'common.OSKEY_NUMPAD8' +---@field OSKEY_NUMPAD8 oskeytype _ConvertOsKeyType($68) +--- +---OSKEY_NUMPAD9 'common.OSKEY_NUMPAD9' +---@field OSKEY_NUMPAD9 oskeytype _ConvertOsKeyType($69) +--- +---OSKEY_MULTIPLY 'common.OSKEY_MULTIPLY' +---@field OSKEY_MULTIPLY oskeytype _ConvertOsKeyType($6A) +--- +---OSKEY_ADD 'common.OSKEY_ADD' +---@field OSKEY_ADD oskeytype _ConvertOsKeyType($6B) +--- +---OSKEY_SEPARATOR 'common.OSKEY_SEPARATOR' +---@field OSKEY_SEPARATOR oskeytype _ConvertOsKeyType($6C) +--- +---OSKEY_SUBTRACT 'common.OSKEY_SUBTRACT' +---@field OSKEY_SUBTRACT oskeytype _ConvertOsKeyType($6D) +--- +---OSKEY_DECIMAL 'common.OSKEY_DECIMAL' +---@field OSKEY_DECIMAL oskeytype _ConvertOsKeyType($6E) +--- +---OSKEY_DIVIDE 'common.OSKEY_DIVIDE' +---@field OSKEY_DIVIDE oskeytype _ConvertOsKeyType($6F) +--- +---OSKEY_F1 'common.OSKEY_F1' +---@field OSKEY_F1 oskeytype _ConvertOsKeyType($70) +--- +---OSKEY_F2 'common.OSKEY_F2' +---@field OSKEY_F2 oskeytype _ConvertOsKeyType($71) +--- +---OSKEY_F3 'common.OSKEY_F3' +---@field OSKEY_F3 oskeytype _ConvertOsKeyType($72) +--- +---OSKEY_F4 'common.OSKEY_F4' +---@field OSKEY_F4 oskeytype _ConvertOsKeyType($73) +--- +---OSKEY_F5 'common.OSKEY_F5' +---@field OSKEY_F5 oskeytype _ConvertOsKeyType($74) +--- +---OSKEY_F6 'common.OSKEY_F6' +---@field OSKEY_F6 oskeytype _ConvertOsKeyType($75) +--- +---OSKEY_F7 'common.OSKEY_F7' +---@field OSKEY_F7 oskeytype _ConvertOsKeyType($76) +--- +---OSKEY_F8 'common.OSKEY_F8' +---@field OSKEY_F8 oskeytype _ConvertOsKeyType($77) +--- +---OSKEY_F9 'common.OSKEY_F9' +---@field OSKEY_F9 oskeytype _ConvertOsKeyType($78) +--- +---OSKEY_F10 'common.OSKEY_F10' +---@field OSKEY_F10 oskeytype _ConvertOsKeyType($79) +--- +---OSKEY_F11 'common.OSKEY_F11' +---@field OSKEY_F11 oskeytype _ConvertOsKeyType($7A) +--- +---OSKEY_F12 'common.OSKEY_F12' +---@field OSKEY_F12 oskeytype _ConvertOsKeyType($7B) +--- +---OSKEY_F13 'common.OSKEY_F13' +---@field OSKEY_F13 oskeytype _ConvertOsKeyType($7C) +--- +---OSKEY_F14 'common.OSKEY_F14' +---@field OSKEY_F14 oskeytype _ConvertOsKeyType($7D) +--- +---OSKEY_F15 'common.OSKEY_F15' +---@field OSKEY_F15 oskeytype _ConvertOsKeyType($7E) +--- +---OSKEY_F16 'common.OSKEY_F16' +---@field OSKEY_F16 oskeytype _ConvertOsKeyType($7F) +--- +---OSKEY_F17 'common.OSKEY_F17' +---@field OSKEY_F17 oskeytype _ConvertOsKeyType($80) +--- +---OSKEY_F18 'common.OSKEY_F18' +---@field OSKEY_F18 oskeytype _ConvertOsKeyType($81) +--- +---OSKEY_F19 'common.OSKEY_F19' +---@field OSKEY_F19 oskeytype _ConvertOsKeyType($82) +--- +---OSKEY_F20 'common.OSKEY_F20' +---@field OSKEY_F20 oskeytype _ConvertOsKeyType($83) +--- +---OSKEY_F21 'common.OSKEY_F21' +---@field OSKEY_F21 oskeytype _ConvertOsKeyType($84) +--- +---OSKEY_F22 'common.OSKEY_F22' +---@field OSKEY_F22 oskeytype _ConvertOsKeyType($85) +--- +---OSKEY_F23 'common.OSKEY_F23' +---@field OSKEY_F23 oskeytype _ConvertOsKeyType($86) +--- +---OSKEY_F24 'common.OSKEY_F24' +---@field OSKEY_F24 oskeytype _ConvertOsKeyType($87) +--- +---OSKEY_NUMLOCK 'common.OSKEY_NUMLOCK' +---@field OSKEY_NUMLOCK oskeytype _ConvertOsKeyType($90) +--- +---OSKEY_SCROLLLOCK 'common.OSKEY_SCROLLLOCK' +---@field OSKEY_SCROLLLOCK oskeytype _ConvertOsKeyType($91) +--- +---OSKEY_OEM_NEC_EQUAL 'common.OSKEY_OEM_NEC_EQUAL' +---@field OSKEY_OEM_NEC_EQUAL oskeytype _ConvertOsKeyType($92) +--- +---OSKEY_OEM_FJ_JISHO 'common.OSKEY_OEM_FJ_JISHO' +---@field OSKEY_OEM_FJ_JISHO oskeytype _ConvertOsKeyType($92) +--- +---OSKEY_OEM_FJ_MASSHOU 'common.OSKEY_OEM_FJ_MASSHOU' +---@field OSKEY_OEM_FJ_MASSHOU oskeytype _ConvertOsKeyType($93) +--- +---OSKEY_OEM_FJ_TOUROKU 'common.OSKEY_OEM_FJ_TOUROKU' +---@field OSKEY_OEM_FJ_TOUROKU oskeytype _ConvertOsKeyType($94) +--- +---OSKEY_OEM_FJ_LOYA 'common.OSKEY_OEM_FJ_LOYA' +---@field OSKEY_OEM_FJ_LOYA oskeytype _ConvertOsKeyType($95) +--- +---OSKEY_OEM_FJ_ROYA 'common.OSKEY_OEM_FJ_ROYA' +---@field OSKEY_OEM_FJ_ROYA oskeytype _ConvertOsKeyType($96) +--- +---OSKEY_LSHIFT 'common.OSKEY_LSHIFT' +---@field OSKEY_LSHIFT oskeytype _ConvertOsKeyType($A0) +--- +---OSKEY_RSHIFT 'common.OSKEY_RSHIFT' +---@field OSKEY_RSHIFT oskeytype _ConvertOsKeyType($A1) +--- +---OSKEY_LCONTROL 'common.OSKEY_LCONTROL' +---@field OSKEY_LCONTROL oskeytype _ConvertOsKeyType($A2) +--- +---OSKEY_RCONTROL 'common.OSKEY_RCONTROL' +---@field OSKEY_RCONTROL oskeytype _ConvertOsKeyType($A3) +--- +---OSKEY_LALT 'common.OSKEY_LALT' +---@field OSKEY_LALT oskeytype _ConvertOsKeyType($A4) +--- +---OSKEY_RALT 'common.OSKEY_RALT' +---@field OSKEY_RALT oskeytype _ConvertOsKeyType($A5) +--- +---OSKEY_BROWSER_BACK 'common.OSKEY_BROWSER_BACK' +---@field OSKEY_BROWSER_BACK oskeytype _ConvertOsKeyType($A6) +--- +---OSKEY_BROWSER_FORWARD 'common.OSKEY_BROWSER_FORWARD' +---@field OSKEY_BROWSER_FORWARD oskeytype _ConvertOsKeyType($A7) +--- +---OSKEY_BROWSER_REFRESH 'common.OSKEY_BROWSER_REFRESH' +---@field OSKEY_BROWSER_REFRESH oskeytype _ConvertOsKeyType($A8) +--- +---OSKEY_BROWSER_STOP 'common.OSKEY_BROWSER_STOP' +---@field OSKEY_BROWSER_STOP oskeytype _ConvertOsKeyType($A9) +--- +---OSKEY_BROWSER_SEARCH 'common.OSKEY_BROWSER_SEARCH' +---@field OSKEY_BROWSER_SEARCH oskeytype _ConvertOsKeyType($AA) +--- +---OSKEY_BROWSER_FAVORITES 'common.OSKEY_BROWSER_FAVORITES' +---@field OSKEY_BROWSER_FAVORITES oskeytype _ConvertOsKeyType($AB) +--- +---OSKEY_BROWSER_HOME 'common.OSKEY_BROWSER_HOME' +---@field OSKEY_BROWSER_HOME oskeytype _ConvertOsKeyType($AC) +--- +---OSKEY_VOLUME_MUTE 'common.OSKEY_VOLUME_MUTE' +---@field OSKEY_VOLUME_MUTE oskeytype _ConvertOsKeyType($AD) +--- +---OSKEY_VOLUME_DOWN 'common.OSKEY_VOLUME_DOWN' +---@field OSKEY_VOLUME_DOWN oskeytype _ConvertOsKeyType($AE) +--- +---OSKEY_VOLUME_UP 'common.OSKEY_VOLUME_UP' +---@field OSKEY_VOLUME_UP oskeytype _ConvertOsKeyType($AF) +--- +---OSKEY_MEDIA_NEXT_TRACK 'common.OSKEY_MEDIA_NEXT_TRACK' +---@field OSKEY_MEDIA_NEXT_TRACK oskeytype _ConvertOsKeyType($B0) +--- +---OSKEY_MEDIA_PREV_TRACK 'common.OSKEY_MEDIA_PREV_TRACK' +---@field OSKEY_MEDIA_PREV_TRACK oskeytype _ConvertOsKeyType($B1) +--- +---OSKEY_MEDIA_STOP 'common.OSKEY_MEDIA_STOP' +---@field OSKEY_MEDIA_STOP oskeytype _ConvertOsKeyType($B2) +--- +---OSKEY_MEDIA_PLAY_PAUSE 'common.OSKEY_MEDIA_PLAY_PAUSE' +---@field OSKEY_MEDIA_PLAY_PAUSE oskeytype _ConvertOsKeyType($B3) +--- +---OSKEY_LAUNCH_MAIL 'common.OSKEY_LAUNCH_MAIL' +---@field OSKEY_LAUNCH_MAIL oskeytype _ConvertOsKeyType($B4) +--- +---OSKEY_LAUNCH_MEDIA_SELECT 'common.OSKEY_LAUNCH_MEDIA_SELECT' +---@field OSKEY_LAUNCH_MEDIA_SELECT oskeytype _ConvertOsKeyType($B5) +--- +---OSKEY_LAUNCH_APP1 'common.OSKEY_LAUNCH_APP1' +---@field OSKEY_LAUNCH_APP1 oskeytype _ConvertOsKeyType($B6) +--- +---OSKEY_LAUNCH_APP2 'common.OSKEY_LAUNCH_APP2' +---@field OSKEY_LAUNCH_APP2 oskeytype _ConvertOsKeyType($B7) +--- +---OSKEY_OEM_1 'common.OSKEY_OEM_1' +---@field OSKEY_OEM_1 oskeytype _ConvertOsKeyType($BA) +--- +---OSKEY_OEM_PLUS 'common.OSKEY_OEM_PLUS' +---@field OSKEY_OEM_PLUS oskeytype _ConvertOsKeyType($BB) +--- +---OSKEY_OEM_COMMA 'common.OSKEY_OEM_COMMA' +---@field OSKEY_OEM_COMMA oskeytype _ConvertOsKeyType($BC) +--- +---OSKEY_OEM_MINUS 'common.OSKEY_OEM_MINUS' +---@field OSKEY_OEM_MINUS oskeytype _ConvertOsKeyType($BD) +--- +---OSKEY_OEM_PERIOD 'common.OSKEY_OEM_PERIOD' +---@field OSKEY_OEM_PERIOD oskeytype _ConvertOsKeyType($BE) +--- +---OSKEY_OEM_2 'common.OSKEY_OEM_2' +---@field OSKEY_OEM_2 oskeytype _ConvertOsKeyType($BF) +--- +---OSKEY_OEM_3 'common.OSKEY_OEM_3' +---@field OSKEY_OEM_3 oskeytype _ConvertOsKeyType($C0) +--- +---OSKEY_OEM_4 'common.OSKEY_OEM_4' +---@field OSKEY_OEM_4 oskeytype _ConvertOsKeyType($DB) +--- +---OSKEY_OEM_5 'common.OSKEY_OEM_5' +---@field OSKEY_OEM_5 oskeytype _ConvertOsKeyType($DC) +--- +---OSKEY_OEM_6 'common.OSKEY_OEM_6' +---@field OSKEY_OEM_6 oskeytype _ConvertOsKeyType($DD) +--- +---OSKEY_OEM_7 'common.OSKEY_OEM_7' +---@field OSKEY_OEM_7 oskeytype _ConvertOsKeyType($DE) +--- +---OSKEY_OEM_8 'common.OSKEY_OEM_8' +---@field OSKEY_OEM_8 oskeytype _ConvertOsKeyType($DF) +--- +---OSKEY_OEM_AX 'common.OSKEY_OEM_AX' +---@field OSKEY_OEM_AX oskeytype _ConvertOsKeyType($E1) +--- +---OSKEY_OEM_102 'common.OSKEY_OEM_102' +---@field OSKEY_OEM_102 oskeytype _ConvertOsKeyType($E2) +--- +---OSKEY_ICO_HELP 'common.OSKEY_ICO_HELP' +---@field OSKEY_ICO_HELP oskeytype _ConvertOsKeyType($E3) +--- +---OSKEY_ICO_00 'common.OSKEY_ICO_00' +---@field OSKEY_ICO_00 oskeytype _ConvertOsKeyType($E4) +--- +---OSKEY_PROCESSKEY 'common.OSKEY_PROCESSKEY' +---@field OSKEY_PROCESSKEY oskeytype _ConvertOsKeyType($E5) +--- +---OSKEY_ICO_CLEAR 'common.OSKEY_ICO_CLEAR' +---@field OSKEY_ICO_CLEAR oskeytype _ConvertOsKeyType($E6) +--- +---OSKEY_PACKET 'common.OSKEY_PACKET' +---@field OSKEY_PACKET oskeytype _ConvertOsKeyType($E7) +--- +---OSKEY_OEM_RESET 'common.OSKEY_OEM_RESET' +---@field OSKEY_OEM_RESET oskeytype _ConvertOsKeyType($E9) +--- +---OSKEY_OEM_JUMP 'common.OSKEY_OEM_JUMP' +---@field OSKEY_OEM_JUMP oskeytype _ConvertOsKeyType($EA) +--- +---OSKEY_OEM_PA1 'common.OSKEY_OEM_PA1' +---@field OSKEY_OEM_PA1 oskeytype _ConvertOsKeyType($EB) +--- +---OSKEY_OEM_PA2 'common.OSKEY_OEM_PA2' +---@field OSKEY_OEM_PA2 oskeytype _ConvertOsKeyType($EC) +--- +---OSKEY_OEM_PA3 'common.OSKEY_OEM_PA3' +---@field OSKEY_OEM_PA3 oskeytype _ConvertOsKeyType($ED) +--- +---OSKEY_OEM_WSCTRL 'common.OSKEY_OEM_WSCTRL' +---@field OSKEY_OEM_WSCTRL oskeytype _ConvertOsKeyType($EE) +--- +---OSKEY_OEM_CUSEL 'common.OSKEY_OEM_CUSEL' +---@field OSKEY_OEM_CUSEL oskeytype _ConvertOsKeyType($EF) +--- +---OSKEY_OEM_ATTN 'common.OSKEY_OEM_ATTN' +---@field OSKEY_OEM_ATTN oskeytype _ConvertOsKeyType($F0) +--- +---OSKEY_OEM_FINISH 'common.OSKEY_OEM_FINISH' +---@field OSKEY_OEM_FINISH oskeytype _ConvertOsKeyType($F1) +--- +---OSKEY_OEM_COPY 'common.OSKEY_OEM_COPY' +---@field OSKEY_OEM_COPY oskeytype _ConvertOsKeyType($F2) +--- +---OSKEY_OEM_AUTO 'common.OSKEY_OEM_AUTO' +---@field OSKEY_OEM_AUTO oskeytype _ConvertOsKeyType($F3) +--- +---OSKEY_OEM_ENLW 'common.OSKEY_OEM_ENLW' +---@field OSKEY_OEM_ENLW oskeytype _ConvertOsKeyType($F4) +--- +---OSKEY_OEM_BACKTAB 'common.OSKEY_OEM_BACKTAB' +---@field OSKEY_OEM_BACKTAB oskeytype _ConvertOsKeyType($F5) +--- +---OSKEY_ATTN 'common.OSKEY_ATTN' +---@field OSKEY_ATTN oskeytype _ConvertOsKeyType($F6) +--- +---OSKEY_CRSEL 'common.OSKEY_CRSEL' +---@field OSKEY_CRSEL oskeytype _ConvertOsKeyType($F7) +--- +---OSKEY_EXSEL 'common.OSKEY_EXSEL' +---@field OSKEY_EXSEL oskeytype _ConvertOsKeyType($F8) +--- +---OSKEY_EREOF 'common.OSKEY_EREOF' +---@field OSKEY_EREOF oskeytype _ConvertOsKeyType($F9) +--- +---OSKEY_PLAY 'common.OSKEY_PLAY' +---@field OSKEY_PLAY oskeytype _ConvertOsKeyType($FA) +--- +---OSKEY_ZOOM 'common.OSKEY_ZOOM' +---@field OSKEY_ZOOM oskeytype _ConvertOsKeyType($FB) +--- +---OSKEY_NONAME 'common.OSKEY_NONAME' +---@field OSKEY_NONAME oskeytype _ConvertOsKeyType($FC) +--- +---OSKEY_PA1 'common.OSKEY_PA1' +---@field OSKEY_PA1 oskeytype _ConvertOsKeyType($FD) +--- +---OSKEY_OEM_CLEAR 'common.OSKEY_OEM_CLEAR' +---@field OSKEY_OEM_CLEAR oskeytype _ConvertOsKeyType($FE) +--- +---Ability 'common.ABILITY_IF_BUTTON_POSITION_NORMAL_X' +---@field ABILITY_IF_BUTTON_POSITION_NORMAL_X abilityintegerfield _ConvertAbilityIntegerField('abpx') +--- +---ABILITY_IF_BUTTON_POSITION_NORMAL_Y 'common.ABILITY_IF_BUTTON_POSITION_NORMAL_Y' +---@field ABILITY_IF_BUTTON_POSITION_NORMAL_Y abilityintegerfield _ConvertAbilityIntegerField('abpy') +--- +---ABILITY_IF_BUTTON_POSITION_ACTIVATED_X 'common.ABILITY_IF_BUTTON_POSITION_ACTIVATED_X' +---@field ABILITY_IF_BUTTON_POSITION_ACTIVATED_X abilityintegerfield _ConvertAbilityIntegerField('aubx') +--- +---ABILITY_IF_BUTTON_POSITION_ACTIVATED_Y 'common.ABILITY_IF_BUTTON_POSITION_ACTIVATED_Y' +---@field ABILITY_IF_BUTTON_POSITION_ACTIVATED_Y abilityintegerfield _ConvertAbilityIntegerField('auby') +--- +---ABILITY_IF_BUTTON_POSITION_RESEARCH_X 'common.ABILITY_IF_BUTTON_POSITION_RESEARCH_X' +---@field ABILITY_IF_BUTTON_POSITION_RESEARCH_X abilityintegerfield _ConvertAbilityIntegerField('arpx') +--- +---ABILITY_IF_BUTTON_POSITION_RESEARCH_Y 'common.ABILITY_IF_BUTTON_POSITION_RESEARCH_Y' +---@field ABILITY_IF_BUTTON_POSITION_RESEARCH_Y abilityintegerfield _ConvertAbilityIntegerField('arpy') +--- +---ABILITY_IF_MISSILE_SPEED 'common.ABILITY_IF_MISSILE_SPEED' +---@field ABILITY_IF_MISSILE_SPEED abilityintegerfield _ConvertAbilityIntegerField('amsp') +--- +---ABILITY_IF_TARGET_ATTACHMENTS 'common.ABILITY_IF_TARGET_ATTACHMENTS' +---@field ABILITY_IF_TARGET_ATTACHMENTS abilityintegerfield _ConvertAbilityIntegerField('atac') +--- +---ABILITY_IF_CASTER_ATTACHMENTS 'common.ABILITY_IF_CASTER_ATTACHMENTS' +---@field ABILITY_IF_CASTER_ATTACHMENTS abilityintegerfield _ConvertAbilityIntegerField('acac') +--- +---ABILITY_IF_PRIORITY 'common.ABILITY_IF_PRIORITY' +---@field ABILITY_IF_PRIORITY abilityintegerfield _ConvertAbilityIntegerField('apri') +--- +---ABILITY_IF_LEVELS 'common.ABILITY_IF_LEVELS' +---@field ABILITY_IF_LEVELS abilityintegerfield _ConvertAbilityIntegerField('alev') +--- +---ABILITY_IF_REQUIRED_LEVEL 'common.ABILITY_IF_REQUIRED_LEVEL' +---@field ABILITY_IF_REQUIRED_LEVEL abilityintegerfield _ConvertAbilityIntegerField('arlv') +--- +---ABILITY_IF_LEVEL_SKIP_REQUIREMENT 'common.ABILITY_IF_LEVEL_SKIP_REQUIREMENT' +---@field ABILITY_IF_LEVEL_SKIP_REQUIREMENT abilityintegerfield _ConvertAbilityIntegerField('alsk') +--- +---ABILITY_BF_HERO_ABILITY 'common.ABILITY_BF_HERO_ABILITY' +---@field ABILITY_BF_HERO_ABILITY abilitybooleanfield _ConvertAbilityBooleanField('aher') +--- +---ABILITY_BF_ITEM_ABILITY 'common.ABILITY_BF_ITEM_ABILITY' +---@field ABILITY_BF_ITEM_ABILITY abilitybooleanfield _ConvertAbilityBooleanField('aite') +--- +---ABILITY_BF_CHECK_DEPENDENCIES 'common.ABILITY_BF_CHECK_DEPENDENCIES' +---@field ABILITY_BF_CHECK_DEPENDENCIES abilitybooleanfield _ConvertAbilityBooleanField('achd') +--- +---ABILITY_RF_ARF_MISSILE_ARC 'common.ABILITY_RF_ARF_MISSILE_ARC' +---@field ABILITY_RF_ARF_MISSILE_ARC abilityrealfield _ConvertAbilityRealField('amac') +--- +---ABILITY_SF_NAME 'common.ABILITY_SF_NAME' +---@field ABILITY_SF_NAME abilitystringfield _ConvertAbilityStringField('anam') +--- +---ABILITY_SF_ICON_ACTIVATED 'common.ABILITY_SF_ICON_ACTIVATED' +---@field ABILITY_SF_ICON_ACTIVATED abilitystringfield _ConvertAbilityStringField('auar') +--- +---ABILITY_SF_ICON_RESEARCH 'common.ABILITY_SF_ICON_RESEARCH' +---@field ABILITY_SF_ICON_RESEARCH abilitystringfield _ConvertAbilityStringField('arar') +--- +---ABILITY_SF_EFFECT_SOUND 'common.ABILITY_SF_EFFECT_SOUND' +---@field ABILITY_SF_EFFECT_SOUND abilitystringfield _ConvertAbilityStringField('aefs') +--- +---ABILITY_SF_EFFECT_SOUND_LOOPING 'common.ABILITY_SF_EFFECT_SOUND_LOOPING' +---@field ABILITY_SF_EFFECT_SOUND_LOOPING abilitystringfield _ConvertAbilityStringField('aefl') +--- +---ABILITY_ILF_MANA_COST 'common.ABILITY_ILF_MANA_COST' +---@field ABILITY_ILF_MANA_COST abilityintegerlevelfield _ConvertAbilityIntegerLevelField('amcs') +--- +---ABILITY_ILF_NUMBER_OF_WAVES 'common.ABILITY_ILF_NUMBER_OF_WAVES' +---@field ABILITY_ILF_NUMBER_OF_WAVES abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Hbz1') +--- +---ABILITY_ILF_NUMBER_OF_SHARDS 'common.ABILITY_ILF_NUMBER_OF_SHARDS' +---@field ABILITY_ILF_NUMBER_OF_SHARDS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Hbz3') +--- +---ABILITY_ILF_NUMBER_OF_UNITS_TELEPORTED 'common.ABILITY_ILF_NUMBER_OF_UNITS_TELEPORTED' +---@field ABILITY_ILF_NUMBER_OF_UNITS_TELEPORTED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Hmt1') +--- +---ABILITY_ILF_SUMMONED_UNIT_COUNT_HWE2 'common.ABILITY_ILF_SUMMONED_UNIT_COUNT_HWE2' +---@field ABILITY_ILF_SUMMONED_UNIT_COUNT_HWE2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Hwe2') +--- +---ABILITY_ILF_NUMBER_OF_IMAGES 'common.ABILITY_ILF_NUMBER_OF_IMAGES' +---@field ABILITY_ILF_NUMBER_OF_IMAGES abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Omi1') +--- +---ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_UAN1 'common.ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_UAN1' +---@field ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_UAN1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Uan1') +--- +---ABILITY_ILF_MORPHING_FLAGS 'common.ABILITY_ILF_MORPHING_FLAGS' +---@field ABILITY_ILF_MORPHING_FLAGS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Eme2') +--- +---ABILITY_ILF_STRENGTH_BONUS_NRG5 'common.ABILITY_ILF_STRENGTH_BONUS_NRG5' +---@field ABILITY_ILF_STRENGTH_BONUS_NRG5 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nrg5') +--- +---ABILITY_ILF_DEFENSE_BONUS_NRG6 'common.ABILITY_ILF_DEFENSE_BONUS_NRG6' +---@field ABILITY_ILF_DEFENSE_BONUS_NRG6 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nrg6') +--- +---ABILITY_ILF_NUMBER_OF_TARGETS_HIT 'common.ABILITY_ILF_NUMBER_OF_TARGETS_HIT' +---@field ABILITY_ILF_NUMBER_OF_TARGETS_HIT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ocl2') +--- +---ABILITY_ILF_DETECTION_TYPE_OFS1 'common.ABILITY_ILF_DETECTION_TYPE_OFS1' +---@field ABILITY_ILF_DETECTION_TYPE_OFS1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ofs1') +--- +---ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_OSF2 'common.ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_OSF2' +---@field ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_OSF2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Osf2') +--- +---ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_EFN1 'common.ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_EFN1' +---@field ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_EFN1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Efn1') +--- +---ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_HRE1 'common.ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_HRE1' +---@field ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_HRE1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Hre1') +--- +---ABILITY_ILF_STACK_FLAGS 'common.ABILITY_ILF_STACK_FLAGS' +---@field ABILITY_ILF_STACK_FLAGS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Hca4') +--- +---ABILITY_ILF_MINIMUM_NUMBER_OF_UNITS 'common.ABILITY_ILF_MINIMUM_NUMBER_OF_UNITS' +---@field ABILITY_ILF_MINIMUM_NUMBER_OF_UNITS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ndp2') +--- +---ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_NDP3 'common.ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_NDP3' +---@field ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_NDP3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ndp3') +--- +---ABILITY_ILF_NUMBER_OF_UNITS_CREATED_NRC2 'common.ABILITY_ILF_NUMBER_OF_UNITS_CREATED_NRC2' +---@field ABILITY_ILF_NUMBER_OF_UNITS_CREATED_NRC2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nrc2') +--- +---ABILITY_ILF_SHIELD_LIFE 'common.ABILITY_ILF_SHIELD_LIFE' +---@field ABILITY_ILF_SHIELD_LIFE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ams3') +--- +---ABILITY_ILF_MANA_LOSS_AMS4 'common.ABILITY_ILF_MANA_LOSS_AMS4' +---@field ABILITY_ILF_MANA_LOSS_AMS4 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ams4') +--- +---ABILITY_ILF_GOLD_PER_INTERVAL_BGM1 'common.ABILITY_ILF_GOLD_PER_INTERVAL_BGM1' +---@field ABILITY_ILF_GOLD_PER_INTERVAL_BGM1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Bgm1') +--- +---ABILITY_ILF_MAX_NUMBER_OF_MINERS 'common.ABILITY_ILF_MAX_NUMBER_OF_MINERS' +---@field ABILITY_ILF_MAX_NUMBER_OF_MINERS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Bgm3') +--- +---ABILITY_ILF_CARGO_CAPACITY 'common.ABILITY_ILF_CARGO_CAPACITY' +---@field ABILITY_ILF_CARGO_CAPACITY abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Car1') +--- +---ABILITY_ILF_MAXIMUM_CREEP_LEVEL_DEV3 'common.ABILITY_ILF_MAXIMUM_CREEP_LEVEL_DEV3' +---@field ABILITY_ILF_MAXIMUM_CREEP_LEVEL_DEV3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Dev3') +--- +---ABILITY_ILF_MAX_CREEP_LEVEL_DEV1 'common.ABILITY_ILF_MAX_CREEP_LEVEL_DEV1' +---@field ABILITY_ILF_MAX_CREEP_LEVEL_DEV1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Dev1') +--- +---ABILITY_ILF_GOLD_PER_INTERVAL_EGM1 'common.ABILITY_ILF_GOLD_PER_INTERVAL_EGM1' +---@field ABILITY_ILF_GOLD_PER_INTERVAL_EGM1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Egm1') +--- +---ABILITY_ILF_DEFENSE_REDUCTION 'common.ABILITY_ILF_DEFENSE_REDUCTION' +---@field ABILITY_ILF_DEFENSE_REDUCTION abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Fae1') +--- +---ABILITY_ILF_DETECTION_TYPE_FLA1 'common.ABILITY_ILF_DETECTION_TYPE_FLA1' +---@field ABILITY_ILF_DETECTION_TYPE_FLA1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Fla1') +--- +---ABILITY_ILF_FLARE_COUNT 'common.ABILITY_ILF_FLARE_COUNT' +---@field ABILITY_ILF_FLARE_COUNT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Fla3') +--- +---ABILITY_ILF_MAX_GOLD 'common.ABILITY_ILF_MAX_GOLD' +---@field ABILITY_ILF_MAX_GOLD abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Gld1') +--- +---ABILITY_ILF_MINING_CAPACITY 'common.ABILITY_ILF_MINING_CAPACITY' +---@field ABILITY_ILF_MINING_CAPACITY abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Gld3') +--- +---ABILITY_ILF_MAXIMUM_NUMBER_OF_CORPSES_GYD1 'common.ABILITY_ILF_MAXIMUM_NUMBER_OF_CORPSES_GYD1' +---@field ABILITY_ILF_MAXIMUM_NUMBER_OF_CORPSES_GYD1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Gyd1') +--- +---ABILITY_ILF_DAMAGE_TO_TREE 'common.ABILITY_ILF_DAMAGE_TO_TREE' +---@field ABILITY_ILF_DAMAGE_TO_TREE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Har1') +--- +---ABILITY_ILF_LUMBER_CAPACITY 'common.ABILITY_ILF_LUMBER_CAPACITY' +---@field ABILITY_ILF_LUMBER_CAPACITY abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Har2') +--- +---ABILITY_ILF_GOLD_CAPACITY 'common.ABILITY_ILF_GOLD_CAPACITY' +---@field ABILITY_ILF_GOLD_CAPACITY abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Har3') +--- +---ABILITY_ILF_DEFENSE_INCREASE_INF2 'common.ABILITY_ILF_DEFENSE_INCREASE_INF2' +---@field ABILITY_ILF_DEFENSE_INCREASE_INF2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Inf2') +--- +---ABILITY_ILF_INTERACTION_TYPE 'common.ABILITY_ILF_INTERACTION_TYPE' +---@field ABILITY_ILF_INTERACTION_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Neu2') +--- +---ABILITY_ILF_GOLD_COST_NDT1 'common.ABILITY_ILF_GOLD_COST_NDT1' +---@field ABILITY_ILF_GOLD_COST_NDT1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ndt1') +--- +---ABILITY_ILF_LUMBER_COST_NDT2 'common.ABILITY_ILF_LUMBER_COST_NDT2' +---@field ABILITY_ILF_LUMBER_COST_NDT2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ndt2') +--- +---ABILITY_ILF_DETECTION_TYPE_NDT3 'common.ABILITY_ILF_DETECTION_TYPE_NDT3' +---@field ABILITY_ILF_DETECTION_TYPE_NDT3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ndt3') +--- +---ABILITY_ILF_STACKING_TYPE_POI4 'common.ABILITY_ILF_STACKING_TYPE_POI4' +---@field ABILITY_ILF_STACKING_TYPE_POI4 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Poi4') +--- +---ABILITY_ILF_STACKING_TYPE_POA5 'common.ABILITY_ILF_STACKING_TYPE_POA5' +---@field ABILITY_ILF_STACKING_TYPE_POA5 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Poa5') +--- +---ABILITY_ILF_MAXIMUM_CREEP_LEVEL_PLY1 'common.ABILITY_ILF_MAXIMUM_CREEP_LEVEL_PLY1' +---@field ABILITY_ILF_MAXIMUM_CREEP_LEVEL_PLY1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ply1') +--- +---ABILITY_ILF_MAXIMUM_CREEP_LEVEL_POS1 'common.ABILITY_ILF_MAXIMUM_CREEP_LEVEL_POS1' +---@field ABILITY_ILF_MAXIMUM_CREEP_LEVEL_POS1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Pos1') +--- +---ABILITY_ILF_MOVEMENT_UPDATE_FREQUENCY_PRG1 'common.ABILITY_ILF_MOVEMENT_UPDATE_FREQUENCY_PRG1' +---@field ABILITY_ILF_MOVEMENT_UPDATE_FREQUENCY_PRG1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Prg1') +--- +---ABILITY_ILF_ATTACK_UPDATE_FREQUENCY_PRG2 'common.ABILITY_ILF_ATTACK_UPDATE_FREQUENCY_PRG2' +---@field ABILITY_ILF_ATTACK_UPDATE_FREQUENCY_PRG2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Prg2') +--- +---ABILITY_ILF_MANA_LOSS_PRG6 'common.ABILITY_ILF_MANA_LOSS_PRG6' +---@field ABILITY_ILF_MANA_LOSS_PRG6 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Prg6') +--- +---ABILITY_ILF_UNITS_SUMMONED_TYPE_ONE 'common.ABILITY_ILF_UNITS_SUMMONED_TYPE_ONE' +---@field ABILITY_ILF_UNITS_SUMMONED_TYPE_ONE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Rai1') +--- +---ABILITY_ILF_UNITS_SUMMONED_TYPE_TWO 'common.ABILITY_ILF_UNITS_SUMMONED_TYPE_TWO' +---@field ABILITY_ILF_UNITS_SUMMONED_TYPE_TWO abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Rai2') +--- +---ABILITY_ILF_MAX_UNITS_SUMMONED 'common.ABILITY_ILF_MAX_UNITS_SUMMONED' +---@field ABILITY_ILF_MAX_UNITS_SUMMONED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ucb5') +--- +---ABILITY_ILF_ALLOW_WHEN_FULL_REJ3 'common.ABILITY_ILF_ALLOW_WHEN_FULL_REJ3' +---@field ABILITY_ILF_ALLOW_WHEN_FULL_REJ3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Rej3') +--- +---ABILITY_ILF_MAXIMUM_UNITS_CHARGED_TO_CASTER 'common.ABILITY_ILF_MAXIMUM_UNITS_CHARGED_TO_CASTER' +---@field ABILITY_ILF_MAXIMUM_UNITS_CHARGED_TO_CASTER abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Rpb5') +--- +---ABILITY_ILF_MAXIMUM_UNITS_AFFECTED 'common.ABILITY_ILF_MAXIMUM_UNITS_AFFECTED' +---@field ABILITY_ILF_MAXIMUM_UNITS_AFFECTED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Rpb6') +--- +---ABILITY_ILF_DEFENSE_INCREASE_ROA2 'common.ABILITY_ILF_DEFENSE_INCREASE_ROA2' +---@field ABILITY_ILF_DEFENSE_INCREASE_ROA2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Roa2') +--- +---ABILITY_ILF_MAX_UNITS_ROA7 'common.ABILITY_ILF_MAX_UNITS_ROA7' +---@field ABILITY_ILF_MAX_UNITS_ROA7 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Roa7') +--- +---ABILITY_ILF_ROOTED_WEAPONS 'common.ABILITY_ILF_ROOTED_WEAPONS' +---@field ABILITY_ILF_ROOTED_WEAPONS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Roo1') +--- +---ABILITY_ILF_UPROOTED_WEAPONS 'common.ABILITY_ILF_UPROOTED_WEAPONS' +---@field ABILITY_ILF_UPROOTED_WEAPONS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Roo2') +--- +---ABILITY_ILF_UPROOTED_DEFENSE_TYPE 'common.ABILITY_ILF_UPROOTED_DEFENSE_TYPE' +---@field ABILITY_ILF_UPROOTED_DEFENSE_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Roo4') +--- +---ABILITY_ILF_ACCUMULATION_STEP 'common.ABILITY_ILF_ACCUMULATION_STEP' +---@field ABILITY_ILF_ACCUMULATION_STEP abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Sal2') +--- +---ABILITY_ILF_NUMBER_OF_OWLS 'common.ABILITY_ILF_NUMBER_OF_OWLS' +---@field ABILITY_ILF_NUMBER_OF_OWLS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Esn4') +--- +---ABILITY_ILF_STACKING_TYPE_SPO4 'common.ABILITY_ILF_STACKING_TYPE_SPO4' +---@field ABILITY_ILF_STACKING_TYPE_SPO4 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Spo4') +--- +---ABILITY_ILF_NUMBER_OF_UNITS 'common.ABILITY_ILF_NUMBER_OF_UNITS' +---@field ABILITY_ILF_NUMBER_OF_UNITS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Sod1') +--- +---ABILITY_ILF_SPIDER_CAPACITY 'common.ABILITY_ILF_SPIDER_CAPACITY' +---@field ABILITY_ILF_SPIDER_CAPACITY abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Spa1') +--- +---ABILITY_ILF_INTERVALS_BEFORE_CHANGING_TREES 'common.ABILITY_ILF_INTERVALS_BEFORE_CHANGING_TREES' +---@field ABILITY_ILF_INTERVALS_BEFORE_CHANGING_TREES abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Wha2') +--- +---ABILITY_ILF_AGILITY_BONUS 'common.ABILITY_ILF_AGILITY_BONUS' +---@field ABILITY_ILF_AGILITY_BONUS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iagi') +--- +---ABILITY_ILF_INTELLIGENCE_BONUS 'common.ABILITY_ILF_INTELLIGENCE_BONUS' +---@field ABILITY_ILF_INTELLIGENCE_BONUS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iint') +--- +---ABILITY_ILF_STRENGTH_BONUS_ISTR 'common.ABILITY_ILF_STRENGTH_BONUS_ISTR' +---@field ABILITY_ILF_STRENGTH_BONUS_ISTR abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Istr') +--- +---ABILITY_ILF_ATTACK_BONUS 'common.ABILITY_ILF_ATTACK_BONUS' +---@field ABILITY_ILF_ATTACK_BONUS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iatt') +--- +---ABILITY_ILF_DEFENSE_BONUS_IDEF 'common.ABILITY_ILF_DEFENSE_BONUS_IDEF' +---@field ABILITY_ILF_DEFENSE_BONUS_IDEF abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Idef') +--- +---ABILITY_ILF_SUMMON_1_AMOUNT 'common.ABILITY_ILF_SUMMON_1_AMOUNT' +---@field ABILITY_ILF_SUMMON_1_AMOUNT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Isn1') +--- +---ABILITY_ILF_SUMMON_2_AMOUNT 'common.ABILITY_ILF_SUMMON_2_AMOUNT' +---@field ABILITY_ILF_SUMMON_2_AMOUNT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Isn2') +--- +---ABILITY_ILF_EXPERIENCE_GAINED 'common.ABILITY_ILF_EXPERIENCE_GAINED' +---@field ABILITY_ILF_EXPERIENCE_GAINED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ixpg') +--- +---ABILITY_ILF_HIT_POINTS_GAINED_IHPG 'common.ABILITY_ILF_HIT_POINTS_GAINED_IHPG' +---@field ABILITY_ILF_HIT_POINTS_GAINED_IHPG abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ihpg') +--- +---ABILITY_ILF_MANA_POINTS_GAINED_IMPG 'common.ABILITY_ILF_MANA_POINTS_GAINED_IMPG' +---@field ABILITY_ILF_MANA_POINTS_GAINED_IMPG abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Impg') +--- +---ABILITY_ILF_HIT_POINTS_GAINED_IHP2 'common.ABILITY_ILF_HIT_POINTS_GAINED_IHP2' +---@field ABILITY_ILF_HIT_POINTS_GAINED_IHP2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ihp2') +--- +---ABILITY_ILF_MANA_POINTS_GAINED_IMP2 'common.ABILITY_ILF_MANA_POINTS_GAINED_IMP2' +---@field ABILITY_ILF_MANA_POINTS_GAINED_IMP2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Imp2') +--- +---ABILITY_ILF_DAMAGE_BONUS_DICE 'common.ABILITY_ILF_DAMAGE_BONUS_DICE' +---@field ABILITY_ILF_DAMAGE_BONUS_DICE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Idic') +--- +---ABILITY_ILF_ARMOR_PENALTY_IARP 'common.ABILITY_ILF_ARMOR_PENALTY_IARP' +---@field ABILITY_ILF_ARMOR_PENALTY_IARP abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iarp') +--- +---ABILITY_ILF_ENABLED_ATTACK_INDEX_IOB5 'common.ABILITY_ILF_ENABLED_ATTACK_INDEX_IOB5' +---@field ABILITY_ILF_ENABLED_ATTACK_INDEX_IOB5 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iob5') +--- +---ABILITY_ILF_LEVELS_GAINED 'common.ABILITY_ILF_LEVELS_GAINED' +---@field ABILITY_ILF_LEVELS_GAINED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ilev') +--- +---ABILITY_ILF_MAX_LIFE_GAINED 'common.ABILITY_ILF_MAX_LIFE_GAINED' +---@field ABILITY_ILF_MAX_LIFE_GAINED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ilif') +--- +---ABILITY_ILF_MAX_MANA_GAINED 'common.ABILITY_ILF_MAX_MANA_GAINED' +---@field ABILITY_ILF_MAX_MANA_GAINED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iman') +--- +---ABILITY_ILF_GOLD_GIVEN 'common.ABILITY_ILF_GOLD_GIVEN' +---@field ABILITY_ILF_GOLD_GIVEN abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Igol') +--- +---ABILITY_ILF_LUMBER_GIVEN 'common.ABILITY_ILF_LUMBER_GIVEN' +---@field ABILITY_ILF_LUMBER_GIVEN abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ilum') +--- +---ABILITY_ILF_DETECTION_TYPE_IFA1 'common.ABILITY_ILF_DETECTION_TYPE_IFA1' +---@field ABILITY_ILF_DETECTION_TYPE_IFA1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ifa1') +--- +---ABILITY_ILF_MAXIMUM_CREEP_LEVEL_ICRE 'common.ABILITY_ILF_MAXIMUM_CREEP_LEVEL_ICRE' +---@field ABILITY_ILF_MAXIMUM_CREEP_LEVEL_ICRE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Icre') +--- +---ABILITY_ILF_MOVEMENT_SPEED_BONUS 'common.ABILITY_ILF_MOVEMENT_SPEED_BONUS' +---@field ABILITY_ILF_MOVEMENT_SPEED_BONUS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Imvb') +--- +---ABILITY_ILF_HIT_POINTS_REGENERATED_PER_SECOND 'common.ABILITY_ILF_HIT_POINTS_REGENERATED_PER_SECOND' +---@field ABILITY_ILF_HIT_POINTS_REGENERATED_PER_SECOND abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ihpr') +--- +---ABILITY_ILF_SIGHT_RANGE_BONUS 'common.ABILITY_ILF_SIGHT_RANGE_BONUS' +---@field ABILITY_ILF_SIGHT_RANGE_BONUS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Isib') +--- +---ABILITY_ILF_DAMAGE_PER_DURATION 'common.ABILITY_ILF_DAMAGE_PER_DURATION' +---@field ABILITY_ILF_DAMAGE_PER_DURATION abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Icfd') +--- +---ABILITY_ILF_MANA_USED_PER_SECOND 'common.ABILITY_ILF_MANA_USED_PER_SECOND' +---@field ABILITY_ILF_MANA_USED_PER_SECOND abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Icfm') +--- +---ABILITY_ILF_EXTRA_MANA_REQUIRED 'common.ABILITY_ILF_EXTRA_MANA_REQUIRED' +---@field ABILITY_ILF_EXTRA_MANA_REQUIRED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Icfx') +--- +---ABILITY_ILF_DETECTION_RADIUS_IDET 'common.ABILITY_ILF_DETECTION_RADIUS_IDET' +---@field ABILITY_ILF_DETECTION_RADIUS_IDET abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Idet') +--- +---ABILITY_ILF_MANA_LOSS_PER_UNIT_IDIM 'common.ABILITY_ILF_MANA_LOSS_PER_UNIT_IDIM' +---@field ABILITY_ILF_MANA_LOSS_PER_UNIT_IDIM abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Idim') +--- +---ABILITY_ILF_DAMAGE_TO_SUMMONED_UNITS_IDID 'common.ABILITY_ILF_DAMAGE_TO_SUMMONED_UNITS_IDID' +---@field ABILITY_ILF_DAMAGE_TO_SUMMONED_UNITS_IDID abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Idid') +--- +---ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_IREC 'common.ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_IREC' +---@field ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_IREC abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Irec') +--- +---ABILITY_ILF_DELAY_AFTER_DEATH_SECONDS 'common.ABILITY_ILF_DELAY_AFTER_DEATH_SECONDS' +---@field ABILITY_ILF_DELAY_AFTER_DEATH_SECONDS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ircd') +--- +---ABILITY_ILF_RESTORED_LIFE 'common.ABILITY_ILF_RESTORED_LIFE' +---@field ABILITY_ILF_RESTORED_LIFE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('irc2') +--- +---ABILITY_ILF_RESTORED_MANA__1_FOR_CURRENT 'common.ABILITY_ILF_RESTORED_MANA__1_FOR_CURRENT' +---@field ABILITY_ILF_RESTORED_MANA__1_FOR_CURRENT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('irc3') +--- +---ABILITY_ILF_HIT_POINTS_RESTORED 'common.ABILITY_ILF_HIT_POINTS_RESTORED' +---@field ABILITY_ILF_HIT_POINTS_RESTORED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ihps') +--- +---ABILITY_ILF_MANA_POINTS_RESTORED 'common.ABILITY_ILF_MANA_POINTS_RESTORED' +---@field ABILITY_ILF_MANA_POINTS_RESTORED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Imps') +--- +---ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_ITPM 'common.ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_ITPM' +---@field ABILITY_ILF_MAXIMUM_NUMBER_OF_UNITS_ITPM abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Itpm') +--- +---ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_CAD1 'common.ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_CAD1' +---@field ABILITY_ILF_NUMBER_OF_CORPSES_RAISED_CAD1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Cad1') +--- +---ABILITY_ILF_TERRAIN_DEFORMATION_DURATION_MS 'common.ABILITY_ILF_TERRAIN_DEFORMATION_DURATION_MS' +---@field ABILITY_ILF_TERRAIN_DEFORMATION_DURATION_MS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Wrs3') +--- +---ABILITY_ILF_MAXIMUM_UNITS 'common.ABILITY_ILF_MAXIMUM_UNITS' +---@field ABILITY_ILF_MAXIMUM_UNITS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Uds1') +--- +---ABILITY_ILF_DETECTION_TYPE_DET1 'common.ABILITY_ILF_DETECTION_TYPE_DET1' +---@field ABILITY_ILF_DETECTION_TYPE_DET1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Det1') +--- +---ABILITY_ILF_GOLD_COST_PER_STRUCTURE 'common.ABILITY_ILF_GOLD_COST_PER_STRUCTURE' +---@field ABILITY_ILF_GOLD_COST_PER_STRUCTURE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nsp1') +--- +---ABILITY_ILF_LUMBER_COST_PER_USE 'common.ABILITY_ILF_LUMBER_COST_PER_USE' +---@field ABILITY_ILF_LUMBER_COST_PER_USE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nsp2') +--- +---ABILITY_ILF_DETECTION_TYPE_NSP3 'common.ABILITY_ILF_DETECTION_TYPE_NSP3' +---@field ABILITY_ILF_DETECTION_TYPE_NSP3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nsp3') +--- +---ABILITY_ILF_NUMBER_OF_SWARM_UNITS 'common.ABILITY_ILF_NUMBER_OF_SWARM_UNITS' +---@field ABILITY_ILF_NUMBER_OF_SWARM_UNITS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Uls1') +--- +---ABILITY_ILF_MAX_SWARM_UNITS_PER_TARGET 'common.ABILITY_ILF_MAX_SWARM_UNITS_PER_TARGET' +---@field ABILITY_ILF_MAX_SWARM_UNITS_PER_TARGET abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Uls3') +--- +---ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_NBA2 'common.ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_NBA2' +---@field ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_NBA2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nba2') +--- +---ABILITY_ILF_MAXIMUM_CREEP_LEVEL_NCH1 'common.ABILITY_ILF_MAXIMUM_CREEP_LEVEL_NCH1' +---@field ABILITY_ILF_MAXIMUM_CREEP_LEVEL_NCH1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nch1') +--- +---ABILITY_ILF_ATTACKS_PREVENTED 'common.ABILITY_ILF_ATTACKS_PREVENTED' +---@field ABILITY_ILF_ATTACKS_PREVENTED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nsi1') +--- +---ABILITY_ILF_MAXIMUM_NUMBER_OF_TARGETS_EFK3 'common.ABILITY_ILF_MAXIMUM_NUMBER_OF_TARGETS_EFK3' +---@field ABILITY_ILF_MAXIMUM_NUMBER_OF_TARGETS_EFK3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Efk3') +--- +---ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_ESV1 'common.ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_ESV1' +---@field ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_ESV1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Esv1') +--- +---ABILITY_ILF_MAXIMUM_NUMBER_OF_CORPSES_EXH1 'common.ABILITY_ILF_MAXIMUM_NUMBER_OF_CORPSES_EXH1' +---@field ABILITY_ILF_MAXIMUM_NUMBER_OF_CORPSES_EXH1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('exh1') +--- +---ABILITY_ILF_ITEM_CAPACITY 'common.ABILITY_ILF_ITEM_CAPACITY' +---@field ABILITY_ILF_ITEM_CAPACITY abilityintegerlevelfield _ConvertAbilityIntegerLevelField('inv1') +--- +---ABILITY_ILF_MAXIMUM_NUMBER_OF_TARGETS_SPL2 'common.ABILITY_ILF_MAXIMUM_NUMBER_OF_TARGETS_SPL2' +---@field ABILITY_ILF_MAXIMUM_NUMBER_OF_TARGETS_SPL2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('spl2') +--- +---ABILITY_ILF_ALLOW_WHEN_FULL_IRL3 'common.ABILITY_ILF_ALLOW_WHEN_FULL_IRL3' +---@field ABILITY_ILF_ALLOW_WHEN_FULL_IRL3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('irl3') +--- +---ABILITY_ILF_MAXIMUM_DISPELLED_UNITS 'common.ABILITY_ILF_MAXIMUM_DISPELLED_UNITS' +---@field ABILITY_ILF_MAXIMUM_DISPELLED_UNITS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('idc3') +--- +---ABILITY_ILF_NUMBER_OF_LURES 'common.ABILITY_ILF_NUMBER_OF_LURES' +---@field ABILITY_ILF_NUMBER_OF_LURES abilityintegerlevelfield _ConvertAbilityIntegerLevelField('imo1') +--- +---ABILITY_ILF_NEW_TIME_OF_DAY_HOUR 'common.ABILITY_ILF_NEW_TIME_OF_DAY_HOUR' +---@field ABILITY_ILF_NEW_TIME_OF_DAY_HOUR abilityintegerlevelfield _ConvertAbilityIntegerLevelField('ict1') +--- +---ABILITY_ILF_NEW_TIME_OF_DAY_MINUTE 'common.ABILITY_ILF_NEW_TIME_OF_DAY_MINUTE' +---@field ABILITY_ILF_NEW_TIME_OF_DAY_MINUTE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('ict2') +--- +---ABILITY_ILF_NUMBER_OF_UNITS_CREATED_MEC1 'common.ABILITY_ILF_NUMBER_OF_UNITS_CREATED_MEC1' +---@field ABILITY_ILF_NUMBER_OF_UNITS_CREATED_MEC1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('mec1') +--- +---ABILITY_ILF_MINIMUM_SPELLS 'common.ABILITY_ILF_MINIMUM_SPELLS' +---@field ABILITY_ILF_MINIMUM_SPELLS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('spb3') +--- +---ABILITY_ILF_MAXIMUM_SPELLS 'common.ABILITY_ILF_MAXIMUM_SPELLS' +---@field ABILITY_ILF_MAXIMUM_SPELLS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('spb4') +--- +---ABILITY_ILF_DISABLED_ATTACK_INDEX 'common.ABILITY_ILF_DISABLED_ATTACK_INDEX' +---@field ABILITY_ILF_DISABLED_ATTACK_INDEX abilityintegerlevelfield _ConvertAbilityIntegerLevelField('gra3') +--- +---ABILITY_ILF_ENABLED_ATTACK_INDEX_GRA4 'common.ABILITY_ILF_ENABLED_ATTACK_INDEX_GRA4' +---@field ABILITY_ILF_ENABLED_ATTACK_INDEX_GRA4 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('gra4') +--- +---ABILITY_ILF_MAXIMUM_ATTACKS 'common.ABILITY_ILF_MAXIMUM_ATTACKS' +---@field ABILITY_ILF_MAXIMUM_ATTACKS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('gra5') +--- +---ABILITY_ILF_BUILDING_TYPES_ALLOWED_NPR1 'common.ABILITY_ILF_BUILDING_TYPES_ALLOWED_NPR1' +---@field ABILITY_ILF_BUILDING_TYPES_ALLOWED_NPR1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Npr1') +--- +---ABILITY_ILF_BUILDING_TYPES_ALLOWED_NSA1 'common.ABILITY_ILF_BUILDING_TYPES_ALLOWED_NSA1' +---@field ABILITY_ILF_BUILDING_TYPES_ALLOWED_NSA1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nsa1') +--- +---ABILITY_ILF_ATTACK_MODIFICATION 'common.ABILITY_ILF_ATTACK_MODIFICATION' +---@field ABILITY_ILF_ATTACK_MODIFICATION abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iaa1') +--- +---ABILITY_ILF_SUMMONED_UNIT_COUNT_NPA5 'common.ABILITY_ILF_SUMMONED_UNIT_COUNT_NPA5' +---@field ABILITY_ILF_SUMMONED_UNIT_COUNT_NPA5 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Npa5') +--- +---ABILITY_ILF_UPGRADE_LEVELS 'common.ABILITY_ILF_UPGRADE_LEVELS' +---@field ABILITY_ILF_UPGRADE_LEVELS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Igl1') +--- +---ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_NDO2 'common.ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_NDO2' +---@field ABILITY_ILF_NUMBER_OF_SUMMONED_UNITS_NDO2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ndo2') +--- +---ABILITY_ILF_BEASTS_PER_SECOND 'common.ABILITY_ILF_BEASTS_PER_SECOND' +---@field ABILITY_ILF_BEASTS_PER_SECOND abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nst1') +--- +---ABILITY_ILF_TARGET_TYPE 'common.ABILITY_ILF_TARGET_TYPE' +---@field ABILITY_ILF_TARGET_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ncl2') +--- +---ABILITY_ILF_OPTIONS 'common.ABILITY_ILF_OPTIONS' +---@field ABILITY_ILF_OPTIONS abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ncl3') +--- +---ABILITY_ILF_ARMOR_PENALTY_NAB3 'common.ABILITY_ILF_ARMOR_PENALTY_NAB3' +---@field ABILITY_ILF_ARMOR_PENALTY_NAB3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nab3') +--- +---ABILITY_ILF_WAVE_COUNT_NHS6 'common.ABILITY_ILF_WAVE_COUNT_NHS6' +---@field ABILITY_ILF_WAVE_COUNT_NHS6 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nhs6') +--- +---ABILITY_ILF_MAX_CREEP_LEVEL_NTM3 'common.ABILITY_ILF_MAX_CREEP_LEVEL_NTM3' +---@field ABILITY_ILF_MAX_CREEP_LEVEL_NTM3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ntm3') +--- +---ABILITY_ILF_MISSILE_COUNT 'common.ABILITY_ILF_MISSILE_COUNT' +---@field ABILITY_ILF_MISSILE_COUNT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ncs3') +--- +---ABILITY_ILF_SPLIT_ATTACK_COUNT 'common.ABILITY_ILF_SPLIT_ATTACK_COUNT' +---@field ABILITY_ILF_SPLIT_ATTACK_COUNT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nlm3') +--- +---ABILITY_ILF_GENERATION_COUNT 'common.ABILITY_ILF_GENERATION_COUNT' +---@field ABILITY_ILF_GENERATION_COUNT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nlm6') +--- +---ABILITY_ILF_ROCK_RING_COUNT 'common.ABILITY_ILF_ROCK_RING_COUNT' +---@field ABILITY_ILF_ROCK_RING_COUNT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nvc1') +--- +---ABILITY_ILF_WAVE_COUNT_NVC2 'common.ABILITY_ILF_WAVE_COUNT_NVC2' +---@field ABILITY_ILF_WAVE_COUNT_NVC2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nvc2') +--- +---ABILITY_ILF_PREFER_HOSTILES_TAU1 'common.ABILITY_ILF_PREFER_HOSTILES_TAU1' +---@field ABILITY_ILF_PREFER_HOSTILES_TAU1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Tau1') +--- +---ABILITY_ILF_PREFER_FRIENDLIES_TAU2 'common.ABILITY_ILF_PREFER_FRIENDLIES_TAU2' +---@field ABILITY_ILF_PREFER_FRIENDLIES_TAU2 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Tau2') +--- +---ABILITY_ILF_MAX_UNITS_TAU3 'common.ABILITY_ILF_MAX_UNITS_TAU3' +---@field ABILITY_ILF_MAX_UNITS_TAU3 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Tau3') +--- +---ABILITY_ILF_NUMBER_OF_PULSES 'common.ABILITY_ILF_NUMBER_OF_PULSES' +---@field ABILITY_ILF_NUMBER_OF_PULSES abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Tau4') +--- +---ABILITY_ILF_SUMMONED_UNIT_TYPE_HWE1 'common.ABILITY_ILF_SUMMONED_UNIT_TYPE_HWE1' +---@field ABILITY_ILF_SUMMONED_UNIT_TYPE_HWE1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Hwe1') +--- +---ABILITY_ILF_SUMMONED_UNIT_UIN4 'common.ABILITY_ILF_SUMMONED_UNIT_UIN4' +---@field ABILITY_ILF_SUMMONED_UNIT_UIN4 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Uin4') +--- +---ABILITY_ILF_SUMMONED_UNIT_OSF1 'common.ABILITY_ILF_SUMMONED_UNIT_OSF1' +---@field ABILITY_ILF_SUMMONED_UNIT_OSF1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Osf1') +--- +---ABILITY_ILF_SUMMONED_UNIT_TYPE_EFNU 'common.ABILITY_ILF_SUMMONED_UNIT_TYPE_EFNU' +---@field ABILITY_ILF_SUMMONED_UNIT_TYPE_EFNU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Efnu') +--- +---ABILITY_ILF_SUMMONED_UNIT_TYPE_NBAU 'common.ABILITY_ILF_SUMMONED_UNIT_TYPE_NBAU' +---@field ABILITY_ILF_SUMMONED_UNIT_TYPE_NBAU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nbau') +--- +---ABILITY_ILF_SUMMONED_UNIT_TYPE_NTOU 'common.ABILITY_ILF_SUMMONED_UNIT_TYPE_NTOU' +---@field ABILITY_ILF_SUMMONED_UNIT_TYPE_NTOU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ntou') +--- +---ABILITY_ILF_SUMMONED_UNIT_TYPE_ESVU 'common.ABILITY_ILF_SUMMONED_UNIT_TYPE_ESVU' +---@field ABILITY_ILF_SUMMONED_UNIT_TYPE_ESVU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Esvu') +--- +---ABILITY_ILF_SUMMONED_UNIT_TYPES 'common.ABILITY_ILF_SUMMONED_UNIT_TYPES' +---@field ABILITY_ILF_SUMMONED_UNIT_TYPES abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nef1') +--- +---ABILITY_ILF_SUMMONED_UNIT_TYPE_NDOU 'common.ABILITY_ILF_SUMMONED_UNIT_TYPE_NDOU' +---@field ABILITY_ILF_SUMMONED_UNIT_TYPE_NDOU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ndou') +--- +---ABILITY_ILF_ALTERNATE_FORM_UNIT_EMEU 'common.ABILITY_ILF_ALTERNATE_FORM_UNIT_EMEU' +---@field ABILITY_ILF_ALTERNATE_FORM_UNIT_EMEU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Emeu') +--- +---ABILITY_ILF_PLAGUE_WARD_UNIT_TYPE 'common.ABILITY_ILF_PLAGUE_WARD_UNIT_TYPE' +---@field ABILITY_ILF_PLAGUE_WARD_UNIT_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Aplu') +--- +---ABILITY_ILF_ALLOWED_UNIT_TYPE_BTL1 'common.ABILITY_ILF_ALLOWED_UNIT_TYPE_BTL1' +---@field ABILITY_ILF_ALLOWED_UNIT_TYPE_BTL1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Btl1') +--- +---ABILITY_ILF_NEW_UNIT_TYPE 'common.ABILITY_ILF_NEW_UNIT_TYPE' +---@field ABILITY_ILF_NEW_UNIT_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Cha1') +--- +---ABILITY_ILF_RESULTING_UNIT_TYPE_ENT1 'common.ABILITY_ILF_RESULTING_UNIT_TYPE_ENT1' +---@field ABILITY_ILF_RESULTING_UNIT_TYPE_ENT1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('ent1') +--- +---ABILITY_ILF_CORPSE_UNIT_TYPE 'common.ABILITY_ILF_CORPSE_UNIT_TYPE' +---@field ABILITY_ILF_CORPSE_UNIT_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Gydu') +--- +---ABILITY_ILF_ALLOWED_UNIT_TYPE_LOA1 'common.ABILITY_ILF_ALLOWED_UNIT_TYPE_LOA1' +---@field ABILITY_ILF_ALLOWED_UNIT_TYPE_LOA1 abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Loa1') +--- +---ABILITY_ILF_UNIT_TYPE_FOR_LIMIT_CHECK 'common.ABILITY_ILF_UNIT_TYPE_FOR_LIMIT_CHECK' +---@field ABILITY_ILF_UNIT_TYPE_FOR_LIMIT_CHECK abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Raiu') +--- +---ABILITY_ILF_WARD_UNIT_TYPE_STAU 'common.ABILITY_ILF_WARD_UNIT_TYPE_STAU' +---@field ABILITY_ILF_WARD_UNIT_TYPE_STAU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Stau') +--- +---ABILITY_ILF_EFFECT_ABILITY 'common.ABILITY_ILF_EFFECT_ABILITY' +---@field ABILITY_ILF_EFFECT_ABILITY abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iobu') +--- +---ABILITY_ILF_CONVERSION_UNIT 'common.ABILITY_ILF_CONVERSION_UNIT' +---@field ABILITY_ILF_CONVERSION_UNIT abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ndc2') +--- +---ABILITY_ILF_UNIT_TO_PRESERVE 'common.ABILITY_ILF_UNIT_TO_PRESERVE' +---@field ABILITY_ILF_UNIT_TO_PRESERVE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nsl1') +--- +---ABILITY_ILF_UNIT_TYPE_ALLOWED 'common.ABILITY_ILF_UNIT_TYPE_ALLOWED' +---@field ABILITY_ILF_UNIT_TYPE_ALLOWED abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Chl1') +--- +---ABILITY_ILF_SWARM_UNIT_TYPE 'common.ABILITY_ILF_SWARM_UNIT_TYPE' +---@field ABILITY_ILF_SWARM_UNIT_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Ulsu') +--- +---ABILITY_ILF_RESULTING_UNIT_TYPE_COAU 'common.ABILITY_ILF_RESULTING_UNIT_TYPE_COAU' +---@field ABILITY_ILF_RESULTING_UNIT_TYPE_COAU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('coau') +--- +---ABILITY_ILF_UNIT_TYPE_EXHU 'common.ABILITY_ILF_UNIT_TYPE_EXHU' +---@field ABILITY_ILF_UNIT_TYPE_EXHU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('exhu') +--- +---ABILITY_ILF_WARD_UNIT_TYPE_HWDU 'common.ABILITY_ILF_WARD_UNIT_TYPE_HWDU' +---@field ABILITY_ILF_WARD_UNIT_TYPE_HWDU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('hwdu') +--- +---ABILITY_ILF_LURE_UNIT_TYPE 'common.ABILITY_ILF_LURE_UNIT_TYPE' +---@field ABILITY_ILF_LURE_UNIT_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('imou') +--- +---ABILITY_ILF_UNIT_TYPE_IPMU 'common.ABILITY_ILF_UNIT_TYPE_IPMU' +---@field ABILITY_ILF_UNIT_TYPE_IPMU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('ipmu') +--- +---ABILITY_ILF_FACTORY_UNIT_ID 'common.ABILITY_ILF_FACTORY_UNIT_ID' +---@field ABILITY_ILF_FACTORY_UNIT_ID abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nsyu') +--- +---ABILITY_ILF_SPAWN_UNIT_ID_NFYU 'common.ABILITY_ILF_SPAWN_UNIT_ID_NFYU' +---@field ABILITY_ILF_SPAWN_UNIT_ID_NFYU abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nfyu') +--- +---ABILITY_ILF_DESTRUCTIBLE_ID 'common.ABILITY_ILF_DESTRUCTIBLE_ID' +---@field ABILITY_ILF_DESTRUCTIBLE_ID abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Nvcu') +--- +---ABILITY_ILF_UPGRADE_TYPE 'common.ABILITY_ILF_UPGRADE_TYPE' +---@field ABILITY_ILF_UPGRADE_TYPE abilityintegerlevelfield _ConvertAbilityIntegerLevelField('Iglu') +--- +---ABILITY_RLF_CASTING_TIME 'common.ABILITY_RLF_CASTING_TIME' +---@field ABILITY_RLF_CASTING_TIME abilityreallevelfield _ConvertAbilityRealLevelField('acas') +--- +---ABILITY_RLF_DURATION_NORMAL 'common.ABILITY_RLF_DURATION_NORMAL' +---@field ABILITY_RLF_DURATION_NORMAL abilityreallevelfield _ConvertAbilityRealLevelField('adur') +--- +---ABILITY_RLF_DURATION_HERO 'common.ABILITY_RLF_DURATION_HERO' +---@field ABILITY_RLF_DURATION_HERO abilityreallevelfield _ConvertAbilityRealLevelField('ahdu') +--- +---ABILITY_RLF_COOLDOWN 'common.ABILITY_RLF_COOLDOWN' +---@field ABILITY_RLF_COOLDOWN abilityreallevelfield _ConvertAbilityRealLevelField('acdn') +--- +---ABILITY_RLF_AREA_OF_EFFECT 'common.ABILITY_RLF_AREA_OF_EFFECT' +---@field ABILITY_RLF_AREA_OF_EFFECT abilityreallevelfield _ConvertAbilityRealLevelField('aare') +--- +---ABILITY_RLF_CAST_RANGE 'common.ABILITY_RLF_CAST_RANGE' +---@field ABILITY_RLF_CAST_RANGE abilityreallevelfield _ConvertAbilityRealLevelField('aran') +--- +---ABILITY_RLF_DAMAGE_HBZ2 'common.ABILITY_RLF_DAMAGE_HBZ2' +---@field ABILITY_RLF_DAMAGE_HBZ2 abilityreallevelfield _ConvertAbilityRealLevelField('Hbz2') +--- +---ABILITY_RLF_BUILDING_REDUCTION_HBZ4 'common.ABILITY_RLF_BUILDING_REDUCTION_HBZ4' +---@field ABILITY_RLF_BUILDING_REDUCTION_HBZ4 abilityreallevelfield _ConvertAbilityRealLevelField('Hbz4') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_HBZ5 'common.ABILITY_RLF_DAMAGE_PER_SECOND_HBZ5' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_HBZ5 abilityreallevelfield _ConvertAbilityRealLevelField('Hbz5') +--- +---ABILITY_RLF_MAXIMUM_DAMAGE_PER_WAVE 'common.ABILITY_RLF_MAXIMUM_DAMAGE_PER_WAVE' +---@field ABILITY_RLF_MAXIMUM_DAMAGE_PER_WAVE abilityreallevelfield _ConvertAbilityRealLevelField('Hbz6') +--- +---ABILITY_RLF_MANA_REGENERATION_INCREASE 'common.ABILITY_RLF_MANA_REGENERATION_INCREASE' +---@field ABILITY_RLF_MANA_REGENERATION_INCREASE abilityreallevelfield _ConvertAbilityRealLevelField('Hab1') +--- +---ABILITY_RLF_CASTING_DELAY 'common.ABILITY_RLF_CASTING_DELAY' +---@field ABILITY_RLF_CASTING_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Hmt2') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_OWW1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_OWW1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_OWW1 abilityreallevelfield _ConvertAbilityRealLevelField('Oww1') +--- +---ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_OWW2 'common.ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_OWW2' +---@field ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_OWW2 abilityreallevelfield _ConvertAbilityRealLevelField('Oww2') +--- +---ABILITY_RLF_CHANCE_TO_CRITICAL_STRIKE 'common.ABILITY_RLF_CHANCE_TO_CRITICAL_STRIKE' +---@field ABILITY_RLF_CHANCE_TO_CRITICAL_STRIKE abilityreallevelfield _ConvertAbilityRealLevelField('Ocr1') +--- +---ABILITY_RLF_DAMAGE_MULTIPLIER_OCR2 'common.ABILITY_RLF_DAMAGE_MULTIPLIER_OCR2' +---@field ABILITY_RLF_DAMAGE_MULTIPLIER_OCR2 abilityreallevelfield _ConvertAbilityRealLevelField('Ocr2') +--- +---ABILITY_RLF_DAMAGE_BONUS_OCR3 'common.ABILITY_RLF_DAMAGE_BONUS_OCR3' +---@field ABILITY_RLF_DAMAGE_BONUS_OCR3 abilityreallevelfield _ConvertAbilityRealLevelField('Ocr3') +--- +---ABILITY_RLF_CHANCE_TO_EVADE_OCR4 'common.ABILITY_RLF_CHANCE_TO_EVADE_OCR4' +---@field ABILITY_RLF_CHANCE_TO_EVADE_OCR4 abilityreallevelfield _ConvertAbilityRealLevelField('Ocr4') +--- +---ABILITY_RLF_DAMAGE_DEALT_PERCENT_OMI2 'common.ABILITY_RLF_DAMAGE_DEALT_PERCENT_OMI2' +---@field ABILITY_RLF_DAMAGE_DEALT_PERCENT_OMI2 abilityreallevelfield _ConvertAbilityRealLevelField('Omi2') +--- +---ABILITY_RLF_DAMAGE_TAKEN_PERCENT_OMI3 'common.ABILITY_RLF_DAMAGE_TAKEN_PERCENT_OMI3' +---@field ABILITY_RLF_DAMAGE_TAKEN_PERCENT_OMI3 abilityreallevelfield _ConvertAbilityRealLevelField('Omi3') +--- +---ABILITY_RLF_ANIMATION_DELAY 'common.ABILITY_RLF_ANIMATION_DELAY' +---@field ABILITY_RLF_ANIMATION_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Omi4') +--- +---ABILITY_RLF_TRANSITION_TIME 'common.ABILITY_RLF_TRANSITION_TIME' +---@field ABILITY_RLF_TRANSITION_TIME abilityreallevelfield _ConvertAbilityRealLevelField('Owk1') +--- +---ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_OWK2 'common.ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_OWK2' +---@field ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_OWK2 abilityreallevelfield _ConvertAbilityRealLevelField('Owk2') +--- +---ABILITY_RLF_BACKSTAB_DAMAGE 'common.ABILITY_RLF_BACKSTAB_DAMAGE' +---@field ABILITY_RLF_BACKSTAB_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Owk3') +--- +---ABILITY_RLF_AMOUNT_HEALED_DAMAGED_UDC1 'common.ABILITY_RLF_AMOUNT_HEALED_DAMAGED_UDC1' +---@field ABILITY_RLF_AMOUNT_HEALED_DAMAGED_UDC1 abilityreallevelfield _ConvertAbilityRealLevelField('Udc1') +--- +---ABILITY_RLF_LIFE_CONVERTED_TO_MANA 'common.ABILITY_RLF_LIFE_CONVERTED_TO_MANA' +---@field ABILITY_RLF_LIFE_CONVERTED_TO_MANA abilityreallevelfield _ConvertAbilityRealLevelField('Udp1') +--- +---ABILITY_RLF_LIFE_CONVERTED_TO_LIFE 'common.ABILITY_RLF_LIFE_CONVERTED_TO_LIFE' +---@field ABILITY_RLF_LIFE_CONVERTED_TO_LIFE abilityreallevelfield _ConvertAbilityRealLevelField('Udp2') +--- +---ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_UAU1 'common.ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_UAU1' +---@field ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_UAU1 abilityreallevelfield _ConvertAbilityRealLevelField('Uau1') +--- +---ABILITY_RLF_LIFE_REGENERATION_INCREASE_PERCENT 'common.ABILITY_RLF_LIFE_REGENERATION_INCREASE_PERCENT' +---@field ABILITY_RLF_LIFE_REGENERATION_INCREASE_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Uau2') +--- +---ABILITY_RLF_CHANCE_TO_EVADE_EEV1 'common.ABILITY_RLF_CHANCE_TO_EVADE_EEV1' +---@field ABILITY_RLF_CHANCE_TO_EVADE_EEV1 abilityreallevelfield _ConvertAbilityRealLevelField('Eev1') +--- +---ABILITY_RLF_DAMAGE_PER_INTERVAL 'common.ABILITY_RLF_DAMAGE_PER_INTERVAL' +---@field ABILITY_RLF_DAMAGE_PER_INTERVAL abilityreallevelfield _ConvertAbilityRealLevelField('Eim1') +--- +---ABILITY_RLF_MANA_DRAINED_PER_SECOND_EIM2 'common.ABILITY_RLF_MANA_DRAINED_PER_SECOND_EIM2' +---@field ABILITY_RLF_MANA_DRAINED_PER_SECOND_EIM2 abilityreallevelfield _ConvertAbilityRealLevelField('Eim2') +--- +---ABILITY_RLF_BUFFER_MANA_REQUIRED 'common.ABILITY_RLF_BUFFER_MANA_REQUIRED' +---@field ABILITY_RLF_BUFFER_MANA_REQUIRED abilityreallevelfield _ConvertAbilityRealLevelField('Eim3') +--- +---ABILITY_RLF_MAX_MANA_DRAINED 'common.ABILITY_RLF_MAX_MANA_DRAINED' +---@field ABILITY_RLF_MAX_MANA_DRAINED abilityreallevelfield _ConvertAbilityRealLevelField('Emb1') +--- +---ABILITY_RLF_BOLT_DELAY 'common.ABILITY_RLF_BOLT_DELAY' +---@field ABILITY_RLF_BOLT_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Emb2') +--- +---ABILITY_RLF_BOLT_LIFETIME 'common.ABILITY_RLF_BOLT_LIFETIME' +---@field ABILITY_RLF_BOLT_LIFETIME abilityreallevelfield _ConvertAbilityRealLevelField('Emb3') +--- +---ABILITY_RLF_ALTITUDE_ADJUSTMENT_DURATION 'common.ABILITY_RLF_ALTITUDE_ADJUSTMENT_DURATION' +---@field ABILITY_RLF_ALTITUDE_ADJUSTMENT_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Eme3') +--- +---ABILITY_RLF_LANDING_DELAY_TIME 'common.ABILITY_RLF_LANDING_DELAY_TIME' +---@field ABILITY_RLF_LANDING_DELAY_TIME abilityreallevelfield _ConvertAbilityRealLevelField('Eme4') +--- +---ABILITY_RLF_ALTERNATE_FORM_HIT_POINT_BONUS 'common.ABILITY_RLF_ALTERNATE_FORM_HIT_POINT_BONUS' +---@field ABILITY_RLF_ALTERNATE_FORM_HIT_POINT_BONUS abilityreallevelfield _ConvertAbilityRealLevelField('Eme5') +--- +---ABILITY_RLF_MOVE_SPEED_BONUS_INFO_PANEL_ONLY 'common.ABILITY_RLF_MOVE_SPEED_BONUS_INFO_PANEL_ONLY' +---@field ABILITY_RLF_MOVE_SPEED_BONUS_INFO_PANEL_ONLY abilityreallevelfield _ConvertAbilityRealLevelField('Ncr5') +--- +---ABILITY_RLF_ATTACK_SPEED_BONUS_INFO_PANEL_ONLY 'common.ABILITY_RLF_ATTACK_SPEED_BONUS_INFO_PANEL_ONLY' +---@field ABILITY_RLF_ATTACK_SPEED_BONUS_INFO_PANEL_ONLY abilityreallevelfield _ConvertAbilityRealLevelField('Ncr6') +--- +---ABILITY_RLF_LIFE_REGENERATION_RATE_PER_SECOND 'common.ABILITY_RLF_LIFE_REGENERATION_RATE_PER_SECOND' +---@field ABILITY_RLF_LIFE_REGENERATION_RATE_PER_SECOND abilityreallevelfield _ConvertAbilityRealLevelField('ave5') +--- +---ABILITY_RLF_STUN_DURATION_USL1 'common.ABILITY_RLF_STUN_DURATION_USL1' +---@field ABILITY_RLF_STUN_DURATION_USL1 abilityreallevelfield _ConvertAbilityRealLevelField('Usl1') +--- +---ABILITY_RLF_ATTACK_DAMAGE_STOLEN_PERCENT 'common.ABILITY_RLF_ATTACK_DAMAGE_STOLEN_PERCENT' +---@field ABILITY_RLF_ATTACK_DAMAGE_STOLEN_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Uav1') +--- +---ABILITY_RLF_DAMAGE_UCS1 'common.ABILITY_RLF_DAMAGE_UCS1' +---@field ABILITY_RLF_DAMAGE_UCS1 abilityreallevelfield _ConvertAbilityRealLevelField('Ucs1') +--- +---ABILITY_RLF_MAX_DAMAGE_UCS2 'common.ABILITY_RLF_MAX_DAMAGE_UCS2' +---@field ABILITY_RLF_MAX_DAMAGE_UCS2 abilityreallevelfield _ConvertAbilityRealLevelField('Ucs2') +--- +---ABILITY_RLF_DISTANCE_UCS3 'common.ABILITY_RLF_DISTANCE_UCS3' +---@field ABILITY_RLF_DISTANCE_UCS3 abilityreallevelfield _ConvertAbilityRealLevelField('Ucs3') +--- +---ABILITY_RLF_FINAL_AREA_UCS4 'common.ABILITY_RLF_FINAL_AREA_UCS4' +---@field ABILITY_RLF_FINAL_AREA_UCS4 abilityreallevelfield _ConvertAbilityRealLevelField('Ucs4') +--- +---ABILITY_RLF_DAMAGE_UIN1 'common.ABILITY_RLF_DAMAGE_UIN1' +---@field ABILITY_RLF_DAMAGE_UIN1 abilityreallevelfield _ConvertAbilityRealLevelField('Uin1') +--- +---ABILITY_RLF_DURATION 'common.ABILITY_RLF_DURATION' +---@field ABILITY_RLF_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Uin2') +--- +---ABILITY_RLF_IMPACT_DELAY 'common.ABILITY_RLF_IMPACT_DELAY' +---@field ABILITY_RLF_IMPACT_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Uin3') +--- +---ABILITY_RLF_DAMAGE_PER_TARGET_OCL1 'common.ABILITY_RLF_DAMAGE_PER_TARGET_OCL1' +---@field ABILITY_RLF_DAMAGE_PER_TARGET_OCL1 abilityreallevelfield _ConvertAbilityRealLevelField('Ocl1') +--- +---ABILITY_RLF_DAMAGE_REDUCTION_PER_TARGET 'common.ABILITY_RLF_DAMAGE_REDUCTION_PER_TARGET' +---@field ABILITY_RLF_DAMAGE_REDUCTION_PER_TARGET abilityreallevelfield _ConvertAbilityRealLevelField('Ocl3') +--- +---ABILITY_RLF_EFFECT_DELAY_OEQ1 'common.ABILITY_RLF_EFFECT_DELAY_OEQ1' +---@field ABILITY_RLF_EFFECT_DELAY_OEQ1 abilityreallevelfield _ConvertAbilityRealLevelField('Oeq1') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_TO_BUILDINGS 'common.ABILITY_RLF_DAMAGE_PER_SECOND_TO_BUILDINGS' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_TO_BUILDINGS abilityreallevelfield _ConvertAbilityRealLevelField('Oeq2') +--- +---ABILITY_RLF_UNITS_SLOWED_PERCENT 'common.ABILITY_RLF_UNITS_SLOWED_PERCENT' +---@field ABILITY_RLF_UNITS_SLOWED_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Oeq3') +--- +---ABILITY_RLF_FINAL_AREA_OEQ4 'common.ABILITY_RLF_FINAL_AREA_OEQ4' +---@field ABILITY_RLF_FINAL_AREA_OEQ4 abilityreallevelfield _ConvertAbilityRealLevelField('Oeq4') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_EER1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_EER1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_EER1 abilityreallevelfield _ConvertAbilityRealLevelField('Eer1') +--- +---ABILITY_RLF_DAMAGE_DEALT_TO_ATTACKERS 'common.ABILITY_RLF_DAMAGE_DEALT_TO_ATTACKERS' +---@field ABILITY_RLF_DAMAGE_DEALT_TO_ATTACKERS abilityreallevelfield _ConvertAbilityRealLevelField('Eah1') +--- +---ABILITY_RLF_LIFE_HEALED 'common.ABILITY_RLF_LIFE_HEALED' +---@field ABILITY_RLF_LIFE_HEALED abilityreallevelfield _ConvertAbilityRealLevelField('Etq1') +--- +---ABILITY_RLF_HEAL_INTERVAL 'common.ABILITY_RLF_HEAL_INTERVAL' +---@field ABILITY_RLF_HEAL_INTERVAL abilityreallevelfield _ConvertAbilityRealLevelField('Etq2') +--- +---ABILITY_RLF_BUILDING_REDUCTION_ETQ3 'common.ABILITY_RLF_BUILDING_REDUCTION_ETQ3' +---@field ABILITY_RLF_BUILDING_REDUCTION_ETQ3 abilityreallevelfield _ConvertAbilityRealLevelField('Etq3') +--- +---ABILITY_RLF_INITIAL_IMMUNITY_DURATION 'common.ABILITY_RLF_INITIAL_IMMUNITY_DURATION' +---@field ABILITY_RLF_INITIAL_IMMUNITY_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Etq4') +--- +---ABILITY_RLF_MAX_LIFE_DRAINED_PER_SECOND_PERCENT 'common.ABILITY_RLF_MAX_LIFE_DRAINED_PER_SECOND_PERCENT' +---@field ABILITY_RLF_MAX_LIFE_DRAINED_PER_SECOND_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Udd1') +--- +---ABILITY_RLF_BUILDING_REDUCTION_UDD2 'common.ABILITY_RLF_BUILDING_REDUCTION_UDD2' +---@field ABILITY_RLF_BUILDING_REDUCTION_UDD2 abilityreallevelfield _ConvertAbilityRealLevelField('Udd2') +--- +---ABILITY_RLF_ARMOR_DURATION 'common.ABILITY_RLF_ARMOR_DURATION' +---@field ABILITY_RLF_ARMOR_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Ufa1') +--- +---ABILITY_RLF_ARMOR_BONUS_UFA2 'common.ABILITY_RLF_ARMOR_BONUS_UFA2' +---@field ABILITY_RLF_ARMOR_BONUS_UFA2 abilityreallevelfield _ConvertAbilityRealLevelField('Ufa2') +--- +---ABILITY_RLF_AREA_OF_EFFECT_DAMAGE 'common.ABILITY_RLF_AREA_OF_EFFECT_DAMAGE' +---@field ABILITY_RLF_AREA_OF_EFFECT_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Ufn1') +--- +---ABILITY_RLF_SPECIFIC_TARGET_DAMAGE_UFN2 'common.ABILITY_RLF_SPECIFIC_TARGET_DAMAGE_UFN2' +---@field ABILITY_RLF_SPECIFIC_TARGET_DAMAGE_UFN2 abilityreallevelfield _ConvertAbilityRealLevelField('Ufn2') +--- +---ABILITY_RLF_DAMAGE_BONUS_HFA1 'common.ABILITY_RLF_DAMAGE_BONUS_HFA1' +---@field ABILITY_RLF_DAMAGE_BONUS_HFA1 abilityreallevelfield _ConvertAbilityRealLevelField('Hfa1') +--- +---ABILITY_RLF_DAMAGE_DEALT_ESF1 'common.ABILITY_RLF_DAMAGE_DEALT_ESF1' +---@field ABILITY_RLF_DAMAGE_DEALT_ESF1 abilityreallevelfield _ConvertAbilityRealLevelField('Esf1') +--- +---ABILITY_RLF_DAMAGE_INTERVAL_ESF2 'common.ABILITY_RLF_DAMAGE_INTERVAL_ESF2' +---@field ABILITY_RLF_DAMAGE_INTERVAL_ESF2 abilityreallevelfield _ConvertAbilityRealLevelField('Esf2') +--- +---ABILITY_RLF_BUILDING_REDUCTION_ESF3 'common.ABILITY_RLF_BUILDING_REDUCTION_ESF3' +---@field ABILITY_RLF_BUILDING_REDUCTION_ESF3 abilityreallevelfield _ConvertAbilityRealLevelField('Esf3') +--- +---ABILITY_RLF_DAMAGE_BONUS_PERCENT 'common.ABILITY_RLF_DAMAGE_BONUS_PERCENT' +---@field ABILITY_RLF_DAMAGE_BONUS_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Ear1') +--- +---ABILITY_RLF_DEFENSE_BONUS_HAV1 'common.ABILITY_RLF_DEFENSE_BONUS_HAV1' +---@field ABILITY_RLF_DEFENSE_BONUS_HAV1 abilityreallevelfield _ConvertAbilityRealLevelField('Hav1') +--- +---ABILITY_RLF_HIT_POINT_BONUS 'common.ABILITY_RLF_HIT_POINT_BONUS' +---@field ABILITY_RLF_HIT_POINT_BONUS abilityreallevelfield _ConvertAbilityRealLevelField('Hav2') +--- +---ABILITY_RLF_DAMAGE_BONUS_HAV3 'common.ABILITY_RLF_DAMAGE_BONUS_HAV3' +---@field ABILITY_RLF_DAMAGE_BONUS_HAV3 abilityreallevelfield _ConvertAbilityRealLevelField('Hav3') +--- +---ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_HAV4 'common.ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_HAV4' +---@field ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_HAV4 abilityreallevelfield _ConvertAbilityRealLevelField('Hav4') +--- +---ABILITY_RLF_CHANCE_TO_BASH 'common.ABILITY_RLF_CHANCE_TO_BASH' +---@field ABILITY_RLF_CHANCE_TO_BASH abilityreallevelfield _ConvertAbilityRealLevelField('Hbh1') +--- +---ABILITY_RLF_DAMAGE_MULTIPLIER_HBH2 'common.ABILITY_RLF_DAMAGE_MULTIPLIER_HBH2' +---@field ABILITY_RLF_DAMAGE_MULTIPLIER_HBH2 abilityreallevelfield _ConvertAbilityRealLevelField('Hbh2') +--- +---ABILITY_RLF_DAMAGE_BONUS_HBH3 'common.ABILITY_RLF_DAMAGE_BONUS_HBH3' +---@field ABILITY_RLF_DAMAGE_BONUS_HBH3 abilityreallevelfield _ConvertAbilityRealLevelField('Hbh3') +--- +---ABILITY_RLF_CHANCE_TO_MISS_HBH4 'common.ABILITY_RLF_CHANCE_TO_MISS_HBH4' +---@field ABILITY_RLF_CHANCE_TO_MISS_HBH4 abilityreallevelfield _ConvertAbilityRealLevelField('Hbh4') +--- +---ABILITY_RLF_DAMAGE_HTB1 'common.ABILITY_RLF_DAMAGE_HTB1' +---@field ABILITY_RLF_DAMAGE_HTB1 abilityreallevelfield _ConvertAbilityRealLevelField('Htb1') +--- +---ABILITY_RLF_AOE_DAMAGE 'common.ABILITY_RLF_AOE_DAMAGE' +---@field ABILITY_RLF_AOE_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Htc1') +--- +---ABILITY_RLF_SPECIFIC_TARGET_DAMAGE_HTC2 'common.ABILITY_RLF_SPECIFIC_TARGET_DAMAGE_HTC2' +---@field ABILITY_RLF_SPECIFIC_TARGET_DAMAGE_HTC2 abilityreallevelfield _ConvertAbilityRealLevelField('Htc2') +--- +---ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_HTC3 'common.ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_HTC3' +---@field ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_HTC3 abilityreallevelfield _ConvertAbilityRealLevelField('Htc3') +--- +---ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_HTC4 'common.ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_HTC4' +---@field ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_HTC4 abilityreallevelfield _ConvertAbilityRealLevelField('Htc4') +--- +---ABILITY_RLF_ARMOR_BONUS_HAD1 'common.ABILITY_RLF_ARMOR_BONUS_HAD1' +---@field ABILITY_RLF_ARMOR_BONUS_HAD1 abilityreallevelfield _ConvertAbilityRealLevelField('Had1') +--- +---ABILITY_RLF_AMOUNT_HEALED_DAMAGED_HHB1 'common.ABILITY_RLF_AMOUNT_HEALED_DAMAGED_HHB1' +---@field ABILITY_RLF_AMOUNT_HEALED_DAMAGED_HHB1 abilityreallevelfield _ConvertAbilityRealLevelField('Hhb1') +--- +---ABILITY_RLF_EXTRA_DAMAGE_HCA1 'common.ABILITY_RLF_EXTRA_DAMAGE_HCA1' +---@field ABILITY_RLF_EXTRA_DAMAGE_HCA1 abilityreallevelfield _ConvertAbilityRealLevelField('Hca1') +--- +---ABILITY_RLF_MOVEMENT_SPEED_FACTOR_HCA2 'common.ABILITY_RLF_MOVEMENT_SPEED_FACTOR_HCA2' +---@field ABILITY_RLF_MOVEMENT_SPEED_FACTOR_HCA2 abilityreallevelfield _ConvertAbilityRealLevelField('Hca2') +--- +---ABILITY_RLF_ATTACK_SPEED_FACTOR_HCA3 'common.ABILITY_RLF_ATTACK_SPEED_FACTOR_HCA3' +---@field ABILITY_RLF_ATTACK_SPEED_FACTOR_HCA3 abilityreallevelfield _ConvertAbilityRealLevelField('Hca3') +--- +---ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_OAE1 'common.ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_OAE1' +---@field ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_OAE1 abilityreallevelfield _ConvertAbilityRealLevelField('Oae1') +--- +---ABILITY_RLF_ATTACK_SPEED_INCREASE_PERCENT_OAE2 'common.ABILITY_RLF_ATTACK_SPEED_INCREASE_PERCENT_OAE2' +---@field ABILITY_RLF_ATTACK_SPEED_INCREASE_PERCENT_OAE2 abilityreallevelfield _ConvertAbilityRealLevelField('Oae2') +--- +---ABILITY_RLF_REINCARNATION_DELAY 'common.ABILITY_RLF_REINCARNATION_DELAY' +---@field ABILITY_RLF_REINCARNATION_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Ore1') +--- +---ABILITY_RLF_DAMAGE_OSH1 'common.ABILITY_RLF_DAMAGE_OSH1' +---@field ABILITY_RLF_DAMAGE_OSH1 abilityreallevelfield _ConvertAbilityRealLevelField('Osh1') +--- +---ABILITY_RLF_MAXIMUM_DAMAGE_OSH2 'common.ABILITY_RLF_MAXIMUM_DAMAGE_OSH2' +---@field ABILITY_RLF_MAXIMUM_DAMAGE_OSH2 abilityreallevelfield _ConvertAbilityRealLevelField('Osh2') +--- +---ABILITY_RLF_DISTANCE_OSH3 'common.ABILITY_RLF_DISTANCE_OSH3' +---@field ABILITY_RLF_DISTANCE_OSH3 abilityreallevelfield _ConvertAbilityRealLevelField('Osh3') +--- +---ABILITY_RLF_FINAL_AREA_OSH4 'common.ABILITY_RLF_FINAL_AREA_OSH4' +---@field ABILITY_RLF_FINAL_AREA_OSH4 abilityreallevelfield _ConvertAbilityRealLevelField('Osh4') +--- +---ABILITY_RLF_GRAPHIC_DELAY_NFD1 'common.ABILITY_RLF_GRAPHIC_DELAY_NFD1' +---@field ABILITY_RLF_GRAPHIC_DELAY_NFD1 abilityreallevelfield _ConvertAbilityRealLevelField('Nfd1') +--- +---ABILITY_RLF_GRAPHIC_DURATION_NFD2 'common.ABILITY_RLF_GRAPHIC_DURATION_NFD2' +---@field ABILITY_RLF_GRAPHIC_DURATION_NFD2 abilityreallevelfield _ConvertAbilityRealLevelField('Nfd2') +--- +---ABILITY_RLF_DAMAGE_NFD3 'common.ABILITY_RLF_DAMAGE_NFD3' +---@field ABILITY_RLF_DAMAGE_NFD3 abilityreallevelfield _ConvertAbilityRealLevelField('Nfd3') +--- +---ABILITY_RLF_SUMMONED_UNIT_DAMAGE_AMS1 'common.ABILITY_RLF_SUMMONED_UNIT_DAMAGE_AMS1' +---@field ABILITY_RLF_SUMMONED_UNIT_DAMAGE_AMS1 abilityreallevelfield _ConvertAbilityRealLevelField('Ams1') +--- +---ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_AMS2 'common.ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_AMS2' +---@field ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_AMS2 abilityreallevelfield _ConvertAbilityRealLevelField('Ams2') +--- +---ABILITY_RLF_AURA_DURATION 'common.ABILITY_RLF_AURA_DURATION' +---@field ABILITY_RLF_AURA_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Apl1') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_APL2 'common.ABILITY_RLF_DAMAGE_PER_SECOND_APL2' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_APL2 abilityreallevelfield _ConvertAbilityRealLevelField('Apl2') +--- +---ABILITY_RLF_DURATION_OF_PLAGUE_WARD 'common.ABILITY_RLF_DURATION_OF_PLAGUE_WARD' +---@field ABILITY_RLF_DURATION_OF_PLAGUE_WARD abilityreallevelfield _ConvertAbilityRealLevelField('Apl3') +--- +---ABILITY_RLF_AMOUNT_OF_HIT_POINTS_REGENERATED 'common.ABILITY_RLF_AMOUNT_OF_HIT_POINTS_REGENERATED' +---@field ABILITY_RLF_AMOUNT_OF_HIT_POINTS_REGENERATED abilityreallevelfield _ConvertAbilityRealLevelField('Oar1') +--- +---ABILITY_RLF_ATTACK_DAMAGE_INCREASE_AKB1 'common.ABILITY_RLF_ATTACK_DAMAGE_INCREASE_AKB1' +---@field ABILITY_RLF_ATTACK_DAMAGE_INCREASE_AKB1 abilityreallevelfield _ConvertAbilityRealLevelField('Akb1') +--- +---ABILITY_RLF_MANA_LOSS_ADM1 'common.ABILITY_RLF_MANA_LOSS_ADM1' +---@field ABILITY_RLF_MANA_LOSS_ADM1 abilityreallevelfield _ConvertAbilityRealLevelField('Adm1') +--- +---ABILITY_RLF_SUMMONED_UNIT_DAMAGE_ADM2 'common.ABILITY_RLF_SUMMONED_UNIT_DAMAGE_ADM2' +---@field ABILITY_RLF_SUMMONED_UNIT_DAMAGE_ADM2 abilityreallevelfield _ConvertAbilityRealLevelField('Adm2') +--- +---ABILITY_RLF_EXPANSION_AMOUNT 'common.ABILITY_RLF_EXPANSION_AMOUNT' +---@field ABILITY_RLF_EXPANSION_AMOUNT abilityreallevelfield _ConvertAbilityRealLevelField('Bli1') +--- +---ABILITY_RLF_INTERVAL_DURATION_BGM2 'common.ABILITY_RLF_INTERVAL_DURATION_BGM2' +---@field ABILITY_RLF_INTERVAL_DURATION_BGM2 abilityreallevelfield _ConvertAbilityRealLevelField('Bgm2') +--- +---ABILITY_RLF_RADIUS_OF_MINING_RING 'common.ABILITY_RLF_RADIUS_OF_MINING_RING' +---@field ABILITY_RLF_RADIUS_OF_MINING_RING abilityreallevelfield _ConvertAbilityRealLevelField('Bgm4') +--- +---ABILITY_RLF_ATTACK_SPEED_INCREASE_PERCENT_BLO1 'common.ABILITY_RLF_ATTACK_SPEED_INCREASE_PERCENT_BLO1' +---@field ABILITY_RLF_ATTACK_SPEED_INCREASE_PERCENT_BLO1 abilityreallevelfield _ConvertAbilityRealLevelField('Blo1') +--- +---ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_BLO2 'common.ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_BLO2' +---@field ABILITY_RLF_MOVEMENT_SPEED_INCREASE_PERCENT_BLO2 abilityreallevelfield _ConvertAbilityRealLevelField('Blo2') +--- +---ABILITY_RLF_SCALING_FACTOR 'common.ABILITY_RLF_SCALING_FACTOR' +---@field ABILITY_RLF_SCALING_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Blo3') +--- +---ABILITY_RLF_HIT_POINTS_PER_SECOND_CAN1 'common.ABILITY_RLF_HIT_POINTS_PER_SECOND_CAN1' +---@field ABILITY_RLF_HIT_POINTS_PER_SECOND_CAN1 abilityreallevelfield _ConvertAbilityRealLevelField('Can1') +--- +---ABILITY_RLF_MAX_HIT_POINTS 'common.ABILITY_RLF_MAX_HIT_POINTS' +---@field ABILITY_RLF_MAX_HIT_POINTS abilityreallevelfield _ConvertAbilityRealLevelField('Can2') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_DEV2 'common.ABILITY_RLF_DAMAGE_PER_SECOND_DEV2' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_DEV2 abilityreallevelfield _ConvertAbilityRealLevelField('Dev2') +--- +---ABILITY_RLF_MOVEMENT_UPDATE_FREQUENCY_CHD1 'common.ABILITY_RLF_MOVEMENT_UPDATE_FREQUENCY_CHD1' +---@field ABILITY_RLF_MOVEMENT_UPDATE_FREQUENCY_CHD1 abilityreallevelfield _ConvertAbilityRealLevelField('Chd1') +--- +---ABILITY_RLF_ATTACK_UPDATE_FREQUENCY_CHD2 'common.ABILITY_RLF_ATTACK_UPDATE_FREQUENCY_CHD2' +---@field ABILITY_RLF_ATTACK_UPDATE_FREQUENCY_CHD2 abilityreallevelfield _ConvertAbilityRealLevelField('Chd2') +--- +---ABILITY_RLF_SUMMONED_UNIT_DAMAGE_CHD3 'common.ABILITY_RLF_SUMMONED_UNIT_DAMAGE_CHD3' +---@field ABILITY_RLF_SUMMONED_UNIT_DAMAGE_CHD3 abilityreallevelfield _ConvertAbilityRealLevelField('Chd3') +--- +---ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_CRI1 'common.ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_CRI1' +---@field ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_CRI1 abilityreallevelfield _ConvertAbilityRealLevelField('Cri1') +--- +---ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_CRI2 'common.ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_CRI2' +---@field ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_CRI2 abilityreallevelfield _ConvertAbilityRealLevelField('Cri2') +--- +---ABILITY_RLF_DAMAGE_REDUCTION_CRI3 'common.ABILITY_RLF_DAMAGE_REDUCTION_CRI3' +---@field ABILITY_RLF_DAMAGE_REDUCTION_CRI3 abilityreallevelfield _ConvertAbilityRealLevelField('Cri3') +--- +---ABILITY_RLF_CHANCE_TO_MISS_CRS 'common.ABILITY_RLF_CHANCE_TO_MISS_CRS' +---@field ABILITY_RLF_CHANCE_TO_MISS_CRS abilityreallevelfield _ConvertAbilityRealLevelField('Crs1') +--- +---ABILITY_RLF_FULL_DAMAGE_RADIUS_DDA1 'common.ABILITY_RLF_FULL_DAMAGE_RADIUS_DDA1' +---@field ABILITY_RLF_FULL_DAMAGE_RADIUS_DDA1 abilityreallevelfield _ConvertAbilityRealLevelField('Dda1') +--- +---ABILITY_RLF_FULL_DAMAGE_AMOUNT_DDA2 'common.ABILITY_RLF_FULL_DAMAGE_AMOUNT_DDA2' +---@field ABILITY_RLF_FULL_DAMAGE_AMOUNT_DDA2 abilityreallevelfield _ConvertAbilityRealLevelField('Dda2') +--- +---ABILITY_RLF_PARTIAL_DAMAGE_RADIUS 'common.ABILITY_RLF_PARTIAL_DAMAGE_RADIUS' +---@field ABILITY_RLF_PARTIAL_DAMAGE_RADIUS abilityreallevelfield _ConvertAbilityRealLevelField('Dda3') +--- +---ABILITY_RLF_PARTIAL_DAMAGE_AMOUNT 'common.ABILITY_RLF_PARTIAL_DAMAGE_AMOUNT' +---@field ABILITY_RLF_PARTIAL_DAMAGE_AMOUNT abilityreallevelfield _ConvertAbilityRealLevelField('Dda4') +--- +---ABILITY_RLF_BUILDING_DAMAGE_FACTOR_SDS1 'common.ABILITY_RLF_BUILDING_DAMAGE_FACTOR_SDS1' +---@field ABILITY_RLF_BUILDING_DAMAGE_FACTOR_SDS1 abilityreallevelfield _ConvertAbilityRealLevelField('Sds1') +--- +---ABILITY_RLF_MAX_DAMAGE_UCO5 'common.ABILITY_RLF_MAX_DAMAGE_UCO5' +---@field ABILITY_RLF_MAX_DAMAGE_UCO5 abilityreallevelfield _ConvertAbilityRealLevelField('Uco5') +--- +---ABILITY_RLF_MOVE_SPEED_BONUS_UCO6 'common.ABILITY_RLF_MOVE_SPEED_BONUS_UCO6' +---@field ABILITY_RLF_MOVE_SPEED_BONUS_UCO6 abilityreallevelfield _ConvertAbilityRealLevelField('Uco6') +--- +---ABILITY_RLF_DAMAGE_TAKEN_PERCENT_DEF1 'common.ABILITY_RLF_DAMAGE_TAKEN_PERCENT_DEF1' +---@field ABILITY_RLF_DAMAGE_TAKEN_PERCENT_DEF1 abilityreallevelfield _ConvertAbilityRealLevelField('Def1') +--- +---ABILITY_RLF_DAMAGE_DEALT_PERCENT_DEF2 'common.ABILITY_RLF_DAMAGE_DEALT_PERCENT_DEF2' +---@field ABILITY_RLF_DAMAGE_DEALT_PERCENT_DEF2 abilityreallevelfield _ConvertAbilityRealLevelField('Def2') +--- +---ABILITY_RLF_MOVEMENT_SPEED_FACTOR_DEF3 'common.ABILITY_RLF_MOVEMENT_SPEED_FACTOR_DEF3' +---@field ABILITY_RLF_MOVEMENT_SPEED_FACTOR_DEF3 abilityreallevelfield _ConvertAbilityRealLevelField('Def3') +--- +---ABILITY_RLF_ATTACK_SPEED_FACTOR_DEF4 'common.ABILITY_RLF_ATTACK_SPEED_FACTOR_DEF4' +---@field ABILITY_RLF_ATTACK_SPEED_FACTOR_DEF4 abilityreallevelfield _ConvertAbilityRealLevelField('Def4') +--- +---ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_DEF5 'common.ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_DEF5' +---@field ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_DEF5 abilityreallevelfield _ConvertAbilityRealLevelField('Def5') +--- +---ABILITY_RLF_CHANCE_TO_DEFLECT 'common.ABILITY_RLF_CHANCE_TO_DEFLECT' +---@field ABILITY_RLF_CHANCE_TO_DEFLECT abilityreallevelfield _ConvertAbilityRealLevelField('Def6') +--- +---ABILITY_RLF_DEFLECT_DAMAGE_TAKEN_PIERCING 'common.ABILITY_RLF_DEFLECT_DAMAGE_TAKEN_PIERCING' +---@field ABILITY_RLF_DEFLECT_DAMAGE_TAKEN_PIERCING abilityreallevelfield _ConvertAbilityRealLevelField('Def7') +--- +---ABILITY_RLF_DEFLECT_DAMAGE_TAKEN_SPELLS 'common.ABILITY_RLF_DEFLECT_DAMAGE_TAKEN_SPELLS' +---@field ABILITY_RLF_DEFLECT_DAMAGE_TAKEN_SPELLS abilityreallevelfield _ConvertAbilityRealLevelField('Def8') +--- +---ABILITY_RLF_RIP_DELAY 'common.ABILITY_RLF_RIP_DELAY' +---@field ABILITY_RLF_RIP_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Eat1') +--- +---ABILITY_RLF_EAT_DELAY 'common.ABILITY_RLF_EAT_DELAY' +---@field ABILITY_RLF_EAT_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Eat2') +--- +---ABILITY_RLF_HIT_POINTS_GAINED_EAT3 'common.ABILITY_RLF_HIT_POINTS_GAINED_EAT3' +---@field ABILITY_RLF_HIT_POINTS_GAINED_EAT3 abilityreallevelfield _ConvertAbilityRealLevelField('Eat3') +--- +---ABILITY_RLF_AIR_UNIT_LOWER_DURATION 'common.ABILITY_RLF_AIR_UNIT_LOWER_DURATION' +---@field ABILITY_RLF_AIR_UNIT_LOWER_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Ens1') +--- +---ABILITY_RLF_AIR_UNIT_HEIGHT 'common.ABILITY_RLF_AIR_UNIT_HEIGHT' +---@field ABILITY_RLF_AIR_UNIT_HEIGHT abilityreallevelfield _ConvertAbilityRealLevelField('Ens2') +--- +---ABILITY_RLF_MELEE_ATTACK_RANGE 'common.ABILITY_RLF_MELEE_ATTACK_RANGE' +---@field ABILITY_RLF_MELEE_ATTACK_RANGE abilityreallevelfield _ConvertAbilityRealLevelField('Ens3') +--- +---ABILITY_RLF_INTERVAL_DURATION_EGM2 'common.ABILITY_RLF_INTERVAL_DURATION_EGM2' +---@field ABILITY_RLF_INTERVAL_DURATION_EGM2 abilityreallevelfield _ConvertAbilityRealLevelField('Egm2') +--- +---ABILITY_RLF_EFFECT_DELAY_FLA2 'common.ABILITY_RLF_EFFECT_DELAY_FLA2' +---@field ABILITY_RLF_EFFECT_DELAY_FLA2 abilityreallevelfield _ConvertAbilityRealLevelField('Fla2') +--- +---ABILITY_RLF_MINING_DURATION 'common.ABILITY_RLF_MINING_DURATION' +---@field ABILITY_RLF_MINING_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Gld2') +--- +---ABILITY_RLF_RADIUS_OF_GRAVESTONES 'common.ABILITY_RLF_RADIUS_OF_GRAVESTONES' +---@field ABILITY_RLF_RADIUS_OF_GRAVESTONES abilityreallevelfield _ConvertAbilityRealLevelField('Gyd2') +--- +---ABILITY_RLF_RADIUS_OF_CORPSES 'common.ABILITY_RLF_RADIUS_OF_CORPSES' +---@field ABILITY_RLF_RADIUS_OF_CORPSES abilityreallevelfield _ConvertAbilityRealLevelField('Gyd3') +--- +---ABILITY_RLF_HIT_POINTS_GAINED_HEA1 'common.ABILITY_RLF_HIT_POINTS_GAINED_HEA1' +---@field ABILITY_RLF_HIT_POINTS_GAINED_HEA1 abilityreallevelfield _ConvertAbilityRealLevelField('Hea1') +--- +---ABILITY_RLF_DAMAGE_INCREASE_PERCENT_INF1 'common.ABILITY_RLF_DAMAGE_INCREASE_PERCENT_INF1' +---@field ABILITY_RLF_DAMAGE_INCREASE_PERCENT_INF1 abilityreallevelfield _ConvertAbilityRealLevelField('Inf1') +--- +---ABILITY_RLF_AUTOCAST_RANGE 'common.ABILITY_RLF_AUTOCAST_RANGE' +---@field ABILITY_RLF_AUTOCAST_RANGE abilityreallevelfield _ConvertAbilityRealLevelField('Inf3') +--- +---ABILITY_RLF_LIFE_REGEN_RATE 'common.ABILITY_RLF_LIFE_REGEN_RATE' +---@field ABILITY_RLF_LIFE_REGEN_RATE abilityreallevelfield _ConvertAbilityRealLevelField('Inf4') +--- +---ABILITY_RLF_GRAPHIC_DELAY_LIT1 'common.ABILITY_RLF_GRAPHIC_DELAY_LIT1' +---@field ABILITY_RLF_GRAPHIC_DELAY_LIT1 abilityreallevelfield _ConvertAbilityRealLevelField('Lit1') +--- +---ABILITY_RLF_GRAPHIC_DURATION_LIT2 'common.ABILITY_RLF_GRAPHIC_DURATION_LIT2' +---@field ABILITY_RLF_GRAPHIC_DURATION_LIT2 abilityreallevelfield _ConvertAbilityRealLevelField('Lit2') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_LSH1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_LSH1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_LSH1 abilityreallevelfield _ConvertAbilityRealLevelField('Lsh1') +--- +---ABILITY_RLF_MANA_GAINED 'common.ABILITY_RLF_MANA_GAINED' +---@field ABILITY_RLF_MANA_GAINED abilityreallevelfield _ConvertAbilityRealLevelField('Mbt1') +--- +---ABILITY_RLF_HIT_POINTS_GAINED_MBT2 'common.ABILITY_RLF_HIT_POINTS_GAINED_MBT2' +---@field ABILITY_RLF_HIT_POINTS_GAINED_MBT2 abilityreallevelfield _ConvertAbilityRealLevelField('Mbt2') +--- +---ABILITY_RLF_AUTOCAST_REQUIREMENT 'common.ABILITY_RLF_AUTOCAST_REQUIREMENT' +---@field ABILITY_RLF_AUTOCAST_REQUIREMENT abilityreallevelfield _ConvertAbilityRealLevelField('Mbt3') +--- +---ABILITY_RLF_WATER_HEIGHT 'common.ABILITY_RLF_WATER_HEIGHT' +---@field ABILITY_RLF_WATER_HEIGHT abilityreallevelfield _ConvertAbilityRealLevelField('Mbt4') +--- +---ABILITY_RLF_ACTIVATION_DELAY_MIN1 'common.ABILITY_RLF_ACTIVATION_DELAY_MIN1' +---@field ABILITY_RLF_ACTIVATION_DELAY_MIN1 abilityreallevelfield _ConvertAbilityRealLevelField('Min1') +--- +---ABILITY_RLF_INVISIBILITY_TRANSITION_TIME 'common.ABILITY_RLF_INVISIBILITY_TRANSITION_TIME' +---@field ABILITY_RLF_INVISIBILITY_TRANSITION_TIME abilityreallevelfield _ConvertAbilityRealLevelField('Min2') +--- +---ABILITY_RLF_ACTIVATION_RADIUS 'common.ABILITY_RLF_ACTIVATION_RADIUS' +---@field ABILITY_RLF_ACTIVATION_RADIUS abilityreallevelfield _ConvertAbilityRealLevelField('Neu1') +--- +---ABILITY_RLF_AMOUNT_REGENERATED 'common.ABILITY_RLF_AMOUNT_REGENERATED' +---@field ABILITY_RLF_AMOUNT_REGENERATED abilityreallevelfield _ConvertAbilityRealLevelField('Arm1') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_POI1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_POI1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_POI1 abilityreallevelfield _ConvertAbilityRealLevelField('Poi1') +--- +---ABILITY_RLF_ATTACK_SPEED_FACTOR_POI2 'common.ABILITY_RLF_ATTACK_SPEED_FACTOR_POI2' +---@field ABILITY_RLF_ATTACK_SPEED_FACTOR_POI2 abilityreallevelfield _ConvertAbilityRealLevelField('Poi2') +--- +---ABILITY_RLF_MOVEMENT_SPEED_FACTOR_POI3 'common.ABILITY_RLF_MOVEMENT_SPEED_FACTOR_POI3' +---@field ABILITY_RLF_MOVEMENT_SPEED_FACTOR_POI3 abilityreallevelfield _ConvertAbilityRealLevelField('Poi3') +--- +---ABILITY_RLF_EXTRA_DAMAGE_POA1 'common.ABILITY_RLF_EXTRA_DAMAGE_POA1' +---@field ABILITY_RLF_EXTRA_DAMAGE_POA1 abilityreallevelfield _ConvertAbilityRealLevelField('Poa1') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_POA2 'common.ABILITY_RLF_DAMAGE_PER_SECOND_POA2' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_POA2 abilityreallevelfield _ConvertAbilityRealLevelField('Poa2') +--- +---ABILITY_RLF_ATTACK_SPEED_FACTOR_POA3 'common.ABILITY_RLF_ATTACK_SPEED_FACTOR_POA3' +---@field ABILITY_RLF_ATTACK_SPEED_FACTOR_POA3 abilityreallevelfield _ConvertAbilityRealLevelField('Poa3') +--- +---ABILITY_RLF_MOVEMENT_SPEED_FACTOR_POA4 'common.ABILITY_RLF_MOVEMENT_SPEED_FACTOR_POA4' +---@field ABILITY_RLF_MOVEMENT_SPEED_FACTOR_POA4 abilityreallevelfield _ConvertAbilityRealLevelField('Poa4') +--- +---ABILITY_RLF_DAMAGE_AMPLIFICATION 'common.ABILITY_RLF_DAMAGE_AMPLIFICATION' +---@field ABILITY_RLF_DAMAGE_AMPLIFICATION abilityreallevelfield _ConvertAbilityRealLevelField('Pos2') +--- +---ABILITY_RLF_CHANCE_TO_STOMP_PERCENT 'common.ABILITY_RLF_CHANCE_TO_STOMP_PERCENT' +---@field ABILITY_RLF_CHANCE_TO_STOMP_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('War1') +--- +---ABILITY_RLF_DAMAGE_DEALT_WAR2 'common.ABILITY_RLF_DAMAGE_DEALT_WAR2' +---@field ABILITY_RLF_DAMAGE_DEALT_WAR2 abilityreallevelfield _ConvertAbilityRealLevelField('War2') +--- +---ABILITY_RLF_FULL_DAMAGE_RADIUS_WAR3 'common.ABILITY_RLF_FULL_DAMAGE_RADIUS_WAR3' +---@field ABILITY_RLF_FULL_DAMAGE_RADIUS_WAR3 abilityreallevelfield _ConvertAbilityRealLevelField('War3') +--- +---ABILITY_RLF_HALF_DAMAGE_RADIUS_WAR4 'common.ABILITY_RLF_HALF_DAMAGE_RADIUS_WAR4' +---@field ABILITY_RLF_HALF_DAMAGE_RADIUS_WAR4 abilityreallevelfield _ConvertAbilityRealLevelField('War4') +--- +---ABILITY_RLF_SUMMONED_UNIT_DAMAGE_PRG3 'common.ABILITY_RLF_SUMMONED_UNIT_DAMAGE_PRG3' +---@field ABILITY_RLF_SUMMONED_UNIT_DAMAGE_PRG3 abilityreallevelfield _ConvertAbilityRealLevelField('Prg3') +--- +---ABILITY_RLF_UNIT_PAUSE_DURATION 'common.ABILITY_RLF_UNIT_PAUSE_DURATION' +---@field ABILITY_RLF_UNIT_PAUSE_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Prg4') +--- +---ABILITY_RLF_HERO_PAUSE_DURATION 'common.ABILITY_RLF_HERO_PAUSE_DURATION' +---@field ABILITY_RLF_HERO_PAUSE_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Prg5') +--- +---ABILITY_RLF_HIT_POINTS_GAINED_REJ1 'common.ABILITY_RLF_HIT_POINTS_GAINED_REJ1' +---@field ABILITY_RLF_HIT_POINTS_GAINED_REJ1 abilityreallevelfield _ConvertAbilityRealLevelField('Rej1') +--- +---ABILITY_RLF_MANA_POINTS_GAINED_REJ2 'common.ABILITY_RLF_MANA_POINTS_GAINED_REJ2' +---@field ABILITY_RLF_MANA_POINTS_GAINED_REJ2 abilityreallevelfield _ConvertAbilityRealLevelField('Rej2') +--- +---ABILITY_RLF_MINIMUM_LIFE_REQUIRED 'common.ABILITY_RLF_MINIMUM_LIFE_REQUIRED' +---@field ABILITY_RLF_MINIMUM_LIFE_REQUIRED abilityreallevelfield _ConvertAbilityRealLevelField('Rpb3') +--- +---ABILITY_RLF_MINIMUM_MANA_REQUIRED 'common.ABILITY_RLF_MINIMUM_MANA_REQUIRED' +---@field ABILITY_RLF_MINIMUM_MANA_REQUIRED abilityreallevelfield _ConvertAbilityRealLevelField('Rpb4') +--- +---ABILITY_RLF_REPAIR_COST_RATIO 'common.ABILITY_RLF_REPAIR_COST_RATIO' +---@field ABILITY_RLF_REPAIR_COST_RATIO abilityreallevelfield _ConvertAbilityRealLevelField('Rep1') +--- +---ABILITY_RLF_REPAIR_TIME_RATIO 'common.ABILITY_RLF_REPAIR_TIME_RATIO' +---@field ABILITY_RLF_REPAIR_TIME_RATIO abilityreallevelfield _ConvertAbilityRealLevelField('Rep2') +--- +---ABILITY_RLF_POWERBUILD_COST 'common.ABILITY_RLF_POWERBUILD_COST' +---@field ABILITY_RLF_POWERBUILD_COST abilityreallevelfield _ConvertAbilityRealLevelField('Rep3') +--- +---ABILITY_RLF_POWERBUILD_RATE 'common.ABILITY_RLF_POWERBUILD_RATE' +---@field ABILITY_RLF_POWERBUILD_RATE abilityreallevelfield _ConvertAbilityRealLevelField('Rep4') +--- +---ABILITY_RLF_NAVAL_RANGE_BONUS 'common.ABILITY_RLF_NAVAL_RANGE_BONUS' +---@field ABILITY_RLF_NAVAL_RANGE_BONUS abilityreallevelfield _ConvertAbilityRealLevelField('Rep5') +--- +---ABILITY_RLF_DAMAGE_INCREASE_PERCENT_ROA1 'common.ABILITY_RLF_DAMAGE_INCREASE_PERCENT_ROA1' +---@field ABILITY_RLF_DAMAGE_INCREASE_PERCENT_ROA1 abilityreallevelfield _ConvertAbilityRealLevelField('Roa1') +--- +---ABILITY_RLF_LIFE_REGENERATION_RATE 'common.ABILITY_RLF_LIFE_REGENERATION_RATE' +---@field ABILITY_RLF_LIFE_REGENERATION_RATE abilityreallevelfield _ConvertAbilityRealLevelField('Roa3') +--- +---ABILITY_RLF_MANA_REGEN 'common.ABILITY_RLF_MANA_REGEN' +---@field ABILITY_RLF_MANA_REGEN abilityreallevelfield _ConvertAbilityRealLevelField('Roa4') +--- +---ABILITY_RLF_DAMAGE_INCREASE 'common.ABILITY_RLF_DAMAGE_INCREASE' +---@field ABILITY_RLF_DAMAGE_INCREASE abilityreallevelfield _ConvertAbilityRealLevelField('Nbr1') +--- +---ABILITY_RLF_SALVAGE_COST_RATIO 'common.ABILITY_RLF_SALVAGE_COST_RATIO' +---@field ABILITY_RLF_SALVAGE_COST_RATIO abilityreallevelfield _ConvertAbilityRealLevelField('Sal1') +--- +---ABILITY_RLF_IN_FLIGHT_SIGHT_RADIUS 'common.ABILITY_RLF_IN_FLIGHT_SIGHT_RADIUS' +---@field ABILITY_RLF_IN_FLIGHT_SIGHT_RADIUS abilityreallevelfield _ConvertAbilityRealLevelField('Esn1') +--- +---ABILITY_RLF_HOVERING_SIGHT_RADIUS 'common.ABILITY_RLF_HOVERING_SIGHT_RADIUS' +---@field ABILITY_RLF_HOVERING_SIGHT_RADIUS abilityreallevelfield _ConvertAbilityRealLevelField('Esn2') +--- +---ABILITY_RLF_HOVERING_HEIGHT 'common.ABILITY_RLF_HOVERING_HEIGHT' +---@field ABILITY_RLF_HOVERING_HEIGHT abilityreallevelfield _ConvertAbilityRealLevelField('Esn3') +--- +---ABILITY_RLF_DURATION_OF_OWLS 'common.ABILITY_RLF_DURATION_OF_OWLS' +---@field ABILITY_RLF_DURATION_OF_OWLS abilityreallevelfield _ConvertAbilityRealLevelField('Esn5') +--- +---ABILITY_RLF_FADE_DURATION 'common.ABILITY_RLF_FADE_DURATION' +---@field ABILITY_RLF_FADE_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Shm1') +--- +---ABILITY_RLF_DAY_NIGHT_DURATION 'common.ABILITY_RLF_DAY_NIGHT_DURATION' +---@field ABILITY_RLF_DAY_NIGHT_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Shm2') +--- +---ABILITY_RLF_ACTION_DURATION 'common.ABILITY_RLF_ACTION_DURATION' +---@field ABILITY_RLF_ACTION_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Shm3') +--- +---ABILITY_RLF_MOVEMENT_SPEED_FACTOR_SLO1 'common.ABILITY_RLF_MOVEMENT_SPEED_FACTOR_SLO1' +---@field ABILITY_RLF_MOVEMENT_SPEED_FACTOR_SLO1 abilityreallevelfield _ConvertAbilityRealLevelField('Slo1') +--- +---ABILITY_RLF_ATTACK_SPEED_FACTOR_SLO2 'common.ABILITY_RLF_ATTACK_SPEED_FACTOR_SLO2' +---@field ABILITY_RLF_ATTACK_SPEED_FACTOR_SLO2 abilityreallevelfield _ConvertAbilityRealLevelField('Slo2') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_SPO1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_SPO1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_SPO1 abilityreallevelfield _ConvertAbilityRealLevelField('Spo1') +--- +---ABILITY_RLF_MOVEMENT_SPEED_FACTOR_SPO2 'common.ABILITY_RLF_MOVEMENT_SPEED_FACTOR_SPO2' +---@field ABILITY_RLF_MOVEMENT_SPEED_FACTOR_SPO2 abilityreallevelfield _ConvertAbilityRealLevelField('Spo2') +--- +---ABILITY_RLF_ATTACK_SPEED_FACTOR_SPO3 'common.ABILITY_RLF_ATTACK_SPEED_FACTOR_SPO3' +---@field ABILITY_RLF_ATTACK_SPEED_FACTOR_SPO3 abilityreallevelfield _ConvertAbilityRealLevelField('Spo3') +--- +---ABILITY_RLF_ACTIVATION_DELAY_STA1 'common.ABILITY_RLF_ACTIVATION_DELAY_STA1' +---@field ABILITY_RLF_ACTIVATION_DELAY_STA1 abilityreallevelfield _ConvertAbilityRealLevelField('Sta1') +--- +---ABILITY_RLF_DETECTION_RADIUS_STA2 'common.ABILITY_RLF_DETECTION_RADIUS_STA2' +---@field ABILITY_RLF_DETECTION_RADIUS_STA2 abilityreallevelfield _ConvertAbilityRealLevelField('Sta2') +--- +---ABILITY_RLF_DETONATION_RADIUS 'common.ABILITY_RLF_DETONATION_RADIUS' +---@field ABILITY_RLF_DETONATION_RADIUS abilityreallevelfield _ConvertAbilityRealLevelField('Sta3') +--- +---ABILITY_RLF_STUN_DURATION_STA4 'common.ABILITY_RLF_STUN_DURATION_STA4' +---@field ABILITY_RLF_STUN_DURATION_STA4 abilityreallevelfield _ConvertAbilityRealLevelField('Sta4') +--- +---ABILITY_RLF_ATTACK_SPEED_BONUS_PERCENT 'common.ABILITY_RLF_ATTACK_SPEED_BONUS_PERCENT' +---@field ABILITY_RLF_ATTACK_SPEED_BONUS_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Uhf1') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_UHF2 'common.ABILITY_RLF_DAMAGE_PER_SECOND_UHF2' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_UHF2 abilityreallevelfield _ConvertAbilityRealLevelField('Uhf2') +--- +---ABILITY_RLF_LUMBER_PER_INTERVAL 'common.ABILITY_RLF_LUMBER_PER_INTERVAL' +---@field ABILITY_RLF_LUMBER_PER_INTERVAL abilityreallevelfield _ConvertAbilityRealLevelField('Wha1') +--- +---ABILITY_RLF_ART_ATTACHMENT_HEIGHT 'common.ABILITY_RLF_ART_ATTACHMENT_HEIGHT' +---@field ABILITY_RLF_ART_ATTACHMENT_HEIGHT abilityreallevelfield _ConvertAbilityRealLevelField('Wha3') +--- +---ABILITY_RLF_TELEPORT_AREA_WIDTH 'common.ABILITY_RLF_TELEPORT_AREA_WIDTH' +---@field ABILITY_RLF_TELEPORT_AREA_WIDTH abilityreallevelfield _ConvertAbilityRealLevelField('Wrp1') +--- +---ABILITY_RLF_TELEPORT_AREA_HEIGHT 'common.ABILITY_RLF_TELEPORT_AREA_HEIGHT' +---@field ABILITY_RLF_TELEPORT_AREA_HEIGHT abilityreallevelfield _ConvertAbilityRealLevelField('Wrp2') +--- +---ABILITY_RLF_LIFE_STOLEN_PER_ATTACK 'common.ABILITY_RLF_LIFE_STOLEN_PER_ATTACK' +---@field ABILITY_RLF_LIFE_STOLEN_PER_ATTACK abilityreallevelfield _ConvertAbilityRealLevelField('Ivam') +--- +---ABILITY_RLF_DAMAGE_BONUS_IDAM 'common.ABILITY_RLF_DAMAGE_BONUS_IDAM' +---@field ABILITY_RLF_DAMAGE_BONUS_IDAM abilityreallevelfield _ConvertAbilityRealLevelField('Idam') +--- +---ABILITY_RLF_CHANCE_TO_HIT_UNITS_PERCENT 'common.ABILITY_RLF_CHANCE_TO_HIT_UNITS_PERCENT' +---@field ABILITY_RLF_CHANCE_TO_HIT_UNITS_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Iob2') +--- +---ABILITY_RLF_CHANCE_TO_HIT_HEROS_PERCENT 'common.ABILITY_RLF_CHANCE_TO_HIT_HEROS_PERCENT' +---@field ABILITY_RLF_CHANCE_TO_HIT_HEROS_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Iob3') +--- +---ABILITY_RLF_CHANCE_TO_HIT_SUMMONS_PERCENT 'common.ABILITY_RLF_CHANCE_TO_HIT_SUMMONS_PERCENT' +---@field ABILITY_RLF_CHANCE_TO_HIT_SUMMONS_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Iob4') +--- +---ABILITY_RLF_DELAY_FOR_TARGET_EFFECT 'common.ABILITY_RLF_DELAY_FOR_TARGET_EFFECT' +---@field ABILITY_RLF_DELAY_FOR_TARGET_EFFECT abilityreallevelfield _ConvertAbilityRealLevelField('Idel') +--- +---ABILITY_RLF_DAMAGE_DEALT_PERCENT_OF_NORMAL 'common.ABILITY_RLF_DAMAGE_DEALT_PERCENT_OF_NORMAL' +---@field ABILITY_RLF_DAMAGE_DEALT_PERCENT_OF_NORMAL abilityreallevelfield _ConvertAbilityRealLevelField('Iild') +--- +---ABILITY_RLF_DAMAGE_RECEIVED_MULTIPLIER 'common.ABILITY_RLF_DAMAGE_RECEIVED_MULTIPLIER' +---@field ABILITY_RLF_DAMAGE_RECEIVED_MULTIPLIER abilityreallevelfield _ConvertAbilityRealLevelField('Iilw') +--- +---ABILITY_RLF_MANA_REGENERATION_BONUS_AS_FRACTION_OF_NORMAL 'common.ABILITY_RLF_MANA_REGENERATION_BONUS_AS_FRACTION_OF_NORMAL' +---@field ABILITY_RLF_MANA_REGENERATION_BONUS_AS_FRACTION_OF_NORMAL abilityreallevelfield _ConvertAbilityRealLevelField('Imrp') +--- +---ABILITY_RLF_MOVEMENT_SPEED_INCREASE_ISPI 'common.ABILITY_RLF_MOVEMENT_SPEED_INCREASE_ISPI' +---@field ABILITY_RLF_MOVEMENT_SPEED_INCREASE_ISPI abilityreallevelfield _ConvertAbilityRealLevelField('Ispi') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_IDPS 'common.ABILITY_RLF_DAMAGE_PER_SECOND_IDPS' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_IDPS abilityreallevelfield _ConvertAbilityRealLevelField('Idps') +--- +---ABILITY_RLF_ATTACK_DAMAGE_INCREASE_CAC1 'common.ABILITY_RLF_ATTACK_DAMAGE_INCREASE_CAC1' +---@field ABILITY_RLF_ATTACK_DAMAGE_INCREASE_CAC1 abilityreallevelfield _ConvertAbilityRealLevelField('Cac1') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_COR1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_COR1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_COR1 abilityreallevelfield _ConvertAbilityRealLevelField('Cor1') +--- +---ABILITY_RLF_ATTACK_SPEED_INCREASE_ISX1 'common.ABILITY_RLF_ATTACK_SPEED_INCREASE_ISX1' +---@field ABILITY_RLF_ATTACK_SPEED_INCREASE_ISX1 abilityreallevelfield _ConvertAbilityRealLevelField('Isx1') +--- +---ABILITY_RLF_DAMAGE_WRS1 'common.ABILITY_RLF_DAMAGE_WRS1' +---@field ABILITY_RLF_DAMAGE_WRS1 abilityreallevelfield _ConvertAbilityRealLevelField('Wrs1') +--- +---ABILITY_RLF_TERRAIN_DEFORMATION_AMPLITUDE 'common.ABILITY_RLF_TERRAIN_DEFORMATION_AMPLITUDE' +---@field ABILITY_RLF_TERRAIN_DEFORMATION_AMPLITUDE abilityreallevelfield _ConvertAbilityRealLevelField('Wrs2') +--- +---ABILITY_RLF_DAMAGE_CTC1 'common.ABILITY_RLF_DAMAGE_CTC1' +---@field ABILITY_RLF_DAMAGE_CTC1 abilityreallevelfield _ConvertAbilityRealLevelField('Ctc1') +--- +---ABILITY_RLF_EXTRA_DAMAGE_TO_TARGET 'common.ABILITY_RLF_EXTRA_DAMAGE_TO_TARGET' +---@field ABILITY_RLF_EXTRA_DAMAGE_TO_TARGET abilityreallevelfield _ConvertAbilityRealLevelField('Ctc2') +--- +---ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_CTC3 'common.ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_CTC3' +---@field ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_CTC3 abilityreallevelfield _ConvertAbilityRealLevelField('Ctc3') +--- +---ABILITY_RLF_ATTACK_SPEED_REDUCTION_CTC4 'common.ABILITY_RLF_ATTACK_SPEED_REDUCTION_CTC4' +---@field ABILITY_RLF_ATTACK_SPEED_REDUCTION_CTC4 abilityreallevelfield _ConvertAbilityRealLevelField('Ctc4') +--- +---ABILITY_RLF_DAMAGE_CTB1 'common.ABILITY_RLF_DAMAGE_CTB1' +---@field ABILITY_RLF_DAMAGE_CTB1 abilityreallevelfield _ConvertAbilityRealLevelField('Ctb1') +--- +---ABILITY_RLF_CASTING_DELAY_SECONDS 'common.ABILITY_RLF_CASTING_DELAY_SECONDS' +---@field ABILITY_RLF_CASTING_DELAY_SECONDS abilityreallevelfield _ConvertAbilityRealLevelField('Uds2') +--- +---ABILITY_RLF_MANA_LOSS_PER_UNIT_DTN1 'common.ABILITY_RLF_MANA_LOSS_PER_UNIT_DTN1' +---@field ABILITY_RLF_MANA_LOSS_PER_UNIT_DTN1 abilityreallevelfield _ConvertAbilityRealLevelField('Dtn1') +--- +---ABILITY_RLF_DAMAGE_TO_SUMMONED_UNITS_DTN2 'common.ABILITY_RLF_DAMAGE_TO_SUMMONED_UNITS_DTN2' +---@field ABILITY_RLF_DAMAGE_TO_SUMMONED_UNITS_DTN2 abilityreallevelfield _ConvertAbilityRealLevelField('Dtn2') +--- +---ABILITY_RLF_TRANSITION_TIME_SECONDS 'common.ABILITY_RLF_TRANSITION_TIME_SECONDS' +---@field ABILITY_RLF_TRANSITION_TIME_SECONDS abilityreallevelfield _ConvertAbilityRealLevelField('Ivs1') +--- +---ABILITY_RLF_MANA_DRAINED_PER_SECOND_NMR1 'common.ABILITY_RLF_MANA_DRAINED_PER_SECOND_NMR1' +---@field ABILITY_RLF_MANA_DRAINED_PER_SECOND_NMR1 abilityreallevelfield _ConvertAbilityRealLevelField('Nmr1') +--- +---ABILITY_RLF_CHANCE_TO_REDUCE_DAMAGE_PERCENT 'common.ABILITY_RLF_CHANCE_TO_REDUCE_DAMAGE_PERCENT' +---@field ABILITY_RLF_CHANCE_TO_REDUCE_DAMAGE_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Ssk1') +--- +---ABILITY_RLF_MINIMUM_DAMAGE 'common.ABILITY_RLF_MINIMUM_DAMAGE' +---@field ABILITY_RLF_MINIMUM_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Ssk2') +--- +---ABILITY_RLF_IGNORED_DAMAGE 'common.ABILITY_RLF_IGNORED_DAMAGE' +---@field ABILITY_RLF_IGNORED_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Ssk3') +--- +---ABILITY_RLF_FULL_DAMAGE_DEALT 'common.ABILITY_RLF_FULL_DAMAGE_DEALT' +---@field ABILITY_RLF_FULL_DAMAGE_DEALT abilityreallevelfield _ConvertAbilityRealLevelField('Hfs1') +--- +---ABILITY_RLF_FULL_DAMAGE_INTERVAL 'common.ABILITY_RLF_FULL_DAMAGE_INTERVAL' +---@field ABILITY_RLF_FULL_DAMAGE_INTERVAL abilityreallevelfield _ConvertAbilityRealLevelField('Hfs2') +--- +---ABILITY_RLF_HALF_DAMAGE_DEALT 'common.ABILITY_RLF_HALF_DAMAGE_DEALT' +---@field ABILITY_RLF_HALF_DAMAGE_DEALT abilityreallevelfield _ConvertAbilityRealLevelField('Hfs3') +--- +---ABILITY_RLF_HALF_DAMAGE_INTERVAL 'common.ABILITY_RLF_HALF_DAMAGE_INTERVAL' +---@field ABILITY_RLF_HALF_DAMAGE_INTERVAL abilityreallevelfield _ConvertAbilityRealLevelField('Hfs4') +--- +---ABILITY_RLF_BUILDING_REDUCTION_HFS5 'common.ABILITY_RLF_BUILDING_REDUCTION_HFS5' +---@field ABILITY_RLF_BUILDING_REDUCTION_HFS5 abilityreallevelfield _ConvertAbilityRealLevelField('Hfs5') +--- +---ABILITY_RLF_MAXIMUM_DAMAGE_HFS6 'common.ABILITY_RLF_MAXIMUM_DAMAGE_HFS6' +---@field ABILITY_RLF_MAXIMUM_DAMAGE_HFS6 abilityreallevelfield _ConvertAbilityRealLevelField('Hfs6') +--- +---ABILITY_RLF_MANA_PER_HIT_POINT 'common.ABILITY_RLF_MANA_PER_HIT_POINT' +---@field ABILITY_RLF_MANA_PER_HIT_POINT abilityreallevelfield _ConvertAbilityRealLevelField('Nms1') +--- +---ABILITY_RLF_DAMAGE_ABSORBED_PERCENT 'common.ABILITY_RLF_DAMAGE_ABSORBED_PERCENT' +---@field ABILITY_RLF_DAMAGE_ABSORBED_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Nms2') +--- +---ABILITY_RLF_WAVE_DISTANCE 'common.ABILITY_RLF_WAVE_DISTANCE' +---@field ABILITY_RLF_WAVE_DISTANCE abilityreallevelfield _ConvertAbilityRealLevelField('Uim1') +--- +---ABILITY_RLF_WAVE_TIME_SECONDS 'common.ABILITY_RLF_WAVE_TIME_SECONDS' +---@field ABILITY_RLF_WAVE_TIME_SECONDS abilityreallevelfield _ConvertAbilityRealLevelField('Uim2') +--- +---ABILITY_RLF_DAMAGE_DEALT_UIM3 'common.ABILITY_RLF_DAMAGE_DEALT_UIM3' +---@field ABILITY_RLF_DAMAGE_DEALT_UIM3 abilityreallevelfield _ConvertAbilityRealLevelField('Uim3') +--- +---ABILITY_RLF_AIR_TIME_SECONDS_UIM4 'common.ABILITY_RLF_AIR_TIME_SECONDS_UIM4' +---@field ABILITY_RLF_AIR_TIME_SECONDS_UIM4 abilityreallevelfield _ConvertAbilityRealLevelField('Uim4') +--- +---ABILITY_RLF_UNIT_RELEASE_INTERVAL_SECONDS 'common.ABILITY_RLF_UNIT_RELEASE_INTERVAL_SECONDS' +---@field ABILITY_RLF_UNIT_RELEASE_INTERVAL_SECONDS abilityreallevelfield _ConvertAbilityRealLevelField('Uls2') +--- +---ABILITY_RLF_DAMAGE_RETURN_FACTOR 'common.ABILITY_RLF_DAMAGE_RETURN_FACTOR' +---@field ABILITY_RLF_DAMAGE_RETURN_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Uls4') +--- +---ABILITY_RLF_DAMAGE_RETURN_THRESHOLD 'common.ABILITY_RLF_DAMAGE_RETURN_THRESHOLD' +---@field ABILITY_RLF_DAMAGE_RETURN_THRESHOLD abilityreallevelfield _ConvertAbilityRealLevelField('Uls5') +--- +---ABILITY_RLF_RETURNED_DAMAGE_FACTOR 'common.ABILITY_RLF_RETURNED_DAMAGE_FACTOR' +---@field ABILITY_RLF_RETURNED_DAMAGE_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Uts1') +--- +---ABILITY_RLF_RECEIVED_DAMAGE_FACTOR 'common.ABILITY_RLF_RECEIVED_DAMAGE_FACTOR' +---@field ABILITY_RLF_RECEIVED_DAMAGE_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Uts2') +--- +---ABILITY_RLF_DEFENSE_BONUS_UTS3 'common.ABILITY_RLF_DEFENSE_BONUS_UTS3' +---@field ABILITY_RLF_DEFENSE_BONUS_UTS3 abilityreallevelfield _ConvertAbilityRealLevelField('Uts3') +--- +---ABILITY_RLF_DAMAGE_BONUS_NBA1 'common.ABILITY_RLF_DAMAGE_BONUS_NBA1' +---@field ABILITY_RLF_DAMAGE_BONUS_NBA1 abilityreallevelfield _ConvertAbilityRealLevelField('Nba1') +--- +---ABILITY_RLF_SUMMONED_UNIT_DURATION_SECONDS_NBA3 'common.ABILITY_RLF_SUMMONED_UNIT_DURATION_SECONDS_NBA3' +---@field ABILITY_RLF_SUMMONED_UNIT_DURATION_SECONDS_NBA3 abilityreallevelfield _ConvertAbilityRealLevelField('Nba3') +--- +---ABILITY_RLF_MANA_PER_SUMMONED_HITPOINT 'common.ABILITY_RLF_MANA_PER_SUMMONED_HITPOINT' +---@field ABILITY_RLF_MANA_PER_SUMMONED_HITPOINT abilityreallevelfield _ConvertAbilityRealLevelField('Cmg2') +--- +---ABILITY_RLF_CHARGE_FOR_CURRENT_LIFE 'common.ABILITY_RLF_CHARGE_FOR_CURRENT_LIFE' +---@field ABILITY_RLF_CHARGE_FOR_CURRENT_LIFE abilityreallevelfield _ConvertAbilityRealLevelField('Cmg3') +--- +---ABILITY_RLF_HIT_POINTS_DRAINED 'common.ABILITY_RLF_HIT_POINTS_DRAINED' +---@field ABILITY_RLF_HIT_POINTS_DRAINED abilityreallevelfield _ConvertAbilityRealLevelField('Ndr1') +--- +---ABILITY_RLF_MANA_POINTS_DRAINED 'common.ABILITY_RLF_MANA_POINTS_DRAINED' +---@field ABILITY_RLF_MANA_POINTS_DRAINED abilityreallevelfield _ConvertAbilityRealLevelField('Ndr2') +--- +---ABILITY_RLF_DRAIN_INTERVAL_SECONDS 'common.ABILITY_RLF_DRAIN_INTERVAL_SECONDS' +---@field ABILITY_RLF_DRAIN_INTERVAL_SECONDS abilityreallevelfield _ConvertAbilityRealLevelField('Ndr3') +--- +---ABILITY_RLF_LIFE_TRANSFERRED_PER_SECOND 'common.ABILITY_RLF_LIFE_TRANSFERRED_PER_SECOND' +---@field ABILITY_RLF_LIFE_TRANSFERRED_PER_SECOND abilityreallevelfield _ConvertAbilityRealLevelField('Ndr4') +--- +---ABILITY_RLF_MANA_TRANSFERRED_PER_SECOND 'common.ABILITY_RLF_MANA_TRANSFERRED_PER_SECOND' +---@field ABILITY_RLF_MANA_TRANSFERRED_PER_SECOND abilityreallevelfield _ConvertAbilityRealLevelField('Ndr5') +--- +---ABILITY_RLF_BONUS_LIFE_FACTOR 'common.ABILITY_RLF_BONUS_LIFE_FACTOR' +---@field ABILITY_RLF_BONUS_LIFE_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Ndr6') +--- +---ABILITY_RLF_BONUS_LIFE_DECAY 'common.ABILITY_RLF_BONUS_LIFE_DECAY' +---@field ABILITY_RLF_BONUS_LIFE_DECAY abilityreallevelfield _ConvertAbilityRealLevelField('Ndr7') +--- +---ABILITY_RLF_BONUS_MANA_FACTOR 'common.ABILITY_RLF_BONUS_MANA_FACTOR' +---@field ABILITY_RLF_BONUS_MANA_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Ndr8') +--- +---ABILITY_RLF_BONUS_MANA_DECAY 'common.ABILITY_RLF_BONUS_MANA_DECAY' +---@field ABILITY_RLF_BONUS_MANA_DECAY abilityreallevelfield _ConvertAbilityRealLevelField('Ndr9') +--- +---ABILITY_RLF_CHANCE_TO_MISS_PERCENT 'common.ABILITY_RLF_CHANCE_TO_MISS_PERCENT' +---@field ABILITY_RLF_CHANCE_TO_MISS_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('Nsi2') +--- +---ABILITY_RLF_MOVEMENT_SPEED_MODIFIER 'common.ABILITY_RLF_MOVEMENT_SPEED_MODIFIER' +---@field ABILITY_RLF_MOVEMENT_SPEED_MODIFIER abilityreallevelfield _ConvertAbilityRealLevelField('Nsi3') +--- +---ABILITY_RLF_ATTACK_SPEED_MODIFIER 'common.ABILITY_RLF_ATTACK_SPEED_MODIFIER' +---@field ABILITY_RLF_ATTACK_SPEED_MODIFIER abilityreallevelfield _ConvertAbilityRealLevelField('Nsi4') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_TDG1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_TDG1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_TDG1 abilityreallevelfield _ConvertAbilityRealLevelField('Tdg1') +--- +---ABILITY_RLF_MEDIUM_DAMAGE_RADIUS_TDG2 'common.ABILITY_RLF_MEDIUM_DAMAGE_RADIUS_TDG2' +---@field ABILITY_RLF_MEDIUM_DAMAGE_RADIUS_TDG2 abilityreallevelfield _ConvertAbilityRealLevelField('Tdg2') +--- +---ABILITY_RLF_MEDIUM_DAMAGE_PER_SECOND 'common.ABILITY_RLF_MEDIUM_DAMAGE_PER_SECOND' +---@field ABILITY_RLF_MEDIUM_DAMAGE_PER_SECOND abilityreallevelfield _ConvertAbilityRealLevelField('Tdg3') +--- +---ABILITY_RLF_SMALL_DAMAGE_RADIUS_TDG4 'common.ABILITY_RLF_SMALL_DAMAGE_RADIUS_TDG4' +---@field ABILITY_RLF_SMALL_DAMAGE_RADIUS_TDG4 abilityreallevelfield _ConvertAbilityRealLevelField('Tdg4') +--- +---ABILITY_RLF_SMALL_DAMAGE_PER_SECOND 'common.ABILITY_RLF_SMALL_DAMAGE_PER_SECOND' +---@field ABILITY_RLF_SMALL_DAMAGE_PER_SECOND abilityreallevelfield _ConvertAbilityRealLevelField('Tdg5') +--- +---ABILITY_RLF_AIR_TIME_SECONDS_TSP1 'common.ABILITY_RLF_AIR_TIME_SECONDS_TSP1' +---@field ABILITY_RLF_AIR_TIME_SECONDS_TSP1 abilityreallevelfield _ConvertAbilityRealLevelField('Tsp1') +--- +---ABILITY_RLF_MINIMUM_HIT_INTERVAL_SECONDS 'common.ABILITY_RLF_MINIMUM_HIT_INTERVAL_SECONDS' +---@field ABILITY_RLF_MINIMUM_HIT_INTERVAL_SECONDS abilityreallevelfield _ConvertAbilityRealLevelField('Tsp2') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_NBF5 'common.ABILITY_RLF_DAMAGE_PER_SECOND_NBF5' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_NBF5 abilityreallevelfield _ConvertAbilityRealLevelField('Nbf5') +--- +---ABILITY_RLF_MAXIMUM_RANGE 'common.ABILITY_RLF_MAXIMUM_RANGE' +---@field ABILITY_RLF_MAXIMUM_RANGE abilityreallevelfield _ConvertAbilityRealLevelField('Ebl1') +--- +---ABILITY_RLF_MINIMUM_RANGE 'common.ABILITY_RLF_MINIMUM_RANGE' +---@field ABILITY_RLF_MINIMUM_RANGE abilityreallevelfield _ConvertAbilityRealLevelField('Ebl2') +--- +---ABILITY_RLF_DAMAGE_PER_TARGET_EFK1 'common.ABILITY_RLF_DAMAGE_PER_TARGET_EFK1' +---@field ABILITY_RLF_DAMAGE_PER_TARGET_EFK1 abilityreallevelfield _ConvertAbilityRealLevelField('Efk1') +--- +---ABILITY_RLF_MAXIMUM_TOTAL_DAMAGE 'common.ABILITY_RLF_MAXIMUM_TOTAL_DAMAGE' +---@field ABILITY_RLF_MAXIMUM_TOTAL_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Efk2') +--- +---ABILITY_RLF_MAXIMUM_SPEED_ADJUSTMENT 'common.ABILITY_RLF_MAXIMUM_SPEED_ADJUSTMENT' +---@field ABILITY_RLF_MAXIMUM_SPEED_ADJUSTMENT abilityreallevelfield _ConvertAbilityRealLevelField('Efk4') +--- +---ABILITY_RLF_DECAYING_DAMAGE 'common.ABILITY_RLF_DECAYING_DAMAGE' +---@field ABILITY_RLF_DECAYING_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Esh1') +--- +---ABILITY_RLF_MOVEMENT_SPEED_FACTOR_ESH2 'common.ABILITY_RLF_MOVEMENT_SPEED_FACTOR_ESH2' +---@field ABILITY_RLF_MOVEMENT_SPEED_FACTOR_ESH2 abilityreallevelfield _ConvertAbilityRealLevelField('Esh2') +--- +---ABILITY_RLF_ATTACK_SPEED_FACTOR_ESH3 'common.ABILITY_RLF_ATTACK_SPEED_FACTOR_ESH3' +---@field ABILITY_RLF_ATTACK_SPEED_FACTOR_ESH3 abilityreallevelfield _ConvertAbilityRealLevelField('Esh3') +--- +---ABILITY_RLF_DECAY_POWER 'common.ABILITY_RLF_DECAY_POWER' +---@field ABILITY_RLF_DECAY_POWER abilityreallevelfield _ConvertAbilityRealLevelField('Esh4') +--- +---ABILITY_RLF_INITIAL_DAMAGE_ESH5 'common.ABILITY_RLF_INITIAL_DAMAGE_ESH5' +---@field ABILITY_RLF_INITIAL_DAMAGE_ESH5 abilityreallevelfield _ConvertAbilityRealLevelField('Esh5') +--- +---ABILITY_RLF_MAXIMUM_LIFE_ABSORBED 'common.ABILITY_RLF_MAXIMUM_LIFE_ABSORBED' +---@field ABILITY_RLF_MAXIMUM_LIFE_ABSORBED abilityreallevelfield _ConvertAbilityRealLevelField('abs1') +--- +---ABILITY_RLF_MAXIMUM_MANA_ABSORBED 'common.ABILITY_RLF_MAXIMUM_MANA_ABSORBED' +---@field ABILITY_RLF_MAXIMUM_MANA_ABSORBED abilityreallevelfield _ConvertAbilityRealLevelField('abs2') +--- +---ABILITY_RLF_MOVEMENT_SPEED_INCREASE_BSK1 'common.ABILITY_RLF_MOVEMENT_SPEED_INCREASE_BSK1' +---@field ABILITY_RLF_MOVEMENT_SPEED_INCREASE_BSK1 abilityreallevelfield _ConvertAbilityRealLevelField('bsk1') +--- +---ABILITY_RLF_ATTACK_SPEED_INCREASE_BSK2 'common.ABILITY_RLF_ATTACK_SPEED_INCREASE_BSK2' +---@field ABILITY_RLF_ATTACK_SPEED_INCREASE_BSK2 abilityreallevelfield _ConvertAbilityRealLevelField('bsk2') +--- +---ABILITY_RLF_DAMAGE_TAKEN_INCREASE 'common.ABILITY_RLF_DAMAGE_TAKEN_INCREASE' +---@field ABILITY_RLF_DAMAGE_TAKEN_INCREASE abilityreallevelfield _ConvertAbilityRealLevelField('bsk3') +--- +---ABILITY_RLF_LIFE_PER_UNIT 'common.ABILITY_RLF_LIFE_PER_UNIT' +---@field ABILITY_RLF_LIFE_PER_UNIT abilityreallevelfield _ConvertAbilityRealLevelField('dvm1') +--- +---ABILITY_RLF_MANA_PER_UNIT 'common.ABILITY_RLF_MANA_PER_UNIT' +---@field ABILITY_RLF_MANA_PER_UNIT abilityreallevelfield _ConvertAbilityRealLevelField('dvm2') +--- +---ABILITY_RLF_LIFE_PER_BUFF 'common.ABILITY_RLF_LIFE_PER_BUFF' +---@field ABILITY_RLF_LIFE_PER_BUFF abilityreallevelfield _ConvertAbilityRealLevelField('dvm3') +--- +---ABILITY_RLF_MANA_PER_BUFF 'common.ABILITY_RLF_MANA_PER_BUFF' +---@field ABILITY_RLF_MANA_PER_BUFF abilityreallevelfield _ConvertAbilityRealLevelField('dvm4') +--- +---ABILITY_RLF_SUMMONED_UNIT_DAMAGE_DVM5 'common.ABILITY_RLF_SUMMONED_UNIT_DAMAGE_DVM5' +---@field ABILITY_RLF_SUMMONED_UNIT_DAMAGE_DVM5 abilityreallevelfield _ConvertAbilityRealLevelField('dvm5') +--- +---ABILITY_RLF_DAMAGE_BONUS_FAK1 'common.ABILITY_RLF_DAMAGE_BONUS_FAK1' +---@field ABILITY_RLF_DAMAGE_BONUS_FAK1 abilityreallevelfield _ConvertAbilityRealLevelField('fak1') +--- +---ABILITY_RLF_MEDIUM_DAMAGE_FACTOR_FAK2 'common.ABILITY_RLF_MEDIUM_DAMAGE_FACTOR_FAK2' +---@field ABILITY_RLF_MEDIUM_DAMAGE_FACTOR_FAK2 abilityreallevelfield _ConvertAbilityRealLevelField('fak2') +--- +---ABILITY_RLF_SMALL_DAMAGE_FACTOR_FAK3 'common.ABILITY_RLF_SMALL_DAMAGE_FACTOR_FAK3' +---@field ABILITY_RLF_SMALL_DAMAGE_FACTOR_FAK3 abilityreallevelfield _ConvertAbilityRealLevelField('fak3') +--- +---ABILITY_RLF_FULL_DAMAGE_RADIUS_FAK4 'common.ABILITY_RLF_FULL_DAMAGE_RADIUS_FAK4' +---@field ABILITY_RLF_FULL_DAMAGE_RADIUS_FAK4 abilityreallevelfield _ConvertAbilityRealLevelField('fak4') +--- +---ABILITY_RLF_HALF_DAMAGE_RADIUS_FAK5 'common.ABILITY_RLF_HALF_DAMAGE_RADIUS_FAK5' +---@field ABILITY_RLF_HALF_DAMAGE_RADIUS_FAK5 abilityreallevelfield _ConvertAbilityRealLevelField('fak5') +--- +---ABILITY_RLF_EXTRA_DAMAGE_PER_SECOND 'common.ABILITY_RLF_EXTRA_DAMAGE_PER_SECOND' +---@field ABILITY_RLF_EXTRA_DAMAGE_PER_SECOND abilityreallevelfield _ConvertAbilityRealLevelField('liq1') +--- +---ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_LIQ2 'common.ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_LIQ2' +---@field ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_LIQ2 abilityreallevelfield _ConvertAbilityRealLevelField('liq2') +--- +---ABILITY_RLF_ATTACK_SPEED_REDUCTION_LIQ3 'common.ABILITY_RLF_ATTACK_SPEED_REDUCTION_LIQ3' +---@field ABILITY_RLF_ATTACK_SPEED_REDUCTION_LIQ3 abilityreallevelfield _ConvertAbilityRealLevelField('liq3') +--- +---ABILITY_RLF_MAGIC_DAMAGE_FACTOR 'common.ABILITY_RLF_MAGIC_DAMAGE_FACTOR' +---@field ABILITY_RLF_MAGIC_DAMAGE_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('mim1') +--- +---ABILITY_RLF_UNIT_DAMAGE_PER_MANA_POINT 'common.ABILITY_RLF_UNIT_DAMAGE_PER_MANA_POINT' +---@field ABILITY_RLF_UNIT_DAMAGE_PER_MANA_POINT abilityreallevelfield _ConvertAbilityRealLevelField('mfl1') +--- +---ABILITY_RLF_HERO_DAMAGE_PER_MANA_POINT 'common.ABILITY_RLF_HERO_DAMAGE_PER_MANA_POINT' +---@field ABILITY_RLF_HERO_DAMAGE_PER_MANA_POINT abilityreallevelfield _ConvertAbilityRealLevelField('mfl2') +--- +---ABILITY_RLF_UNIT_MAXIMUM_DAMAGE 'common.ABILITY_RLF_UNIT_MAXIMUM_DAMAGE' +---@field ABILITY_RLF_UNIT_MAXIMUM_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('mfl3') +--- +---ABILITY_RLF_HERO_MAXIMUM_DAMAGE 'common.ABILITY_RLF_HERO_MAXIMUM_DAMAGE' +---@field ABILITY_RLF_HERO_MAXIMUM_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('mfl4') +--- +---ABILITY_RLF_DAMAGE_COOLDOWN 'common.ABILITY_RLF_DAMAGE_COOLDOWN' +---@field ABILITY_RLF_DAMAGE_COOLDOWN abilityreallevelfield _ConvertAbilityRealLevelField('mfl5') +--- +---ABILITY_RLF_DISTRIBUTED_DAMAGE_FACTOR_SPL1 'common.ABILITY_RLF_DISTRIBUTED_DAMAGE_FACTOR_SPL1' +---@field ABILITY_RLF_DISTRIBUTED_DAMAGE_FACTOR_SPL1 abilityreallevelfield _ConvertAbilityRealLevelField('spl1') +--- +---ABILITY_RLF_LIFE_REGENERATED 'common.ABILITY_RLF_LIFE_REGENERATED' +---@field ABILITY_RLF_LIFE_REGENERATED abilityreallevelfield _ConvertAbilityRealLevelField('irl1') +--- +---ABILITY_RLF_MANA_REGENERATED 'common.ABILITY_RLF_MANA_REGENERATED' +---@field ABILITY_RLF_MANA_REGENERATED abilityreallevelfield _ConvertAbilityRealLevelField('irl2') +--- +---ABILITY_RLF_MANA_LOSS_PER_UNIT_IDC1 'common.ABILITY_RLF_MANA_LOSS_PER_UNIT_IDC1' +---@field ABILITY_RLF_MANA_LOSS_PER_UNIT_IDC1 abilityreallevelfield _ConvertAbilityRealLevelField('idc1') +--- +---ABILITY_RLF_SUMMONED_UNIT_DAMAGE_IDC2 'common.ABILITY_RLF_SUMMONED_UNIT_DAMAGE_IDC2' +---@field ABILITY_RLF_SUMMONED_UNIT_DAMAGE_IDC2 abilityreallevelfield _ConvertAbilityRealLevelField('idc2') +--- +---ABILITY_RLF_ACTIVATION_DELAY_IMO2 'common.ABILITY_RLF_ACTIVATION_DELAY_IMO2' +---@field ABILITY_RLF_ACTIVATION_DELAY_IMO2 abilityreallevelfield _ConvertAbilityRealLevelField('imo2') +--- +---ABILITY_RLF_LURE_INTERVAL_SECONDS 'common.ABILITY_RLF_LURE_INTERVAL_SECONDS' +---@field ABILITY_RLF_LURE_INTERVAL_SECONDS abilityreallevelfield _ConvertAbilityRealLevelField('imo3') +--- +---ABILITY_RLF_DAMAGE_BONUS_ISR1 'common.ABILITY_RLF_DAMAGE_BONUS_ISR1' +---@field ABILITY_RLF_DAMAGE_BONUS_ISR1 abilityreallevelfield _ConvertAbilityRealLevelField('isr1') +--- +---ABILITY_RLF_DAMAGE_REDUCTION_ISR2 'common.ABILITY_RLF_DAMAGE_REDUCTION_ISR2' +---@field ABILITY_RLF_DAMAGE_REDUCTION_ISR2 abilityreallevelfield _ConvertAbilityRealLevelField('isr2') +--- +---ABILITY_RLF_DAMAGE_BONUS_IPV1 'common.ABILITY_RLF_DAMAGE_BONUS_IPV1' +---@field ABILITY_RLF_DAMAGE_BONUS_IPV1 abilityreallevelfield _ConvertAbilityRealLevelField('ipv1') +--- +---ABILITY_RLF_LIFE_STEAL_AMOUNT 'common.ABILITY_RLF_LIFE_STEAL_AMOUNT' +---@field ABILITY_RLF_LIFE_STEAL_AMOUNT abilityreallevelfield _ConvertAbilityRealLevelField('ipv2') +--- +---ABILITY_RLF_LIFE_RESTORED_FACTOR 'common.ABILITY_RLF_LIFE_RESTORED_FACTOR' +---@field ABILITY_RLF_LIFE_RESTORED_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('ast1') +--- +---ABILITY_RLF_MANA_RESTORED_FACTOR 'common.ABILITY_RLF_MANA_RESTORED_FACTOR' +---@field ABILITY_RLF_MANA_RESTORED_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('ast2') +--- +---ABILITY_RLF_ATTACH_DELAY 'common.ABILITY_RLF_ATTACH_DELAY' +---@field ABILITY_RLF_ATTACH_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('gra1') +--- +---ABILITY_RLF_REMOVE_DELAY 'common.ABILITY_RLF_REMOVE_DELAY' +---@field ABILITY_RLF_REMOVE_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('gra2') +--- +---ABILITY_RLF_HERO_REGENERATION_DELAY 'common.ABILITY_RLF_HERO_REGENERATION_DELAY' +---@field ABILITY_RLF_HERO_REGENERATION_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Nsa2') +--- +---ABILITY_RLF_UNIT_REGENERATION_DELAY 'common.ABILITY_RLF_UNIT_REGENERATION_DELAY' +---@field ABILITY_RLF_UNIT_REGENERATION_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Nsa3') +--- +---ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_NSA4 'common.ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_NSA4' +---@field ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_NSA4 abilityreallevelfield _ConvertAbilityRealLevelField('Nsa4') +--- +---ABILITY_RLF_HIT_POINTS_PER_SECOND_NSA5 'common.ABILITY_RLF_HIT_POINTS_PER_SECOND_NSA5' +---@field ABILITY_RLF_HIT_POINTS_PER_SECOND_NSA5 abilityreallevelfield _ConvertAbilityRealLevelField('Nsa5') +--- +---ABILITY_RLF_DAMAGE_TO_SUMMONED_UNITS_IXS1 'common.ABILITY_RLF_DAMAGE_TO_SUMMONED_UNITS_IXS1' +---@field ABILITY_RLF_DAMAGE_TO_SUMMONED_UNITS_IXS1 abilityreallevelfield _ConvertAbilityRealLevelField('Ixs1') +--- +---ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_IXS2 'common.ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_IXS2' +---@field ABILITY_RLF_MAGIC_DAMAGE_REDUCTION_IXS2 abilityreallevelfield _ConvertAbilityRealLevelField('Ixs2') +--- +---ABILITY_RLF_SUMMONED_UNIT_DURATION 'common.ABILITY_RLF_SUMMONED_UNIT_DURATION' +---@field ABILITY_RLF_SUMMONED_UNIT_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Npa6') +--- +---ABILITY_RLF_SHIELD_COOLDOWN_TIME 'common.ABILITY_RLF_SHIELD_COOLDOWN_TIME' +---@field ABILITY_RLF_SHIELD_COOLDOWN_TIME abilityreallevelfield _ConvertAbilityRealLevelField('Nse1') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_NDO1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_NDO1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_NDO1 abilityreallevelfield _ConvertAbilityRealLevelField('Ndo1') +--- +---ABILITY_RLF_SUMMONED_UNIT_DURATION_SECONDS_NDO3 'common.ABILITY_RLF_SUMMONED_UNIT_DURATION_SECONDS_NDO3' +---@field ABILITY_RLF_SUMMONED_UNIT_DURATION_SECONDS_NDO3 abilityreallevelfield _ConvertAbilityRealLevelField('Ndo3') +--- +---ABILITY_RLF_MEDIUM_DAMAGE_RADIUS_FLK1 'common.ABILITY_RLF_MEDIUM_DAMAGE_RADIUS_FLK1' +---@field ABILITY_RLF_MEDIUM_DAMAGE_RADIUS_FLK1 abilityreallevelfield _ConvertAbilityRealLevelField('flk1') +--- +---ABILITY_RLF_SMALL_DAMAGE_RADIUS_FLK2 'common.ABILITY_RLF_SMALL_DAMAGE_RADIUS_FLK2' +---@field ABILITY_RLF_SMALL_DAMAGE_RADIUS_FLK2 abilityreallevelfield _ConvertAbilityRealLevelField('flk2') +--- +---ABILITY_RLF_FULL_DAMAGE_AMOUNT_FLK3 'common.ABILITY_RLF_FULL_DAMAGE_AMOUNT_FLK3' +---@field ABILITY_RLF_FULL_DAMAGE_AMOUNT_FLK3 abilityreallevelfield _ConvertAbilityRealLevelField('flk3') +--- +---ABILITY_RLF_MEDIUM_DAMAGE_AMOUNT 'common.ABILITY_RLF_MEDIUM_DAMAGE_AMOUNT' +---@field ABILITY_RLF_MEDIUM_DAMAGE_AMOUNT abilityreallevelfield _ConvertAbilityRealLevelField('flk4') +--- +---ABILITY_RLF_SMALL_DAMAGE_AMOUNT 'common.ABILITY_RLF_SMALL_DAMAGE_AMOUNT' +---@field ABILITY_RLF_SMALL_DAMAGE_AMOUNT abilityreallevelfield _ConvertAbilityRealLevelField('flk5') +--- +---ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_HBN1 'common.ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_HBN1' +---@field ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_HBN1 abilityreallevelfield _ConvertAbilityRealLevelField('Hbn1') +--- +---ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_HBN2 'common.ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_HBN2' +---@field ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_HBN2 abilityreallevelfield _ConvertAbilityRealLevelField('Hbn2') +--- +---ABILITY_RLF_MAX_MANA_DRAINED_UNITS 'common.ABILITY_RLF_MAX_MANA_DRAINED_UNITS' +---@field ABILITY_RLF_MAX_MANA_DRAINED_UNITS abilityreallevelfield _ConvertAbilityRealLevelField('fbk1') +--- +---ABILITY_RLF_DAMAGE_RATIO_UNITS_PERCENT 'common.ABILITY_RLF_DAMAGE_RATIO_UNITS_PERCENT' +---@field ABILITY_RLF_DAMAGE_RATIO_UNITS_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('fbk2') +--- +---ABILITY_RLF_MAX_MANA_DRAINED_HEROS 'common.ABILITY_RLF_MAX_MANA_DRAINED_HEROS' +---@field ABILITY_RLF_MAX_MANA_DRAINED_HEROS abilityreallevelfield _ConvertAbilityRealLevelField('fbk3') +--- +---ABILITY_RLF_DAMAGE_RATIO_HEROS_PERCENT 'common.ABILITY_RLF_DAMAGE_RATIO_HEROS_PERCENT' +---@field ABILITY_RLF_DAMAGE_RATIO_HEROS_PERCENT abilityreallevelfield _ConvertAbilityRealLevelField('fbk4') +--- +---ABILITY_RLF_SUMMONED_DAMAGE 'common.ABILITY_RLF_SUMMONED_DAMAGE' +---@field ABILITY_RLF_SUMMONED_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('fbk5') +--- +---ABILITY_RLF_DISTRIBUTED_DAMAGE_FACTOR_NCA1 'common.ABILITY_RLF_DISTRIBUTED_DAMAGE_FACTOR_NCA1' +---@field ABILITY_RLF_DISTRIBUTED_DAMAGE_FACTOR_NCA1 abilityreallevelfield _ConvertAbilityRealLevelField('nca1') +--- +---ABILITY_RLF_INITIAL_DAMAGE_PXF1 'common.ABILITY_RLF_INITIAL_DAMAGE_PXF1' +---@field ABILITY_RLF_INITIAL_DAMAGE_PXF1 abilityreallevelfield _ConvertAbilityRealLevelField('pxf1') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_PXF2 'common.ABILITY_RLF_DAMAGE_PER_SECOND_PXF2' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_PXF2 abilityreallevelfield _ConvertAbilityRealLevelField('pxf2') +--- +---ABILITY_RLF_DAMAGE_PER_SECOND_MLS1 'common.ABILITY_RLF_DAMAGE_PER_SECOND_MLS1' +---@field ABILITY_RLF_DAMAGE_PER_SECOND_MLS1 abilityreallevelfield _ConvertAbilityRealLevelField('mls1') +--- +---ABILITY_RLF_BEAST_COLLISION_RADIUS 'common.ABILITY_RLF_BEAST_COLLISION_RADIUS' +---@field ABILITY_RLF_BEAST_COLLISION_RADIUS abilityreallevelfield _ConvertAbilityRealLevelField('Nst2') +--- +---ABILITY_RLF_DAMAGE_AMOUNT_NST3 'common.ABILITY_RLF_DAMAGE_AMOUNT_NST3' +---@field ABILITY_RLF_DAMAGE_AMOUNT_NST3 abilityreallevelfield _ConvertAbilityRealLevelField('Nst3') +--- +---ABILITY_RLF_DAMAGE_RADIUS 'common.ABILITY_RLF_DAMAGE_RADIUS' +---@field ABILITY_RLF_DAMAGE_RADIUS abilityreallevelfield _ConvertAbilityRealLevelField('Nst4') +--- +---ABILITY_RLF_DAMAGE_DELAY 'common.ABILITY_RLF_DAMAGE_DELAY' +---@field ABILITY_RLF_DAMAGE_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Nst5') +--- +---ABILITY_RLF_FOLLOW_THROUGH_TIME 'common.ABILITY_RLF_FOLLOW_THROUGH_TIME' +---@field ABILITY_RLF_FOLLOW_THROUGH_TIME abilityreallevelfield _ConvertAbilityRealLevelField('Ncl1') +--- +---ABILITY_RLF_ART_DURATION 'common.ABILITY_RLF_ART_DURATION' +---@field ABILITY_RLF_ART_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Ncl4') +--- +---ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_NAB1 'common.ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_NAB1' +---@field ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_NAB1 abilityreallevelfield _ConvertAbilityRealLevelField('Nab1') +--- +---ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_NAB2 'common.ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_NAB2' +---@field ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_NAB2 abilityreallevelfield _ConvertAbilityRealLevelField('Nab2') +--- +---ABILITY_RLF_PRIMARY_DAMAGE 'common.ABILITY_RLF_PRIMARY_DAMAGE' +---@field ABILITY_RLF_PRIMARY_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Nab4') +--- +---ABILITY_RLF_SECONDARY_DAMAGE 'common.ABILITY_RLF_SECONDARY_DAMAGE' +---@field ABILITY_RLF_SECONDARY_DAMAGE abilityreallevelfield _ConvertAbilityRealLevelField('Nab5') +--- +---ABILITY_RLF_DAMAGE_INTERVAL_NAB6 'common.ABILITY_RLF_DAMAGE_INTERVAL_NAB6' +---@field ABILITY_RLF_DAMAGE_INTERVAL_NAB6 abilityreallevelfield _ConvertAbilityRealLevelField('Nab6') +--- +---ABILITY_RLF_GOLD_COST_FACTOR 'common.ABILITY_RLF_GOLD_COST_FACTOR' +---@field ABILITY_RLF_GOLD_COST_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Ntm1') +--- +---ABILITY_RLF_LUMBER_COST_FACTOR 'common.ABILITY_RLF_LUMBER_COST_FACTOR' +---@field ABILITY_RLF_LUMBER_COST_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Ntm2') +--- +---ABILITY_RLF_MOVE_SPEED_BONUS_NEG1 'common.ABILITY_RLF_MOVE_SPEED_BONUS_NEG1' +---@field ABILITY_RLF_MOVE_SPEED_BONUS_NEG1 abilityreallevelfield _ConvertAbilityRealLevelField('Neg1') +--- +---ABILITY_RLF_DAMAGE_BONUS_NEG2 'common.ABILITY_RLF_DAMAGE_BONUS_NEG2' +---@field ABILITY_RLF_DAMAGE_BONUS_NEG2 abilityreallevelfield _ConvertAbilityRealLevelField('Neg2') +--- +---ABILITY_RLF_DAMAGE_AMOUNT_NCS1 'common.ABILITY_RLF_DAMAGE_AMOUNT_NCS1' +---@field ABILITY_RLF_DAMAGE_AMOUNT_NCS1 abilityreallevelfield _ConvertAbilityRealLevelField('Ncs1') +--- +---ABILITY_RLF_DAMAGE_INTERVAL_NCS2 'common.ABILITY_RLF_DAMAGE_INTERVAL_NCS2' +---@field ABILITY_RLF_DAMAGE_INTERVAL_NCS2 abilityreallevelfield _ConvertAbilityRealLevelField('Ncs2') +--- +---ABILITY_RLF_MAX_DAMAGE_NCS4 'common.ABILITY_RLF_MAX_DAMAGE_NCS4' +---@field ABILITY_RLF_MAX_DAMAGE_NCS4 abilityreallevelfield _ConvertAbilityRealLevelField('Ncs4') +--- +---ABILITY_RLF_BUILDING_DAMAGE_FACTOR_NCS5 'common.ABILITY_RLF_BUILDING_DAMAGE_FACTOR_NCS5' +---@field ABILITY_RLF_BUILDING_DAMAGE_FACTOR_NCS5 abilityreallevelfield _ConvertAbilityRealLevelField('Ncs5') +--- +---ABILITY_RLF_EFFECT_DURATION 'common.ABILITY_RLF_EFFECT_DURATION' +---@field ABILITY_RLF_EFFECT_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Ncs6') +--- +---ABILITY_RLF_SPAWN_INTERVAL_NSY1 'common.ABILITY_RLF_SPAWN_INTERVAL_NSY1' +---@field ABILITY_RLF_SPAWN_INTERVAL_NSY1 abilityreallevelfield _ConvertAbilityRealLevelField('Nsy1') +--- +---ABILITY_RLF_SPAWN_UNIT_DURATION 'common.ABILITY_RLF_SPAWN_UNIT_DURATION' +---@field ABILITY_RLF_SPAWN_UNIT_DURATION abilityreallevelfield _ConvertAbilityRealLevelField('Nsy3') +--- +---ABILITY_RLF_SPAWN_UNIT_OFFSET 'common.ABILITY_RLF_SPAWN_UNIT_OFFSET' +---@field ABILITY_RLF_SPAWN_UNIT_OFFSET abilityreallevelfield _ConvertAbilityRealLevelField('Nsy4') +--- +---ABILITY_RLF_LEASH_RANGE_NSY5 'common.ABILITY_RLF_LEASH_RANGE_NSY5' +---@field ABILITY_RLF_LEASH_RANGE_NSY5 abilityreallevelfield _ConvertAbilityRealLevelField('Nsy5') +--- +---ABILITY_RLF_SPAWN_INTERVAL_NFY1 'common.ABILITY_RLF_SPAWN_INTERVAL_NFY1' +---@field ABILITY_RLF_SPAWN_INTERVAL_NFY1 abilityreallevelfield _ConvertAbilityRealLevelField('Nfy1') +--- +---ABILITY_RLF_LEASH_RANGE_NFY2 'common.ABILITY_RLF_LEASH_RANGE_NFY2' +---@field ABILITY_RLF_LEASH_RANGE_NFY2 abilityreallevelfield _ConvertAbilityRealLevelField('Nfy2') +--- +---ABILITY_RLF_CHANCE_TO_DEMOLISH 'common.ABILITY_RLF_CHANCE_TO_DEMOLISH' +---@field ABILITY_RLF_CHANCE_TO_DEMOLISH abilityreallevelfield _ConvertAbilityRealLevelField('Nde1') +--- +---ABILITY_RLF_DAMAGE_MULTIPLIER_BUILDINGS 'common.ABILITY_RLF_DAMAGE_MULTIPLIER_BUILDINGS' +---@field ABILITY_RLF_DAMAGE_MULTIPLIER_BUILDINGS abilityreallevelfield _ConvertAbilityRealLevelField('Nde2') +--- +---ABILITY_RLF_DAMAGE_MULTIPLIER_UNITS 'common.ABILITY_RLF_DAMAGE_MULTIPLIER_UNITS' +---@field ABILITY_RLF_DAMAGE_MULTIPLIER_UNITS abilityreallevelfield _ConvertAbilityRealLevelField('Nde3') +--- +---ABILITY_RLF_DAMAGE_MULTIPLIER_HEROES 'common.ABILITY_RLF_DAMAGE_MULTIPLIER_HEROES' +---@field ABILITY_RLF_DAMAGE_MULTIPLIER_HEROES abilityreallevelfield _ConvertAbilityRealLevelField('Nde4') +--- +---ABILITY_RLF_BONUS_DAMAGE_MULTIPLIER 'common.ABILITY_RLF_BONUS_DAMAGE_MULTIPLIER' +---@field ABILITY_RLF_BONUS_DAMAGE_MULTIPLIER abilityreallevelfield _ConvertAbilityRealLevelField('Nic1') +--- +---ABILITY_RLF_DEATH_DAMAGE_FULL_AMOUNT 'common.ABILITY_RLF_DEATH_DAMAGE_FULL_AMOUNT' +---@field ABILITY_RLF_DEATH_DAMAGE_FULL_AMOUNT abilityreallevelfield _ConvertAbilityRealLevelField('Nic2') +--- +---ABILITY_RLF_DEATH_DAMAGE_FULL_AREA 'common.ABILITY_RLF_DEATH_DAMAGE_FULL_AREA' +---@field ABILITY_RLF_DEATH_DAMAGE_FULL_AREA abilityreallevelfield _ConvertAbilityRealLevelField('Nic3') +--- +---ABILITY_RLF_DEATH_DAMAGE_HALF_AMOUNT 'common.ABILITY_RLF_DEATH_DAMAGE_HALF_AMOUNT' +---@field ABILITY_RLF_DEATH_DAMAGE_HALF_AMOUNT abilityreallevelfield _ConvertAbilityRealLevelField('Nic4') +--- +---ABILITY_RLF_DEATH_DAMAGE_HALF_AREA 'common.ABILITY_RLF_DEATH_DAMAGE_HALF_AREA' +---@field ABILITY_RLF_DEATH_DAMAGE_HALF_AREA abilityreallevelfield _ConvertAbilityRealLevelField('Nic5') +--- +---ABILITY_RLF_DEATH_DAMAGE_DELAY 'common.ABILITY_RLF_DEATH_DAMAGE_DELAY' +---@field ABILITY_RLF_DEATH_DAMAGE_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Nic6') +--- +---ABILITY_RLF_DAMAGE_AMOUNT_NSO1 'common.ABILITY_RLF_DAMAGE_AMOUNT_NSO1' +---@field ABILITY_RLF_DAMAGE_AMOUNT_NSO1 abilityreallevelfield _ConvertAbilityRealLevelField('Nso1') +--- +---ABILITY_RLF_DAMAGE_PERIOD 'common.ABILITY_RLF_DAMAGE_PERIOD' +---@field ABILITY_RLF_DAMAGE_PERIOD abilityreallevelfield _ConvertAbilityRealLevelField('Nso2') +--- +---ABILITY_RLF_DAMAGE_PENALTY 'common.ABILITY_RLF_DAMAGE_PENALTY' +---@field ABILITY_RLF_DAMAGE_PENALTY abilityreallevelfield _ConvertAbilityRealLevelField('Nso3') +--- +---ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_NSO4 'common.ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_NSO4' +---@field ABILITY_RLF_MOVEMENT_SPEED_REDUCTION_PERCENT_NSO4 abilityreallevelfield _ConvertAbilityRealLevelField('Nso4') +--- +---ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_NSO5 'common.ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_NSO5' +---@field ABILITY_RLF_ATTACK_SPEED_REDUCTION_PERCENT_NSO5 abilityreallevelfield _ConvertAbilityRealLevelField('Nso5') +--- +---ABILITY_RLF_SPLIT_DELAY 'common.ABILITY_RLF_SPLIT_DELAY' +---@field ABILITY_RLF_SPLIT_DELAY abilityreallevelfield _ConvertAbilityRealLevelField('Nlm2') +--- +---ABILITY_RLF_MAX_HITPOINT_FACTOR 'common.ABILITY_RLF_MAX_HITPOINT_FACTOR' +---@field ABILITY_RLF_MAX_HITPOINT_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Nlm4') +--- +---ABILITY_RLF_LIFE_DURATION_SPLIT_BONUS 'common.ABILITY_RLF_LIFE_DURATION_SPLIT_BONUS' +---@field ABILITY_RLF_LIFE_DURATION_SPLIT_BONUS abilityreallevelfield _ConvertAbilityRealLevelField('Nlm5') +--- +---ABILITY_RLF_WAVE_INTERVAL 'common.ABILITY_RLF_WAVE_INTERVAL' +---@field ABILITY_RLF_WAVE_INTERVAL abilityreallevelfield _ConvertAbilityRealLevelField('Nvc3') +--- +---ABILITY_RLF_BUILDING_DAMAGE_FACTOR_NVC4 'common.ABILITY_RLF_BUILDING_DAMAGE_FACTOR_NVC4' +---@field ABILITY_RLF_BUILDING_DAMAGE_FACTOR_NVC4 abilityreallevelfield _ConvertAbilityRealLevelField('Nvc4') +--- +---ABILITY_RLF_FULL_DAMAGE_AMOUNT_NVC5 'common.ABILITY_RLF_FULL_DAMAGE_AMOUNT_NVC5' +---@field ABILITY_RLF_FULL_DAMAGE_AMOUNT_NVC5 abilityreallevelfield _ConvertAbilityRealLevelField('Nvc5') +--- +---ABILITY_RLF_HALF_DAMAGE_FACTOR 'common.ABILITY_RLF_HALF_DAMAGE_FACTOR' +---@field ABILITY_RLF_HALF_DAMAGE_FACTOR abilityreallevelfield _ConvertAbilityRealLevelField('Nvc6') +--- +---ABILITY_RLF_INTERVAL_BETWEEN_PULSES 'common.ABILITY_RLF_INTERVAL_BETWEEN_PULSES' +---@field ABILITY_RLF_INTERVAL_BETWEEN_PULSES abilityreallevelfield _ConvertAbilityRealLevelField('Tau5') +--- +---ABILITY_BLF_PERCENT_BONUS_HAB2 'common.ABILITY_BLF_PERCENT_BONUS_HAB2' +---@field ABILITY_BLF_PERCENT_BONUS_HAB2 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Hab2') +--- +---ABILITY_BLF_USE_TELEPORT_CLUSTERING_HMT3 'common.ABILITY_BLF_USE_TELEPORT_CLUSTERING_HMT3' +---@field ABILITY_BLF_USE_TELEPORT_CLUSTERING_HMT3 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Hmt3') +--- +---ABILITY_BLF_NEVER_MISS_OCR5 'common.ABILITY_BLF_NEVER_MISS_OCR5' +---@field ABILITY_BLF_NEVER_MISS_OCR5 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ocr5') +--- +---ABILITY_BLF_EXCLUDE_ITEM_DAMAGE 'common.ABILITY_BLF_EXCLUDE_ITEM_DAMAGE' +---@field ABILITY_BLF_EXCLUDE_ITEM_DAMAGE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ocr6') +--- +---ABILITY_BLF_BACKSTAB_DAMAGE 'common.ABILITY_BLF_BACKSTAB_DAMAGE' +---@field ABILITY_BLF_BACKSTAB_DAMAGE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Owk4') +--- +---ABILITY_BLF_INHERIT_UPGRADES_UAN3 'common.ABILITY_BLF_INHERIT_UPGRADES_UAN3' +---@field ABILITY_BLF_INHERIT_UPGRADES_UAN3 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Uan3') +--- +---ABILITY_BLF_MANA_CONVERSION_AS_PERCENT 'common.ABILITY_BLF_MANA_CONVERSION_AS_PERCENT' +---@field ABILITY_BLF_MANA_CONVERSION_AS_PERCENT abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Udp3') +--- +---ABILITY_BLF_LIFE_CONVERSION_AS_PERCENT 'common.ABILITY_BLF_LIFE_CONVERSION_AS_PERCENT' +---@field ABILITY_BLF_LIFE_CONVERSION_AS_PERCENT abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Udp4') +--- +---ABILITY_BLF_LEAVE_TARGET_ALIVE 'common.ABILITY_BLF_LEAVE_TARGET_ALIVE' +---@field ABILITY_BLF_LEAVE_TARGET_ALIVE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Udp5') +--- +---ABILITY_BLF_PERCENT_BONUS_UAU3 'common.ABILITY_BLF_PERCENT_BONUS_UAU3' +---@field ABILITY_BLF_PERCENT_BONUS_UAU3 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Uau3') +--- +---ABILITY_BLF_DAMAGE_IS_PERCENT_RECEIVED 'common.ABILITY_BLF_DAMAGE_IS_PERCENT_RECEIVED' +---@field ABILITY_BLF_DAMAGE_IS_PERCENT_RECEIVED abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Eah2') +--- +---ABILITY_BLF_MELEE_BONUS 'common.ABILITY_BLF_MELEE_BONUS' +---@field ABILITY_BLF_MELEE_BONUS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ear2') +--- +---ABILITY_BLF_RANGED_BONUS 'common.ABILITY_BLF_RANGED_BONUS' +---@field ABILITY_BLF_RANGED_BONUS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ear3') +--- +---ABILITY_BLF_FLAT_BONUS 'common.ABILITY_BLF_FLAT_BONUS' +---@field ABILITY_BLF_FLAT_BONUS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ear4') +--- +---ABILITY_BLF_NEVER_MISS_HBH5 'common.ABILITY_BLF_NEVER_MISS_HBH5' +---@field ABILITY_BLF_NEVER_MISS_HBH5 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Hbh5') +--- +---ABILITY_BLF_PERCENT_BONUS_HAD2 'common.ABILITY_BLF_PERCENT_BONUS_HAD2' +---@field ABILITY_BLF_PERCENT_BONUS_HAD2 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Had2') +--- +---ABILITY_BLF_CAN_DEACTIVATE 'common.ABILITY_BLF_CAN_DEACTIVATE' +---@field ABILITY_BLF_CAN_DEACTIVATE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Hds1') +--- +---ABILITY_BLF_RAISED_UNITS_ARE_INVULNERABLE 'common.ABILITY_BLF_RAISED_UNITS_ARE_INVULNERABLE' +---@field ABILITY_BLF_RAISED_UNITS_ARE_INVULNERABLE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Hre2') +--- +---ABILITY_BLF_PERCENTAGE_OAR2 'common.ABILITY_BLF_PERCENTAGE_OAR2' +---@field ABILITY_BLF_PERCENTAGE_OAR2 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Oar2') +--- +---ABILITY_BLF_SUMMON_BUSY_UNITS 'common.ABILITY_BLF_SUMMON_BUSY_UNITS' +---@field ABILITY_BLF_SUMMON_BUSY_UNITS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Btl2') +--- +---ABILITY_BLF_CREATES_BLIGHT 'common.ABILITY_BLF_CREATES_BLIGHT' +---@field ABILITY_BLF_CREATES_BLIGHT abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Bli2') +--- +---ABILITY_BLF_EXPLODES_ON_DEATH 'common.ABILITY_BLF_EXPLODES_ON_DEATH' +---@field ABILITY_BLF_EXPLODES_ON_DEATH abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Sds6') +--- +---ABILITY_BLF_ALWAYS_AUTOCAST_FAE2 'common.ABILITY_BLF_ALWAYS_AUTOCAST_FAE2' +---@field ABILITY_BLF_ALWAYS_AUTOCAST_FAE2 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Fae2') +--- +---ABILITY_BLF_REGENERATE_ONLY_AT_NIGHT 'common.ABILITY_BLF_REGENERATE_ONLY_AT_NIGHT' +---@field ABILITY_BLF_REGENERATE_ONLY_AT_NIGHT abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Mbt5') +--- +---ABILITY_BLF_SHOW_SELECT_UNIT_BUTTON 'common.ABILITY_BLF_SHOW_SELECT_UNIT_BUTTON' +---@field ABILITY_BLF_SHOW_SELECT_UNIT_BUTTON abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Neu3') +--- +---ABILITY_BLF_SHOW_UNIT_INDICATOR 'common.ABILITY_BLF_SHOW_UNIT_INDICATOR' +---@field ABILITY_BLF_SHOW_UNIT_INDICATOR abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Neu4') +--- +---ABILITY_BLF_CHARGE_OWNING_PLAYER 'common.ABILITY_BLF_CHARGE_OWNING_PLAYER' +---@field ABILITY_BLF_CHARGE_OWNING_PLAYER abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ans6') +--- +---ABILITY_BLF_PERCENTAGE_ARM2 'common.ABILITY_BLF_PERCENTAGE_ARM2' +---@field ABILITY_BLF_PERCENTAGE_ARM2 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Arm2') +--- +---ABILITY_BLF_TARGET_IS_INVULNERABLE 'common.ABILITY_BLF_TARGET_IS_INVULNERABLE' +---@field ABILITY_BLF_TARGET_IS_INVULNERABLE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Pos3') +--- +---ABILITY_BLF_TARGET_IS_MAGIC_IMMUNE 'common.ABILITY_BLF_TARGET_IS_MAGIC_IMMUNE' +---@field ABILITY_BLF_TARGET_IS_MAGIC_IMMUNE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Pos4') +--- +---ABILITY_BLF_KILL_ON_CASTER_DEATH 'common.ABILITY_BLF_KILL_ON_CASTER_DEATH' +---@field ABILITY_BLF_KILL_ON_CASTER_DEATH abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ucb6') +--- +---ABILITY_BLF_NO_TARGET_REQUIRED_REJ4 'common.ABILITY_BLF_NO_TARGET_REQUIRED_REJ4' +---@field ABILITY_BLF_NO_TARGET_REQUIRED_REJ4 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Rej4') +--- +---ABILITY_BLF_ACCEPTS_GOLD 'common.ABILITY_BLF_ACCEPTS_GOLD' +---@field ABILITY_BLF_ACCEPTS_GOLD abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Rtn1') +--- +---ABILITY_BLF_ACCEPTS_LUMBER 'common.ABILITY_BLF_ACCEPTS_LUMBER' +---@field ABILITY_BLF_ACCEPTS_LUMBER abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Rtn2') +--- +---ABILITY_BLF_PREFER_HOSTILES_ROA5 'common.ABILITY_BLF_PREFER_HOSTILES_ROA5' +---@field ABILITY_BLF_PREFER_HOSTILES_ROA5 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Roa5') +--- +---ABILITY_BLF_PREFER_FRIENDLIES_ROA6 'common.ABILITY_BLF_PREFER_FRIENDLIES_ROA6' +---@field ABILITY_BLF_PREFER_FRIENDLIES_ROA6 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Roa6') +--- +---ABILITY_BLF_ROOTED_TURNING 'common.ABILITY_BLF_ROOTED_TURNING' +---@field ABILITY_BLF_ROOTED_TURNING abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Roo3') +--- +---ABILITY_BLF_ALWAYS_AUTOCAST_SLO3 'common.ABILITY_BLF_ALWAYS_AUTOCAST_SLO3' +---@field ABILITY_BLF_ALWAYS_AUTOCAST_SLO3 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Slo3') +--- +---ABILITY_BLF_HIDE_BUTTON 'common.ABILITY_BLF_HIDE_BUTTON' +---@field ABILITY_BLF_HIDE_BUTTON abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ihid') +--- +---ABILITY_BLF_USE_TELEPORT_CLUSTERING_ITP2 'common.ABILITY_BLF_USE_TELEPORT_CLUSTERING_ITP2' +---@field ABILITY_BLF_USE_TELEPORT_CLUSTERING_ITP2 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Itp2') +--- +---ABILITY_BLF_IMMUNE_TO_MORPH_EFFECTS 'common.ABILITY_BLF_IMMUNE_TO_MORPH_EFFECTS' +---@field ABILITY_BLF_IMMUNE_TO_MORPH_EFFECTS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Eth1') +--- +---ABILITY_BLF_DOES_NOT_BLOCK_BUILDINGS 'common.ABILITY_BLF_DOES_NOT_BLOCK_BUILDINGS' +---@field ABILITY_BLF_DOES_NOT_BLOCK_BUILDINGS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Eth2') +--- +---ABILITY_BLF_AUTO_ACQUIRE_ATTACK_TARGETS 'common.ABILITY_BLF_AUTO_ACQUIRE_ATTACK_TARGETS' +---@field ABILITY_BLF_AUTO_ACQUIRE_ATTACK_TARGETS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Gho1') +--- +---ABILITY_BLF_IMMUNE_TO_MORPH_EFFECTS_GHO2 'common.ABILITY_BLF_IMMUNE_TO_MORPH_EFFECTS_GHO2' +---@field ABILITY_BLF_IMMUNE_TO_MORPH_EFFECTS_GHO2 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Gho2') +--- +---ABILITY_BLF_DO_NOT_BLOCK_BUILDINGS 'common.ABILITY_BLF_DO_NOT_BLOCK_BUILDINGS' +---@field ABILITY_BLF_DO_NOT_BLOCK_BUILDINGS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Gho3') +--- +---ABILITY_BLF_INCLUDE_RANGED_DAMAGE 'common.ABILITY_BLF_INCLUDE_RANGED_DAMAGE' +---@field ABILITY_BLF_INCLUDE_RANGED_DAMAGE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ssk4') +--- +---ABILITY_BLF_INCLUDE_MELEE_DAMAGE 'common.ABILITY_BLF_INCLUDE_MELEE_DAMAGE' +---@field ABILITY_BLF_INCLUDE_MELEE_DAMAGE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ssk5') +--- +---ABILITY_BLF_MOVE_TO_PARTNER 'common.ABILITY_BLF_MOVE_TO_PARTNER' +---@field ABILITY_BLF_MOVE_TO_PARTNER abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('coa2') +--- +---ABILITY_BLF_CAN_BE_DISPELLED 'common.ABILITY_BLF_CAN_BE_DISPELLED' +---@field ABILITY_BLF_CAN_BE_DISPELLED abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('cyc1') +--- +---ABILITY_BLF_IGNORE_FRIENDLY_BUFFS 'common.ABILITY_BLF_IGNORE_FRIENDLY_BUFFS' +---@field ABILITY_BLF_IGNORE_FRIENDLY_BUFFS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('dvm6') +--- +---ABILITY_BLF_DROP_ITEMS_ON_DEATH 'common.ABILITY_BLF_DROP_ITEMS_ON_DEATH' +---@field ABILITY_BLF_DROP_ITEMS_ON_DEATH abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('inv2') +--- +---ABILITY_BLF_CAN_USE_ITEMS 'common.ABILITY_BLF_CAN_USE_ITEMS' +---@field ABILITY_BLF_CAN_USE_ITEMS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('inv3') +--- +---ABILITY_BLF_CAN_GET_ITEMS 'common.ABILITY_BLF_CAN_GET_ITEMS' +---@field ABILITY_BLF_CAN_GET_ITEMS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('inv4') +--- +---ABILITY_BLF_CAN_DROP_ITEMS 'common.ABILITY_BLF_CAN_DROP_ITEMS' +---@field ABILITY_BLF_CAN_DROP_ITEMS abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('inv5') +--- +---ABILITY_BLF_REPAIRS_ALLOWED 'common.ABILITY_BLF_REPAIRS_ALLOWED' +---@field ABILITY_BLF_REPAIRS_ALLOWED abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('liq4') +--- +---ABILITY_BLF_CASTER_ONLY_SPLASH 'common.ABILITY_BLF_CASTER_ONLY_SPLASH' +---@field ABILITY_BLF_CASTER_ONLY_SPLASH abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('mfl6') +--- +---ABILITY_BLF_NO_TARGET_REQUIRED_IRL4 'common.ABILITY_BLF_NO_TARGET_REQUIRED_IRL4' +---@field ABILITY_BLF_NO_TARGET_REQUIRED_IRL4 abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('irl4') +--- +---ABILITY_BLF_DISPEL_ON_ATTACK 'common.ABILITY_BLF_DISPEL_ON_ATTACK' +---@field ABILITY_BLF_DISPEL_ON_ATTACK abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('irl5') +--- +---ABILITY_BLF_AMOUNT_IS_RAW_VALUE 'common.ABILITY_BLF_AMOUNT_IS_RAW_VALUE' +---@field ABILITY_BLF_AMOUNT_IS_RAW_VALUE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('ipv3') +--- +---ABILITY_BLF_SHARED_SPELL_COOLDOWN 'common.ABILITY_BLF_SHARED_SPELL_COOLDOWN' +---@field ABILITY_BLF_SHARED_SPELL_COOLDOWN abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('spb2') +--- +---ABILITY_BLF_SLEEP_ONCE 'common.ABILITY_BLF_SLEEP_ONCE' +---@field ABILITY_BLF_SLEEP_ONCE abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('sla1') +--- +---ABILITY_BLF_ALLOW_ON_ANY_PLAYER_SLOT 'common.ABILITY_BLF_ALLOW_ON_ANY_PLAYER_SLOT' +---@field ABILITY_BLF_ALLOW_ON_ANY_PLAYER_SLOT abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('sla2') +--- +---ABILITY_BLF_DISABLE_OTHER_ABILITIES 'common.ABILITY_BLF_DISABLE_OTHER_ABILITIES' +---@field ABILITY_BLF_DISABLE_OTHER_ABILITIES abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ncl5') +--- +---ABILITY_BLF_ALLOW_BOUNTY 'common.ABILITY_BLF_ALLOW_BOUNTY' +---@field ABILITY_BLF_ALLOW_BOUNTY abilitybooleanlevelfield _ConvertAbilityBooleanLevelField('Ntm4') +--- +---ABILITY_SLF_ICON_NORMAL 'common.ABILITY_SLF_ICON_NORMAL' +---@field ABILITY_SLF_ICON_NORMAL abilitystringlevelfield _ConvertAbilityStringLevelField('aart') +--- +---ABILITY_SLF_CASTER 'common.ABILITY_SLF_CASTER' +---@field ABILITY_SLF_CASTER abilitystringlevelfield _ConvertAbilityStringLevelField('acat') +--- +---ABILITY_SLF_TARGET 'common.ABILITY_SLF_TARGET' +---@field ABILITY_SLF_TARGET abilitystringlevelfield _ConvertAbilityStringLevelField('atat') +--- +---ABILITY_SLF_SPECIAL 'common.ABILITY_SLF_SPECIAL' +---@field ABILITY_SLF_SPECIAL abilitystringlevelfield _ConvertAbilityStringLevelField('asat') +--- +---ABILITY_SLF_EFFECT 'common.ABILITY_SLF_EFFECT' +---@field ABILITY_SLF_EFFECT abilitystringlevelfield _ConvertAbilityStringLevelField('aeat') +--- +---ABILITY_SLF_AREA_EFFECT 'common.ABILITY_SLF_AREA_EFFECT' +---@field ABILITY_SLF_AREA_EFFECT abilitystringlevelfield _ConvertAbilityStringLevelField('aaea') +--- +---ABILITY_SLF_LIGHTNING_EFFECTS 'common.ABILITY_SLF_LIGHTNING_EFFECTS' +---@field ABILITY_SLF_LIGHTNING_EFFECTS abilitystringlevelfield _ConvertAbilityStringLevelField('alig') +--- +---ABILITY_SLF_MISSILE_ART 'common.ABILITY_SLF_MISSILE_ART' +---@field ABILITY_SLF_MISSILE_ART abilitystringlevelfield _ConvertAbilityStringLevelField('amat') +--- +---ABILITY_SLF_TOOLTIP_LEARN 'common.ABILITY_SLF_TOOLTIP_LEARN' +---@field ABILITY_SLF_TOOLTIP_LEARN abilitystringlevelfield _ConvertAbilityStringLevelField('aret') +--- +---ABILITY_SLF_TOOLTIP_LEARN_EXTENDED 'common.ABILITY_SLF_TOOLTIP_LEARN_EXTENDED' +---@field ABILITY_SLF_TOOLTIP_LEARN_EXTENDED abilitystringlevelfield _ConvertAbilityStringLevelField('arut') +--- +---ABILITY_SLF_TOOLTIP_NORMAL 'common.ABILITY_SLF_TOOLTIP_NORMAL' +---@field ABILITY_SLF_TOOLTIP_NORMAL abilitystringlevelfield _ConvertAbilityStringLevelField('atp1') +--- +---ABILITY_SLF_TOOLTIP_TURN_OFF 'common.ABILITY_SLF_TOOLTIP_TURN_OFF' +---@field ABILITY_SLF_TOOLTIP_TURN_OFF abilitystringlevelfield _ConvertAbilityStringLevelField('aut1') +--- +---ABILITY_SLF_TOOLTIP_NORMAL_EXTENDED 'common.ABILITY_SLF_TOOLTIP_NORMAL_EXTENDED' +---@field ABILITY_SLF_TOOLTIP_NORMAL_EXTENDED abilitystringlevelfield _ConvertAbilityStringLevelField('aub1') +--- +---ABILITY_SLF_TOOLTIP_TURN_OFF_EXTENDED 'common.ABILITY_SLF_TOOLTIP_TURN_OFF_EXTENDED' +---@field ABILITY_SLF_TOOLTIP_TURN_OFF_EXTENDED abilitystringlevelfield _ConvertAbilityStringLevelField('auu1') +--- +---ABILITY_SLF_NORMAL_FORM_UNIT_EME1 'common.ABILITY_SLF_NORMAL_FORM_UNIT_EME1' +---@field ABILITY_SLF_NORMAL_FORM_UNIT_EME1 abilitystringlevelfield _ConvertAbilityStringLevelField('Eme1') +--- +---ABILITY_SLF_SPAWNED_UNITS 'common.ABILITY_SLF_SPAWNED_UNITS' +---@field ABILITY_SLF_SPAWNED_UNITS abilitystringlevelfield _ConvertAbilityStringLevelField('Ndp1') +--- +---ABILITY_SLF_ABILITY_FOR_UNIT_CREATION 'common.ABILITY_SLF_ABILITY_FOR_UNIT_CREATION' +---@field ABILITY_SLF_ABILITY_FOR_UNIT_CREATION abilitystringlevelfield _ConvertAbilityStringLevelField('Nrc1') +--- +---ABILITY_SLF_NORMAL_FORM_UNIT_MIL1 'common.ABILITY_SLF_NORMAL_FORM_UNIT_MIL1' +---@field ABILITY_SLF_NORMAL_FORM_UNIT_MIL1 abilitystringlevelfield _ConvertAbilityStringLevelField('Mil1') +--- +---ABILITY_SLF_ALTERNATE_FORM_UNIT_MIL2 'common.ABILITY_SLF_ALTERNATE_FORM_UNIT_MIL2' +---@field ABILITY_SLF_ALTERNATE_FORM_UNIT_MIL2 abilitystringlevelfield _ConvertAbilityStringLevelField('Mil2') +--- +---ABILITY_SLF_BASE_ORDER_ID_ANS5 'common.ABILITY_SLF_BASE_ORDER_ID_ANS5' +---@field ABILITY_SLF_BASE_ORDER_ID_ANS5 abilitystringlevelfield _ConvertAbilityStringLevelField('Ans5') +--- +---ABILITY_SLF_MORPH_UNITS_GROUND 'common.ABILITY_SLF_MORPH_UNITS_GROUND' +---@field ABILITY_SLF_MORPH_UNITS_GROUND abilitystringlevelfield _ConvertAbilityStringLevelField('Ply2') +--- +---ABILITY_SLF_MORPH_UNITS_AIR 'common.ABILITY_SLF_MORPH_UNITS_AIR' +---@field ABILITY_SLF_MORPH_UNITS_AIR abilitystringlevelfield _ConvertAbilityStringLevelField('Ply3') +--- +---ABILITY_SLF_MORPH_UNITS_AMPHIBIOUS 'common.ABILITY_SLF_MORPH_UNITS_AMPHIBIOUS' +---@field ABILITY_SLF_MORPH_UNITS_AMPHIBIOUS abilitystringlevelfield _ConvertAbilityStringLevelField('Ply4') +--- +---ABILITY_SLF_MORPH_UNITS_WATER 'common.ABILITY_SLF_MORPH_UNITS_WATER' +---@field ABILITY_SLF_MORPH_UNITS_WATER abilitystringlevelfield _ConvertAbilityStringLevelField('Ply5') +--- +---ABILITY_SLF_UNIT_TYPE_ONE 'common.ABILITY_SLF_UNIT_TYPE_ONE' +---@field ABILITY_SLF_UNIT_TYPE_ONE abilitystringlevelfield _ConvertAbilityStringLevelField('Rai3') +--- +---ABILITY_SLF_UNIT_TYPE_TWO 'common.ABILITY_SLF_UNIT_TYPE_TWO' +---@field ABILITY_SLF_UNIT_TYPE_TWO abilitystringlevelfield _ConvertAbilityStringLevelField('Rai4') +--- +---ABILITY_SLF_UNIT_TYPE_SOD2 'common.ABILITY_SLF_UNIT_TYPE_SOD2' +---@field ABILITY_SLF_UNIT_TYPE_SOD2 abilitystringlevelfield _ConvertAbilityStringLevelField('Sod2') +--- +---ABILITY_SLF_SUMMON_1_UNIT_TYPE 'common.ABILITY_SLF_SUMMON_1_UNIT_TYPE' +---@field ABILITY_SLF_SUMMON_1_UNIT_TYPE abilitystringlevelfield _ConvertAbilityStringLevelField('Ist1') +--- +---ABILITY_SLF_SUMMON_2_UNIT_TYPE 'common.ABILITY_SLF_SUMMON_2_UNIT_TYPE' +---@field ABILITY_SLF_SUMMON_2_UNIT_TYPE abilitystringlevelfield _ConvertAbilityStringLevelField('Ist2') +--- +---ABILITY_SLF_RACE_TO_CONVERT 'common.ABILITY_SLF_RACE_TO_CONVERT' +---@field ABILITY_SLF_RACE_TO_CONVERT abilitystringlevelfield _ConvertAbilityStringLevelField('Ndc1') +--- +---ABILITY_SLF_PARTNER_UNIT_TYPE 'common.ABILITY_SLF_PARTNER_UNIT_TYPE' +---@field ABILITY_SLF_PARTNER_UNIT_TYPE abilitystringlevelfield _ConvertAbilityStringLevelField('coa1') +--- +---ABILITY_SLF_PARTNER_UNIT_TYPE_ONE 'common.ABILITY_SLF_PARTNER_UNIT_TYPE_ONE' +---@field ABILITY_SLF_PARTNER_UNIT_TYPE_ONE abilitystringlevelfield _ConvertAbilityStringLevelField('dcp1') +--- +---ABILITY_SLF_PARTNER_UNIT_TYPE_TWO 'common.ABILITY_SLF_PARTNER_UNIT_TYPE_TWO' +---@field ABILITY_SLF_PARTNER_UNIT_TYPE_TWO abilitystringlevelfield _ConvertAbilityStringLevelField('dcp2') +--- +---ABILITY_SLF_REQUIRED_UNIT_TYPE 'common.ABILITY_SLF_REQUIRED_UNIT_TYPE' +---@field ABILITY_SLF_REQUIRED_UNIT_TYPE abilitystringlevelfield _ConvertAbilityStringLevelField('tpi1') +--- +---ABILITY_SLF_CONVERTED_UNIT_TYPE 'common.ABILITY_SLF_CONVERTED_UNIT_TYPE' +---@field ABILITY_SLF_CONVERTED_UNIT_TYPE abilitystringlevelfield _ConvertAbilityStringLevelField('tpi2') +--- +---ABILITY_SLF_SPELL_LIST 'common.ABILITY_SLF_SPELL_LIST' +---@field ABILITY_SLF_SPELL_LIST abilitystringlevelfield _ConvertAbilityStringLevelField('spb1') +--- +---ABILITY_SLF_BASE_ORDER_ID_SPB5 'common.ABILITY_SLF_BASE_ORDER_ID_SPB5' +---@field ABILITY_SLF_BASE_ORDER_ID_SPB5 abilitystringlevelfield _ConvertAbilityStringLevelField('spb5') +--- +---ABILITY_SLF_BASE_ORDER_ID_NCL6 'common.ABILITY_SLF_BASE_ORDER_ID_NCL6' +---@field ABILITY_SLF_BASE_ORDER_ID_NCL6 abilitystringlevelfield _ConvertAbilityStringLevelField('Ncl6') +--- +---ABILITY_SLF_ABILITY_UPGRADE_1 'common.ABILITY_SLF_ABILITY_UPGRADE_1' +---@field ABILITY_SLF_ABILITY_UPGRADE_1 abilitystringlevelfield _ConvertAbilityStringLevelField('Neg3') +--- +---ABILITY_SLF_ABILITY_UPGRADE_2 'common.ABILITY_SLF_ABILITY_UPGRADE_2' +---@field ABILITY_SLF_ABILITY_UPGRADE_2 abilitystringlevelfield _ConvertAbilityStringLevelField('Neg4') +--- +---ABILITY_SLF_ABILITY_UPGRADE_3 'common.ABILITY_SLF_ABILITY_UPGRADE_3' +---@field ABILITY_SLF_ABILITY_UPGRADE_3 abilitystringlevelfield _ConvertAbilityStringLevelField('Neg5') +--- +---ABILITY_SLF_ABILITY_UPGRADE_4 'common.ABILITY_SLF_ABILITY_UPGRADE_4' +---@field ABILITY_SLF_ABILITY_UPGRADE_4 abilitystringlevelfield _ConvertAbilityStringLevelField('Neg6') +--- +---ABILITY_SLF_SPAWN_UNIT_ID_NSY2 'common.ABILITY_SLF_SPAWN_UNIT_ID_NSY2' +---@field ABILITY_SLF_SPAWN_UNIT_ID_NSY2 abilitystringlevelfield _ConvertAbilityStringLevelField('Nsy2') +--- +---Item +---Item 'common.ITEM_IF_LEVEL' +---@field ITEM_IF_LEVEL itemintegerfield _ConvertItemIntegerField('ilev') +--- +---ITEM_IF_NUMBER_OF_CHARGES 'common.ITEM_IF_NUMBER_OF_CHARGES' +---@field ITEM_IF_NUMBER_OF_CHARGES itemintegerfield _ConvertItemIntegerField('iuse') +--- +---ITEM_IF_COOLDOWN_GROUP 'common.ITEM_IF_COOLDOWN_GROUP' +---@field ITEM_IF_COOLDOWN_GROUP itemintegerfield _ConvertItemIntegerField('icid') +--- +---ITEM_IF_MAX_HIT_POINTS 'common.ITEM_IF_MAX_HIT_POINTS' +---@field ITEM_IF_MAX_HIT_POINTS itemintegerfield _ConvertItemIntegerField('ihtp') +--- +---ITEM_IF_HIT_POINTS 'common.ITEM_IF_HIT_POINTS' +---@field ITEM_IF_HIT_POINTS itemintegerfield _ConvertItemIntegerField('ihpc') +--- +---ITEM_IF_PRIORITY 'common.ITEM_IF_PRIORITY' +---@field ITEM_IF_PRIORITY itemintegerfield _ConvertItemIntegerField('ipri') +--- +---ITEM_IF_ARMOR_TYPE 'common.ITEM_IF_ARMOR_TYPE' +---@field ITEM_IF_ARMOR_TYPE itemintegerfield _ConvertItemIntegerField('iarm') +--- +---ITEM_IF_TINTING_COLOR_RED 'common.ITEM_IF_TINTING_COLOR_RED' +---@field ITEM_IF_TINTING_COLOR_RED itemintegerfield _ConvertItemIntegerField('iclr') +--- +---ITEM_IF_TINTING_COLOR_GREEN 'common.ITEM_IF_TINTING_COLOR_GREEN' +---@field ITEM_IF_TINTING_COLOR_GREEN itemintegerfield _ConvertItemIntegerField('iclg') +--- +---ITEM_IF_TINTING_COLOR_BLUE 'common.ITEM_IF_TINTING_COLOR_BLUE' +---@field ITEM_IF_TINTING_COLOR_BLUE itemintegerfield _ConvertItemIntegerField('iclb') +--- +---ITEM_IF_TINTING_COLOR_ALPHA 'common.ITEM_IF_TINTING_COLOR_ALPHA' +---@field ITEM_IF_TINTING_COLOR_ALPHA itemintegerfield _ConvertItemIntegerField('ical') +--- +---ITEM_RF_SCALING_VALUE 'common.ITEM_RF_SCALING_VALUE' +---@field ITEM_RF_SCALING_VALUE itemrealfield _ConvertItemRealField('isca') +--- +---ITEM_BF_DROPPED_WHEN_CARRIER_DIES 'common.ITEM_BF_DROPPED_WHEN_CARRIER_DIES' +---@field ITEM_BF_DROPPED_WHEN_CARRIER_DIES itembooleanfield _ConvertItemBooleanField('idrp') +--- +---ITEM_BF_CAN_BE_DROPPED 'common.ITEM_BF_CAN_BE_DROPPED' +---@field ITEM_BF_CAN_BE_DROPPED itembooleanfield _ConvertItemBooleanField('idro') +--- +---ITEM_BF_PERISHABLE 'common.ITEM_BF_PERISHABLE' +---@field ITEM_BF_PERISHABLE itembooleanfield _ConvertItemBooleanField('iper') +--- +---ITEM_BF_INCLUDE_AS_RANDOM_CHOICE 'common.ITEM_BF_INCLUDE_AS_RANDOM_CHOICE' +---@field ITEM_BF_INCLUDE_AS_RANDOM_CHOICE itembooleanfield _ConvertItemBooleanField('iprn') +--- +---ITEM_BF_USE_AUTOMATICALLY_WHEN_ACQUIRED 'common.ITEM_BF_USE_AUTOMATICALLY_WHEN_ACQUIRED' +---@field ITEM_BF_USE_AUTOMATICALLY_WHEN_ACQUIRED itembooleanfield _ConvertItemBooleanField('ipow') +--- +---ITEM_BF_CAN_BE_SOLD_TO_MERCHANTS 'common.ITEM_BF_CAN_BE_SOLD_TO_MERCHANTS' +---@field ITEM_BF_CAN_BE_SOLD_TO_MERCHANTS itembooleanfield _ConvertItemBooleanField('ipaw') +--- +---ITEM_BF_ACTIVELY_USED 'common.ITEM_BF_ACTIVELY_USED' +---@field ITEM_BF_ACTIVELY_USED itembooleanfield _ConvertItemBooleanField('iusa') +--- +---ITEM_SF_MODEL_USED 'common.ITEM_SF_MODEL_USED' +---@field ITEM_SF_MODEL_USED itemstringfield _ConvertItemStringField('ifil') +--- +---Unit +---Unit 'common.UNIT_IF_DEFENSE_TYPE' +---@field UNIT_IF_DEFENSE_TYPE unitintegerfield _ConvertUnitIntegerField('udty') +--- +---UNIT_IF_ARMOR_TYPE 'common.UNIT_IF_ARMOR_TYPE' +---@field UNIT_IF_ARMOR_TYPE unitintegerfield _ConvertUnitIntegerField('uarm') +--- +---UNIT_IF_LOOPING_FADE_IN_RATE 'common.UNIT_IF_LOOPING_FADE_IN_RATE' +---@field UNIT_IF_LOOPING_FADE_IN_RATE unitintegerfield _ConvertUnitIntegerField('ulfi') +--- +---UNIT_IF_LOOPING_FADE_OUT_RATE 'common.UNIT_IF_LOOPING_FADE_OUT_RATE' +---@field UNIT_IF_LOOPING_FADE_OUT_RATE unitintegerfield _ConvertUnitIntegerField('ulfo') +--- +---UNIT_IF_AGILITY 'common.UNIT_IF_AGILITY' +---@field UNIT_IF_AGILITY unitintegerfield _ConvertUnitIntegerField('uagc') +--- +---UNIT_IF_INTELLIGENCE 'common.UNIT_IF_INTELLIGENCE' +---@field UNIT_IF_INTELLIGENCE unitintegerfield _ConvertUnitIntegerField('uinc') +--- +---UNIT_IF_STRENGTH 'common.UNIT_IF_STRENGTH' +---@field UNIT_IF_STRENGTH unitintegerfield _ConvertUnitIntegerField('ustc') +--- +---UNIT_IF_AGILITY_PERMANENT 'common.UNIT_IF_AGILITY_PERMANENT' +---@field UNIT_IF_AGILITY_PERMANENT unitintegerfield _ConvertUnitIntegerField('uagm') +--- +---UNIT_IF_INTELLIGENCE_PERMANENT 'common.UNIT_IF_INTELLIGENCE_PERMANENT' +---@field UNIT_IF_INTELLIGENCE_PERMANENT unitintegerfield _ConvertUnitIntegerField('uinm') +--- +---UNIT_IF_STRENGTH_PERMANENT 'common.UNIT_IF_STRENGTH_PERMANENT' +---@field UNIT_IF_STRENGTH_PERMANENT unitintegerfield _ConvertUnitIntegerField('ustm') +--- +---UNIT_IF_AGILITY_WITH_BONUS 'common.UNIT_IF_AGILITY_WITH_BONUS' +---@field UNIT_IF_AGILITY_WITH_BONUS unitintegerfield _ConvertUnitIntegerField('uagb') +--- +---UNIT_IF_INTELLIGENCE_WITH_BONUS 'common.UNIT_IF_INTELLIGENCE_WITH_BONUS' +---@field UNIT_IF_INTELLIGENCE_WITH_BONUS unitintegerfield _ConvertUnitIntegerField('uinb') +--- +---UNIT_IF_STRENGTH_WITH_BONUS 'common.UNIT_IF_STRENGTH_WITH_BONUS' +---@field UNIT_IF_STRENGTH_WITH_BONUS unitintegerfield _ConvertUnitIntegerField('ustb') +--- +---UNIT_IF_GOLD_BOUNTY_AWARDED_NUMBER_OF_DICE 'common.UNIT_IF_GOLD_BOUNTY_AWARDED_NUMBER_OF_DICE' +---@field UNIT_IF_GOLD_BOUNTY_AWARDED_NUMBER_OF_DICE unitintegerfield _ConvertUnitIntegerField('ubdi') +--- +---UNIT_IF_GOLD_BOUNTY_AWARDED_BASE 'common.UNIT_IF_GOLD_BOUNTY_AWARDED_BASE' +---@field UNIT_IF_GOLD_BOUNTY_AWARDED_BASE unitintegerfield _ConvertUnitIntegerField('ubba') +--- +---UNIT_IF_GOLD_BOUNTY_AWARDED_SIDES_PER_DIE 'common.UNIT_IF_GOLD_BOUNTY_AWARDED_SIDES_PER_DIE' +---@field UNIT_IF_GOLD_BOUNTY_AWARDED_SIDES_PER_DIE unitintegerfield _ConvertUnitIntegerField('ubsi') +--- +---UNIT_IF_LUMBER_BOUNTY_AWARDED_NUMBER_OF_DICE 'common.UNIT_IF_LUMBER_BOUNTY_AWARDED_NUMBER_OF_DICE' +---@field UNIT_IF_LUMBER_BOUNTY_AWARDED_NUMBER_OF_DICE unitintegerfield _ConvertUnitIntegerField('ulbd') +--- +---UNIT_IF_LUMBER_BOUNTY_AWARDED_BASE 'common.UNIT_IF_LUMBER_BOUNTY_AWARDED_BASE' +---@field UNIT_IF_LUMBER_BOUNTY_AWARDED_BASE unitintegerfield _ConvertUnitIntegerField('ulba') +--- +---UNIT_IF_LUMBER_BOUNTY_AWARDED_SIDES_PER_DIE 'common.UNIT_IF_LUMBER_BOUNTY_AWARDED_SIDES_PER_DIE' +---@field UNIT_IF_LUMBER_BOUNTY_AWARDED_SIDES_PER_DIE unitintegerfield _ConvertUnitIntegerField('ulbs') +--- +---UNIT_IF_LEVEL 'common.UNIT_IF_LEVEL' +---@field UNIT_IF_LEVEL unitintegerfield _ConvertUnitIntegerField('ulev') +--- +---UNIT_IF_FORMATION_RANK 'common.UNIT_IF_FORMATION_RANK' +---@field UNIT_IF_FORMATION_RANK unitintegerfield _ConvertUnitIntegerField('ufor') +--- +---UNIT_IF_ORIENTATION_INTERPOLATION 'common.UNIT_IF_ORIENTATION_INTERPOLATION' +---@field UNIT_IF_ORIENTATION_INTERPOLATION unitintegerfield _ConvertUnitIntegerField('uori') +--- +---UNIT_IF_ELEVATION_SAMPLE_POINTS 'common.UNIT_IF_ELEVATION_SAMPLE_POINTS' +---@field UNIT_IF_ELEVATION_SAMPLE_POINTS unitintegerfield _ConvertUnitIntegerField('uept') +--- +---UNIT_IF_TINTING_COLOR_RED 'common.UNIT_IF_TINTING_COLOR_RED' +---@field UNIT_IF_TINTING_COLOR_RED unitintegerfield _ConvertUnitIntegerField('uclr') +--- +---UNIT_IF_TINTING_COLOR_GREEN 'common.UNIT_IF_TINTING_COLOR_GREEN' +---@field UNIT_IF_TINTING_COLOR_GREEN unitintegerfield _ConvertUnitIntegerField('uclg') +--- +---UNIT_IF_TINTING_COLOR_BLUE 'common.UNIT_IF_TINTING_COLOR_BLUE' +---@field UNIT_IF_TINTING_COLOR_BLUE unitintegerfield _ConvertUnitIntegerField('uclb') +--- +---UNIT_IF_TINTING_COLOR_ALPHA 'common.UNIT_IF_TINTING_COLOR_ALPHA' +---@field UNIT_IF_TINTING_COLOR_ALPHA unitintegerfield _ConvertUnitIntegerField('ucal') +--- +---UNIT_IF_MOVE_TYPE 'common.UNIT_IF_MOVE_TYPE' +---@field UNIT_IF_MOVE_TYPE unitintegerfield _ConvertUnitIntegerField('umvt') +--- +---UNIT_IF_TARGETED_AS 'common.UNIT_IF_TARGETED_AS' +---@field UNIT_IF_TARGETED_AS unitintegerfield _ConvertUnitIntegerField('utar') +--- +---UNIT_IF_UNIT_CLASSIFICATION 'common.UNIT_IF_UNIT_CLASSIFICATION' +---@field UNIT_IF_UNIT_CLASSIFICATION unitintegerfield _ConvertUnitIntegerField('utyp') +--- +---UNIT_IF_HIT_POINTS_REGENERATION_TYPE 'common.UNIT_IF_HIT_POINTS_REGENERATION_TYPE' +---@field UNIT_IF_HIT_POINTS_REGENERATION_TYPE unitintegerfield _ConvertUnitIntegerField('uhrt') +--- +---UNIT_IF_PLACEMENT_PREVENTED_BY 'common.UNIT_IF_PLACEMENT_PREVENTED_BY' +---@field UNIT_IF_PLACEMENT_PREVENTED_BY unitintegerfield _ConvertUnitIntegerField('upar') +--- +---UNIT_IF_PRIMARY_ATTRIBUTE 'common.UNIT_IF_PRIMARY_ATTRIBUTE' +---@field UNIT_IF_PRIMARY_ATTRIBUTE unitintegerfield _ConvertUnitIntegerField('upra') +--- +---UNIT_RF_STRENGTH_PER_LEVEL 'common.UNIT_RF_STRENGTH_PER_LEVEL' +---@field UNIT_RF_STRENGTH_PER_LEVEL unitrealfield _ConvertUnitRealField('ustp') +--- +---UNIT_RF_AGILITY_PER_LEVEL 'common.UNIT_RF_AGILITY_PER_LEVEL' +---@field UNIT_RF_AGILITY_PER_LEVEL unitrealfield _ConvertUnitRealField('uagp') +--- +---UNIT_RF_INTELLIGENCE_PER_LEVEL 'common.UNIT_RF_INTELLIGENCE_PER_LEVEL' +---@field UNIT_RF_INTELLIGENCE_PER_LEVEL unitrealfield _ConvertUnitRealField('uinp') +--- +---UNIT_RF_HIT_POINTS_REGENERATION_RATE 'common.UNIT_RF_HIT_POINTS_REGENERATION_RATE' +---@field UNIT_RF_HIT_POINTS_REGENERATION_RATE unitrealfield _ConvertUnitRealField('uhpr') +--- +---UNIT_RF_MANA_REGENERATION 'common.UNIT_RF_MANA_REGENERATION' +---@field UNIT_RF_MANA_REGENERATION unitrealfield _ConvertUnitRealField('umpr') +--- +---UNIT_RF_DEATH_TIME 'common.UNIT_RF_DEATH_TIME' +---@field UNIT_RF_DEATH_TIME unitrealfield _ConvertUnitRealField('udtm') +--- +---UNIT_RF_FLY_HEIGHT 'common.UNIT_RF_FLY_HEIGHT' +---@field UNIT_RF_FLY_HEIGHT unitrealfield _ConvertUnitRealField('ufyh') +--- +---UNIT_RF_TURN_RATE 'common.UNIT_RF_TURN_RATE' +---@field UNIT_RF_TURN_RATE unitrealfield _ConvertUnitRealField('umvr') +--- +---UNIT_RF_ELEVATION_SAMPLE_RADIUS 'common.UNIT_RF_ELEVATION_SAMPLE_RADIUS' +---@field UNIT_RF_ELEVATION_SAMPLE_RADIUS unitrealfield _ConvertUnitRealField('uerd') +--- +---UNIT_RF_FOG_OF_WAR_SAMPLE_RADIUS 'common.UNIT_RF_FOG_OF_WAR_SAMPLE_RADIUS' +---@field UNIT_RF_FOG_OF_WAR_SAMPLE_RADIUS unitrealfield _ConvertUnitRealField('ufrd') +--- +---UNIT_RF_MAXIMUM_PITCH_ANGLE_DEGREES 'common.UNIT_RF_MAXIMUM_PITCH_ANGLE_DEGREES' +---@field UNIT_RF_MAXIMUM_PITCH_ANGLE_DEGREES unitrealfield _ConvertUnitRealField('umxp') +--- +---UNIT_RF_MAXIMUM_ROLL_ANGLE_DEGREES 'common.UNIT_RF_MAXIMUM_ROLL_ANGLE_DEGREES' +---@field UNIT_RF_MAXIMUM_ROLL_ANGLE_DEGREES unitrealfield _ConvertUnitRealField('umxr') +--- +---UNIT_RF_SCALING_VALUE 'common.UNIT_RF_SCALING_VALUE' +---@field UNIT_RF_SCALING_VALUE unitrealfield _ConvertUnitRealField('usca') +--- +---UNIT_RF_ANIMATION_RUN_SPEED 'common.UNIT_RF_ANIMATION_RUN_SPEED' +---@field UNIT_RF_ANIMATION_RUN_SPEED unitrealfield _ConvertUnitRealField('urun') +--- +---UNIT_RF_SELECTION_SCALE 'common.UNIT_RF_SELECTION_SCALE' +---@field UNIT_RF_SELECTION_SCALE unitrealfield _ConvertUnitRealField('ussc') +--- +---UNIT_RF_SELECTION_CIRCLE_HEIGHT 'common.UNIT_RF_SELECTION_CIRCLE_HEIGHT' +---@field UNIT_RF_SELECTION_CIRCLE_HEIGHT unitrealfield _ConvertUnitRealField('uslz') +--- +---UNIT_RF_SHADOW_IMAGE_HEIGHT 'common.UNIT_RF_SHADOW_IMAGE_HEIGHT' +---@field UNIT_RF_SHADOW_IMAGE_HEIGHT unitrealfield _ConvertUnitRealField('ushh') +--- +---UNIT_RF_SHADOW_IMAGE_WIDTH 'common.UNIT_RF_SHADOW_IMAGE_WIDTH' +---@field UNIT_RF_SHADOW_IMAGE_WIDTH unitrealfield _ConvertUnitRealField('ushw') +--- +---UNIT_RF_SHADOW_IMAGE_CENTER_X 'common.UNIT_RF_SHADOW_IMAGE_CENTER_X' +---@field UNIT_RF_SHADOW_IMAGE_CENTER_X unitrealfield _ConvertUnitRealField('ushx') +--- +---UNIT_RF_SHADOW_IMAGE_CENTER_Y 'common.UNIT_RF_SHADOW_IMAGE_CENTER_Y' +---@field UNIT_RF_SHADOW_IMAGE_CENTER_Y unitrealfield _ConvertUnitRealField('ushy') +--- +---UNIT_RF_ANIMATION_WALK_SPEED 'common.UNIT_RF_ANIMATION_WALK_SPEED' +---@field UNIT_RF_ANIMATION_WALK_SPEED unitrealfield _ConvertUnitRealField('uwal') +--- +---UNIT_RF_DEFENSE 'common.UNIT_RF_DEFENSE' +---@field UNIT_RF_DEFENSE unitrealfield _ConvertUnitRealField('udfc') +--- +---UNIT_RF_SIGHT_RADIUS 'common.UNIT_RF_SIGHT_RADIUS' +---@field UNIT_RF_SIGHT_RADIUS unitrealfield _ConvertUnitRealField('usir') +--- +---UNIT_RF_PRIORITY 'common.UNIT_RF_PRIORITY' +---@field UNIT_RF_PRIORITY unitrealfield _ConvertUnitRealField('upri') +--- +---UNIT_RF_SPEED 'common.UNIT_RF_SPEED' +---@field UNIT_RF_SPEED unitrealfield _ConvertUnitRealField('umvc') +--- +---UNIT_RF_OCCLUDER_HEIGHT 'common.UNIT_RF_OCCLUDER_HEIGHT' +---@field UNIT_RF_OCCLUDER_HEIGHT unitrealfield _ConvertUnitRealField('uocc') +--- +---UNIT_RF_HP 'common.UNIT_RF_HP' +---@field UNIT_RF_HP unitrealfield _ConvertUnitRealField('uhpc') +--- +---UNIT_RF_MANA 'common.UNIT_RF_MANA' +---@field UNIT_RF_MANA unitrealfield _ConvertUnitRealField('umpc') +--- +---UNIT_RF_ACQUISITION_RANGE 'common.UNIT_RF_ACQUISITION_RANGE' +---@field UNIT_RF_ACQUISITION_RANGE unitrealfield _ConvertUnitRealField('uacq') +--- +---UNIT_RF_CAST_BACK_SWING 'common.UNIT_RF_CAST_BACK_SWING' +---@field UNIT_RF_CAST_BACK_SWING unitrealfield _ConvertUnitRealField('ucbs') +--- +---UNIT_RF_CAST_POINT 'common.UNIT_RF_CAST_POINT' +---@field UNIT_RF_CAST_POINT unitrealfield _ConvertUnitRealField('ucpt') +--- +---UNIT_RF_MINIMUM_ATTACK_RANGE 'common.UNIT_RF_MINIMUM_ATTACK_RANGE' +---@field UNIT_RF_MINIMUM_ATTACK_RANGE unitrealfield _ConvertUnitRealField('uamn') +--- +---UNIT_BF_RAISABLE 'common.UNIT_BF_RAISABLE' +---@field UNIT_BF_RAISABLE unitbooleanfield _ConvertUnitBooleanField('urai') +--- +---UNIT_BF_DECAYABLE 'common.UNIT_BF_DECAYABLE' +---@field UNIT_BF_DECAYABLE unitbooleanfield _ConvertUnitBooleanField('udec') +--- +---UNIT_BF_IS_A_BUILDING 'common.UNIT_BF_IS_A_BUILDING' +---@field UNIT_BF_IS_A_BUILDING unitbooleanfield _ConvertUnitBooleanField('ubdg') +--- +---UNIT_BF_USE_EXTENDED_LINE_OF_SIGHT 'common.UNIT_BF_USE_EXTENDED_LINE_OF_SIGHT' +---@field UNIT_BF_USE_EXTENDED_LINE_OF_SIGHT unitbooleanfield _ConvertUnitBooleanField('ulos') +--- +---UNIT_BF_NEUTRAL_BUILDING_SHOWS_MINIMAP_ICON 'common.UNIT_BF_NEUTRAL_BUILDING_SHOWS_MINIMAP_ICON' +---@field UNIT_BF_NEUTRAL_BUILDING_SHOWS_MINIMAP_ICON unitbooleanfield _ConvertUnitBooleanField('unbm') +--- +---UNIT_BF_HERO_HIDE_HERO_INTERFACE_ICON 'common.UNIT_BF_HERO_HIDE_HERO_INTERFACE_ICON' +---@field UNIT_BF_HERO_HIDE_HERO_INTERFACE_ICON unitbooleanfield _ConvertUnitBooleanField('uhhb') +--- +---UNIT_BF_HERO_HIDE_HERO_MINIMAP_DISPLAY 'common.UNIT_BF_HERO_HIDE_HERO_MINIMAP_DISPLAY' +---@field UNIT_BF_HERO_HIDE_HERO_MINIMAP_DISPLAY unitbooleanfield _ConvertUnitBooleanField('uhhm') +--- +---UNIT_BF_HERO_HIDE_HERO_DEATH_MESSAGE 'common.UNIT_BF_HERO_HIDE_HERO_DEATH_MESSAGE' +---@field UNIT_BF_HERO_HIDE_HERO_DEATH_MESSAGE unitbooleanfield _ConvertUnitBooleanField('uhhd') +--- +---UNIT_BF_HIDE_MINIMAP_DISPLAY 'common.UNIT_BF_HIDE_MINIMAP_DISPLAY' +---@field UNIT_BF_HIDE_MINIMAP_DISPLAY unitbooleanfield _ConvertUnitBooleanField('uhom') +--- +---UNIT_BF_SCALE_PROJECTILES 'common.UNIT_BF_SCALE_PROJECTILES' +---@field UNIT_BF_SCALE_PROJECTILES unitbooleanfield _ConvertUnitBooleanField('uscb') +--- +---UNIT_BF_SELECTION_CIRCLE_ON_WATER 'common.UNIT_BF_SELECTION_CIRCLE_ON_WATER' +---@field UNIT_BF_SELECTION_CIRCLE_ON_WATER unitbooleanfield _ConvertUnitBooleanField('usew') +--- +---UNIT_BF_HAS_WATER_SHADOW 'common.UNIT_BF_HAS_WATER_SHADOW' +---@field UNIT_BF_HAS_WATER_SHADOW unitbooleanfield _ConvertUnitBooleanField('ushr') +--- +---UNIT_SF_NAME 'common.UNIT_SF_NAME' +---@field UNIT_SF_NAME unitstringfield _ConvertUnitStringField('unam') +--- +---UNIT_SF_PROPER_NAMES 'common.UNIT_SF_PROPER_NAMES' +---@field UNIT_SF_PROPER_NAMES unitstringfield _ConvertUnitStringField('upro') +--- +---UNIT_SF_GROUND_TEXTURE 'common.UNIT_SF_GROUND_TEXTURE' +---@field UNIT_SF_GROUND_TEXTURE unitstringfield _ConvertUnitStringField('uubs') +--- +---UNIT_SF_SHADOW_IMAGE_UNIT 'common.UNIT_SF_SHADOW_IMAGE_UNIT' +---@field UNIT_SF_SHADOW_IMAGE_UNIT unitstringfield _ConvertUnitStringField('ushu') +--- +---Unit Weapon +---Unit Weapon 'common.UNIT_WEAPON_IF_ATTACK_DAMAGE_NUMBER_OF_DICE' +---@field UNIT_WEAPON_IF_ATTACK_DAMAGE_NUMBER_OF_DICE unitweaponintegerfield _ConvertUnitWeaponIntegerField('ua1d') +--- +---UNIT_WEAPON_IF_ATTACK_DAMAGE_BASE 'common.UNIT_WEAPON_IF_ATTACK_DAMAGE_BASE' +---@field UNIT_WEAPON_IF_ATTACK_DAMAGE_BASE unitweaponintegerfield _ConvertUnitWeaponIntegerField('ua1b') +--- +---UNIT_WEAPON_IF_ATTACK_DAMAGE_SIDES_PER_DIE 'common.UNIT_WEAPON_IF_ATTACK_DAMAGE_SIDES_PER_DIE' +---@field UNIT_WEAPON_IF_ATTACK_DAMAGE_SIDES_PER_DIE unitweaponintegerfield _ConvertUnitWeaponIntegerField('ua1s') +--- +---UNIT_WEAPON_IF_ATTACK_MAXIMUM_NUMBER_OF_TARGETS 'common.UNIT_WEAPON_IF_ATTACK_MAXIMUM_NUMBER_OF_TARGETS' +---@field UNIT_WEAPON_IF_ATTACK_MAXIMUM_NUMBER_OF_TARGETS unitweaponintegerfield _ConvertUnitWeaponIntegerField('utc1') +--- +---UNIT_WEAPON_IF_ATTACK_ATTACK_TYPE 'common.UNIT_WEAPON_IF_ATTACK_ATTACK_TYPE' +---@field UNIT_WEAPON_IF_ATTACK_ATTACK_TYPE unitweaponintegerfield _ConvertUnitWeaponIntegerField('ua1t') +--- +---UNIT_WEAPON_IF_ATTACK_WEAPON_SOUND 'common.UNIT_WEAPON_IF_ATTACK_WEAPON_SOUND' +---@field UNIT_WEAPON_IF_ATTACK_WEAPON_SOUND unitweaponintegerfield _ConvertUnitWeaponIntegerField('ucs1') +--- +---UNIT_WEAPON_IF_ATTACK_AREA_OF_EFFECT_TARGETS 'common.UNIT_WEAPON_IF_ATTACK_AREA_OF_EFFECT_TARGETS' +---@field UNIT_WEAPON_IF_ATTACK_AREA_OF_EFFECT_TARGETS unitweaponintegerfield _ConvertUnitWeaponIntegerField('ua1p') +--- +---UNIT_WEAPON_IF_ATTACK_TARGETS_ALLOWED 'common.UNIT_WEAPON_IF_ATTACK_TARGETS_ALLOWED' +---@field UNIT_WEAPON_IF_ATTACK_TARGETS_ALLOWED unitweaponintegerfield _ConvertUnitWeaponIntegerField('ua1g') +--- +---UNIT_WEAPON_RF_ATTACK_BACKSWING_POINT 'common.UNIT_WEAPON_RF_ATTACK_BACKSWING_POINT' +---@field UNIT_WEAPON_RF_ATTACK_BACKSWING_POINT unitweaponrealfield _ConvertUnitWeaponRealField('ubs1') +--- +---UNIT_WEAPON_RF_ATTACK_DAMAGE_POINT 'common.UNIT_WEAPON_RF_ATTACK_DAMAGE_POINT' +---@field UNIT_WEAPON_RF_ATTACK_DAMAGE_POINT unitweaponrealfield _ConvertUnitWeaponRealField('udp1') +--- +---UNIT_WEAPON_RF_ATTACK_BASE_COOLDOWN 'common.UNIT_WEAPON_RF_ATTACK_BASE_COOLDOWN' +---@field UNIT_WEAPON_RF_ATTACK_BASE_COOLDOWN unitweaponrealfield _ConvertUnitWeaponRealField('ua1c') +--- +---UNIT_WEAPON_RF_ATTACK_DAMAGE_LOSS_FACTOR 'common.UNIT_WEAPON_RF_ATTACK_DAMAGE_LOSS_FACTOR' +---@field UNIT_WEAPON_RF_ATTACK_DAMAGE_LOSS_FACTOR unitweaponrealfield _ConvertUnitWeaponRealField('udl1') +--- +---UNIT_WEAPON_RF_ATTACK_DAMAGE_FACTOR_MEDIUM 'common.UNIT_WEAPON_RF_ATTACK_DAMAGE_FACTOR_MEDIUM' +---@field UNIT_WEAPON_RF_ATTACK_DAMAGE_FACTOR_MEDIUM unitweaponrealfield _ConvertUnitWeaponRealField('uhd1') +--- +---UNIT_WEAPON_RF_ATTACK_DAMAGE_FACTOR_SMALL 'common.UNIT_WEAPON_RF_ATTACK_DAMAGE_FACTOR_SMALL' +---@field UNIT_WEAPON_RF_ATTACK_DAMAGE_FACTOR_SMALL unitweaponrealfield _ConvertUnitWeaponRealField('uqd1') +--- +---UNIT_WEAPON_RF_ATTACK_DAMAGE_SPILL_DISTANCE 'common.UNIT_WEAPON_RF_ATTACK_DAMAGE_SPILL_DISTANCE' +---@field UNIT_WEAPON_RF_ATTACK_DAMAGE_SPILL_DISTANCE unitweaponrealfield _ConvertUnitWeaponRealField('usd1') +--- +---UNIT_WEAPON_RF_ATTACK_DAMAGE_SPILL_RADIUS 'common.UNIT_WEAPON_RF_ATTACK_DAMAGE_SPILL_RADIUS' +---@field UNIT_WEAPON_RF_ATTACK_DAMAGE_SPILL_RADIUS unitweaponrealfield _ConvertUnitWeaponRealField('usr1') +--- +---UNIT_WEAPON_RF_ATTACK_PROJECTILE_SPEED 'common.UNIT_WEAPON_RF_ATTACK_PROJECTILE_SPEED' +---@field UNIT_WEAPON_RF_ATTACK_PROJECTILE_SPEED unitweaponrealfield _ConvertUnitWeaponRealField('ua1z') +--- +---UNIT_WEAPON_RF_ATTACK_PROJECTILE_ARC 'common.UNIT_WEAPON_RF_ATTACK_PROJECTILE_ARC' +---@field UNIT_WEAPON_RF_ATTACK_PROJECTILE_ARC unitweaponrealfield _ConvertUnitWeaponRealField('uma1') +--- +---UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_FULL_DAMAGE 'common.UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_FULL_DAMAGE' +---@field UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_FULL_DAMAGE unitweaponrealfield _ConvertUnitWeaponRealField('ua1f') +--- +---UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_MEDIUM_DAMAGE 'common.UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_MEDIUM_DAMAGE' +---@field UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_MEDIUM_DAMAGE unitweaponrealfield _ConvertUnitWeaponRealField('ua1h') +--- +---UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_SMALL_DAMAGE 'common.UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_SMALL_DAMAGE' +---@field UNIT_WEAPON_RF_ATTACK_AREA_OF_EFFECT_SMALL_DAMAGE unitweaponrealfield _ConvertUnitWeaponRealField('ua1q') +--- +---UNIT_WEAPON_RF_ATTACK_RANGE 'common.UNIT_WEAPON_RF_ATTACK_RANGE' +---@field UNIT_WEAPON_RF_ATTACK_RANGE unitweaponrealfield _ConvertUnitWeaponRealField('ua1r') +--- +---UNIT_WEAPON_BF_ATTACK_SHOW_UI 'common.UNIT_WEAPON_BF_ATTACK_SHOW_UI' +---@field UNIT_WEAPON_BF_ATTACK_SHOW_UI unitweaponbooleanfield _ConvertUnitWeaponBooleanField('uwu1') +--- +---UNIT_WEAPON_BF_ATTACKS_ENABLED 'common.UNIT_WEAPON_BF_ATTACKS_ENABLED' +---@field UNIT_WEAPON_BF_ATTACKS_ENABLED unitweaponbooleanfield _ConvertUnitWeaponBooleanField('uaen') +--- +---UNIT_WEAPON_BF_ATTACK_PROJECTILE_HOMING_ENABLED 'common.UNIT_WEAPON_BF_ATTACK_PROJECTILE_HOMING_ENABLED' +---@field UNIT_WEAPON_BF_ATTACK_PROJECTILE_HOMING_ENABLED unitweaponbooleanfield _ConvertUnitWeaponBooleanField('umh1') +--- +---UNIT_WEAPON_SF_ATTACK_PROJECTILE_ART 'common.UNIT_WEAPON_SF_ATTACK_PROJECTILE_ART' +---@field UNIT_WEAPON_SF_ATTACK_PROJECTILE_ART unitweaponstringfield _ConvertUnitWeaponStringField('ua1m') +--- +---Move Type +---Move Type 'common.MOVE_TYPE_UNKNOWN' +---@field MOVE_TYPE_UNKNOWN movetype _ConvertMoveType(0) +--- +---MOVE_TYPE_FOOT 'common.MOVE_TYPE_FOOT' +---@field MOVE_TYPE_FOOT movetype _ConvertMoveType(1) +--- +---MOVE_TYPE_FLY 'common.MOVE_TYPE_FLY' +---@field MOVE_TYPE_FLY movetype _ConvertMoveType(2) +--- +---MOVE_TYPE_HORSE 'common.MOVE_TYPE_HORSE' +---@field MOVE_TYPE_HORSE movetype _ConvertMoveType(4) +--- +---MOVE_TYPE_HOVER 'common.MOVE_TYPE_HOVER' +---@field MOVE_TYPE_HOVER movetype _ConvertMoveType(8) +--- +---MOVE_TYPE_FLOAT 'common.MOVE_TYPE_FLOAT' +---@field MOVE_TYPE_FLOAT movetype _ConvertMoveType(16) +--- +---MOVE_TYPE_AMPHIBIOUS 'common.MOVE_TYPE_AMPHIBIOUS' +---@field MOVE_TYPE_AMPHIBIOUS movetype _ConvertMoveType(32) +--- +---MOVE_TYPE_UNBUILDABLE 'common.MOVE_TYPE_UNBUILDABLE' +---@field MOVE_TYPE_UNBUILDABLE movetype _ConvertMoveType(64) +--- +---Target Flag +---Target Flag 'common.TARGET_FLAG_NONE' +---@field TARGET_FLAG_NONE targetflag _ConvertTargetFlag(1) +--- +---TARGET_FLAG_GROUND 'common.TARGET_FLAG_GROUND' +---@field TARGET_FLAG_GROUND targetflag _ConvertTargetFlag(2) +--- +---TARGET_FLAG_AIR 'common.TARGET_FLAG_AIR' +---@field TARGET_FLAG_AIR targetflag _ConvertTargetFlag(4) +--- +---TARGET_FLAG_STRUCTURE 'common.TARGET_FLAG_STRUCTURE' +---@field TARGET_FLAG_STRUCTURE targetflag _ConvertTargetFlag(8) +--- +---TARGET_FLAG_WARD 'common.TARGET_FLAG_WARD' +---@field TARGET_FLAG_WARD targetflag _ConvertTargetFlag(16) +--- +---TARGET_FLAG_ITEM 'common.TARGET_FLAG_ITEM' +---@field TARGET_FLAG_ITEM targetflag _ConvertTargetFlag(32) +--- +---TARGET_FLAG_TREE 'common.TARGET_FLAG_TREE' +---@field TARGET_FLAG_TREE targetflag _ConvertTargetFlag(64) +--- +---TARGET_FLAG_WALL 'common.TARGET_FLAG_WALL' +---@field TARGET_FLAG_WALL targetflag _ConvertTargetFlag(128) +--- +---TARGET_FLAG_DEBRIS 'common.TARGET_FLAG_DEBRIS' +---@field TARGET_FLAG_DEBRIS targetflag _ConvertTargetFlag(256) +--- +---TARGET_FLAG_DECORATION 'common.TARGET_FLAG_DECORATION' +---@field TARGET_FLAG_DECORATION targetflag _ConvertTargetFlag(512) +--- +---TARGET_FLAG_BRIDGE 'common.TARGET_FLAG_BRIDGE' +---@field TARGET_FLAG_BRIDGE targetflag _ConvertTargetFlag(1024) +--- +---defense type +---defense type 'common.DEFENSE_TYPE_LIGHT' +---@field DEFENSE_TYPE_LIGHT defensetype _ConvertDefenseType(0) +--- +---DEFENSE_TYPE_MEDIUM 'common.DEFENSE_TYPE_MEDIUM' +---@field DEFENSE_TYPE_MEDIUM defensetype _ConvertDefenseType(1) +--- +---DEFENSE_TYPE_LARGE 'common.DEFENSE_TYPE_LARGE' +---@field DEFENSE_TYPE_LARGE defensetype _ConvertDefenseType(2) +--- +---DEFENSE_TYPE_FORT 'common.DEFENSE_TYPE_FORT' +---@field DEFENSE_TYPE_FORT defensetype _ConvertDefenseType(3) +--- +---DEFENSE_TYPE_NORMAL 'common.DEFENSE_TYPE_NORMAL' +---@field DEFENSE_TYPE_NORMAL defensetype _ConvertDefenseType(4) +--- +---DEFENSE_TYPE_HERO 'common.DEFENSE_TYPE_HERO' +---@field DEFENSE_TYPE_HERO defensetype _ConvertDefenseType(5) +--- +---DEFENSE_TYPE_DIVINE 'common.DEFENSE_TYPE_DIVINE' +---@field DEFENSE_TYPE_DIVINE defensetype _ConvertDefenseType(6) +--- +---DEFENSE_TYPE_NONE 'common.DEFENSE_TYPE_NONE' +---@field DEFENSE_TYPE_NONE defensetype _ConvertDefenseType(7) +--- +---Hero Attribute +---Hero Attribute 'common.HERO_ATTRIBUTE_STR' +---@field HERO_ATTRIBUTE_STR heroattribute _ConvertHeroAttribute(1) +--- +---HERO_ATTRIBUTE_INT 'common.HERO_ATTRIBUTE_INT' +---@field HERO_ATTRIBUTE_INT heroattribute _ConvertHeroAttribute(2) +--- +---HERO_ATTRIBUTE_AGI 'common.HERO_ATTRIBUTE_AGI' +---@field HERO_ATTRIBUTE_AGI heroattribute _ConvertHeroAttribute(3) +--- +---Armor Type +---Armor Type 'common.ARMOR_TYPE_WHOKNOWS' +---@field ARMOR_TYPE_WHOKNOWS armortype _ConvertArmorType(0) +--- +---ARMOR_TYPE_FLESH 'common.ARMOR_TYPE_FLESH' +---@field ARMOR_TYPE_FLESH armortype _ConvertArmorType(1) +--- +---ARMOR_TYPE_METAL 'common.ARMOR_TYPE_METAL' +---@field ARMOR_TYPE_METAL armortype _ConvertArmorType(2) +--- +---ARMOR_TYPE_WOOD 'common.ARMOR_TYPE_WOOD' +---@field ARMOR_TYPE_WOOD armortype _ConvertArmorType(3) +--- +---ARMOR_TYPE_ETHREAL 'common.ARMOR_TYPE_ETHREAL' +---@field ARMOR_TYPE_ETHREAL armortype _ConvertArmorType(4) +--- +---ARMOR_TYPE_STONE 'common.ARMOR_TYPE_STONE' +---@field ARMOR_TYPE_STONE armortype _ConvertArmorType(5) +--- +---Regeneration Type +---Regeneration Type 'common.REGENERATION_TYPE_NONE' +---@field REGENERATION_TYPE_NONE regentype _ConvertRegenType(0) +--- +---REGENERATION_TYPE_ALWAYS 'common.REGENERATION_TYPE_ALWAYS' +---@field REGENERATION_TYPE_ALWAYS regentype _ConvertRegenType(1) +--- +---REGENERATION_TYPE_BLIGHT 'common.REGENERATION_TYPE_BLIGHT' +---@field REGENERATION_TYPE_BLIGHT regentype _ConvertRegenType(2) +--- +---REGENERATION_TYPE_DAY 'common.REGENERATION_TYPE_DAY' +---@field REGENERATION_TYPE_DAY regentype _ConvertRegenType(3) +--- +---REGENERATION_TYPE_NIGHT 'common.REGENERATION_TYPE_NIGHT' +---@field REGENERATION_TYPE_NIGHT regentype _ConvertRegenType(4) +--- +---Unit Category +---Unit Category 'common.UNIT_CATEGORY_GIANT' +---@field UNIT_CATEGORY_GIANT unitcategory _ConvertUnitCategory(1) +--- +---UNIT_CATEGORY_UNDEAD 'common.UNIT_CATEGORY_UNDEAD' +---@field UNIT_CATEGORY_UNDEAD unitcategory _ConvertUnitCategory(2) +--- +---UNIT_CATEGORY_SUMMONED 'common.UNIT_CATEGORY_SUMMONED' +---@field UNIT_CATEGORY_SUMMONED unitcategory _ConvertUnitCategory(4) +--- +---UNIT_CATEGORY_MECHANICAL 'common.UNIT_CATEGORY_MECHANICAL' +---@field UNIT_CATEGORY_MECHANICAL unitcategory _ConvertUnitCategory(8) +--- +---UNIT_CATEGORY_PEON 'common.UNIT_CATEGORY_PEON' +---@field UNIT_CATEGORY_PEON unitcategory _ConvertUnitCategory(16) +--- +---UNIT_CATEGORY_SAPPER 'common.UNIT_CATEGORY_SAPPER' +---@field UNIT_CATEGORY_SAPPER unitcategory _ConvertUnitCategory(32) +--- +---UNIT_CATEGORY_TOWNHALL 'common.UNIT_CATEGORY_TOWNHALL' +---@field UNIT_CATEGORY_TOWNHALL unitcategory _ConvertUnitCategory(64) +--- +---UNIT_CATEGORY_ANCIENT 'common.UNIT_CATEGORY_ANCIENT' +---@field UNIT_CATEGORY_ANCIENT unitcategory _ConvertUnitCategory(128) +--- +---UNIT_CATEGORY_NEUTRAL 'common.UNIT_CATEGORY_NEUTRAL' +---@field UNIT_CATEGORY_NEUTRAL unitcategory _ConvertUnitCategory(256) +--- +---UNIT_CATEGORY_WARD 'common.UNIT_CATEGORY_WARD' +---@field UNIT_CATEGORY_WARD unitcategory _ConvertUnitCategory(512) +--- +---UNIT_CATEGORY_STANDON 'common.UNIT_CATEGORY_STANDON' +---@field UNIT_CATEGORY_STANDON unitcategory _ConvertUnitCategory(1024) +--- +---UNIT_CATEGORY_TAUREN 'common.UNIT_CATEGORY_TAUREN' +---@field UNIT_CATEGORY_TAUREN unitcategory _ConvertUnitCategory(2048) +--- +---Pathing Flag +---Pathing Flag 'common.PATHING_FLAG_UNWALKABLE' +---@field PATHING_FLAG_UNWALKABLE pathingflag _ConvertPathingFlag(2) +--- +---PATHING_FLAG_UNFLYABLE 'common.PATHING_FLAG_UNFLYABLE' +---@field PATHING_FLAG_UNFLYABLE pathingflag _ConvertPathingFlag(4) +--- +---PATHING_FLAG_UNBUILDABLE 'common.PATHING_FLAG_UNBUILDABLE' +---@field PATHING_FLAG_UNBUILDABLE pathingflag _ConvertPathingFlag(8) +--- +---PATHING_FLAG_UNPEONHARVEST 'common.PATHING_FLAG_UNPEONHARVEST' +---@field PATHING_FLAG_UNPEONHARVEST pathingflag _ConvertPathingFlag(16) +--- +---PATHING_FLAG_BLIGHTED 'common.PATHING_FLAG_BLIGHTED' +---@field PATHING_FLAG_BLIGHTED pathingflag _ConvertPathingFlag(32) +--- +---PATHING_FLAG_UNFLOATABLE 'common.PATHING_FLAG_UNFLOATABLE' +---@field PATHING_FLAG_UNFLOATABLE pathingflag _ConvertPathingFlag(64) +--- +---PATHING_FLAG_UNAMPHIBIOUS 'common.PATHING_FLAG_UNAMPHIBIOUS' +---@field PATHING_FLAG_UNAMPHIBIOUS pathingflag _ConvertPathingFlag(128) +--- +---PATHING_FLAG_UNITEMPLACABLE 'common.PATHING_FLAG_UNITEMPLACABLE' +---@field PATHING_FLAG_UNITEMPLACABLE pathingflag _ConvertPathingFlag(256) +local common = {} + +---转换种族 +---@param i integer +---@return race +function common.ConvertRace(i) end + +---转换联盟类型 +---@param i integer +---@return alliancetype +function common.ConvertAllianceType(i) end + +---ConvertRacePref +---@param i integer +---@return racepreference +function common.ConvertRacePref(i) end + +---ConvertIGameState +---@param i integer +---@return igamestate +function common.ConvertIGameState(i) end + +---ConvertFGameState +---@param i integer +---@return fgamestate +function common.ConvertFGameState(i) end + +---ConvertPlayerState +---@param i integer +---@return playerstate +function common.ConvertPlayerState(i) end + +---ConvertPlayerScore +---@param i integer +---@return playerscore +function common.ConvertPlayerScore(i) end + +---ConvertPlayerGameResult +---@param i integer +---@return playergameresult +function common.ConvertPlayerGameResult(i) end + +---ConvertUnitState +---@param i integer +---@return unitstate +function common.ConvertUnitState(i) end + +---ConvertAIDifficulty +---@param i integer +---@return aidifficulty +function common.ConvertAIDifficulty(i) end + +---ConvertGameEvent +---@param i integer +---@return gameevent +function common.ConvertGameEvent(i) end + +---ConvertPlayerEvent +---@param i integer +---@return playerevent +function common.ConvertPlayerEvent(i) end + +---ConvertPlayerUnitEvent +---@param i integer +---@return playerunitevent +function common.ConvertPlayerUnitEvent(i) end + +---ConvertWidgetEvent +---@param i integer +---@return widgetevent +function common.ConvertWidgetEvent(i) end + +---ConvertDialogEvent +---@param i integer +---@return dialogevent +function common.ConvertDialogEvent(i) end + +---ConvertUnitEvent +---@param i integer +---@return unitevent +function common.ConvertUnitEvent(i) end + +---ConvertLimitOp +---@param i integer +---@return limitop +function common.ConvertLimitOp(i) end + +---ConvertUnitType +---@param i integer +---@return unittype +function common.ConvertUnitType(i) end + +---ConvertGameSpeed +---@param i integer +---@return gamespeed +function common.ConvertGameSpeed(i) end + +---ConvertPlacement +---@param i integer +---@return placement +function common.ConvertPlacement(i) end + +---ConvertStartLocPrio +---@param i integer +---@return startlocprio +function common.ConvertStartLocPrio(i) end + +---ConvertGameDifficulty +---@param i integer +---@return gamedifficulty +function common.ConvertGameDifficulty(i) end + +---ConvertGameType +---@param i integer +---@return gametype +function common.ConvertGameType(i) end + +---ConvertMapFlag +---@param i integer +---@return mapflag +function common.ConvertMapFlag(i) end + +---ConvertMapVisibility +---@param i integer +---@return mapvisibility +function common.ConvertMapVisibility(i) end + +---ConvertMapSetting +---@param i integer +---@return mapsetting +function common.ConvertMapSetting(i) end + +---ConvertMapDensity +---@param i integer +---@return mapdensity +function common.ConvertMapDensity(i) end + +---ConvertMapControl +---@param i integer +---@return mapcontrol +function common.ConvertMapControl(i) end + +---ConvertPlayerColor +---@param i integer +---@return playercolor +function common.ConvertPlayerColor(i) end + +---ConvertPlayerSlotState +---@param i integer +---@return playerslotstate +function common.ConvertPlayerSlotState(i) end + +---ConvertVolumeGroup +---@param i integer +---@return volumegroup +function common.ConvertVolumeGroup(i) end + +---ConvertCameraField +---@param i integer +---@return camerafield +function common.ConvertCameraField(i) end + +---ConvertBlendMode +---@param i integer +---@return blendmode +function common.ConvertBlendMode(i) end + +---ConvertRarityControl +---@param i integer +---@return raritycontrol +function common.ConvertRarityControl(i) end + +---ConvertTexMapFlags +---@param i integer +---@return texmapflags +function common.ConvertTexMapFlags(i) end + +---ConvertFogState +---@param i integer +---@return fogstate +function common.ConvertFogState(i) end + +---ConvertEffectType +---@param i integer +---@return effecttype +function common.ConvertEffectType(i) end + +---ConvertVersion +---@param i integer +---@return version +function common.ConvertVersion(i) end + +---ConvertItemType +---@param i integer +---@return itemtype +function common.ConvertItemType(i) end + +---ConvertAttackType +---@param i integer +---@return attacktype +function common.ConvertAttackType(i) end + +---ConvertDamageType +---@param i integer +---@return damagetype +function common.ConvertDamageType(i) end + +---ConvertWeaponType +---@param i integer +---@return weapontype +function common.ConvertWeaponType(i) end + +---ConvertSoundType +---@param i integer +---@return soundtype +function common.ConvertSoundType(i) end + +---ConvertPathingType +---@param i integer +---@return pathingtype +function common.ConvertPathingType(i) end + +---ConvertMouseButtonType +---@param i integer +---@return mousebuttontype +function common.ConvertMouseButtonType(i) end + +---ConvertAnimType +---@param i integer +---@return animtype +function common.ConvertAnimType(i) end + +---ConvertSubAnimType +---@param i integer +---@return subanimtype +function common.ConvertSubAnimType(i) end + +---ConvertOriginFrameType +---@param i integer +---@return originframetype +function common.ConvertOriginFrameType(i) end + +---ConvertFramePointType +---@param i integer +---@return framepointtype +function common.ConvertFramePointType(i) end + +---ConvertTextAlignType +---@param i integer +---@return textaligntype +function common.ConvertTextAlignType(i) end + +---ConvertFrameEventType +---@param i integer +---@return frameeventtype +function common.ConvertFrameEventType(i) end + +---ConvertOsKeyType +---@param i integer +---@return oskeytype +function common.ConvertOsKeyType(i) end + +---ConvertAbilityIntegerField +---@param i integer +---@return abilityintegerfield +function common.ConvertAbilityIntegerField(i) end + +---ConvertAbilityRealField +---@param i integer +---@return abilityrealfield +function common.ConvertAbilityRealField(i) end + +---ConvertAbilityBooleanField +---@param i integer +---@return abilitybooleanfield +function common.ConvertAbilityBooleanField(i) end + +---ConvertAbilityStringField +---@param i integer +---@return abilitystringfield +function common.ConvertAbilityStringField(i) end + +---ConvertAbilityIntegerLevelField +---@param i integer +---@return abilityintegerlevelfield +function common.ConvertAbilityIntegerLevelField(i) end + +---ConvertAbilityRealLevelField +---@param i integer +---@return abilityreallevelfield +function common.ConvertAbilityRealLevelField(i) end + +---ConvertAbilityBooleanLevelField +---@param i integer +---@return abilitybooleanlevelfield +function common.ConvertAbilityBooleanLevelField(i) end + +---ConvertAbilityStringLevelField +---@param i integer +---@return abilitystringlevelfield +function common.ConvertAbilityStringLevelField(i) end + +---ConvertAbilityIntegerLevelArrayField +---@param i integer +---@return abilityintegerlevelarrayfield +function common.ConvertAbilityIntegerLevelArrayField(i) end + +---ConvertAbilityRealLevelArrayField +---@param i integer +---@return abilityreallevelarrayfield +function common.ConvertAbilityRealLevelArrayField(i) end + +---ConvertAbilityBooleanLevelArrayField +---@param i integer +---@return abilitybooleanlevelarrayfield +function common.ConvertAbilityBooleanLevelArrayField(i) end + +---ConvertAbilityStringLevelArrayField +---@param i integer +---@return abilitystringlevelarrayfield +function common.ConvertAbilityStringLevelArrayField(i) end + +---ConvertUnitIntegerField +---@param i integer +---@return unitintegerfield +function common.ConvertUnitIntegerField(i) end + +---ConvertUnitRealField +---@param i integer +---@return unitrealfield +function common.ConvertUnitRealField(i) end + +---ConvertUnitBooleanField +---@param i integer +---@return unitbooleanfield +function common.ConvertUnitBooleanField(i) end + +---ConvertUnitStringField +---@param i integer +---@return unitstringfield +function common.ConvertUnitStringField(i) end + +---ConvertUnitWeaponIntegerField +---@param i integer +---@return unitweaponintegerfield +function common.ConvertUnitWeaponIntegerField(i) end + +---ConvertUnitWeaponRealField +---@param i integer +---@return unitweaponrealfield +function common.ConvertUnitWeaponRealField(i) end + +---ConvertUnitWeaponBooleanField +---@param i integer +---@return unitweaponbooleanfield +function common.ConvertUnitWeaponBooleanField(i) end + +---ConvertUnitWeaponStringField +---@param i integer +---@return unitweaponstringfield +function common.ConvertUnitWeaponStringField(i) end + +---ConvertItemIntegerField +---@param i integer +---@return itemintegerfield +function common.ConvertItemIntegerField(i) end + +---ConvertItemRealField +---@param i integer +---@return itemrealfield +function common.ConvertItemRealField(i) end + +---ConvertItemBooleanField +---@param i integer +---@return itembooleanfield +function common.ConvertItemBooleanField(i) end + +---ConvertItemStringField +---@param i integer +---@return itemstringfield +function common.ConvertItemStringField(i) end + +---ConvertMoveType +---@param i integer +---@return movetype +function common.ConvertMoveType(i) end + +---ConvertTargetFlag +---@param i integer +---@return targetflag +function common.ConvertTargetFlag(i) end + +---ConvertArmorType +---@param i integer +---@return armortype +function common.ConvertArmorType(i) end + +---ConvertHeroAttribute +---@param i integer +---@return heroattribute +function common.ConvertHeroAttribute(i) end + +---ConvertDefenseType +---@param i integer +---@return defensetype +function common.ConvertDefenseType(i) end + +---ConvertRegenType +---@param i integer +---@return regentype +function common.ConvertRegenType(i) end + +---ConvertUnitCategory +---@param i integer +---@return unitcategory +function common.ConvertUnitCategory(i) end + +---ConvertPathingFlag +---@param i integer +---@return pathingflag +function common.ConvertPathingFlag(i) end + +---OrderId +---@param orderIdString string +---@return integer +function common.OrderId(orderIdString) end + +---OrderId2String +---@param orderId integer +---@return string +function common.OrderId2String(orderId) end + +---UnitId +---@param unitIdString string +---@return integer +function common.UnitId(unitIdString) end + +---UnitId2String +---@param unitId integer +---@return string +function common.UnitId2String(unitId) end + +---Not currently working correctly... +---@param abilityIdString string +---@return integer +function common.AbilityId(abilityIdString) end + +---AbilityId2String +---@param abilityId integer +---@return string +function common.AbilityId2String(abilityId) end + +---Looks up the "name" field for any object (unit, item, ability) +---物体名称 [C] +---@param objectId integer +---@return string +function common.GetObjectName(objectId) end + +---获取最大的玩家数 +---@return integer +function common.GetBJMaxPlayers() end + +---GetBJPlayerNeutralVictim +---@return integer +function common.GetBJPlayerNeutralVictim() end + +---GetBJPlayerNeutralExtra +---@return integer +function common.GetBJPlayerNeutralExtra() end + +---GetBJMaxPlayerSlots +---@return integer +function common.GetBJMaxPlayerSlots() end + +---GetPlayerNeutralPassive +---@return integer +function common.GetPlayerNeutralPassive() end + +---GetPlayerNeutralAggressive +---@return integer +function common.GetPlayerNeutralAggressive() end + +---MathAPI +---转换 度 到 弧度 +---@param degrees real +---@return real +function common.Deg2Rad(degrees) end + +---转换 弧度 到 度 +---@param radians real +---@return real +function common.Rad2Deg(radians) end + +---正弦(弧度) [R] +---@param radians real +---@return real +function common.Sin(radians) end + +---余弦(弧度) [R] +---@param radians real +---@return real +function common.Cos(radians) end + +---正切(弧度) [R] +---@param radians real +---@return real +function common.Tan(radians) end + +---Expect values between -1 and 1...returns 0 for invalid input +---反正弦(弧度) [R] +---@param y real +---@return real +function common.Asin(y) end + +---反余弦(弧度) [R] +---@param x real +---@return real +function common.Acos(x) end + +---反正切(弧度) [R] +---@param x real +---@return real +function common.Atan(x) end + +---Returns 0 if x and y are both 0 +---反正切(Y:X)(弧度) [R] +---@param y real +---@param x real +---@return real +function common.Atan2(y,x) end + +---Returns 0 if x < 0 +---平方根 +---@param x real +---@return real +function common.SquareRoot(x) end + +---computes x to the y power +---y 0.0 > 1 +---x 0.0 and y < 0 > 0 +---求幂 +---@param x real +---@param power real +---@return real +function common.Pow(x,power) end + +---MathRound +---@param r real +---@return integer +function common.MathRound(r) end + +---String Utility API +---转换整数变量为实数 +---@param i integer +---@return real +function common.I2R(i) end + +---转换实数为整数 +---@param r real +---@return integer +function common.R2I(r) end + +---将整数转换为字符串 +---@param i integer +---@return string +function common.I2S(i) end + +---将实数转换为字符串 +---@param r real +---@return string +function common.R2S(r) end + +---将实数转换为格式化字符串 +---@param r real +---@param width integer +---@param precision integer +---@return string +function common.R2SW(r,width,precision) end + +---转换字串符为整数 +---@param s string +---@return integer +function common.S2I(s) end + +---转换字符串为实数 +---@param s string +---@return real +function common.S2R(s) end + +---GetHandleId +---@param h handle +---@return integer +function common.GetHandleId(h) end + +---截取字符串 [R] +---@param source string +---@param start integer +---@param end_ integer +---@return string +function common.SubString(source,start,end_) end + +---字串符长度 +---@param s string +---@return integer +function common.StringLength(s) end + +---将字串符转换为大小写字母 +---@param source string +---@param upper boolean +---@return string +function common.StringCase(source,upper) end + +---StringHash +---@param s string +---@return integer +function common.StringHash(s) end + +---本地字符串 [R] +---@param source string +---@return string +function common.GetLocalizedString(source) end + +---本地热键 +---@param source string +---@return integer +function common.GetLocalizedHotkey(source) end + +---SetMapName +---@param name string +function common.SetMapName(name) end + +---SetMapDescription +---@param description string +function common.SetMapDescription(description) end + +---SetTeams +---@param teamcount integer +function common.SetTeams(teamcount) end + +---SetPlayers +---@param playercount integer +function common.SetPlayers(playercount) end + +---DefineStartLocation +---@param whichStartLoc integer +---@param x real +---@param y real +function common.DefineStartLocation(whichStartLoc,x,y) end + +---DefineStartLocationLoc +---@param whichStartLoc integer +---@param whichLocation location +function common.DefineStartLocationLoc(whichStartLoc,whichLocation) end + +---SetStartLocPrioCount +---@param whichStartLoc integer +---@param prioSlotCount integer +function common.SetStartLocPrioCount(whichStartLoc,prioSlotCount) end + +---SetStartLocPrio +---@param whichStartLoc integer +---@param prioSlotIndex integer +---@param otherStartLocIndex integer +---@param priority startlocprio +function common.SetStartLocPrio(whichStartLoc,prioSlotIndex,otherStartLocIndex,priority) end + +---GetStartLocPrioSlot +---@param whichStartLoc integer +---@param prioSlotIndex integer +---@return integer +function common.GetStartLocPrioSlot(whichStartLoc,prioSlotIndex) end + +---GetStartLocPrio +---@param whichStartLoc integer +---@param prioSlotIndex integer +---@return startlocprio +function common.GetStartLocPrio(whichStartLoc,prioSlotIndex) end + +---SetEnemyStartLocPrioCount +---@param whichStartLoc integer +---@param prioSlotCount integer +function common.SetEnemyStartLocPrioCount(whichStartLoc,prioSlotCount) end + +---SetEnemyStartLocPrio +---@param whichStartLoc integer +---@param prioSlotIndex integer +---@param otherStartLocIndex integer +---@param priority startlocprio +function common.SetEnemyStartLocPrio(whichStartLoc,prioSlotIndex,otherStartLocIndex,priority) end + +---SetGameTypeSupported +---@param whichGameType gametype +---@param value boolean +function common.SetGameTypeSupported(whichGameType,value) end + +---设置地图参数 +---@param whichMapFlag mapflag +---@param value boolean +function common.SetMapFlag(whichMapFlag,value) end + +---SetGamePlacement +---@param whichPlacementType placement +function common.SetGamePlacement(whichPlacementType) end + +---设定游戏速度 +---@param whichspeed gamespeed +function common.SetGameSpeed(whichspeed) end + +---设置游戏难度 [R] +---@param whichdifficulty gamedifficulty +function common.SetGameDifficulty(whichdifficulty) end + +---SetResourceDensity +---@param whichdensity mapdensity +function common.SetResourceDensity(whichdensity) end + +---SetCreatureDensity +---@param whichdensity mapdensity +function common.SetCreatureDensity(whichdensity) end + +---队伍数量 +---@return integer +function common.GetTeams() end + +---玩家数量 +---@return integer +function common.GetPlayers() end + +---IsGameTypeSupported +---@param whichGameType gametype +---@return boolean +function common.IsGameTypeSupported(whichGameType) end + +---GetGameTypeSelected +---@return gametype +function common.GetGameTypeSelected() end + +---地图参数 +---@param whichMapFlag mapflag +---@return boolean +function common.IsMapFlagSet(whichMapFlag) end + +---GetGamePlacement +---@return placement +function common.GetGamePlacement() end + +---当前游戏速度 +---@return gamespeed +function common.GetGameSpeed() end + +---难度等级 +---@return gamedifficulty +function common.GetGameDifficulty() end + +---GetResourceDensity +---@return mapdensity +function common.GetResourceDensity() end + +---GetCreatureDensity +---@return mapdensity +function common.GetCreatureDensity() end + +---GetStartLocationX +---@param whichStartLocation integer +---@return real +function common.GetStartLocationX(whichStartLocation) end + +---GetStartLocationY +---@param whichStartLocation integer +---@return real +function common.GetStartLocationY(whichStartLocation) end + +---GetStartLocationLoc +---@param whichStartLocation integer +---@return location +function common.GetStartLocationLoc(whichStartLocation) end + +---设置玩家队伍 +---@param whichPlayer player +---@param whichTeam integer +function common.SetPlayerTeam(whichPlayer,whichTeam) end + +---SetPlayerStartLocation +---@param whichPlayer player +---@param startLocIndex integer +function common.SetPlayerStartLocation(whichPlayer,startLocIndex) end + +---forces player to have the specified start loc and marks the start loc as occupied +---which removes it from consideration for subsequently placed players +---( i.e. you can use this to put people in a fixed loc and then +---use random placement for any unplaced players etc ) +---use random placement for any unplaced players etc ) +---@param whichPlayer player +---@param startLocIndex integer +function common.ForcePlayerStartLocation(whichPlayer,startLocIndex) end + +---改变玩家颜色 [R] +---@param whichPlayer player +---@param color playercolor +function common.SetPlayerColor(whichPlayer,color) end + +---设置联盟状态(指定项目) [R] +---@param sourcePlayer player +---@param otherPlayer player +---@param whichAllianceSetting alliancetype +---@param value boolean +function common.SetPlayerAlliance(sourcePlayer,otherPlayer,whichAllianceSetting,value) end + +---设置税率 [R] +---@param sourcePlayer player +---@param otherPlayer player +---@param whichResource playerstate +---@param rate integer +function common.SetPlayerTaxRate(sourcePlayer,otherPlayer,whichResource,rate) end + +---SetPlayerRacePreference +---@param whichPlayer player +---@param whichRacePreference racepreference +function common.SetPlayerRacePreference(whichPlayer,whichRacePreference) end + +---SetPlayerRaceSelectable +---@param whichPlayer player +---@param value boolean +function common.SetPlayerRaceSelectable(whichPlayer,value) end + +---SetPlayerController +---@param whichPlayer player +---@param controlType mapcontrol +function common.SetPlayerController(whichPlayer,controlType) end + +---设置玩家名字 +---@param whichPlayer player +---@param name string +function common.SetPlayerName(whichPlayer,name) end + +---显示/隐藏计分屏显示 [R] +---@param whichPlayer player +---@param flag boolean +function common.SetPlayerOnScoreScreen(whichPlayer,flag) end + +---玩家在的队伍 +---@param whichPlayer player +---@return integer +function common.GetPlayerTeam(whichPlayer) end + +---GetPlayerStartLocation +---@param whichPlayer player +---@return integer +function common.GetPlayerStartLocation(whichPlayer) end + +---玩家的颜色 +---@param whichPlayer player +---@return playercolor +function common.GetPlayerColor(whichPlayer) end + +---GetPlayerSelectable +---@param whichPlayer player +---@return boolean +function common.GetPlayerSelectable(whichPlayer) end + +---玩家控制者 +---@param whichPlayer player +---@return mapcontrol +function common.GetPlayerController(whichPlayer) end + +---玩家游戏属性 +---@param whichPlayer player +---@return playerslotstate +function common.GetPlayerSlotState(whichPlayer) end + +---玩家税率 [R] +---@param sourcePlayer player +---@param otherPlayer player +---@param whichResource playerstate +---@return integer +function common.GetPlayerTaxRate(sourcePlayer,otherPlayer,whichResource) end + +---玩家的种族选择 +---@param whichPlayer player +---@param pref racepreference +---@return boolean +function common.IsPlayerRacePrefSet(whichPlayer,pref) end + +---玩家名字 +---@param whichPlayer player +---@return string +function common.GetPlayerName(whichPlayer) end + +---Timer API +---新建计时器 [R] +---@return timer +function common.CreateTimer() end + +---删除计时器 [R] +---@param whichTimer timer +function common.DestroyTimer(whichTimer) end + +---运行计时器 [C] +---@param whichTimer timer +---@param timeout real +---@param periodic boolean +---@param handlerFunc code +function common.TimerStart(whichTimer,timeout,periodic,handlerFunc) end + +---计时器经过的时间 +---@param whichTimer timer +---@return real +function common.TimerGetElapsed(whichTimer) end + +---计时器剩余时间 +---@param whichTimer timer +---@return real +function common.TimerGetRemaining(whichTimer) end + +---计时器初始的时间 +---@param whichTimer timer +---@return real +function common.TimerGetTimeout(whichTimer) end + +---暂停计时器 [R] +---@param whichTimer timer +function common.PauseTimer(whichTimer) end + +---恢复计时器 [R] +---@param whichTimer timer +function common.ResumeTimer(whichTimer) end + +---事件响应 - 计时器期满 +---@return timer +function common.GetExpiredTimer() end + +---Group API +---新建的单位组 [R] +---@return group +function common.CreateGroup() end + +---删除单位组 [R] +---@param whichGroup group +function common.DestroyGroup(whichGroup) end + +---添加单位 [R] +---@param whichGroup group +---@param whichUnit unit +---@return boolean +function common.GroupAddUnit(whichGroup,whichUnit) end + +---移除单位 [R] +---@param whichGroup group +---@param whichUnit unit +---@return boolean +function common.GroupRemoveUnit(whichGroup,whichUnit) end + +---清除 +---@param whichGroup group +function common.GroupClear(whichGroup) end + +---GroupEnumUnitsOfType +---@param whichGroup group +---@param unitname string +---@param filter boolexpr +function common.GroupEnumUnitsOfType(whichGroup,unitname,filter) end + +---GroupEnumUnitsOfPlayer +---@param whichGroup group +---@param whichPlayer player +---@param filter boolexpr +function common.GroupEnumUnitsOfPlayer(whichGroup,whichPlayer,filter) end + +---GroupEnumUnitsOfTypeCounted +---@param whichGroup group +---@param unitname string +---@param filter boolexpr +---@param countLimit integer +function common.GroupEnumUnitsOfTypeCounted(whichGroup,unitname,filter,countLimit) end + +---GroupEnumUnitsInRect +---@param whichGroup group +---@param r rect +---@param filter boolexpr +function common.GroupEnumUnitsInRect(whichGroup,r,filter) end + +---GroupEnumUnitsInRectCounted +---@param whichGroup group +---@param r rect +---@param filter boolexpr +---@param countLimit integer +function common.GroupEnumUnitsInRectCounted(whichGroup,r,filter,countLimit) end + +---选取单位添加到单位组(坐标) +---@param whichGroup group +---@param x real +---@param y real +---@param radius real +---@param filter boolexpr +function common.GroupEnumUnitsInRange(whichGroup,x,y,radius,filter) end + +---选取单位添加到单位组(点) +---@param whichGroup group +---@param whichLocation location +---@param radius real +---@param filter boolexpr +function common.GroupEnumUnitsInRangeOfLoc(whichGroup,whichLocation,radius,filter) end + +---选取单位添加到单位组(坐标)(不建议使用) +---@param whichGroup group +---@param x real +---@param y real +---@param radius real +---@param filter boolexpr +---@param countLimit integer +function common.GroupEnumUnitsInRangeCounted(whichGroup,x,y,radius,filter,countLimit) end + +---选取单位添加到单位组(点)(不建议使用) +---@param whichGroup group +---@param whichLocation location +---@param radius real +---@param filter boolexpr +---@param countLimit integer +function common.GroupEnumUnitsInRangeOfLocCounted(whichGroup,whichLocation,radius,filter,countLimit) end + +---GroupEnumUnitsSelected +---@param whichGroup group +---@param whichPlayer player +---@param filter boolexpr +function common.GroupEnumUnitsSelected(whichGroup,whichPlayer,filter) end + +---发送单位组命令到 没有目标 +---@param whichGroup group +---@param order string +---@return boolean +function common.GroupImmediateOrder(whichGroup,order) end + +---发布命令(无目标)(ID) +---@param whichGroup group +---@param order integer +---@return boolean +function common.GroupImmediateOrderById(whichGroup,order) end + +---发布命令(指定坐标) [R] +---@param whichGroup group +---@param order string +---@param x real +---@param y real +---@return boolean +function common.GroupPointOrder(whichGroup,order,x,y) end + +---发送单位组命令到 点 +---@param whichGroup group +---@param order string +---@param whichLocation location +---@return boolean +function common.GroupPointOrderLoc(whichGroup,order,whichLocation) end + +---发布命令(指定坐标)(ID) +---@param whichGroup group +---@param order integer +---@param x real +---@param y real +---@return boolean +function common.GroupPointOrderById(whichGroup,order,x,y) end + +---发布命令(指定点)(ID) +---@param whichGroup group +---@param order integer +---@param whichLocation location +---@return boolean +function common.GroupPointOrderByIdLoc(whichGroup,order,whichLocation) end + +---发送单位组命令到 单位 +---@param whichGroup group +---@param order string +---@param targetWidget widget +---@return boolean +function common.GroupTargetOrder(whichGroup,order,targetWidget) end + +---发布命令(指定单位)(ID) +---@param whichGroup group +---@param order integer +---@param targetWidget widget +---@return boolean +function common.GroupTargetOrderById(whichGroup,order,targetWidget) end + +---This will be difficult to support with potentially disjoint, cell-based regions +---as it would involve enumerating all the cells that are covered by a particularregion +---a better implementation would be a trigger that adds relevant units as they enter +---and removes them if they leave... +---选取所有单位在单位组做 多动作 +---@param whichGroup group +---@param callback code +function common.ForGroup(whichGroup,callback) end + +---单位组中第一个单位 +---@param whichGroup group +---@return unit +function common.FirstOfGroup(whichGroup) end + +---Force API +---新建玩家组 [R] +---@return force +function common.CreateForce() end + +---删除玩家组 [R] +---@param whichForce force +function common.DestroyForce(whichForce) end + +---添加玩家 [R] +---@param whichForce force +---@param whichPlayer player +function common.ForceAddPlayer(whichForce,whichPlayer) end + +---移除玩家 [R] +---@param whichForce force +---@param whichPlayer player +function common.ForceRemovePlayer(whichForce,whichPlayer) end + +---清除玩家 +---@param whichForce force +function common.ForceClear(whichForce) end + +---ForceEnumPlayers +---@param whichForce force +---@param filter boolexpr +function common.ForceEnumPlayers(whichForce,filter) end + +---ForceEnumPlayersCounted +---@param whichForce force +---@param filter boolexpr +---@param countLimit integer +function common.ForceEnumPlayersCounted(whichForce,filter,countLimit) end + +---ForceEnumAllies +---@param whichForce force +---@param whichPlayer player +---@param filter boolexpr +function common.ForceEnumAllies(whichForce,whichPlayer,filter) end + +---ForceEnumEnemies +---@param whichForce force +---@param whichPlayer player +---@param filter boolexpr +function common.ForceEnumEnemies(whichForce,whichPlayer,filter) end + +---选取所有玩家在玩家组做动作(单一的) +---@param whichForce force +---@param callback code +function common.ForForce(whichForce,callback) end + +---Region and Location API +---将坐标转换为区域 +---@param minx real +---@param miny real +---@param maxx real +---@param maxy real +---@return rect +function common.Rect(minx,miny,maxx,maxy) end + +---将点转换为区域 +---@param min location +---@param max location +---@return rect +function common.RectFromLoc(min,max) end + +---删除矩形区域 [R] +---@param whichRect rect +function common.RemoveRect(whichRect) end + +---设置矩形区域(指定坐标) [R] +---@param whichRect rect +---@param minx real +---@param miny real +---@param maxx real +---@param maxy real +function common.SetRect(whichRect,minx,miny,maxx,maxy) end + +---设置矩形区域(指定点) [R] +---@param whichRect rect +---@param min location +---@param max location +function common.SetRectFromLoc(whichRect,min,max) end + +---移动矩形区域(指定坐标) [R] +---@param whichRect rect +---@param newCenterX real +---@param newCenterY real +function common.MoveRectTo(whichRect,newCenterX,newCenterY) end + +---移动区域 +---@param whichRect rect +---@param newCenterLoc location +function common.MoveRectToLoc(whichRect,newCenterLoc) end + +---区域中心的 X 坐标 +---@param whichRect rect +---@return real +function common.GetRectCenterX(whichRect) end + +---区域中心的 Y 坐标 +---@param whichRect rect +---@return real +function common.GetRectCenterY(whichRect) end + +---区域最小 X 坐标 +---@param whichRect rect +---@return real +function common.GetRectMinX(whichRect) end + +---区域最小 Y 坐标 +---@param whichRect rect +---@return real +function common.GetRectMinY(whichRect) end + +---区域最大 X 坐标 +---@param whichRect rect +---@return real +function common.GetRectMaxX(whichRect) end + +---区域最大 Y 坐标 +---@param whichRect rect +---@return real +function common.GetRectMaxY(whichRect) end + +---新建区域 [R] +---@return region +function common.CreateRegion() end + +---删除不规则区域 [R] +---@param whichRegion region +function common.RemoveRegion(whichRegion) end + +---添加区域 [R] +---@param whichRegion region +---@param r rect +function common.RegionAddRect(whichRegion,r) end + +---移除区域 [R] +---@param whichRegion region +---@param r rect +function common.RegionClearRect(whichRegion,r) end + +---添加单元点(指定坐标) [R] +---@param whichRegion region +---@param x real +---@param y real +function common.RegionAddCell(whichRegion,x,y) end + +---添加单元点(指定点) [R] +---@param whichRegion region +---@param whichLocation location +function common.RegionAddCellAtLoc(whichRegion,whichLocation) end + +---移除单元点(指定坐标) [R] +---@param whichRegion region +---@param x real +---@param y real +function common.RegionClearCell(whichRegion,x,y) end + +---移除单元点(指定点) [R] +---@param whichRegion region +---@param whichLocation location +function common.RegionClearCellAtLoc(whichRegion,whichLocation) end + +---转换坐标到点 +---@param x real +---@param y real +---@return location +function common.Location(x,y) end + +---清除点 [R] +---@param whichLocation location +function common.RemoveLocation(whichLocation) end + +---移动点 [R] +---@param whichLocation location +---@param newX real +---@param newY real +function common.MoveLocation(whichLocation,newX,newY) end + +---X 坐标 +---@param whichLocation location +---@return real +function common.GetLocationX(whichLocation) end + +---Y 坐标 +---@param whichLocation location +---@return real +function common.GetLocationY(whichLocation) end + +---This function is asynchronous. The values it returns are not guaranteed synchronous between each player. +---If you attempt to use it in a synchronous manner, it may cause a desync. +---点的Z轴高度 [R] +---@param whichLocation location +---@return real +function common.GetLocationZ(whichLocation) end + +---单位检查 +---@param whichRegion region +---@param whichUnit unit +---@return boolean +function common.IsUnitInRegion(whichRegion,whichUnit) end + +---包含坐标 +---@param whichRegion region +---@param x real +---@param y real +---@return boolean +function common.IsPointInRegion(whichRegion,x,y) end + +---包含点 +---@param whichRegion region +---@param whichLocation location +---@return boolean +function common.IsLocationInRegion(whichRegion,whichLocation) end + +---Returns full map bounds, including unplayable borders, in world coordinates +---Returns full map bounds, including unplayable borders, in world coordinates +---@return rect +function common.GetWorldBounds() end + +---Native trigger interface +---新建触发 [R] +---@return trigger +function common.CreateTrigger() end + +---删除触发器 [R] +---@param whichTrigger trigger +function common.DestroyTrigger(whichTrigger) end + +---ResetTrigger +---@param whichTrigger trigger +function common.ResetTrigger(whichTrigger) end + +---打开触发器 +---@param whichTrigger trigger +function common.EnableTrigger(whichTrigger) end + +---关掉触发器 +---@param whichTrigger trigger +function common.DisableTrigger(whichTrigger) end + +---触发器打开 +---@param whichTrigger trigger +---@return boolean +function common.IsTriggerEnabled(whichTrigger) end + +---TriggerWaitOnSleeps +---@param whichTrigger trigger +---@param flag boolean +function common.TriggerWaitOnSleeps(whichTrigger,flag) end + +---IsTriggerWaitOnSleeps +---@param whichTrigger trigger +---@return boolean +function common.IsTriggerWaitOnSleeps(whichTrigger) end + +---匹配的单位 +---@return unit +function common.GetFilterUnit() end + +---选取的单位 +---@return unit +function common.GetEnumUnit() end + +---匹配的可毁坏物 +---@return destructable +function common.GetFilterDestructable() end + +---选取的可毁坏物 +---@return destructable +function common.GetEnumDestructable() end + +---匹配的物品 +---@return item +function common.GetFilterItem() end + +---选取的物品 +---@return item +function common.GetEnumItem() end + +---ParseTags +---@param taggedString string +---@return string +function common.ParseTags(taggedString) end + +---匹配的玩家 +---@return player +function common.GetFilterPlayer() end + +---选取的玩家 +---@return player +function common.GetEnumPlayer() end + +---当前触发器 +---@return trigger +function common.GetTriggeringTrigger() end + +---GetTriggerEventId +---@return eventid +function common.GetTriggerEventId() end + +---触发器赋值统计 +---@param whichTrigger trigger +---@return integer +function common.GetTriggerEvalCount(whichTrigger) end + +---触发器运行次数统计 +---@param whichTrigger trigger +---@return integer +function common.GetTriggerExecCount(whichTrigger) end + +---运行函数 [R] +---@param funcName string +function common.ExecuteFunc(funcName) end + +---Boolean Expr API ( for compositing trigger conditions and unit filter funcs...) +---@param operandA boolexpr +---@param operandB boolexpr +---@return boolexpr +function common.And(operandA,operandB) end + +---Or +---@param operandA boolexpr +---@param operandB boolexpr +---@return boolexpr +function common.Or(operandA,operandB) end + +---Not +---@param operand boolexpr +---@return boolexpr +function common.Not(operand) end + +---限制条件为 +---@param func code +---@return conditionfunc +function common.Condition(func) end + +---DestroyCondition +---@param c conditionfunc +function common.DestroyCondition(c) end + +---Filter +---@param func code +---@return filterfunc +function common.Filter(func) end + +---DestroyFilter +---@param f filterfunc +function common.DestroyFilter(f) end + +---DestroyBoolExpr +---@param e boolexpr +function common.DestroyBoolExpr(e) end + +---变量的值 +---@param whichTrigger trigger +---@param varName string +---@param opcode limitop +---@param limitval real +---@return event +function common.TriggerRegisterVariableEvent(whichTrigger,varName,opcode,limitval) end + +---Creates it's own timer and triggers when it expires +---Creates it's own timer and triggers when it expires +---@param whichTrigger trigger +---@param timeout real +---@param periodic boolean +---@return event +function common.TriggerRegisterTimerEvent(whichTrigger,timeout,periodic) end + +---Triggers when the timer you tell it about expires +---Triggers when the timer you tell it about expires +---@param whichTrigger trigger +---@param t timer +---@return event +function common.TriggerRegisterTimerExpireEvent(whichTrigger,t) end + +---TriggerRegisterGameStateEvent +---@param whichTrigger trigger +---@param whichState gamestate +---@param opcode limitop +---@param limitval real +---@return event +function common.TriggerRegisterGameStateEvent(whichTrigger,whichState,opcode,limitval) end + +---TriggerRegisterDialogEvent +---@param whichTrigger trigger +---@param whichDialog dialog +---@return event +function common.TriggerRegisterDialogEvent(whichTrigger,whichDialog) end + +---对话框按钮被点击 [R] +---@param whichTrigger trigger +---@param whichButton button +---@return event +function common.TriggerRegisterDialogButtonEvent(whichTrigger,whichButton) end + +---EVENT_GAME_STATE_LIMIT +---EVENT_GAME_STATE_LIMIT +---@return gamestate +function common.GetEventGameState() end + +---比赛游戏事件 +---@param whichTrigger trigger +---@param whichGameEvent gameevent +---@return event +function common.TriggerRegisterGameEvent(whichTrigger,whichGameEvent) end + +---EVENT_GAME_VICTORY +---EVENT_GAME_VICTORY +---@return player +function common.GetWinningPlayer() end + +---单位进入不规则区域(指定条件) [R] +---@param whichTrigger trigger +---@param whichRegion region +---@param filter boolexpr +---@return event +function common.TriggerRegisterEnterRegion(whichTrigger,whichRegion,filter) end + +---EVENT_GAME_ENTER_REGION +---触发区域 [R] +---@return region +function common.GetTriggeringRegion() end + +---正在进入的单位 +---@return unit +function common.GetEnteringUnit() end + +---单位离开不规则区域(指定条件) [R] +---@param whichTrigger trigger +---@param whichRegion region +---@param filter boolexpr +---@return event +function common.TriggerRegisterLeaveRegion(whichTrigger,whichRegion,filter) end + +---正在离开的单位 +---@return unit +function common.GetLeavingUnit() end + +---鼠标点击可追踪物 [R] +---@param whichTrigger trigger +---@param t trackable +---@return event +function common.TriggerRegisterTrackableHitEvent(whichTrigger,t) end + +---鼠标移动到追踪对象 [R] +---@param whichTrigger trigger +---@param t trackable +---@return event +function common.TriggerRegisterTrackableTrackEvent(whichTrigger,t) end + +---EVENT_COMMAND_BUTTON_CLICK +---EVENT_COMMAND_BUTTON_CLICK +---@param whichTrigger trigger +---@param whichAbility integer +---@param order string +---@return event +function common.TriggerRegisterCommandEvent(whichTrigger,whichAbility,order) end + +---TriggerRegisterUpgradeCommandEvent +---@param whichTrigger trigger +---@param whichUpgrade integer +---@return event +function common.TriggerRegisterUpgradeCommandEvent(whichTrigger,whichUpgrade) end + +---EVENT_GAME_TRACKABLE_HIT +---EVENT_GAME_TRACKABLE_TRACK +---事件响应 - 触发可追踪物 [R] +---@return trackable +function common.GetTriggeringTrackable() end + +---EVENT_DIALOG_BUTTON_CLICK +---EVENT_DIALOG_BUTTON_CLICK +---@return button +function common.GetClickedButton() end + +---GetClickedDialog +---@return dialog +function common.GetClickedDialog() end + +---EVENT_GAME_TOURNAMENT_FINISH_SOON +---比赛剩余时间 +---@return real +function common.GetTournamentFinishSoonTimeRemaining() end + +---比赛结束规则 +---@return integer +function common.GetTournamentFinishNowRule() end + +---GetTournamentFinishNowPlayer +---@return player +function common.GetTournamentFinishNowPlayer() end + +---对战比赛得分 +---@param whichPlayer player +---@return integer +function common.GetTournamentScore(whichPlayer) end + +---EVENT_GAME_SAVE +---储存游戏文件名 +---@return string +function common.GetSaveBasicFilename() end + +---TriggerRegisterPlayerEvent +---@param whichTrigger trigger +---@param whichPlayer player +---@param whichPlayerEvent playerevent +---@return event +function common.TriggerRegisterPlayerEvent(whichTrigger,whichPlayer,whichPlayerEvent) end + +---EVENT_PLAYER_DEFEAT +---EVENT_PLAYER_VICTORY +---触发玩家 +---@return player +function common.GetTriggerPlayer() end + +---TriggerRegisterPlayerUnitEvent +---@param whichTrigger trigger +---@param whichPlayer player +---@param whichPlayerUnitEvent playerunitevent +---@param filter boolexpr +---@return event +function common.TriggerRegisterPlayerUnitEvent(whichTrigger,whichPlayer,whichPlayerUnitEvent,filter) end + +---EVENT_PLAYER_HERO_LEVEL +---EVENT_UNIT_HERO_LEVEL +---英雄升级 +---@return unit +function common.GetLevelingUnit() end + +---EVENT_PLAYER_HERO_SKILL +---EVENT_UNIT_HERO_SKILL +---学习技能的英雄 +---@return unit +function common.GetLearningUnit() end + +---学习技能 [R] +---@return integer +function common.GetLearnedSkill() end + +---学习的技能的等级 +---@return integer +function common.GetLearnedSkillLevel() end + +---EVENT_PLAYER_HERO_REVIVABLE +---可复活的英雄 +---@return unit +function common.GetRevivableUnit() end + +---EVENT_PLAYER_HERO_REVIVE_START +---EVENT_PLAYER_HERO_REVIVE_CANCEL +---EVENT_PLAYER_HERO_REVIVE_FINISH +---EVENT_UNIT_HERO_REVIVE_START +---EVENT_UNIT_HERO_REVIVE_CANCEL +---EVENT_UNIT_HERO_REVIVE_FINISH +---复活英雄 +---@return unit +function common.GetRevivingUnit() end + +---EVENT_PLAYER_UNIT_ATTACKED +---攻击的单位 +---@return unit +function common.GetAttacker() end + +---EVENT_PLAYER_UNIT_RESCUED +---EVENT_PLAYER_UNIT_RESCUED +---@return unit +function common.GetRescuer() end + +---EVENT_PLAYER_UNIT_DEATH +---垂死的单位 +---@return unit +function common.GetDyingUnit() end + +---GetKillingUnit +---@return unit +function common.GetKillingUnit() end + +---EVENT_PLAYER_UNIT_DECAY +---尸体腐烂单位 +---@return unit +function common.GetDecayingUnit() end + +---EVENT_PLAYER_UNIT_CONSTRUCT_START +---正在建造的建筑 +---@return unit +function common.GetConstructingStructure() end + +---EVENT_PLAYER_UNIT_CONSTRUCT_FINISH +---EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL +---取消建造中的建筑 +---@return unit +function common.GetCancelledStructure() end + +---已建造的建筑 +---@return unit +function common.GetConstructedStructure() end + +---EVENT_PLAYER_UNIT_RESEARCH_START +---EVENT_PLAYER_UNIT_RESEARCH_CANCEL +---EVENT_PLAYER_UNIT_RESEARCH_FINISH +---研究科技单位 +---@return unit +function common.GetResearchingUnit() end + +---研究的 科技-类型 +---@return integer +function common.GetResearched() end + +---EVENT_PLAYER_UNIT_TRAIN_START +---EVENT_PLAYER_UNIT_TRAIN_CANCEL +---EVENT_PLAYER_UNIT_TRAIN_FINISH +---EVENT_PLAYER_UNIT_TRAIN_FINISH +---@return integer +function common.GetTrainedUnitType() end + +---EVENT_PLAYER_UNIT_TRAIN_FINISH +---@return unit +function common.GetTrainedUnit() end + +---EVENT_PLAYER_UNIT_DETECTED +---EVENT_PLAYER_UNIT_DETECTED +---@return unit +function common.GetDetectedUnit() end + +---EVENT_PLAYER_UNIT_SUMMONED +---正在召唤的单位 +---@return unit +function common.GetSummoningUnit() end + +---已召唤单位 +---@return unit +function common.GetSummonedUnit() end + +---EVENT_PLAYER_UNIT_LOADED +---EVENT_PLAYER_UNIT_LOADED +---@return unit +function common.GetTransportUnit() end + +---GetLoadedUnit +---@return unit +function common.GetLoadedUnit() end + +---EVENT_PLAYER_UNIT_SELL +---出售单位 +---@return unit +function common.GetSellingUnit() end + +---被出售单位 +---@return unit +function common.GetSoldUnit() end + +---在购买的单位 +---@return unit +function common.GetBuyingUnit() end + +---EVENT_PLAYER_UNIT_SELL_ITEM +---卖出的物品 +---@return item +function common.GetSoldItem() end + +---EVENT_PLAYER_UNIT_CHANGE_OWNER +---改变了所有者的单位 +---@return unit +function common.GetChangingUnit() end + +---前一个所有者 +---@return player +function common.GetChangingUnitPrevOwner() end + +---EVENT_PLAYER_UNIT_DROP_ITEM +---EVENT_PLAYER_UNIT_PICKUP_ITEM +---EVENT_PLAYER_UNIT_USE_ITEM +---英雄操作物品 +---@return unit +function common.GetManipulatingUnit() end + +---物品存在操作 +---@return item +function common.GetManipulatedItem() end + +---EVENT_PLAYER_UNIT_ISSUED_ORDER +---收到命令的单位 +---@return unit +function common.GetOrderedUnit() end + +---GetIssuedOrderId +---@return integer +function common.GetIssuedOrderId() end + +---EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER +---命令发布点X坐标 [R] +---@return real +function common.GetOrderPointX() end + +---命令发布点Y坐标 [R] +---@return real +function common.GetOrderPointY() end + +---目标的位置 +---@return location +function common.GetOrderPointLoc() end + +---EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER +---EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER +---@return widget +function common.GetOrderTarget() end + +---目标的可毁坏物 +---@return destructable +function common.GetOrderTargetDestructable() end + +---目标的物品 +---@return item +function common.GetOrderTargetItem() end + +---目标的单位 +---@return unit +function common.GetOrderTargetUnit() end + +---EVENT_UNIT_SPELL_CHANNEL +---EVENT_UNIT_SPELL_CAST +---EVENT_UNIT_SPELL_EFFECT +---EVENT_UNIT_SPELL_FINISH +---EVENT_UNIT_SPELL_ENDCAST +---EVENT_PLAYER_UNIT_SPELL_CHANNEL +---EVENT_PLAYER_UNIT_SPELL_CAST +---EVENT_PLAYER_UNIT_SPELL_EFFECT +---EVENT_PLAYER_UNIT_SPELL_FINISH +---EVENT_PLAYER_UNIT_SPELL_ENDCAST +---技能单位 +---@return unit +function common.GetSpellAbilityUnit() end + +---使用的技能 +---@return integer +function common.GetSpellAbilityId() end + +---使用的技能 +---@return ability +function common.GetSpellAbility() end + +---对其使用技能的目标点 +---@return location +function common.GetSpellTargetLoc() end + +---GetSpellTargetX +---@return real +function common.GetSpellTargetX() end + +---GetSpellTargetY +---@return real +function common.GetSpellTargetY() end + +---对其使用技能的目标可毁坏物 +---@return destructable +function common.GetSpellTargetDestructable() end + +---对其使用技能的目标物品 +---@return item +function common.GetSpellTargetItem() end + +---对其使用技能的目标单位 +---@return unit +function common.GetSpellTargetUnit() end + +---联盟状态改变(特殊) +---@param whichTrigger trigger +---@param whichPlayer player +---@param whichAlliance alliancetype +---@return event +function common.TriggerRegisterPlayerAllianceChange(whichTrigger,whichPlayer,whichAlliance) end + +---属性 +---@param whichTrigger trigger +---@param whichPlayer player +---@param whichState playerstate +---@param opcode limitop +---@param limitval real +---@return event +function common.TriggerRegisterPlayerStateEvent(whichTrigger,whichPlayer,whichState,opcode,limitval) end + +---EVENT_PLAYER_STATE_LIMIT +---EVENT_PLAYER_STATE_LIMIT +---@return playerstate +function common.GetEventPlayerState() end + +---玩家输入聊天信息 +---@param whichTrigger trigger +---@param whichPlayer player +---@param chatMessageToDetect string +---@param exactMatchOnly boolean +---@return event +function common.TriggerRegisterPlayerChatEvent(whichTrigger,whichPlayer,chatMessageToDetect,exactMatchOnly) end + +---returns the actual string they typed in ( same as what you registered for +---if you required exact match ) +---输入的聊天字符 +---@return string +function common.GetEventPlayerChatString() end + +---returns the string that you registered for +---匹配的聊天字符 +---@return string +function common.GetEventPlayerChatStringMatched() end + +---可毁坏物死亡 +---@param whichTrigger trigger +---@param whichWidget widget +---@return event +function common.TriggerRegisterDeathEvent(whichTrigger,whichWidget) end + +---触发单位 +---@return unit +function common.GetTriggerUnit() end + +---TriggerRegisterUnitStateEvent +---@param whichTrigger trigger +---@param whichUnit unit +---@param whichState unitstate +---@param opcode limitop +---@param limitval real +---@return event +function common.TriggerRegisterUnitStateEvent(whichTrigger,whichUnit,whichState,opcode,limitval) end + +---EVENT_UNIT_STATE_LIMIT +---EVENT_UNIT_STATE_LIMIT +---获取单位状态 +---@return unitstate +function common.GetEventUnitState() end + +---详细单位的事件 +---@param whichTrigger trigger +---@param whichUnit unit +---@param whichEvent unitevent +---@return event +function common.TriggerRegisterUnitEvent(whichTrigger,whichUnit,whichEvent) end + +---EVENT_UNIT_DAMAGED +---被伤害的生命值 +---@return real +function common.GetEventDamage() end + +---伤害来源 +---@return unit +function common.GetEventDamageSource() end + +---EVENT_UNIT_DETECTED +---EVENT_UNIT_DETECTED +---@return player +function common.GetEventDetectingPlayer() end + +---TriggerRegisterFilterUnitEvent +---@param whichTrigger trigger +---@param whichUnit unit +---@param whichEvent unitevent +---@param filter boolexpr +---@return event +function common.TriggerRegisterFilterUnitEvent(whichTrigger,whichUnit,whichEvent,filter) end + +---EVENT_UNIT_ACQUIRED_TARGET +---EVENT_UNIT_TARGET_IN_RANGE +---目标单位 +---@return unit +function common.GetEventTargetUnit() end + +---TriggerRegisterUnitInRange +---@param whichTrigger trigger +---@param whichUnit unit +---@param range real +---@param filter boolexpr +---@return event +function common.TriggerRegisterUnitInRange(whichTrigger,whichUnit,range,filter) end + +---添加触发器限制条件 +---@param whichTrigger trigger +---@param condition boolexpr +---@return triggercondition +function common.TriggerAddCondition(whichTrigger,condition) end + +---TriggerRemoveCondition +---@param whichTrigger trigger +---@param whichCondition triggercondition +function common.TriggerRemoveCondition(whichTrigger,whichCondition) end + +---TriggerClearConditions +---@param whichTrigger trigger +function common.TriggerClearConditions(whichTrigger) end + +---添加触发器动作 +---@param whichTrigger trigger +---@param actionFunc code +---@return triggeraction +function common.TriggerAddAction(whichTrigger,actionFunc) end + +---TriggerRemoveAction +---@param whichTrigger trigger +---@param whichAction triggeraction +function common.TriggerRemoveAction(whichTrigger,whichAction) end + +---TriggerClearActions +---@param whichTrigger trigger +function common.TriggerClearActions(whichTrigger) end + +---等待 +---@param timeout real +function common.TriggerSleepAction(timeout) end + +---TriggerWaitForSound +---@param s sound +---@param offset real +function common.TriggerWaitForSound(s,offset) end + +---触发器条件成立 +---@param whichTrigger trigger +---@return boolean +function common.TriggerEvaluate(whichTrigger) end + +---运行触发器 (忽略条件) +---@param whichTrigger trigger +function common.TriggerExecute(whichTrigger) end + +---TriggerExecuteWait +---@param whichTrigger trigger +function common.TriggerExecuteWait(whichTrigger) end + +---TriggerSyncStart +function common.TriggerSyncStart() end + +---TriggerSyncReady +function common.TriggerSyncReady() end + +---Widget API +---Widget API +---@param whichWidget widget +---@return real +function common.GetWidgetLife(whichWidget) end + +---SetWidgetLife +---@param whichWidget widget +---@param newLife real +function common.SetWidgetLife(whichWidget,newLife) end + +---GetWidgetX +---@param whichWidget widget +---@return real +function common.GetWidgetX(whichWidget) end + +---GetWidgetY +---@param whichWidget widget +---@return real +function common.GetWidgetY(whichWidget) end + +---GetTriggerWidget +---@return widget +function common.GetTriggerWidget() end + +---Destructable Object API +---Facing arguments are specified in degrees +---Facing arguments are specified in degrees +---@param objectid integer +---@param x real +---@param y real +---@param face real +---@param scale real +---@param variation integer +---@return destructable +function common.CreateDestructable(objectid,x,y,face,scale,variation) end + +---新建可破坏物 [R] +---@param objectid integer +---@param x real +---@param y real +---@param z real +---@param face real +---@param scale real +---@param variation integer +---@return destructable +function common.CreateDestructableZ(objectid,x,y,z,face,scale,variation) end + +---CreateDeadDestructable +---@param objectid integer +---@param x real +---@param y real +---@param face real +---@param scale real +---@param variation integer +---@return destructable +function common.CreateDeadDestructable(objectid,x,y,face,scale,variation) end + +---新建可破坏物(死亡的) [R] +---@param objectid integer +---@param x real +---@param y real +---@param z real +---@param face real +---@param scale real +---@param variation integer +---@return destructable +function common.CreateDeadDestructableZ(objectid,x,y,z,face,scale,variation) end + +---删除 可毁坏物 +---@param d destructable +function common.RemoveDestructable(d) end + +---杀死 可毁坏物 +---@param d destructable +function common.KillDestructable(d) end + +---SetDestructableInvulnerable +---@param d destructable +---@param flag boolean +function common.SetDestructableInvulnerable(d,flag) end + +---IsDestructableInvulnerable +---@param d destructable +---@return boolean +function common.IsDestructableInvulnerable(d) end + +---EnumDestructablesInRect +---@param r rect +---@param filter boolexpr +---@param actionFunc code +function common.EnumDestructablesInRect(r,filter,actionFunc) end + +---建筑的类型 +---@param d destructable +---@return integer +function common.GetDestructableTypeId(d) end + +---可破坏物所在X轴坐标 [R] +---@param d destructable +---@return real +function common.GetDestructableX(d) end + +---可破坏物所在Y轴坐标 [R] +---@param d destructable +---@return real +function common.GetDestructableY(d) end + +---设置 可毁坏物 生命 (值) +---@param d destructable +---@param life real +function common.SetDestructableLife(d,life) end + +---生命值 (可毁坏物) +---@param d destructable +---@return real +function common.GetDestructableLife(d) end + +---SetDestructableMaxLife +---@param d destructable +---@param max real +function common.SetDestructableMaxLife(d,max) end + +---最大生命值 (可毁坏物) +---@param d destructable +---@return real +function common.GetDestructableMaxLife(d) end + +---复活 可毁坏物 +---@param d destructable +---@param life real +---@param birth boolean +function common.DestructableRestoreLife(d,life,birth) end + +---QueueDestructableAnimation +---@param d destructable +---@param whichAnimation string +function common.QueueDestructableAnimation(d,whichAnimation) end + +---SetDestructableAnimation +---@param d destructable +---@param whichAnimation string +function common.SetDestructableAnimation(d,whichAnimation) end + +---改变可破坏物动画播放速度 [R] +---@param d destructable +---@param speedFactor real +function common.SetDestructableAnimationSpeed(d,speedFactor) end + +---显示/隐藏 [R] +---@param d destructable +---@param flag boolean +function common.ShowDestructable(d,flag) end + +---闭塞高度 (可毁坏物) +---@param d destructable +---@return real +function common.GetDestructableOccluderHeight(d) end + +---设置闭塞高度 +---@param d destructable +---@param height real +function common.SetDestructableOccluderHeight(d,height) end + +---可毁坏物的名字 +---@param d destructable +---@return string +function common.GetDestructableName(d) end + +---GetTriggerDestructable +---@return destructable +function common.GetTriggerDestructable() end + +---Item API +---创建 +---@param itemid integer +---@param x real +---@param y real +---@return item +function common.CreateItem(itemid,x,y) end + +---删除物品 +---@param whichItem item +function common.RemoveItem(whichItem) end + +---物品的所有者 +---@param whichItem item +---@return player +function common.GetItemPlayer(whichItem) end + +---物品的类别 +---@param i item +---@return integer +function common.GetItemTypeId(i) end + +---物品的X轴坐标 [R] +---@param i item +---@return real +function common.GetItemX(i) end + +---物品的Y轴坐标 [R] +---@param i item +---@return real +function common.GetItemY(i) end + +---移动物品到坐标(立即)(指定坐标) [R] +---@param i item +---@param x real +---@param y real +function common.SetItemPosition(i,x,y) end + +---SetItemDropOnDeath +---@param whichItem item +---@param flag boolean +function common.SetItemDropOnDeath(whichItem,flag) end + +---SetItemDroppable +---@param i item +---@param flag boolean +function common.SetItemDroppable(i,flag) end + +---设置物品能否变卖 +---@param i item +---@param flag boolean +function common.SetItemPawnable(i,flag) end + +---SetItemPlayer +---@param whichItem item +---@param whichPlayer player +---@param changeColor boolean +function common.SetItemPlayer(whichItem,whichPlayer,changeColor) end + +---SetItemInvulnerable +---@param whichItem item +---@param flag boolean +function common.SetItemInvulnerable(whichItem,flag) end + +---物品是无敌的 +---@param whichItem item +---@return boolean +function common.IsItemInvulnerable(whichItem) end + +---显示/隐藏 [R] +---@param whichItem item +---@param show boolean +function common.SetItemVisible(whichItem,show) end + +---物品可见 [R] +---@param whichItem item +---@return boolean +function common.IsItemVisible(whichItem) end + +---物品所有者 +---@param whichItem item +---@return boolean +function common.IsItemOwned(whichItem) end + +---物品是拾取时自动使用的 [R] +---@param whichItem item +---@return boolean +function common.IsItemPowerup(whichItem) end + +---物品可被市场随机出售 [R] +---@param whichItem item +---@return boolean +function common.IsItemSellable(whichItem) end + +---物品可被抵押 [R] +---@param whichItem item +---@return boolean +function common.IsItemPawnable(whichItem) end + +---IsItemIdPowerup +---@param itemId integer +---@return boolean +function common.IsItemIdPowerup(itemId) end + +---IsItemIdSellable +---@param itemId integer +---@return boolean +function common.IsItemIdSellable(itemId) end + +---IsItemIdPawnable +---@param itemId integer +---@return boolean +function common.IsItemIdPawnable(itemId) end + +---EnumItemsInRect +---@param r rect +---@param filter boolexpr +---@param actionFunc code +function common.EnumItemsInRect(r,filter,actionFunc) end + +---物品等级 +---@param whichItem item +---@return integer +function common.GetItemLevel(whichItem) end + +---GetItemType +---@param whichItem item +---@return itemtype +function common.GetItemType(whichItem) end + +---设置重生神符的产生单位类型 +---@param whichItem item +---@param unitId integer +function common.SetItemDropID(whichItem,unitId) end + +---物品名 +---@param whichItem item +---@return string +function common.GetItemName(whichItem) end + +---物品的数量 +---@param whichItem item +---@return integer +function common.GetItemCharges(whichItem) end + +---设置物品数量[使用次数] +---@param whichItem item +---@param charges integer +function common.SetItemCharges(whichItem,charges) end + +---物品自定义值 +---@param whichItem item +---@return integer +function common.GetItemUserData(whichItem) end + +---设置物品自定义数据 +---@param whichItem item +---@param data integer +function common.SetItemUserData(whichItem,data) end + +---Unit API +---Facing arguments are specified in degrees +---新建单位(指定坐标) [R] +---@param id player +---@param unitid integer +---@param x real +---@param y real +---@param face real +---@return unit +function common.CreateUnit(id,unitid,x,y,face) end + +---CreateUnitByName +---@param whichPlayer player +---@param unitname string +---@param x real +---@param y real +---@param face real +---@return unit +function common.CreateUnitByName(whichPlayer,unitname,x,y,face) end + +---新建单位(指定点) [R] +---@param id player +---@param unitid integer +---@param whichLocation location +---@param face real +---@return unit +function common.CreateUnitAtLoc(id,unitid,whichLocation,face) end + +---CreateUnitAtLocByName +---@param id player +---@param unitname string +---@param whichLocation location +---@param face real +---@return unit +function common.CreateUnitAtLocByName(id,unitname,whichLocation,face) end + +---新建尸体 [R] +---@param whichPlayer player +---@param unitid integer +---@param x real +---@param y real +---@param face real +---@return unit +function common.CreateCorpse(whichPlayer,unitid,x,y,face) end + +---杀死单位 +---@param whichUnit unit +function common.KillUnit(whichUnit) end + +---删除单位 +---@param whichUnit unit +function common.RemoveUnit(whichUnit) end + +---显示/隐藏 [R] +---@param whichUnit unit +---@param show boolean +function common.ShowUnit(whichUnit,show) end + +---设置单位属性 [R] +---@param whichUnit unit +---@param whichUnitState unitstate +---@param newVal real +function common.SetUnitState(whichUnit,whichUnitState,newVal) end + +---设置X坐标 [R] +---@param whichUnit unit +---@param newX real +function common.SetUnitX(whichUnit,newX) end + +---设置Y坐标 [R] +---@param whichUnit unit +---@param newY real +function common.SetUnitY(whichUnit,newY) end + +---移动单位(立即)(指定坐标) [R] +---@param whichUnit unit +---@param newX real +---@param newY real +function common.SetUnitPosition(whichUnit,newX,newY) end + +---移动单位 (立刻) +---@param whichUnit unit +---@param whichLocation location +function common.SetUnitPositionLoc(whichUnit,whichLocation) end + +---设置单位面向角度 [R] +---@param whichUnit unit +---@param facingAngle real +function common.SetUnitFacing(whichUnit,facingAngle) end + +---设置单位面对角度 +---@param whichUnit unit +---@param facingAngle real +---@param duration real +function common.SetUnitFacingTimed(whichUnit,facingAngle,duration) end + +---设置单位移动速度 +---@param whichUnit unit +---@param newSpeed real +function common.SetUnitMoveSpeed(whichUnit,newSpeed) end + +---SetUnitFlyHeight +---@param whichUnit unit +---@param newHeight real +---@param rate real +function common.SetUnitFlyHeight(whichUnit,newHeight,rate) end + +---SetUnitTurnSpeed +---@param whichUnit unit +---@param newTurnSpeed real +function common.SetUnitTurnSpeed(whichUnit,newTurnSpeed) end + +---改变单位转向角度(弧度制) [R] +---@param whichUnit unit +---@param newPropWindowAngle real +function common.SetUnitPropWindow(whichUnit,newPropWindowAngle) end + +---SetUnitAcquireRange +---@param whichUnit unit +---@param newAcquireRange real +function common.SetUnitAcquireRange(whichUnit,newAcquireRange) end + +---锁定指定单位的警戒点 [R] +---@param whichUnit unit +---@param creepGuard boolean +function common.SetUnitCreepGuard(whichUnit,creepGuard) end + +---单位射程 (当前) +---@param whichUnit unit +---@return real +function common.GetUnitAcquireRange(whichUnit) end + +---转向速度 (当前) +---@param whichUnit unit +---@return real +function common.GetUnitTurnSpeed(whichUnit) end + +---当前转向角度(弧度制) [R] +---@param whichUnit unit +---@return real +function common.GetUnitPropWindow(whichUnit) end + +---飞行高度 (当前) +---@param whichUnit unit +---@return real +function common.GetUnitFlyHeight(whichUnit) end + +---单位射程 (默认) +---@param whichUnit unit +---@return real +function common.GetUnitDefaultAcquireRange(whichUnit) end + +---转向速度 (默认) +---@param whichUnit unit +---@return real +function common.GetUnitDefaultTurnSpeed(whichUnit) end + +---GetUnitDefaultPropWindow +---@param whichUnit unit +---@return real +function common.GetUnitDefaultPropWindow(whichUnit) end + +---飞行高度 (默认) +---@param whichUnit unit +---@return real +function common.GetUnitDefaultFlyHeight(whichUnit) end + +---改变单位所有者 +---@param whichUnit unit +---@param whichPlayer player +---@param changeColor boolean +function common.SetUnitOwner(whichUnit,whichPlayer,changeColor) end + +---改变单位颜色 +---@param whichUnit unit +---@param whichColor playercolor +function common.SetUnitColor(whichUnit,whichColor) end + +---改变单位尺寸(按倍数) [R] +---@param whichUnit unit +---@param scaleX real +---@param scaleY real +---@param scaleZ real +function common.SetUnitScale(whichUnit,scaleX,scaleY,scaleZ) end + +---改变单位动画播放速度(按倍数) [R] +---@param whichUnit unit +---@param timeScale real +function common.SetUnitTimeScale(whichUnit,timeScale) end + +---SetUnitBlendTime +---@param whichUnit unit +---@param blendTime real +function common.SetUnitBlendTime(whichUnit,blendTime) end + +---改变单位的颜色(RGB:0-255) [R] +---@param whichUnit unit +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.SetUnitVertexColor(whichUnit,red,green,blue,alpha) end + +---QueueUnitAnimation +---@param whichUnit unit +---@param whichAnimation string +function common.QueueUnitAnimation(whichUnit,whichAnimation) end + +---播放单位动作 +---@param whichUnit unit +---@param whichAnimation string +function common.SetUnitAnimation(whichUnit,whichAnimation) end + +---播放单位指定序号动动作 [R] +---@param whichUnit unit +---@param whichAnimation integer +function common.SetUnitAnimationByIndex(whichUnit,whichAnimation) end + +---播放单位动作 (指定概率) +---@param whichUnit unit +---@param whichAnimation string +---@param rarity raritycontrol +function common.SetUnitAnimationWithRarity(whichUnit,whichAnimation,rarity) end + +---添加/删除 单位动画附加名 [R] +---@param whichUnit unit +---@param animProperties string +---@param add boolean +function common.AddUnitAnimationProperties(whichUnit,animProperties,add) end + +---锁定单位脸面对方向 +---@param whichUnit unit +---@param whichBone string +---@param lookAtTarget unit +---@param offsetX real +---@param offsetY real +---@param offsetZ real +function common.SetUnitLookAt(whichUnit,whichBone,lookAtTarget,offsetX,offsetY,offsetZ) end + +---重置单位面对方向 +---@param whichUnit unit +function common.ResetUnitLookAt(whichUnit) end + +---设置可否营救(对玩家) [R] +---@param whichUnit unit +---@param byWhichPlayer player +---@param flag boolean +function common.SetUnitRescuable(whichUnit,byWhichPlayer,flag) end + +---设置营救单位的营救距离 +---@param whichUnit unit +---@param range real +function common.SetUnitRescueRange(whichUnit,range) end + +---设置英雄力量 [R] +---@param whichHero unit +---@param newStr integer +---@param permanent boolean +function common.SetHeroStr(whichHero,newStr,permanent) end + +---设置英雄敏捷 [R] +---@param whichHero unit +---@param newAgi integer +---@param permanent boolean +function common.SetHeroAgi(whichHero,newAgi,permanent) end + +---设置英雄智力 [R] +---@param whichHero unit +---@param newInt integer +---@param permanent boolean +function common.SetHeroInt(whichHero,newInt,permanent) end + +---英雄力量 [R] +---@param whichHero unit +---@param includeBonuses boolean +---@return integer +function common.GetHeroStr(whichHero,includeBonuses) end + +---英雄敏捷 [R] +---@param whichHero unit +---@param includeBonuses boolean +---@return integer +function common.GetHeroAgi(whichHero,includeBonuses) end + +---英雄智力 [R] +---@param whichHero unit +---@param includeBonuses boolean +---@return integer +function common.GetHeroInt(whichHero,includeBonuses) end + +---降低等级 [R] +---@param whichHero unit +---@param howManyLevels integer +---@return boolean +function common.UnitStripHeroLevel(whichHero,howManyLevels) end + +---英雄的经验值 +---@param whichHero unit +---@return integer +function common.GetHeroXP(whichHero) end + +---设置英雄经验值 +---@param whichHero unit +---@param newXpVal integer +---@param showEyeCandy boolean +function common.SetHeroXP(whichHero,newXpVal,showEyeCandy) end + +---未用完的技能点数 +---@param whichHero unit +---@return integer +function common.GetHeroSkillPoints(whichHero) end + +---添加剩余技能点 [R] +---@param whichHero unit +---@param skillPointDelta integer +---@return boolean +function common.UnitModifySkillPoints(whichHero,skillPointDelta) end + +---增加经验值 [R] +---@param whichHero unit +---@param xpToAdd integer +---@param showEyeCandy boolean +function common.AddHeroXP(whichHero,xpToAdd,showEyeCandy) end + +---设置英雄等级 +---@param whichHero unit +---@param level integer +---@param showEyeCandy boolean +function common.SetHeroLevel(whichHero,level,showEyeCandy) end + +---英雄等级 +---@param whichHero unit +---@return integer +function common.GetHeroLevel(whichHero) end + +---单位等级 +---@param whichUnit unit +---@return integer +function common.GetUnitLevel(whichUnit) end + +---英雄的姓名 +---@param whichHero unit +---@return string +function common.GetHeroProperName(whichHero) end + +---允许/禁止经验获取 [R] +---@param whichHero unit +---@param flag boolean +function common.SuspendHeroXP(whichHero,flag) end + +---英雄获得经验值 +---@param whichHero unit +---@return boolean +function common.IsSuspendedXP(whichHero) end + +---英雄学习技能 +---@param whichHero unit +---@param abilcode integer +function common.SelectHeroSkill(whichHero,abilcode) end + +---单位技能等级 [R] +---@param whichUnit unit +---@param abilcode integer +---@return integer +function common.GetUnitAbilityLevel(whichUnit,abilcode) end + +---降低技能等级 [R] +---@param whichUnit unit +---@param abilcode integer +---@return integer +function common.DecUnitAbilityLevel(whichUnit,abilcode) end + +---提升技能等级 [R] +---@param whichUnit unit +---@param abilcode integer +---@return integer +function common.IncUnitAbilityLevel(whichUnit,abilcode) end + +---设置技能等级 [R] +---@param whichUnit unit +---@param abilcode integer +---@param level integer +---@return integer +function common.SetUnitAbilityLevel(whichUnit,abilcode,level) end + +---立即复活(指定坐标) [R] +---@param whichHero unit +---@param x real +---@param y real +---@param doEyecandy boolean +---@return boolean +function common.ReviveHero(whichHero,x,y,doEyecandy) end + +---复活英雄(立即) +---@param whichHero unit +---@param loc location +---@param doEyecandy boolean +---@return boolean +function common.ReviveHeroLoc(whichHero,loc,doEyecandy) end + +---SetUnitExploded +---@param whichUnit unit +---@param exploded boolean +function common.SetUnitExploded(whichUnit,exploded) end + +---设置单位 无敌/可攻击 +---@param whichUnit unit +---@param flag boolean +function common.SetUnitInvulnerable(whichUnit,flag) end + +---暂停/恢复 [R] +---@param whichUnit unit +---@param flag boolean +function common.PauseUnit(whichUnit,flag) end + +---IsUnitPaused +---@param whichHero unit +---@return boolean +function common.IsUnitPaused(whichHero) end + +---设置碰撞 打开/关闭 +---@param whichUnit unit +---@param flag boolean +function common.SetUnitPathing(whichUnit,flag) end + +---清除所有选定 +function common.ClearSelection() end + +---SelectUnit +---@param whichUnit unit +---@param flag boolean +function common.SelectUnit(whichUnit,flag) end + +---单位的 附加值 +---@param whichUnit unit +---@return integer +function common.GetUnitPointValue(whichUnit) end + +---单位-类型的 附加值 +---@param unitType integer +---@return integer +function common.GetUnitPointValueByType(unitType) end + +---给予物品 [R] +---@param whichUnit unit +---@param whichItem item +---@return boolean +function common.UnitAddItem(whichUnit,whichItem) end + +---UnitAddItemById +---@param whichUnit unit +---@param itemId integer +---@return item +function common.UnitAddItemById(whichUnit,itemId) end + +---新建物品到指定物品栏 [R] +---@param whichUnit unit +---@param itemId integer +---@param itemSlot integer +---@return boolean +function common.UnitAddItemToSlotById(whichUnit,itemId,itemSlot) end + +---UnitRemoveItem +---@param whichUnit unit +---@param whichItem item +function common.UnitRemoveItem(whichUnit,whichItem) end + +---UnitRemoveItemFromSlot +---@param whichUnit unit +---@param itemSlot integer +---@return item +function common.UnitRemoveItemFromSlot(whichUnit,itemSlot) end + +---英雄已有物品 +---@param whichUnit unit +---@param whichItem item +---@return boolean +function common.UnitHasItem(whichUnit,whichItem) end + +---单位持有物品 +---@param whichUnit unit +---@param itemSlot integer +---@return item +function common.UnitItemInSlot(whichUnit,itemSlot) end + +---UnitInventorySize +---@param whichUnit unit +---@return integer +function common.UnitInventorySize(whichUnit) end + +---发布丢弃物品命令(指定坐标) [R] +---@param whichUnit unit +---@param whichItem item +---@param x real +---@param y real +---@return boolean +function common.UnitDropItemPoint(whichUnit,whichItem,x,y) end + +---移动物品到物品栏 [R] +---@param whichUnit unit +---@param whichItem item +---@param slot integer +---@return boolean +function common.UnitDropItemSlot(whichUnit,whichItem,slot) end + +---UnitDropItemTarget +---@param whichUnit unit +---@param whichItem item +---@param target widget +---@return boolean +function common.UnitDropItemTarget(whichUnit,whichItem,target) end + +---使用物品 +---@param whichUnit unit +---@param whichItem item +---@return boolean +function common.UnitUseItem(whichUnit,whichItem) end + +---使用物品(指定坐标) +---@param whichUnit unit +---@param whichItem item +---@param x real +---@param y real +---@return boolean +function common.UnitUseItemPoint(whichUnit,whichItem,x,y) end + +---对单位使用物品 +---@param whichUnit unit +---@param whichItem item +---@param target widget +---@return boolean +function common.UnitUseItemTarget(whichUnit,whichItem,target) end + +---单位所在X轴坐标 [R] +---@param whichUnit unit +---@return real +function common.GetUnitX(whichUnit) end + +---单位所在Y轴坐标 [R] +---@param whichUnit unit +---@return real +function common.GetUnitY(whichUnit) end + +---单位的位置 +---@param whichUnit unit +---@return location +function common.GetUnitLoc(whichUnit) end + +---单位面向角度 +---@param whichUnit unit +---@return real +function common.GetUnitFacing(whichUnit) end + +---单位移动速度 (当前) +---@param whichUnit unit +---@return real +function common.GetUnitMoveSpeed(whichUnit) end + +---单位移动速度 (默认) +---@param whichUnit unit +---@return real +function common.GetUnitDefaultMoveSpeed(whichUnit) end + +---属性 [R] +---@param whichUnit unit +---@param whichUnitState unitstate +---@return real +function common.GetUnitState(whichUnit,whichUnitState) end + +---单位的所有者 +---@param whichUnit unit +---@return player +function common.GetOwningPlayer(whichUnit) end + +---单位的类型 +---@param whichUnit unit +---@return integer +function common.GetUnitTypeId(whichUnit) end + +---单位的种族 +---@param whichUnit unit +---@return race +function common.GetUnitRace(whichUnit) end + +---单位名字 +---@param whichUnit unit +---@return string +function common.GetUnitName(whichUnit) end + +---GetUnitFoodUsed +---@param whichUnit unit +---@return integer +function common.GetUnitFoodUsed(whichUnit) end + +---GetUnitFoodMade +---@param whichUnit unit +---@return integer +function common.GetUnitFoodMade(whichUnit) end + +---单位-类型 提供的人口 +---@param unitId integer +---@return integer +function common.GetFoodMade(unitId) end + +---单位-类型 使用的人口 +---@param unitId integer +---@return integer +function common.GetFoodUsed(unitId) end + +---允许/禁止 人口占用 [R] +---@param whichUnit unit +---@param useFood boolean +function common.SetUnitUseFood(whichUnit,useFood) end + +---聚集点 +---@param whichUnit unit +---@return location +function common.GetUnitRallyPoint(whichUnit) end + +---拥有源聚集点单位 +---@param whichUnit unit +---@return unit +function common.GetUnitRallyUnit(whichUnit) end + +---单位 聚集点 +---@param whichUnit unit +---@return destructable +function common.GetUnitRallyDestructable(whichUnit) end + +---单位在 单位组 +---@param whichUnit unit +---@param whichGroup group +---@return boolean +function common.IsUnitInGroup(whichUnit,whichGroup) end + +---是玩家组里玩家的单位 +---@param whichUnit unit +---@param whichForce force +---@return boolean +function common.IsUnitInForce(whichUnit,whichForce) end + +---是玩家的单位 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitOwnedByPlayer(whichUnit,whichPlayer) end + +---单位所属玩家的同盟玩家 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitAlly(whichUnit,whichPlayer) end + +---单位所属玩家的敌对玩家 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitEnemy(whichUnit,whichPlayer) end + +---单位对于玩家可见 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitVisible(whichUnit,whichPlayer) end + +---被检测到 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitDetected(whichUnit,whichPlayer) end + +---单位对于玩家不可见 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitInvisible(whichUnit,whichPlayer) end + +---单位被战争迷雾遮挡 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitFogged(whichUnit,whichPlayer) end + +---单位被黑色阴影遮挡 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitMasked(whichUnit,whichPlayer) end + +---玩家已选定单位 +---@param whichUnit unit +---@param whichPlayer player +---@return boolean +function common.IsUnitSelected(whichUnit,whichPlayer) end + +---单位种族检查 +---@param whichUnit unit +---@param whichRace race +---@return boolean +function common.IsUnitRace(whichUnit,whichRace) end + +---检查单位 分类 +---@param whichUnit unit +---@param whichUnitType unittype +---@return boolean +function common.IsUnitType(whichUnit,whichUnitType) end + +---IsUnit +---@param whichUnit unit +---@param whichSpecifiedUnit unit +---@return boolean +function common.IsUnit(whichUnit,whichSpecifiedUnit) end + +---在指定单位范围内 [R] +---@param whichUnit unit +---@param otherUnit unit +---@param distance real +---@return boolean +function common.IsUnitInRange(whichUnit,otherUnit,distance) end + +---在指定坐标范围内 [R] +---@param whichUnit unit +---@param x real +---@param y real +---@param distance real +---@return boolean +function common.IsUnitInRangeXY(whichUnit,x,y,distance) end + +---在指定点范围内 [R] +---@param whichUnit unit +---@param whichLocation location +---@param distance real +---@return boolean +function common.IsUnitInRangeLoc(whichUnit,whichLocation,distance) end + +---IsUnitHidden +---@param whichUnit unit +---@return boolean +function common.IsUnitHidden(whichUnit) end + +---IsUnitIllusion +---@param whichUnit unit +---@return boolean +function common.IsUnitIllusion(whichUnit) end + +---IsUnitInTransport +---@param whichUnit unit +---@param whichTransport unit +---@return boolean +function common.IsUnitInTransport(whichUnit,whichTransport) end + +---IsUnitLoaded +---@param whichUnit unit +---@return boolean +function common.IsUnitLoaded(whichUnit) end + +---单位类型是英雄单位 +---@param unitId integer +---@return boolean +function common.IsHeroUnitId(unitId) end + +---检查单位-类型 分类 +---@param unitId integer +---@param whichUnitType unittype +---@return boolean +function common.IsUnitIdType(unitId,whichUnitType) end + +---共享视野 [R] +---@param whichUnit unit +---@param whichPlayer player +---@param share boolean +function common.UnitShareVision(whichUnit,whichPlayer,share) end + +---暂停尸体腐烂 [R] +---@param whichUnit unit +---@param suspend boolean +function common.UnitSuspendDecay(whichUnit,suspend) end + +---添加类别 [R] +---@param whichUnit unit +---@param whichUnitType unittype +---@return boolean +function common.UnitAddType(whichUnit,whichUnitType) end + +---删除类别 [R] +---@param whichUnit unit +---@param whichUnitType unittype +---@return boolean +function common.UnitRemoveType(whichUnit,whichUnitType) end + +---添加技能 [R] +---@param whichUnit unit +---@param abilityId integer +---@return boolean +function common.UnitAddAbility(whichUnit,abilityId) end + +---删除技能 [R] +---@param whichUnit unit +---@param abilityId integer +---@return boolean +function common.UnitRemoveAbility(whichUnit,abilityId) end + +---设置技能永久性 [R] +---@param whichUnit unit +---@param permanent boolean +---@param abilityId integer +---@return boolean +function common.UnitMakeAbilityPermanent(whichUnit,permanent,abilityId) end + +---删除魔法效果(指定极性) [R] +---@param whichUnit unit +---@param removePositive boolean +---@param removeNegative boolean +function common.UnitRemoveBuffs(whichUnit,removePositive,removeNegative) end + +---删除魔法效果(详细类别) [R] +---@param whichUnit unit +---@param removePositive boolean +---@param removeNegative boolean +---@param magic boolean +---@param physical boolean +---@param timedLife boolean +---@param aura boolean +---@param autoDispel boolean +function common.UnitRemoveBuffsEx(whichUnit,removePositive,removeNegative,magic,physical,timedLife,aura,autoDispel) end + +---UnitHasBuffsEx +---@param whichUnit unit +---@param removePositive boolean +---@param removeNegative boolean +---@param magic boolean +---@param physical boolean +---@param timedLife boolean +---@param aura boolean +---@param autoDispel boolean +---@return boolean +function common.UnitHasBuffsEx(whichUnit,removePositive,removeNegative,magic,physical,timedLife,aura,autoDispel) end + +---拥有Buff数量 [R] +---@param whichUnit unit +---@param removePositive boolean +---@param removeNegative boolean +---@param magic boolean +---@param physical boolean +---@param timedLife boolean +---@param aura boolean +---@param autoDispel boolean +---@return integer +function common.UnitCountBuffsEx(whichUnit,removePositive,removeNegative,magic,physical,timedLife,aura,autoDispel) end + +---UnitAddSleep +---@param whichUnit unit +---@param add boolean +function common.UnitAddSleep(whichUnit,add) end + +---UnitCanSleep +---@param whichUnit unit +---@return boolean +function common.UnitCanSleep(whichUnit) end + +---设置单位睡眠(无论何时) +---@param whichUnit unit +---@param add boolean +function common.UnitAddSleepPerm(whichUnit,add) end + +---单位在睡觉 +---@param whichUnit unit +---@return boolean +function common.UnitCanSleepPerm(whichUnit) end + +---UnitIsSleeping +---@param whichUnit unit +---@return boolean +function common.UnitIsSleeping(whichUnit) end + +---UnitWakeUp +---@param whichUnit unit +function common.UnitWakeUp(whichUnit) end + +---设置生命周期 [R] +---@param whichUnit unit +---@param buffId integer +---@param duration real +function common.UnitApplyTimedLife(whichUnit,buffId,duration) end + +---UnitIgnoreAlarm +---@param whichUnit unit +---@param flag boolean +---@return boolean +function common.UnitIgnoreAlarm(whichUnit,flag) end + +---UnitIgnoreAlarmToggled +---@param whichUnit unit +---@return boolean +function common.UnitIgnoreAlarmToggled(whichUnit) end + +---重设单位技能Cooldown +---@param whichUnit unit +function common.UnitResetCooldown(whichUnit) end + +---设置建筑物 建筑升级比 +---@param whichUnit unit +---@param constructionPercentage integer +function common.UnitSetConstructionProgress(whichUnit,constructionPercentage) end + +---设置建筑物 科技升级比 +---@param whichUnit unit +---@param upgradePercentage integer +function common.UnitSetUpgradeProgress(whichUnit,upgradePercentage) end + +---暂停/恢复生命周期 [R] +---@param whichUnit unit +---@param flag boolean +function common.UnitPauseTimedLife(whichUnit,flag) end + +---UnitSetUsesAltIcon +---@param whichUnit unit +---@param flag boolean +function common.UnitSetUsesAltIcon(whichUnit,flag) end + +---伤害区域 [R] +---@param whichUnit unit +---@param delay real +---@param radius real +---@param x real +---@param y real +---@param amount real +---@param attack boolean +---@param ranged boolean +---@param attackType attacktype +---@param damageType damagetype +---@param weaponType weapontype +---@return boolean +function common.UnitDamagePoint(whichUnit,delay,radius,x,y,amount,attack,ranged,attackType,damageType,weaponType) end + +---伤害目标 [R] +---@param whichUnit unit +---@param target widget +---@param amount real +---@param attack boolean +---@param ranged boolean +---@param attackType attacktype +---@param damageType damagetype +---@param weaponType weapontype +---@return boolean +function common.UnitDamageTarget(whichUnit,target,amount,attack,ranged,attackType,damageType,weaponType) end + +---给单位发送命令到 没有目标 +---@param whichUnit unit +---@param order string +---@return boolean +function common.IssueImmediateOrder(whichUnit,order) end + +---发布命令(无目标)(ID) +---@param whichUnit unit +---@param order integer +---@return boolean +function common.IssueImmediateOrderById(whichUnit,order) end + +---发布命令(指定坐标) +---@param whichUnit unit +---@param order string +---@param x real +---@param y real +---@return boolean +function common.IssuePointOrder(whichUnit,order,x,y) end + +---给单位发送命令到 点 +---@param whichUnit unit +---@param order string +---@param whichLocation location +---@return boolean +function common.IssuePointOrderLoc(whichUnit,order,whichLocation) end + +---发布命令(指定坐标)(ID) +---@param whichUnit unit +---@param order integer +---@param x real +---@param y real +---@return boolean +function common.IssuePointOrderById(whichUnit,order,x,y) end + +---发布命令(指定点)(ID) +---@param whichUnit unit +---@param order integer +---@param whichLocation location +---@return boolean +function common.IssuePointOrderByIdLoc(whichUnit,order,whichLocation) end + +---给单位发送命令到 单位 +---@param whichUnit unit +---@param order string +---@param targetWidget widget +---@return boolean +function common.IssueTargetOrder(whichUnit,order,targetWidget) end + +---发布命令(指定单位)(ID) +---@param whichUnit unit +---@param order integer +---@param targetWidget widget +---@return boolean +function common.IssueTargetOrderById(whichUnit,order,targetWidget) end + +---IssueInstantPointOrder +---@param whichUnit unit +---@param order string +---@param x real +---@param y real +---@param instantTargetWidget widget +---@return boolean +function common.IssueInstantPointOrder(whichUnit,order,x,y,instantTargetWidget) end + +---IssueInstantPointOrderById +---@param whichUnit unit +---@param order integer +---@param x real +---@param y real +---@param instantTargetWidget widget +---@return boolean +function common.IssueInstantPointOrderById(whichUnit,order,x,y,instantTargetWidget) end + +---IssueInstantTargetOrder +---@param whichUnit unit +---@param order string +---@param targetWidget widget +---@param instantTargetWidget widget +---@return boolean +function common.IssueInstantTargetOrder(whichUnit,order,targetWidget,instantTargetWidget) end + +---IssueInstantTargetOrderById +---@param whichUnit unit +---@param order integer +---@param targetWidget widget +---@param instantTargetWidget widget +---@return boolean +function common.IssueInstantTargetOrderById(whichUnit,order,targetWidget,instantTargetWidget) end + +---IssueBuildOrder +---@param whichPeon unit +---@param unitToBuild string +---@param x real +---@param y real +---@return boolean +function common.IssueBuildOrder(whichPeon,unitToBuild,x,y) end + +---发布建造命令(指定坐标) [R] +---@param whichPeon unit +---@param unitId integer +---@param x real +---@param y real +---@return boolean +function common.IssueBuildOrderById(whichPeon,unitId,x,y) end + +---发布中介命令(无目标) +---@param forWhichPlayer player +---@param neutralStructure unit +---@param unitToBuild string +---@return boolean +function common.IssueNeutralImmediateOrder(forWhichPlayer,neutralStructure,unitToBuild) end + +---发布中介命令(无目标)(ID) +---@param forWhichPlayer player +---@param neutralStructure unit +---@param unitId integer +---@return boolean +function common.IssueNeutralImmediateOrderById(forWhichPlayer,neutralStructure,unitId) end + +---发布中介命令(指定坐标) +---@param forWhichPlayer player +---@param neutralStructure unit +---@param unitToBuild string +---@param x real +---@param y real +---@return boolean +function common.IssueNeutralPointOrder(forWhichPlayer,neutralStructure,unitToBuild,x,y) end + +---发布中介命令(指定坐标)(ID) +---@param forWhichPlayer player +---@param neutralStructure unit +---@param unitId integer +---@param x real +---@param y real +---@return boolean +function common.IssueNeutralPointOrderById(forWhichPlayer,neutralStructure,unitId,x,y) end + +---发布中介命令(指定单位) +---@param forWhichPlayer player +---@param neutralStructure unit +---@param unitToBuild string +---@param target widget +---@return boolean +function common.IssueNeutralTargetOrder(forWhichPlayer,neutralStructure,unitToBuild,target) end + +---发布中介命令(指定单位)(ID) +---@param forWhichPlayer player +---@param neutralStructure unit +---@param unitId integer +---@param target widget +---@return boolean +function common.IssueNeutralTargetOrderById(forWhichPlayer,neutralStructure,unitId,target) end + +---单位当前的命令 +---@param whichUnit unit +---@return integer +function common.GetUnitCurrentOrder(whichUnit) end + +---设置金矿资源 +---@param whichUnit unit +---@param amount integer +function common.SetResourceAmount(whichUnit,amount) end + +---添加金矿资源 +---@param whichUnit unit +---@param amount integer +function common.AddResourceAmount(whichUnit,amount) end + +---黄金资源数量 +---@param whichUnit unit +---@return integer +function common.GetResourceAmount(whichUnit) end + +---传送门目的地X坐标 +---@param waygate unit +---@return real +function common.WaygateGetDestinationX(waygate) end + +---传送门目的地Y坐标 +---@param waygate unit +---@return real +function common.WaygateGetDestinationY(waygate) end + +---设置传送门目的坐标 [R] +---@param waygate unit +---@param x real +---@param y real +function common.WaygateSetDestination(waygate,x,y) end + +---WaygateActivate +---@param waygate unit +---@param activate boolean +function common.WaygateActivate(waygate,activate) end + +---WaygateIsActive +---@param waygate unit +---@return boolean +function common.WaygateIsActive(waygate) end + +---增加 物品-类型 (到所有商店) +---@param itemId integer +---@param currentStock integer +---@param stockMax integer +function common.AddItemToAllStock(itemId,currentStock,stockMax) end + +---AddItemToStock +---@param whichUnit unit +---@param itemId integer +---@param currentStock integer +---@param stockMax integer +function common.AddItemToStock(whichUnit,itemId,currentStock,stockMax) end + +---增加 单位-类型 (到所有商店) +---@param unitId integer +---@param currentStock integer +---@param stockMax integer +function common.AddUnitToAllStock(unitId,currentStock,stockMax) end + +---AddUnitToStock +---@param whichUnit unit +---@param unitId integer +---@param currentStock integer +---@param stockMax integer +function common.AddUnitToStock(whichUnit,unitId,currentStock,stockMax) end + +---删除 物品-类型 (从所有商店) +---@param itemId integer +function common.RemoveItemFromAllStock(itemId) end + +---RemoveItemFromStock +---@param whichUnit unit +---@param itemId integer +function common.RemoveItemFromStock(whichUnit,itemId) end + +---删除 单位-类型 (从所有商店) +---@param unitId integer +function common.RemoveUnitFromAllStock(unitId) end + +---RemoveUnitFromStock +---@param whichUnit unit +---@param unitId integer +function common.RemoveUnitFromStock(whichUnit,unitId) end + +---限制物品的位置 (从所有商店) +---@param slots integer +function common.SetAllItemTypeSlots(slots) end + +---限制单位的位置 (从所有商店) +---@param slots integer +function common.SetAllUnitTypeSlots(slots) end + +---限制物品的位置 (从商店) +---@param whichUnit unit +---@param slots integer +function common.SetItemTypeSlots(whichUnit,slots) end + +---限制单位的位置 (从商店) +---@param whichUnit unit +---@param slots integer +function common.SetUnitTypeSlots(whichUnit,slots) end + +---单位自定义值 +---@param whichUnit unit +---@return integer +function common.GetUnitUserData(whichUnit) end + +---设置单位自定义数据 +---@param whichUnit unit +---@param data integer +function common.SetUnitUserData(whichUnit,data) end + +---Player API +---Player API +---@param number integer +---@return player +function common.Player(number) end + +---本地玩家 [R] +---@return player +function common.GetLocalPlayer() end + +---玩家是玩家的同盟 +---@param whichPlayer player +---@param otherPlayer player +---@return boolean +function common.IsPlayerAlly(whichPlayer,otherPlayer) end + +---玩家是玩家的敌人 +---@param whichPlayer player +---@param otherPlayer player +---@return boolean +function common.IsPlayerEnemy(whichPlayer,otherPlayer) end + +---玩家在玩家组 +---@param whichPlayer player +---@param whichForce force +---@return boolean +function common.IsPlayerInForce(whichPlayer,whichForce) end + +---玩家是裁判或观察者 [R] +---@param whichPlayer player +---@return boolean +function common.IsPlayerObserver(whichPlayer) end + +---坐标可见 +---@param x real +---@param y real +---@param whichPlayer player +---@return boolean +function common.IsVisibleToPlayer(x,y,whichPlayer) end + +---点对于玩家可见 +---@param whichLocation location +---@param whichPlayer player +---@return boolean +function common.IsLocationVisibleToPlayer(whichLocation,whichPlayer) end + +---坐标在迷雾中 +---@param x real +---@param y real +---@param whichPlayer player +---@return boolean +function common.IsFoggedToPlayer(x,y,whichPlayer) end + +---点被迷雾遮挡 +---@param whichLocation location +---@param whichPlayer player +---@return boolean +function common.IsLocationFoggedToPlayer(whichLocation,whichPlayer) end + +---坐标在黑色阴影中 +---@param x real +---@param y real +---@param whichPlayer player +---@return boolean +function common.IsMaskedToPlayer(x,y,whichPlayer) end + +---点被黑色阴影遮挡 +---@param whichLocation location +---@param whichPlayer player +---@return boolean +function common.IsLocationMaskedToPlayer(whichLocation,whichPlayer) end + +---玩家的种族 +---@param whichPlayer player +---@return race +function common.GetPlayerRace(whichPlayer) end + +---玩家ID - 1 [R] +---@param whichPlayer player +---@return integer +function common.GetPlayerId(whichPlayer) end + +---单位数量 +---@param whichPlayer player +---@param includeIncomplete boolean +---@return integer +function common.GetPlayerUnitCount(whichPlayer,includeIncomplete) end + +---GetPlayerTypedUnitCount +---@param whichPlayer player +---@param unitName string +---@param includeIncomplete boolean +---@param includeUpgrades boolean +---@return integer +function common.GetPlayerTypedUnitCount(whichPlayer,unitName,includeIncomplete,includeUpgrades) end + +---获得建筑数量 +---@param whichPlayer player +---@param includeIncomplete boolean +---@return integer +function common.GetPlayerStructureCount(whichPlayer,includeIncomplete) end + +---获得玩家属性 +---@param whichPlayer player +---@param whichPlayerState playerstate +---@return integer +function common.GetPlayerState(whichPlayer,whichPlayerState) end + +---获得玩家得分 +---@param whichPlayer player +---@param whichPlayerScore playerscore +---@return integer +function common.GetPlayerScore(whichPlayer,whichPlayerScore) end + +---玩家与玩家结盟 +---@param sourcePlayer player +---@param otherPlayer player +---@param whichAllianceSetting alliancetype +---@return boolean +function common.GetPlayerAlliance(sourcePlayer,otherPlayer,whichAllianceSetting) end + +---GetPlayerHandicap +---@param whichPlayer player +---@return real +function common.GetPlayerHandicap(whichPlayer) end + +---GetPlayerHandicapXP +---@param whichPlayer player +---@return real +function common.GetPlayerHandicapXP(whichPlayer) end + +---GetPlayerHandicapReviveTime +---@param whichPlayer player +---@return real +function common.GetPlayerHandicapReviveTime(whichPlayer) end + +---GetPlayerHandicapDamage +---@param whichPlayer player +---@return real +function common.GetPlayerHandicapDamage(whichPlayer) end + +---设置生命上限 [R] +---@param whichPlayer player +---@param handicap real +function common.SetPlayerHandicap(whichPlayer,handicap) end + +---设置经验获得率 [R] +---@param whichPlayer player +---@param handicap real +function common.SetPlayerHandicapXP(whichPlayer,handicap) end + +---SetPlayerHandicapReviveTime +---@param whichPlayer player +---@param handicap real +function common.SetPlayerHandicapReviveTime(whichPlayer,handicap) end + +---SetPlayerHandicapDamage +---@param whichPlayer player +---@param handicap real +function common.SetPlayerHandicapDamage(whichPlayer,handicap) end + +---SetPlayerTechMaxAllowed +---@param whichPlayer player +---@param techid integer +---@param maximum integer +function common.SetPlayerTechMaxAllowed(whichPlayer,techid,maximum) end + +---GetPlayerTechMaxAllowed +---@param whichPlayer player +---@param techid integer +---@return integer +function common.GetPlayerTechMaxAllowed(whichPlayer,techid) end + +---增加科技等级 +---@param whichPlayer player +---@param techid integer +---@param levels integer +function common.AddPlayerTechResearched(whichPlayer,techid,levels) end + +---SetPlayerTechResearched +---@param whichPlayer player +---@param techid integer +---@param setToLevel integer +function common.SetPlayerTechResearched(whichPlayer,techid,setToLevel) end + +---GetPlayerTechResearched +---@param whichPlayer player +---@param techid integer +---@param specificonly boolean +---@return boolean +function common.GetPlayerTechResearched(whichPlayer,techid,specificonly) end + +---获取玩家科技数量 +---@param whichPlayer player +---@param techid integer +---@param specificonly boolean +---@return integer +function common.GetPlayerTechCount(whichPlayer,techid,specificonly) end + +---SetPlayerUnitsOwner +---@param whichPlayer player +---@param newOwner integer +function common.SetPlayerUnitsOwner(whichPlayer,newOwner) end + +---CripplePlayer +---@param whichPlayer player +---@param toWhichPlayers force +---@param flag boolean +function common.CripplePlayer(whichPlayer,toWhichPlayers,flag) end + +---允许/禁用 技能 [R] +---@param whichPlayer player +---@param abilid integer +---@param avail boolean +function common.SetPlayerAbilityAvailable(whichPlayer,abilid,avail) end + +---设置玩家属性 +---@param whichPlayer player +---@param whichPlayerState playerstate +---@param value integer +function common.SetPlayerState(whichPlayer,whichPlayerState,value) end + +---踢除玩家 +---@param whichPlayer player +---@param gameResult playergameresult +function common.RemovePlayer(whichPlayer,gameResult) end + +---Used to store hero level data for the scorescreen +---before units are moved to neutral passive in melee games +---@param whichPlayer player +function common.CachePlayerHeroData(whichPlayer) end + +---Fog of War API +---设置地图迷雾(矩形区域) [R] +---@param forWhichPlayer player +---@param whichState fogstate +---@param where rect +---@param useSharedVision boolean +function common.SetFogStateRect(forWhichPlayer,whichState,where,useSharedVision) end + +---设置地图迷雾(圆范围) [R] +---@param forWhichPlayer player +---@param whichState fogstate +---@param centerx real +---@param centerY real +---@param radius real +---@param useSharedVision boolean +function common.SetFogStateRadius(forWhichPlayer,whichState,centerx,centerY,radius,useSharedVision) end + +---SetFogStateRadiusLoc +---@param forWhichPlayer player +---@param whichState fogstate +---@param center location +---@param radius real +---@param useSharedVision boolean +function common.SetFogStateRadiusLoc(forWhichPlayer,whichState,center,radius,useSharedVision) end + +---启用/禁用黑色阴影 [R] +---@param enable boolean +function common.FogMaskEnable(enable) end + +---允许黑色阴影 +---@return boolean +function common.IsFogMaskEnabled() end + +---启用/禁用 战争迷雾 [R] +---@param enable boolean +function common.FogEnable(enable) end + +---允许战争迷雾 +---@return boolean +function common.IsFogEnabled() end + +---新建可见度修正器(矩形区域) [R] +---@param forWhichPlayer player +---@param whichState fogstate +---@param where rect +---@param useSharedVision boolean +---@param afterUnits boolean +---@return fogmodifier +function common.CreateFogModifierRect(forWhichPlayer,whichState,where,useSharedVision,afterUnits) end + +---新建可见度修正器(圆范围) [R] +---@param forWhichPlayer player +---@param whichState fogstate +---@param centerx real +---@param centerY real +---@param radius real +---@param useSharedVision boolean +---@param afterUnits boolean +---@return fogmodifier +function common.CreateFogModifierRadius(forWhichPlayer,whichState,centerx,centerY,radius,useSharedVision,afterUnits) end + +---CreateFogModifierRadiusLoc +---@param forWhichPlayer player +---@param whichState fogstate +---@param center location +---@param radius real +---@param useSharedVision boolean +---@param afterUnits boolean +---@return fogmodifier +function common.CreateFogModifierRadiusLoc(forWhichPlayer,whichState,center,radius,useSharedVision,afterUnits) end + +---删除可见度修正器 +---@param whichFogModifier fogmodifier +function common.DestroyFogModifier(whichFogModifier) end + +---允许可见度修正器 +---@param whichFogModifier fogmodifier +function common.FogModifierStart(whichFogModifier) end + +---禁止可见度修正器 +---@param whichFogModifier fogmodifier +function common.FogModifierStop(whichFogModifier) end + +---Game API +---Game API +---@return version +function common.VersionGet() end + +---VersionCompatible +---@param whichVersion version +---@return boolean +function common.VersionCompatible(whichVersion) end + +---VersionSupported +---@param whichVersion version +---@return boolean +function common.VersionSupported(whichVersion) end + +---EndGame +---@param doScoreScreen boolean +function common.EndGame(doScoreScreen) end + +---Async only! +---切换关卡 [R] +---@param newLevel string +---@param doScoreScreen boolean +function common.ChangeLevel(newLevel,doScoreScreen) end + +---RestartGame +---@param doScoreScreen boolean +function common.RestartGame(doScoreScreen) end + +---ReloadGame +function common.ReloadGame() end + +---%%% SetCampaignMenuRace is deprecated. It must remain to support +---old maps which use it, but all new maps should use SetCampaignMenuRaceEx +---old maps which use it, but all new maps should use SetCampaignMenuRaceEx +---@param r race +function common.SetCampaignMenuRace(r) end + +---SetCampaignMenuRaceEx +---@param campaignIndex integer +function common.SetCampaignMenuRaceEx(campaignIndex) end + +---ForceCampaignSelectScreen +function common.ForceCampaignSelectScreen() end + +---LoadGame +---@param saveFileName string +---@param doScoreScreen boolean +function common.LoadGame(saveFileName,doScoreScreen) end + +---保存进度 [R] +---@param saveFileName string +function common.SaveGame(saveFileName) end + +---RenameSaveDirectory +---@param sourceDirName string +---@param destDirName string +---@return boolean +function common.RenameSaveDirectory(sourceDirName,destDirName) end + +---RemoveSaveDirectory +---@param sourceDirName string +---@return boolean +function common.RemoveSaveDirectory(sourceDirName) end + +---CopySaveGame +---@param sourceSaveName string +---@param destSaveName string +---@return boolean +function common.CopySaveGame(sourceSaveName,destSaveName) end + +---游戏进度是存在的 +---@param saveName string +---@return boolean +function common.SaveGameExists(saveName) end + +---SetMaxCheckpointSaves +---@param maxCheckpointSaves integer +function common.SetMaxCheckpointSaves(maxCheckpointSaves) end + +---SaveGameCheckpoint +---@param saveFileName string +---@param showWindow boolean +function common.SaveGameCheckpoint(saveFileName,showWindow) end + +---SyncSelections +function common.SyncSelections() end + +---SetFloatGameState +---@param whichFloatGameState fgamestate +---@param value real +function common.SetFloatGameState(whichFloatGameState,value) end + +---GetFloatGameState +---@param whichFloatGameState fgamestate +---@return real +function common.GetFloatGameState(whichFloatGameState) end + +---SetIntegerGameState +---@param whichIntegerGameState igamestate +---@param value integer +function common.SetIntegerGameState(whichIntegerGameState,value) end + +---GetIntegerGameState +---@param whichIntegerGameState igamestate +---@return integer +function common.GetIntegerGameState(whichIntegerGameState) end + +---Campaign API +---Campaign API +---@param cleared boolean +function common.SetTutorialCleared(cleared) end + +---SetMissionAvailable +---@param campaignNumber integer +---@param missionNumber integer +---@param available boolean +function common.SetMissionAvailable(campaignNumber,missionNumber,available) end + +---SetCampaignAvailable +---@param campaignNumber integer +---@param available boolean +function common.SetCampaignAvailable(campaignNumber,available) end + +---SetOpCinematicAvailable +---@param campaignNumber integer +---@param available boolean +function common.SetOpCinematicAvailable(campaignNumber,available) end + +---SetEdCinematicAvailable +---@param campaignNumber integer +---@param available boolean +function common.SetEdCinematicAvailable(campaignNumber,available) end + +---GetDefaultDifficulty +---@return gamedifficulty +function common.GetDefaultDifficulty() end + +---SetDefaultDifficulty +---@param g gamedifficulty +function common.SetDefaultDifficulty(g) end + +---SetCustomCampaignButtonVisible +---@param whichButton integer +---@param visible boolean +function common.SetCustomCampaignButtonVisible(whichButton,visible) end + +---GetCustomCampaignButtonVisible +---@param whichButton integer +---@return boolean +function common.GetCustomCampaignButtonVisible(whichButton) end + +---关闭游戏录像功能 [R] +function common.DoNotSaveReplay() end + +---Dialog API +---新建对话框 [R] +---@return dialog +function common.DialogCreate() end + +---删除 [R] +---@param whichDialog dialog +function common.DialogDestroy(whichDialog) end + +---DialogClear +---@param whichDialog dialog +function common.DialogClear(whichDialog) end + +---DialogSetMessage +---@param whichDialog dialog +---@param messageText string +function common.DialogSetMessage(whichDialog,messageText) end + +---添加对话框按钮 [R] +---@param whichDialog dialog +---@param buttonText string +---@param hotkey integer +---@return button +function common.DialogAddButton(whichDialog,buttonText,hotkey) end + +---添加退出游戏按钮 [R] +---@param whichDialog dialog +---@param doScoreScreen boolean +---@param buttonText string +---@param hotkey integer +---@return button +function common.DialogAddQuitButton(whichDialog,doScoreScreen,buttonText,hotkey) end + +---显示/隐藏 [R] +---@param whichPlayer player +---@param whichDialog dialog +---@param flag boolean +function common.DialogDisplay(whichPlayer,whichDialog,flag) end + +---Creates a new or reads in an existing game cache file stored +---in the current campaign profile dir +---读取所有缓存 +---@return boolean +function common.ReloadGameCachesFromDisk() end + +---新建游戏缓存 [R] +---@param campaignFile string +---@return gamecache +function common.InitGameCache(campaignFile) end + +---SaveGameCache +---@param whichCache gamecache +---@return boolean +function common.SaveGameCache(whichCache) end + +---记录整数 +---@param cache gamecache +---@param missionKey string +---@param key string +---@param value integer +function common.StoreInteger(cache,missionKey,key,value) end + +---记录实数 +---@param cache gamecache +---@param missionKey string +---@param key string +---@param value real +function common.StoreReal(cache,missionKey,key,value) end + +---记录布尔值 +---@param cache gamecache +---@param missionKey string +---@param key string +---@param value boolean +function common.StoreBoolean(cache,missionKey,key,value) end + +---StoreUnit +---@param cache gamecache +---@param missionKey string +---@param key string +---@param whichUnit unit +---@return boolean +function common.StoreUnit(cache,missionKey,key,whichUnit) end + +---记录字符串 +---@param cache gamecache +---@param missionKey string +---@param key string +---@param value string +---@return boolean +function common.StoreString(cache,missionKey,key,value) end + +---SyncStoredInteger +---@param cache gamecache +---@param missionKey string +---@param key string +function common.SyncStoredInteger(cache,missionKey,key) end + +---SyncStoredReal +---@param cache gamecache +---@param missionKey string +---@param key string +function common.SyncStoredReal(cache,missionKey,key) end + +---SyncStoredBoolean +---@param cache gamecache +---@param missionKey string +---@param key string +function common.SyncStoredBoolean(cache,missionKey,key) end + +---SyncStoredUnit +---@param cache gamecache +---@param missionKey string +---@param key string +function common.SyncStoredUnit(cache,missionKey,key) end + +---SyncStoredString +---@param cache gamecache +---@param missionKey string +---@param key string +function common.SyncStoredString(cache,missionKey,key) end + +---HaveStoredInteger +---@param cache gamecache +---@param missionKey string +---@param key string +---@return boolean +function common.HaveStoredInteger(cache,missionKey,key) end + +---HaveStoredReal +---@param cache gamecache +---@param missionKey string +---@param key string +---@return boolean +function common.HaveStoredReal(cache,missionKey,key) end + +---HaveStoredBoolean +---@param cache gamecache +---@param missionKey string +---@param key string +---@return boolean +function common.HaveStoredBoolean(cache,missionKey,key) end + +---HaveStoredUnit +---@param cache gamecache +---@param missionKey string +---@param key string +---@return boolean +function common.HaveStoredUnit(cache,missionKey,key) end + +---HaveStoredString +---@param cache gamecache +---@param missionKey string +---@param key string +---@return boolean +function common.HaveStoredString(cache,missionKey,key) end + +---删除缓存 [C] +---@param cache gamecache +function common.FlushGameCache(cache) end + +---删除类别 +---@param cache gamecache +---@param missionKey string +function common.FlushStoredMission(cache,missionKey) end + +---FlushStoredInteger +---@param cache gamecache +---@param missionKey string +---@param key string +function common.FlushStoredInteger(cache,missionKey,key) end + +---FlushStoredReal +---@param cache gamecache +---@param missionKey string +---@param key string +function common.FlushStoredReal(cache,missionKey,key) end + +---FlushStoredBoolean +---@param cache gamecache +---@param missionKey string +---@param key string +function common.FlushStoredBoolean(cache,missionKey,key) end + +---FlushStoredUnit +---@param cache gamecache +---@param missionKey string +---@param key string +function common.FlushStoredUnit(cache,missionKey,key) end + +---FlushStoredString +---@param cache gamecache +---@param missionKey string +---@param key string +function common.FlushStoredString(cache,missionKey,key) end + +---Will return 0 if the specified value's data is not found in the cache +---缓存读取整数 [C] +---@param cache gamecache +---@param missionKey string +---@param key string +---@return integer +function common.GetStoredInteger(cache,missionKey,key) end + +---缓存读取实数 [C] +---@param cache gamecache +---@param missionKey string +---@param key string +---@return real +function common.GetStoredReal(cache,missionKey,key) end + +---读取布尔值[R] +---@param cache gamecache +---@param missionKey string +---@param key string +---@return boolean +function common.GetStoredBoolean(cache,missionKey,key) end + +---读取字符串 [C] +---@param cache gamecache +---@param missionKey string +---@param key string +---@return string +function common.GetStoredString(cache,missionKey,key) end + +---RestoreUnit +---@param cache gamecache +---@param missionKey string +---@param key string +---@param forWhichPlayer player +---@param x real +---@param y real +---@param facing real +---@return unit +function common.RestoreUnit(cache,missionKey,key,forWhichPlayer,x,y,facing) end + +---<1.24> 新建哈希表 [C] +---@return hashtable +function common.InitHashtable() end + +---<1.24> 保存整数 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param value integer +function common.SaveInteger(table,parentKey,childKey,value) end + +---<1.24> 保存实数 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param value real +function common.SaveReal(table,parentKey,childKey,value) end + +---<1.24> 保存布尔 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param value boolean +function common.SaveBoolean(table,parentKey,childKey,value) end + +---<1.24> 保存字符串 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param value string +---@return boolean +function common.SaveStr(table,parentKey,childKey,value) end + +---<1.24> 保存玩家 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichPlayer player +---@return boolean +function common.SavePlayerHandle(table,parentKey,childKey,whichPlayer) end + +---SaveWidgetHandle +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichWidget widget +---@return boolean +function common.SaveWidgetHandle(table,parentKey,childKey,whichWidget) end + +---<1.24> 保存可破坏物 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichDestructable destructable +---@return boolean +function common.SaveDestructableHandle(table,parentKey,childKey,whichDestructable) end + +---<1.24> 保存物品 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichItem item +---@return boolean +function common.SaveItemHandle(table,parentKey,childKey,whichItem) end + +---<1.24> 保存单位 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichUnit unit +---@return boolean +function common.SaveUnitHandle(table,parentKey,childKey,whichUnit) end + +---SaveAbilityHandle +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichAbility ability +---@return boolean +function common.SaveAbilityHandle(table,parentKey,childKey,whichAbility) end + +---<1.24> 保存计时器 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichTimer timer +---@return boolean +function common.SaveTimerHandle(table,parentKey,childKey,whichTimer) end + +---<1.24> 保存触发器 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichTrigger trigger +---@return boolean +function common.SaveTriggerHandle(table,parentKey,childKey,whichTrigger) end + +---<1.24> 保存触发条件 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichTriggercondition triggercondition +---@return boolean +function common.SaveTriggerConditionHandle(table,parentKey,childKey,whichTriggercondition) end + +---<1.24> 保存触发动作 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichTriggeraction triggeraction +---@return boolean +function common.SaveTriggerActionHandle(table,parentKey,childKey,whichTriggeraction) end + +---<1.24> 保存触发事件 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichEvent event +---@return boolean +function common.SaveTriggerEventHandle(table,parentKey,childKey,whichEvent) end + +---<1.24> 保存玩家组 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichForce force +---@return boolean +function common.SaveForceHandle(table,parentKey,childKey,whichForce) end + +---<1.24> 保存单位组 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichGroup group +---@return boolean +function common.SaveGroupHandle(table,parentKey,childKey,whichGroup) end + +---<1.24> 保存点 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichLocation location +---@return boolean +function common.SaveLocationHandle(table,parentKey,childKey,whichLocation) end + +---<1.24> 保存区域(矩型) [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichRect rect +---@return boolean +function common.SaveRectHandle(table,parentKey,childKey,whichRect) end + +---<1.24> 保存布尔表达式 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichBoolexpr boolexpr +---@return boolean +function common.SaveBooleanExprHandle(table,parentKey,childKey,whichBoolexpr) end + +---<1.24> 保存音效 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichSound sound +---@return boolean +function common.SaveSoundHandle(table,parentKey,childKey,whichSound) end + +---<1.24> 保存特效 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichEffect effect +---@return boolean +function common.SaveEffectHandle(table,parentKey,childKey,whichEffect) end + +---<1.24> 保存单位池 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichUnitpool unitpool +---@return boolean +function common.SaveUnitPoolHandle(table,parentKey,childKey,whichUnitpool) end + +---<1.24> 保存物品池 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichItempool itempool +---@return boolean +function common.SaveItemPoolHandle(table,parentKey,childKey,whichItempool) end + +---<1.24> 保存任务 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichQuest quest +---@return boolean +function common.SaveQuestHandle(table,parentKey,childKey,whichQuest) end + +---<1.24> 保存任务要求 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichQuestitem questitem +---@return boolean +function common.SaveQuestItemHandle(table,parentKey,childKey,whichQuestitem) end + +---<1.24> 保存失败条件 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichDefeatcondition defeatcondition +---@return boolean +function common.SaveDefeatConditionHandle(table,parentKey,childKey,whichDefeatcondition) end + +---<1.24> 保存计时器窗口 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichTimerdialog timerdialog +---@return boolean +function common.SaveTimerDialogHandle(table,parentKey,childKey,whichTimerdialog) end + +---<1.24> 保存排行榜 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichLeaderboard leaderboard +---@return boolean +function common.SaveLeaderboardHandle(table,parentKey,childKey,whichLeaderboard) end + +---<1.24> 保存多面板 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichMultiboard multiboard +---@return boolean +function common.SaveMultiboardHandle(table,parentKey,childKey,whichMultiboard) end + +---<1.24> 保存多面板项目 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichMultiboarditem multiboarditem +---@return boolean +function common.SaveMultiboardItemHandle(table,parentKey,childKey,whichMultiboarditem) end + +---<1.24> 保存可追踪物 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichTrackable trackable +---@return boolean +function common.SaveTrackableHandle(table,parentKey,childKey,whichTrackable) end + +---<1.24> 保存对话框 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichDialog dialog +---@return boolean +function common.SaveDialogHandle(table,parentKey,childKey,whichDialog) end + +---<1.24> 保存对话框按钮 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichButton button +---@return boolean +function common.SaveButtonHandle(table,parentKey,childKey,whichButton) end + +---<1.24> 保存漂浮文字 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichTexttag texttag +---@return boolean +function common.SaveTextTagHandle(table,parentKey,childKey,whichTexttag) end + +---<1.24> 保存闪电效果 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichLightning lightning +---@return boolean +function common.SaveLightningHandle(table,parentKey,childKey,whichLightning) end + +---<1.24> 保存图像 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichImage image +---@return boolean +function common.SaveImageHandle(table,parentKey,childKey,whichImage) end + +---<1.24> 保存地面纹理变化 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichUbersplat ubersplat +---@return boolean +function common.SaveUbersplatHandle(table,parentKey,childKey,whichUbersplat) end + +---<1.24> 保存区域(不规则) [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichRegion region +---@return boolean +function common.SaveRegionHandle(table,parentKey,childKey,whichRegion) end + +---<1.24> 保存迷雾状态 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichFogState fogstate +---@return boolean +function common.SaveFogStateHandle(table,parentKey,childKey,whichFogState) end + +---<1.24> 保存可见度修正器 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichFogModifier fogmodifier +---@return boolean +function common.SaveFogModifierHandle(table,parentKey,childKey,whichFogModifier) end + +---<1.24> 保存实体对象 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichAgent agent +---@return boolean +function common.SaveAgentHandle(table,parentKey,childKey,whichAgent) end + +---<1.24> 保存哈希表 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichHashtable hashtable +---@return boolean +function common.SaveHashtableHandle(table,parentKey,childKey,whichHashtable) end + +---SaveFrameHandle +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@param whichFrameHandle framehandle +---@return boolean +function common.SaveFrameHandle(table,parentKey,childKey,whichFrameHandle) end + +---<1.24> 从哈希表提取整数 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return integer +function common.LoadInteger(table,parentKey,childKey) end + +---<1.24> 从哈希表提取实数 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return real +function common.LoadReal(table,parentKey,childKey) end + +---<1.24> 从哈希表提取布尔 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return boolean +function common.LoadBoolean(table,parentKey,childKey) end + +---<1.24> 从哈希表提取字符串 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return string +function common.LoadStr(table,parentKey,childKey) end + +---<1.24> 从哈希表提取玩家 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return player +function common.LoadPlayerHandle(table,parentKey,childKey) end + +---LoadWidgetHandle +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return widget +function common.LoadWidgetHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取可破坏物 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return destructable +function common.LoadDestructableHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取物品 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return item +function common.LoadItemHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取单位 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return unit +function common.LoadUnitHandle(table,parentKey,childKey) end + +---LoadAbilityHandle +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return ability +function common.LoadAbilityHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取计时器 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return timer +function common.LoadTimerHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取触发器 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return trigger +function common.LoadTriggerHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取触发条件 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return triggercondition +function common.LoadTriggerConditionHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取触发动作 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return triggeraction +function common.LoadTriggerActionHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取触发事件 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return event +function common.LoadTriggerEventHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取玩家组 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return force +function common.LoadForceHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取单位组 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return group +function common.LoadGroupHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取点 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return location +function common.LoadLocationHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取区域(矩型) [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return rect +function common.LoadRectHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取布尔表达式 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return boolexpr +function common.LoadBooleanExprHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取音效 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return sound +function common.LoadSoundHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取特效 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return effect +function common.LoadEffectHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取单位池 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return unitpool +function common.LoadUnitPoolHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取物品池 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return itempool +function common.LoadItemPoolHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取任务 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return quest +function common.LoadQuestHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取任务要求 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return questitem +function common.LoadQuestItemHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取失败条件 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return defeatcondition +function common.LoadDefeatConditionHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取计时器窗口 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return timerdialog +function common.LoadTimerDialogHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取排行榜 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return leaderboard +function common.LoadLeaderboardHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取多面板 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return multiboard +function common.LoadMultiboardHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取多面板项目 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return multiboarditem +function common.LoadMultiboardItemHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取可追踪物 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return trackable +function common.LoadTrackableHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取对话框 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return dialog +function common.LoadDialogHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取对话框按钮 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return button +function common.LoadButtonHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取漂浮文字 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return texttag +function common.LoadTextTagHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取闪电效果 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return lightning +function common.LoadLightningHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取图象 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return image +function common.LoadImageHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取地面纹理变化 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return ubersplat +function common.LoadUbersplatHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取区域(不规则) [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return region +function common.LoadRegionHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取迷雾状态 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return fogstate +function common.LoadFogStateHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取可见度修正器 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return fogmodifier +function common.LoadFogModifierHandle(table,parentKey,childKey) end + +---<1.24> 从哈希表提取哈希表 [C] +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return hashtable +function common.LoadHashtableHandle(table,parentKey,childKey) end + +---LoadFrameHandle +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return framehandle +function common.LoadFrameHandle(table,parentKey,childKey) end + +---HaveSavedInteger +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return boolean +function common.HaveSavedInteger(table,parentKey,childKey) end + +---HaveSavedReal +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return boolean +function common.HaveSavedReal(table,parentKey,childKey) end + +---HaveSavedBoolean +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return boolean +function common.HaveSavedBoolean(table,parentKey,childKey) end + +---HaveSavedString +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return boolean +function common.HaveSavedString(table,parentKey,childKey) end + +---HaveSavedHandle +---@param table hashtable +---@param parentKey integer +---@param childKey integer +---@return boolean +function common.HaveSavedHandle(table,parentKey,childKey) end + +---RemoveSavedInteger +---@param table hashtable +---@param parentKey integer +---@param childKey integer +function common.RemoveSavedInteger(table,parentKey,childKey) end + +---RemoveSavedReal +---@param table hashtable +---@param parentKey integer +---@param childKey integer +function common.RemoveSavedReal(table,parentKey,childKey) end + +---RemoveSavedBoolean +---@param table hashtable +---@param parentKey integer +---@param childKey integer +function common.RemoveSavedBoolean(table,parentKey,childKey) end + +---RemoveSavedString +---@param table hashtable +---@param parentKey integer +---@param childKey integer +function common.RemoveSavedString(table,parentKey,childKey) end + +---RemoveSavedHandle +---@param table hashtable +---@param parentKey integer +---@param childKey integer +function common.RemoveSavedHandle(table,parentKey,childKey) end + +---<1.24> 清空哈希表 [C] +---@param table hashtable +function common.FlushParentHashtable(table) end + +---<1.24> 清空哈希表主索引 [C] +---@param table hashtable +---@param parentKey integer +function common.FlushChildHashtable(table,parentKey) end + +---Randomization API +---随机数字 +---@param lowBound integer +---@param highBound integer +---@return integer +function common.GetRandomInt(lowBound,highBound) end + +---随机数 +---@param lowBound real +---@param highBound real +---@return real +function common.GetRandomReal(lowBound,highBound) end + +---新建单位池 [R] +---@return unitpool +function common.CreateUnitPool() end + +---删除单位池 [R] +---@param whichPool unitpool +function common.DestroyUnitPool(whichPool) end + +---添加单位类型 [R] +---@param whichPool unitpool +---@param unitId integer +---@param weight real +function common.UnitPoolAddUnitType(whichPool,unitId,weight) end + +---删除单位类型 [R] +---@param whichPool unitpool +---@param unitId integer +function common.UnitPoolRemoveUnitType(whichPool,unitId) end + +---选择放置单位 [R] +---@param whichPool unitpool +---@param forWhichPlayer player +---@param x real +---@param y real +---@param facing real +---@return unit +function common.PlaceRandomUnit(whichPool,forWhichPlayer,x,y,facing) end + +---新建物品池 [R] +---@return itempool +function common.CreateItemPool() end + +---删除物品池 [R] +---@param whichItemPool itempool +function common.DestroyItemPool(whichItemPool) end + +---添加物品类型 [R] +---@param whichItemPool itempool +---@param itemId integer +---@param weight real +function common.ItemPoolAddItemType(whichItemPool,itemId,weight) end + +---删除物品类型 [R] +---@param whichItemPool itempool +---@param itemId integer +function common.ItemPoolRemoveItemType(whichItemPool,itemId) end + +---选择放置物品 [R] +---@param whichItemPool itempool +---@param x real +---@param y real +---@return item +function common.PlaceRandomItem(whichItemPool,x,y) end + +---Choose any random unit/item. (NP means Neutral Passive) +---Choose any random unit/item. (NP means Neutral Passive) +---@param level integer +---@return integer +function common.ChooseRandomCreep(level) end + +---ChooseRandomNPBuilding +---@return integer +function common.ChooseRandomNPBuilding() end + +---ChooseRandomItem +---@param level integer +---@return integer +function common.ChooseRandomItem(level) end + +---ChooseRandomItemEx +---@param whichType itemtype +---@param level integer +---@return integer +function common.ChooseRandomItemEx(whichType,level) end + +---设置随机种子 +---@param seed integer +function common.SetRandomSeed(seed) end + +---Visual API +---Visual API +---@param a real +---@param b real +---@param c real +---@param d real +---@param e real +function common.SetTerrainFog(a,b,c,d,e) end + +---ResetTerrainFog +function common.ResetTerrainFog() end + +---SetUnitFog +---@param a real +---@param b real +---@param c real +---@param d real +---@param e real +function common.SetUnitFog(a,b,c,d,e) end + +---设置迷雾 [R] +---@param style integer +---@param zstart real +---@param zend real +---@param density real +---@param red real +---@param green real +---@param blue real +function common.SetTerrainFogEx(style,zstart,zend,density,red,green,blue) end + +---对玩家显示文本消息(自动限时) [R] +---@param toPlayer player +---@param x real +---@param y real +---@param message string +function common.DisplayTextToPlayer(toPlayer,x,y,message) end + +---对玩家显示文本消息(指定时间) [R] +---@param toPlayer player +---@param x real +---@param y real +---@param duration real +---@param message string +function common.DisplayTimedTextToPlayer(toPlayer,x,y,duration,message) end + +---DisplayTimedTextFromPlayer +---@param toPlayer player +---@param x real +---@param y real +---@param duration real +---@param message string +function common.DisplayTimedTextFromPlayer(toPlayer,x,y,duration,message) end + +---清空文本信息(所有玩家) [R] +function common.ClearTextMessages() end + +---SetDayNightModels +---@param terrainDNCFile string +---@param unitDNCFile string +function common.SetDayNightModels(terrainDNCFile,unitDNCFile) end + +---SetPortraitLight +---@param portraitDNCFile string +function common.SetPortraitLight(portraitDNCFile) end + +---设置天空 +---@param skyModelFile string +function common.SetSkyModel(skyModelFile) end + +---启用/禁用玩家控制权(所有玩家) [R] +---@param b boolean +function common.EnableUserControl(b) end + +---EnableUserUI +---@param b boolean +function common.EnableUserUI(b) end + +---SuspendTimeOfDay +---@param b boolean +function common.SuspendTimeOfDay(b) end + +---设置昼夜时间流逝速度 [R] +---@param r real +function common.SetTimeOfDayScale(r) end + +---GetTimeOfDayScale +---@return real +function common.GetTimeOfDayScale() end + +---开启/关闭 信箱模式(所有玩家) [R] +---@param flag boolean +---@param fadeDuration real +function common.ShowInterface(flag,fadeDuration) end + +---暂停/恢复游戏 [R] +---@param flag boolean +function common.PauseGame(flag) end + +---闪动指示器(对单位) [R] +---@param whichUnit unit +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.UnitAddIndicator(whichUnit,red,green,blue,alpha) end + +---AddIndicator +---@param whichWidget widget +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.AddIndicator(whichWidget,red,green,blue,alpha) end + +---小地图信号(所有玩家) [R] +---@param x real +---@param y real +---@param duration real +function common.PingMinimap(x,y,duration) end + +---小地图信号(指定颜色)(所有玩家) [R] +---@param x real +---@param y real +---@param duration real +---@param red integer +---@param green integer +---@param blue integer +---@param extraEffects boolean +function common.PingMinimapEx(x,y,duration,red,green,blue,extraEffects) end + +---CreateMinimapIconOnUnit +---@param whichUnit unit +---@param red integer +---@param green integer +---@param blue integer +---@param pingPath string +---@param fogVisibility fogstate +---@return minimapicon +function common.CreateMinimapIconOnUnit(whichUnit,red,green,blue,pingPath,fogVisibility) end + +---CreateMinimapIconAtLoc +---@param where location +---@param red integer +---@param green integer +---@param blue integer +---@param pingPath string +---@param fogVisibility fogstate +---@return minimapicon +function common.CreateMinimapIconAtLoc(where,red,green,blue,pingPath,fogVisibility) end + +---CreateMinimapIcon +---@param x real +---@param y real +---@param red integer +---@param green integer +---@param blue integer +---@param pingPath string +---@param fogVisibility fogstate +---@return minimapicon +function common.CreateMinimapIcon(x,y,red,green,blue,pingPath,fogVisibility) end + +---SkinManagerGetLocalPath +---@param key string +---@return string +function common.SkinManagerGetLocalPath(key) end + +---DestroyMinimapIcon +---@param pingId minimapicon +function common.DestroyMinimapIcon(pingId) end + +---SetMinimapIconVisible +---@param whichMinimapIcon minimapicon +---@param visible boolean +function common.SetMinimapIconVisible(whichMinimapIcon,visible) end + +---SetMinimapIconOrphanDestroy +---@param whichMinimapIcon minimapicon +---@param doDestroy boolean +function common.SetMinimapIconOrphanDestroy(whichMinimapIcon,doDestroy) end + +---允许/禁止闭塞(所有玩家) [R] +---@param flag boolean +function common.EnableOcclusion(flag) end + +---SetIntroShotText +---@param introText string +function common.SetIntroShotText(introText) end + +---SetIntroShotModel +---@param introModelPath string +function common.SetIntroShotModel(introModelPath) end + +---允许/禁止 边界染色(所有玩家) [R] +---@param b boolean +function common.EnableWorldFogBoundary(b) end + +---PlayModelCinematic +---@param modelName string +function common.PlayModelCinematic(modelName) end + +---PlayCinematic +---@param movieName string +function common.PlayCinematic(movieName) end + +---ForceUIKey +---@param key string +function common.ForceUIKey(key) end + +---ForceUICancel +function common.ForceUICancel() end + +---DisplayLoadDialog +function common.DisplayLoadDialog() end + +---改变小地图的特殊图标 +---@param iconPath string +function common.SetAltMinimapIcon(iconPath) end + +---禁用 重新开始任务按钮 +---@param flag boolean +function common.DisableRestartMission(flag) end + +---新建漂浮文字 [R] +---@return texttag +function common.CreateTextTag() end + +---DestroyTextTag +---@param t texttag +function common.DestroyTextTag(t) end + +---改变文字内容 [R] +---@param t texttag +---@param s string +---@param height real +function common.SetTextTagText(t,s,height) end + +---改变位置(坐标) [R] +---@param t texttag +---@param x real +---@param y real +---@param heightOffset real +function common.SetTextTagPos(t,x,y,heightOffset) end + +---SetTextTagPosUnit +---@param t texttag +---@param whichUnit unit +---@param heightOffset real +function common.SetTextTagPosUnit(t,whichUnit,heightOffset) end + +---改变颜色 [R] +---@param t texttag +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.SetTextTagColor(t,red,green,blue,alpha) end + +---设置速率 [R] +---@param t texttag +---@param xvel real +---@param yvel real +function common.SetTextTagVelocity(t,xvel,yvel) end + +---显示/隐藏 (所有玩家) [R] +---@param t texttag +---@param flag boolean +function common.SetTextTagVisibility(t,flag) end + +---SetTextTagSuspended +---@param t texttag +---@param flag boolean +function common.SetTextTagSuspended(t,flag) end + +---SetTextTagPermanent +---@param t texttag +---@param flag boolean +function common.SetTextTagPermanent(t,flag) end + +---SetTextTagAge +---@param t texttag +---@param age real +function common.SetTextTagAge(t,age) end + +---SetTextTagLifespan +---@param t texttag +---@param lifespan real +function common.SetTextTagLifespan(t,lifespan) end + +---SetTextTagFadepoint +---@param t texttag +---@param fadepoint real +function common.SetTextTagFadepoint(t,fadepoint) end + +---保留英雄按钮 +---@param reserved integer +function common.SetReservedLocalHeroButtons(reserved) end + +---结盟滤色镜的设置值 +---@return integer +function common.GetAllyColorFilterState() end + +---设置结盟滤色镜 +---@param state integer +function common.SetAllyColorFilterState(state) end + +---野生单位显示是开启的 +---@return boolean +function common.GetCreepCampFilterState() end + +---显示/隐藏野生生物图标在小地图 +---@param state boolean +function common.SetCreepCampFilterState(state) end + +---允许/禁止小地图按钮 +---@param enableAlly boolean +---@param enableCreep boolean +function common.EnableMinimapFilterButtons(enableAlly,enableCreep) end + +---允许/禁止框选 +---@param state boolean +---@param ui boolean +function common.EnableDragSelect(state,ui) end + +---允许/禁止预选 +---@param state boolean +---@param ui boolean +function common.EnablePreSelect(state,ui) end + +---允许/禁止选择 +---@param state boolean +---@param ui boolean +function common.EnableSelect(state,ui) end + +---Trackable API +---新建可追踪物 [R] +---@param trackableModelPath string +---@param x real +---@param y real +---@param facing real +---@return trackable +function common.CreateTrackable(trackableModelPath,x,y,facing) end + +---Quest API +---新建任务 [R] +---@return quest +function common.CreateQuest() end + +---DestroyQuest +---@param whichQuest quest +function common.DestroyQuest(whichQuest) end + +---QuestSetTitle +---@param whichQuest quest +---@param title string +function common.QuestSetTitle(whichQuest,title) end + +---QuestSetDescription +---@param whichQuest quest +---@param description string +function common.QuestSetDescription(whichQuest,description) end + +---QuestSetIconPath +---@param whichQuest quest +---@param iconPath string +function common.QuestSetIconPath(whichQuest,iconPath) end + +---QuestSetRequired +---@param whichQuest quest +---@param required boolean +function common.QuestSetRequired(whichQuest,required) end + +---QuestSetCompleted +---@param whichQuest quest +---@param completed boolean +function common.QuestSetCompleted(whichQuest,completed) end + +---QuestSetDiscovered +---@param whichQuest quest +---@param discovered boolean +function common.QuestSetDiscovered(whichQuest,discovered) end + +---QuestSetFailed +---@param whichQuest quest +---@param failed boolean +function common.QuestSetFailed(whichQuest,failed) end + +---启用/禁用 任务 [R] +---@param whichQuest quest +---@param enabled boolean +function common.QuestSetEnabled(whichQuest,enabled) end + +---任务是必须完成的 +---@param whichQuest quest +---@return boolean +function common.IsQuestRequired(whichQuest) end + +---任务完成 +---@param whichQuest quest +---@return boolean +function common.IsQuestCompleted(whichQuest) end + +---任务已发现 +---@param whichQuest quest +---@return boolean +function common.IsQuestDiscovered(whichQuest) end + +---任务失败 +---@param whichQuest quest +---@return boolean +function common.IsQuestFailed(whichQuest) end + +---允许任务 +---@param whichQuest quest +---@return boolean +function common.IsQuestEnabled(whichQuest) end + +---QuestCreateItem +---@param whichQuest quest +---@return questitem +function common.QuestCreateItem(whichQuest) end + +---QuestItemSetDescription +---@param whichQuestItem questitem +---@param description string +function common.QuestItemSetDescription(whichQuestItem,description) end + +---QuestItemSetCompleted +---@param whichQuestItem questitem +---@param completed boolean +function common.QuestItemSetCompleted(whichQuestItem,completed) end + +---任务条件完成 +---@param whichQuestItem questitem +---@return boolean +function common.IsQuestItemCompleted(whichQuestItem) end + +---CreateDefeatCondition +---@return defeatcondition +function common.CreateDefeatCondition() end + +---DestroyDefeatCondition +---@param whichCondition defeatcondition +function common.DestroyDefeatCondition(whichCondition) end + +---DefeatConditionSetDescription +---@param whichCondition defeatcondition +---@param description string +function common.DefeatConditionSetDescription(whichCondition,description) end + +---FlashQuestDialogButton +function common.FlashQuestDialogButton() end + +---ForceQuestDialogUpdate +function common.ForceQuestDialogUpdate() end + +---Timer Dialog API +---新建计时器窗口 [R] +---@param t timer +---@return timerdialog +function common.CreateTimerDialog(t) end + +---销毁计时器窗口 +---@param whichDialog timerdialog +function common.DestroyTimerDialog(whichDialog) end + +---设置计时器窗口标题 +---@param whichDialog timerdialog +---@param title string +function common.TimerDialogSetTitle(whichDialog,title) end + +---改变计时器窗口文字颜色 [R] +---@param whichDialog timerdialog +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.TimerDialogSetTitleColor(whichDialog,red,green,blue,alpha) end + +---改变计时器窗口计时颜色 [R] +---@param whichDialog timerdialog +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.TimerDialogSetTimeColor(whichDialog,red,green,blue,alpha) end + +---设置计时器窗口速率 [R] +---@param whichDialog timerdialog +---@param speedMultFactor real +function common.TimerDialogSetSpeed(whichDialog,speedMultFactor) end + +---显示/隐藏 计时器窗口(所有玩家) [R] +---@param whichDialog timerdialog +---@param display boolean +function common.TimerDialogDisplay(whichDialog,display) end + +---判断计时器窗口是否显示 +---@param whichDialog timerdialog +---@return boolean +function common.IsTimerDialogDisplayed(whichDialog) end + +---TimerDialogSetRealTimeRemaining +---@param whichDialog timerdialog +---@param timeRemaining real +function common.TimerDialogSetRealTimeRemaining(whichDialog,timeRemaining) end + +---Create a leaderboard object +---新建排行榜 [R] +---@return leaderboard +function common.CreateLeaderboard() end + +---DestroyLeaderboard +---@param lb leaderboard +function common.DestroyLeaderboard(lb) end + +---显示/隐藏 [R] +---@param lb leaderboard +---@param show boolean +function common.LeaderboardDisplay(lb,show) end + +---IsLeaderboardDisplayed +---@param lb leaderboard +---@return boolean +function common.IsLeaderboardDisplayed(lb) end + +---行数 +---@param lb leaderboard +---@return integer +function common.LeaderboardGetItemCount(lb) end + +---LeaderboardSetSizeByItemCount +---@param lb leaderboard +---@param count integer +function common.LeaderboardSetSizeByItemCount(lb,count) end + +---LeaderboardAddItem +---@param lb leaderboard +---@param label string +---@param value integer +---@param p player +function common.LeaderboardAddItem(lb,label,value,p) end + +---LeaderboardRemoveItem +---@param lb leaderboard +---@param index integer +function common.LeaderboardRemoveItem(lb,index) end + +---LeaderboardRemovePlayerItem +---@param lb leaderboard +---@param p player +function common.LeaderboardRemovePlayerItem(lb,p) end + +---清空 [R] +---@param lb leaderboard +function common.LeaderboardClear(lb) end + +---LeaderboardSortItemsByValue +---@param lb leaderboard +---@param ascending boolean +function common.LeaderboardSortItemsByValue(lb,ascending) end + +---LeaderboardSortItemsByPlayer +---@param lb leaderboard +---@param ascending boolean +function common.LeaderboardSortItemsByPlayer(lb,ascending) end + +---LeaderboardSortItemsByLabel +---@param lb leaderboard +---@param ascending boolean +function common.LeaderboardSortItemsByLabel(lb,ascending) end + +---LeaderboardHasPlayerItem +---@param lb leaderboard +---@param p player +---@return boolean +function common.LeaderboardHasPlayerItem(lb,p) end + +---LeaderboardGetPlayerIndex +---@param lb leaderboard +---@param p player +---@return integer +function common.LeaderboardGetPlayerIndex(lb,p) end + +---LeaderboardSetLabel +---@param lb leaderboard +---@param label string +function common.LeaderboardSetLabel(lb,label) end + +---LeaderboardGetLabelText +---@param lb leaderboard +---@return string +function common.LeaderboardGetLabelText(lb) end + +---设置玩家使用的排行榜 [R] +---@param toPlayer player +---@param lb leaderboard +function common.PlayerSetLeaderboard(toPlayer,lb) end + +---PlayerGetLeaderboard +---@param toPlayer player +---@return leaderboard +function common.PlayerGetLeaderboard(toPlayer) end + +---设置文字颜色 [R] +---@param lb leaderboard +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.LeaderboardSetLabelColor(lb,red,green,blue,alpha) end + +---设置数值颜色 [R] +---@param lb leaderboard +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.LeaderboardSetValueColor(lb,red,green,blue,alpha) end + +---LeaderboardSetStyle +---@param lb leaderboard +---@param showLabel boolean +---@param showNames boolean +---@param showValues boolean +---@param showIcons boolean +function common.LeaderboardSetStyle(lb,showLabel,showNames,showValues,showIcons) end + +---LeaderboardSetItemValue +---@param lb leaderboard +---@param whichItem integer +---@param val integer +function common.LeaderboardSetItemValue(lb,whichItem,val) end + +---LeaderboardSetItemLabel +---@param lb leaderboard +---@param whichItem integer +---@param val string +function common.LeaderboardSetItemLabel(lb,whichItem,val) end + +---LeaderboardSetItemStyle +---@param lb leaderboard +---@param whichItem integer +---@param showLabel boolean +---@param showValue boolean +---@param showIcon boolean +function common.LeaderboardSetItemStyle(lb,whichItem,showLabel,showValue,showIcon) end + +---LeaderboardSetItemLabelColor +---@param lb leaderboard +---@param whichItem integer +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.LeaderboardSetItemLabelColor(lb,whichItem,red,green,blue,alpha) end + +---LeaderboardSetItemValueColor +---@param lb leaderboard +---@param whichItem integer +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.LeaderboardSetItemValueColor(lb,whichItem,red,green,blue,alpha) end + +---Create a multiboard object +---新建多面板 [R] +---@return multiboard +function common.CreateMultiboard() end + +---DestroyMultiboard +---@param lb multiboard +function common.DestroyMultiboard(lb) end + +---显示/隐藏 [R] +---@param lb multiboard +---@param show boolean +function common.MultiboardDisplay(lb,show) end + +---多列面板 是已显示的 +---@param lb multiboard +---@return boolean +function common.IsMultiboardDisplayed(lb) end + +---最大/最小化 [R] +---@param lb multiboard +---@param minimize boolean +function common.MultiboardMinimize(lb,minimize) end + +---多列面板 是最小化的 +---@param lb multiboard +---@return boolean +function common.IsMultiboardMinimized(lb) end + +---清除 多列面板 +---@param lb multiboard +function common.MultiboardClear(lb) end + +---改变 多列面板 标题 +---@param lb multiboard +---@param label string +function common.MultiboardSetTitleText(lb,label) end + +---多列面板 的标题 +---@param lb multiboard +---@return string +function common.MultiboardGetTitleText(lb) end + +---设置标题颜色 [R] +---@param lb multiboard +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.MultiboardSetTitleTextColor(lb,red,green,blue,alpha) end + +---获得多列面板 的行数 +---@param lb multiboard +---@return integer +function common.MultiboardGetRowCount(lb) end + +---获得多列面板 的列数 +---@param lb multiboard +---@return integer +function common.MultiboardGetColumnCount(lb) end + +---改变多列面板'列数' +---@param lb multiboard +---@param count integer +function common.MultiboardSetColumnCount(lb,count) end + +---改变多列面板'行数' +---@param lb multiboard +---@param count integer +function common.MultiboardSetRowCount(lb,count) end + +---broadcast settings to all items +---设置所有项目显示风格 [R] +---@param lb multiboard +---@param showValues boolean +---@param showIcons boolean +function common.MultiboardSetItemsStyle(lb,showValues,showIcons) end + +---设置所有项目文本 [R] +---@param lb multiboard +---@param value string +function common.MultiboardSetItemsValue(lb,value) end + +---设置所有项目颜色 [R] +---@param lb multiboard +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.MultiboardSetItemsValueColor(lb,red,green,blue,alpha) end + +---设置所有项目宽度 [R] +---@param lb multiboard +---@param width real +function common.MultiboardSetItemsWidth(lb,width) end + +---设置所有项目图标 [R] +---@param lb multiboard +---@param iconPath string +function common.MultiboardSetItemsIcon(lb,iconPath) end + +---funcs for modifying individual items +---多面板项目 [R] +---@param lb multiboard +---@param row integer +---@param column integer +---@return multiboarditem +function common.MultiboardGetItem(lb,row,column) end + +---删除多面板项目 [R] +---@param mbi multiboarditem +function common.MultiboardReleaseItem(mbi) end + +---设置指定项目显示风格 [R] +---@param mbi multiboarditem +---@param showValue boolean +---@param showIcon boolean +function common.MultiboardSetItemStyle(mbi,showValue,showIcon) end + +---设置指定项目文本 [R] +---@param mbi multiboarditem +---@param val string +function common.MultiboardSetItemValue(mbi,val) end + +---设置指定项目颜色 [R] +---@param mbi multiboarditem +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.MultiboardSetItemValueColor(mbi,red,green,blue,alpha) end + +---设置指定项目宽度 [R] +---@param mbi multiboarditem +---@param width real +function common.MultiboardSetItemWidth(mbi,width) end + +---设置指定项目图标 [R] +---@param mbi multiboarditem +---@param iconFileName string +function common.MultiboardSetItemIcon(mbi,iconFileName) end + +---meant to unequivocally suspend display of existing and +---subsequently displayed multiboards +---显示/隐藏多面板模式 [R] +---@param flag boolean +function common.MultiboardSuppressDisplay(flag) end + +---Camera API +---Camera API +---@param x real +---@param y real +function common.SetCameraPosition(x,y) end + +---设置空格键转向点(所有玩家) [R] +---@param x real +---@param y real +function common.SetCameraQuickPosition(x,y) end + +---设置可用镜头区域(所有玩家) [R] +---@param x1 real +---@param y1 real +---@param x2 real +---@param y2 real +---@param x3 real +---@param y3 real +---@param x4 real +---@param y4 real +function common.SetCameraBounds(x1,y1,x2,y2,x3,y3,x4,y4) end + +---停止播放镜头(所有玩家) [R] +function common.StopCamera() end + +---重置游戏镜头(所有玩家) [R] +---@param duration real +function common.ResetToGameCamera(duration) end + +---PanCameraTo +---@param x real +---@param y real +function common.PanCameraTo(x,y) end + +---平移镜头(所有玩家)(限时) [R] +---@param x real +---@param y real +---@param duration real +function common.PanCameraToTimed(x,y,duration) end + +---PanCameraToWithZ +---@param x real +---@param y real +---@param zOffsetDest real +function common.PanCameraToWithZ(x,y,zOffsetDest) end + +---指定高度平移镜头(所有玩家)(限时) [R] +---@param x real +---@param y real +---@param zOffsetDest real +---@param duration real +function common.PanCameraToTimedWithZ(x,y,zOffsetDest,duration) end + +---播放电影镜头(所有玩家) [R] +---@param cameraModelFile string +function common.SetCinematicCamera(cameraModelFile) end + +---指定点旋转镜头(所有玩家)(弧度)(限时) [R] +---@param x real +---@param y real +---@param radiansToSweep real +---@param duration real +function common.SetCameraRotateMode(x,y,radiansToSweep,duration) end + +---设置镜头属性(所有玩家)(限时) [R] +---@param whichField camerafield +---@param value real +---@param duration real +function common.SetCameraField(whichField,value,duration) end + +---AdjustCameraField +---@param whichField camerafield +---@param offset real +---@param duration real +function common.AdjustCameraField(whichField,offset,duration) end + +---锁定镜头到单位(所有玩家) [R] +---@param whichUnit unit +---@param xoffset real +---@param yoffset real +---@param inheritOrientation boolean +function common.SetCameraTargetController(whichUnit,xoffset,yoffset,inheritOrientation) end + +---锁定镜头到单位(固定镜头源)(所有玩家) [R] +---@param whichUnit unit +---@param xoffset real +---@param yoffset real +function common.SetCameraOrientController(whichUnit,xoffset,yoffset) end + +---CreateCameraSetup +---@return camerasetup +function common.CreateCameraSetup() end + +---CameraSetupSetField +---@param whichSetup camerasetup +---@param whichField camerafield +---@param value real +---@param duration real +function common.CameraSetupSetField(whichSetup,whichField,value,duration) end + +---镜头属性(指定镜头) [R] +---@param whichSetup camerasetup +---@param whichField camerafield +---@return real +function common.CameraSetupGetField(whichSetup,whichField) end + +---CameraSetupSetDestPosition +---@param whichSetup camerasetup +---@param x real +---@param y real +---@param duration real +function common.CameraSetupSetDestPosition(whichSetup,x,y,duration) end + +---摄象机的目标 +---@param whichSetup camerasetup +---@return location +function common.CameraSetupGetDestPositionLoc(whichSetup) end + +---CameraSetupGetDestPositionX +---@param whichSetup camerasetup +---@return real +function common.CameraSetupGetDestPositionX(whichSetup) end + +---CameraSetupGetDestPositionY +---@param whichSetup camerasetup +---@return real +function common.CameraSetupGetDestPositionY(whichSetup) end + +---CameraSetupApply +---@param whichSetup camerasetup +---@param doPan boolean +---@param panTimed boolean +function common.CameraSetupApply(whichSetup,doPan,panTimed) end + +---CameraSetupApplyWithZ +---@param whichSetup camerasetup +---@param zDestOffset real +function common.CameraSetupApplyWithZ(whichSetup,zDestOffset) end + +---应用镜头(所有玩家)(限时) [R] +---@param whichSetup camerasetup +---@param doPan boolean +---@param forceDuration real +function common.CameraSetupApplyForceDuration(whichSetup,doPan,forceDuration) end + +---CameraSetupApplyForceDurationWithZ +---@param whichSetup camerasetup +---@param zDestOffset real +---@param forceDuration real +function common.CameraSetupApplyForceDurationWithZ(whichSetup,zDestOffset,forceDuration) end + +---CameraSetTargetNoise +---@param mag real +---@param velocity real +function common.CameraSetTargetNoise(mag,velocity) end + +---CameraSetSourceNoise +---@param mag real +---@param velocity real +function common.CameraSetSourceNoise(mag,velocity) end + +---摇晃镜头目标(所有玩家) [R] +---@param mag real +---@param velocity real +---@param vertOnly boolean +function common.CameraSetTargetNoiseEx(mag,velocity,vertOnly) end + +---摇晃镜头源(所有玩家) [R] +---@param mag real +---@param velocity real +---@param vertOnly boolean +function common.CameraSetSourceNoiseEx(mag,velocity,vertOnly) end + +---CameraSetSmoothingFactor +---@param factor real +function common.CameraSetSmoothingFactor(factor) end + +---CameraSetFocalDistance +---@param distance real +function common.CameraSetFocalDistance(distance) end + +---CameraSetDepthOfFieldScale +---@param scale real +function common.CameraSetDepthOfFieldScale(scale) end + +---SetCineFilterTexture +---@param filename string +function common.SetCineFilterTexture(filename) end + +---SetCineFilterBlendMode +---@param whichMode blendmode +function common.SetCineFilterBlendMode(whichMode) end + +---SetCineFilterTexMapFlags +---@param whichFlags texmapflags +function common.SetCineFilterTexMapFlags(whichFlags) end + +---SetCineFilterStartUV +---@param minu real +---@param minv real +---@param maxu real +---@param maxv real +function common.SetCineFilterStartUV(minu,minv,maxu,maxv) end + +---SetCineFilterEndUV +---@param minu real +---@param minv real +---@param maxu real +---@param maxv real +function common.SetCineFilterEndUV(minu,minv,maxu,maxv) end + +---SetCineFilterStartColor +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.SetCineFilterStartColor(red,green,blue,alpha) end + +---SetCineFilterEndColor +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.SetCineFilterEndColor(red,green,blue,alpha) end + +---SetCineFilterDuration +---@param duration real +function common.SetCineFilterDuration(duration) end + +---DisplayCineFilter +---@param flag boolean +function common.DisplayCineFilter(flag) end + +---IsCineFilterDisplayed +---@return boolean +function common.IsCineFilterDisplayed() end + +---SetCinematicScene +---@param portraitUnitId integer +---@param color playercolor +---@param speakerTitle string +---@param text string +---@param sceneDuration real +---@param voiceoverDuration real +function common.SetCinematicScene(portraitUnitId,color,speakerTitle,text,sceneDuration,voiceoverDuration) end + +---EndCinematicScene +function common.EndCinematicScene() end + +---ForceCinematicSubtitles +---@param flag boolean +function common.ForceCinematicSubtitles(flag) end + +---SetCinematicAudio +---@param cinematicAudio boolean +function common.SetCinematicAudio(cinematicAudio) end + +---GetCameraMargin +---@param whichMargin integer +---@return real +function common.GetCameraMargin(whichMargin) end + +---These return values for the local players camera only... +---These return values for the local players camera only... +---@return real +function common.GetCameraBoundMinX() end + +---GetCameraBoundMinY +---@return real +function common.GetCameraBoundMinY() end + +---GetCameraBoundMaxX +---@return real +function common.GetCameraBoundMaxX() end + +---GetCameraBoundMaxY +---@return real +function common.GetCameraBoundMaxY() end + +---当前摄象机的数值 +---@param whichField camerafield +---@return real +function common.GetCameraField(whichField) end + +---当前摄象机的目标的 X 坐标 +---@return real +function common.GetCameraTargetPositionX() end + +---当前摄象机的目标的 Y 坐标 +---@return real +function common.GetCameraTargetPositionY() end + +---当前摄象机的目标的 Z 坐标 +---@return real +function common.GetCameraTargetPositionZ() end + +---当前摄象机的目标 +---@return location +function common.GetCameraTargetPositionLoc() end + +---当前摄象机的位置的 X 坐标 +---@return real +function common.GetCameraEyePositionX() end + +---当前摄象机的位置的 Y 坐标 +---@return real +function common.GetCameraEyePositionY() end + +---当前摄象机的位置的 Z 坐标 +---@return real +function common.GetCameraEyePositionZ() end + +---当前照相机的位置 +---@return location +function common.GetCameraEyePositionLoc() end + +---Sound API +---@param environmentName string +function common.NewSoundEnvironment(environmentName) end + +---CreateSound +---@param fileName string +---@param looping boolean +---@param is3D boolean +---@param stopwhenoutofrange boolean +---@param fadeInRate integer +---@param fadeOutRate integer +---@param eaxSetting string +---@return sound +function common.CreateSound(fileName,looping,is3D,stopwhenoutofrange,fadeInRate,fadeOutRate,eaxSetting) end + +---CreateSoundFilenameWithLabel +---@param fileName string +---@param looping boolean +---@param is3D boolean +---@param stopwhenoutofrange boolean +---@param fadeInRate integer +---@param fadeOutRate integer +---@param SLKEntryName string +---@return sound +function common.CreateSoundFilenameWithLabel(fileName,looping,is3D,stopwhenoutofrange,fadeInRate,fadeOutRate,SLKEntryName) end + +---CreateSoundFromLabel +---@param soundLabel string +---@param looping boolean +---@param is3D boolean +---@param stopwhenoutofrange boolean +---@param fadeInRate integer +---@param fadeOutRate integer +---@return sound +function common.CreateSoundFromLabel(soundLabel,looping,is3D,stopwhenoutofrange,fadeInRate,fadeOutRate) end + +---CreateMIDISound +---@param soundLabel string +---@param fadeInRate integer +---@param fadeOutRate integer +---@return sound +function common.CreateMIDISound(soundLabel,fadeInRate,fadeOutRate) end + +---SetSoundParamsFromLabel +---@param soundHandle sound +---@param soundLabel string +function common.SetSoundParamsFromLabel(soundHandle,soundLabel) end + +---SetSoundDistanceCutoff +---@param soundHandle sound +---@param cutoff real +function common.SetSoundDistanceCutoff(soundHandle,cutoff) end + +---SetSoundChannel +---@param soundHandle sound +---@param channel integer +function common.SetSoundChannel(soundHandle,channel) end + +---设置音效音量 [R] +---@param soundHandle sound +---@param volume integer +function common.SetSoundVolume(soundHandle,volume) end + +---SetSoundPitch +---@param soundHandle sound +---@param pitch real +function common.SetSoundPitch(soundHandle,pitch) end + +---the following method must be called immediately after calling "StartSound" +---设置音效播放时间点 [R] +---@param soundHandle sound +---@param millisecs integer +function common.SetSoundPlayPosition(soundHandle,millisecs) end + +---these calls are only valid if the sound was created with 3d enabled +---设置3D声音距离 +---@param soundHandle sound +---@param minDist real +---@param maxDist real +function common.SetSoundDistances(soundHandle,minDist,maxDist) end + +---SetSoundConeAngles +---@param soundHandle sound +---@param inside real +---@param outside real +---@param outsideVolume integer +function common.SetSoundConeAngles(soundHandle,inside,outside,outsideVolume) end + +---SetSoundConeOrientation +---@param soundHandle sound +---@param x real +---@param y real +---@param z real +function common.SetSoundConeOrientation(soundHandle,x,y,z) end + +---设置3D音效位置(指定坐标) [R] +---@param soundHandle sound +---@param x real +---@param y real +---@param z real +function common.SetSoundPosition(soundHandle,x,y,z) end + +---SetSoundVelocity +---@param soundHandle sound +---@param x real +---@param y real +---@param z real +function common.SetSoundVelocity(soundHandle,x,y,z) end + +---AttachSoundToUnit +---@param soundHandle sound +---@param whichUnit unit +function common.AttachSoundToUnit(soundHandle,whichUnit) end + +---StartSound +---@param soundHandle sound +function common.StartSound(soundHandle) end + +---StopSound +---@param soundHandle sound +---@param killWhenDone boolean +---@param fadeOut boolean +function common.StopSound(soundHandle,killWhenDone,fadeOut) end + +---KillSoundWhenDone +---@param soundHandle sound +function common.KillSoundWhenDone(soundHandle) end + +---Music Interface. Note that if music is disabled, these calls do nothing +---设置背景音乐列表 [R] +---@param musicName string +---@param random boolean +---@param index integer +function common.SetMapMusic(musicName,random,index) end + +---ClearMapMusic +function common.ClearMapMusic() end + +---PlayMusic +---@param musicName string +function common.PlayMusic(musicName) end + +---PlayMusicEx +---@param musicName string +---@param frommsecs integer +---@param fadeinmsecs integer +function common.PlayMusicEx(musicName,frommsecs,fadeinmsecs) end + +---StopMusic +---@param fadeOut boolean +function common.StopMusic(fadeOut) end + +---ResumeMusic +function common.ResumeMusic() end + +---播放主题音乐 [C] +---@param musicFileName string +function common.PlayThematicMusic(musicFileName) end + +---跳播主题音乐 [R] +---@param musicFileName string +---@param frommsecs integer +function common.PlayThematicMusicEx(musicFileName,frommsecs) end + +---停止主题音乐[C] +function common.EndThematicMusic() end + +---设置背景音乐音量 [R] +---@param volume integer +function common.SetMusicVolume(volume) end + +---设置背景音乐播放时间点 [R] +---@param millisecs integer +function common.SetMusicPlayPosition(millisecs) end + +---SetThematicMusicVolume +---@param volume integer +function common.SetThematicMusicVolume(volume) end + +---设置主题音乐播放时间点 [R] +---@param millisecs integer +function common.SetThematicMusicPlayPosition(millisecs) end + +---other music and sound calls +---other music and sound calls +---@param soundHandle sound +---@param duration integer +function common.SetSoundDuration(soundHandle,duration) end + +---GetSoundDuration +---@param soundHandle sound +---@return integer +function common.GetSoundDuration(soundHandle) end + +---GetSoundFileDuration +---@param musicFileName string +---@return integer +function common.GetSoundFileDuration(musicFileName) end + +---设置多通道音量 [R] +---@param vgroup volumegroup +---@param scale real +function common.VolumeGroupSetVolume(vgroup,scale) end + +---VolumeGroupReset +function common.VolumeGroupReset() end + +---GetSoundIsPlaying +---@param soundHandle sound +---@return boolean +function common.GetSoundIsPlaying(soundHandle) end + +---GetSoundIsLoading +---@param soundHandle sound +---@return boolean +function common.GetSoundIsLoading(soundHandle) end + +---RegisterStackedSound +---@param soundHandle sound +---@param byPosition boolean +---@param rectwidth real +---@param rectheight real +function common.RegisterStackedSound(soundHandle,byPosition,rectwidth,rectheight) end + +---UnregisterStackedSound +---@param soundHandle sound +---@param byPosition boolean +---@param rectwidth real +---@param rectheight real +function common.UnregisterStackedSound(soundHandle,byPosition,rectwidth,rectheight) end + +---SetSoundFacialAnimationLabel +---@param soundHandle sound +---@param animationLabel string +---@return boolean +function common.SetSoundFacialAnimationLabel(soundHandle,animationLabel) end + +---SetSoundFacialAnimationGroupLabel +---@param soundHandle sound +---@param groupLabel string +---@return boolean +function common.SetSoundFacialAnimationGroupLabel(soundHandle,groupLabel) end + +---SetSoundFacialAnimationSetFilepath +---@param soundHandle sound +---@param animationSetFilepath string +---@return boolean +function common.SetSoundFacialAnimationSetFilepath(soundHandle,animationSetFilepath) end + +---Subtitle support that is attached to the soundHandle rather than as disperate data with the legacy UI +---Subtitle support that is attached to the soundHandle rather than as disperate data with the legacy UI +---@param soundHandle sound +---@param speakerName string +---@return boolean +function common.SetDialogueSpeakerNameKey(soundHandle,speakerName) end + +---GetDialogueSpeakerNameKey +---@param soundHandle sound +---@return string +function common.GetDialogueSpeakerNameKey(soundHandle) end + +---SetDialogueTextKey +---@param soundHandle sound +---@param dialogueText string +---@return boolean +function common.SetDialogueTextKey(soundHandle,dialogueText) end + +---GetDialogueTextKey +---@param soundHandle sound +---@return string +function common.GetDialogueTextKey(soundHandle) end + +---Effects API +---新建天气效果 [R] +---@param where rect +---@param effectID integer +---@return weathereffect +function common.AddWeatherEffect(where,effectID) end + +---RemoveWeatherEffect +---@param whichEffect weathereffect +function common.RemoveWeatherEffect(whichEffect) end + +---打开/关闭天气效果 +---@param whichEffect weathereffect +---@param enable boolean +function common.EnableWeatherEffect(whichEffect,enable) end + +---新建地形变化:弹坑 [R] +---@param x real +---@param y real +---@param radius real +---@param depth real +---@param duration integer +---@param permanent boolean +---@return terraindeformation +function common.TerrainDeformCrater(x,y,radius,depth,duration,permanent) end + +---新建地形变化:波纹 [R] +---@param x real +---@param y real +---@param radius real +---@param depth real +---@param duration integer +---@param count integer +---@param spaceWaves real +---@param timeWaves real +---@param radiusStartPct real +---@param limitNeg boolean +---@return terraindeformation +function common.TerrainDeformRipple(x,y,radius,depth,duration,count,spaceWaves,timeWaves,radiusStartPct,limitNeg) end + +---新建地形变化:冲击波 [R] +---@param x real +---@param y real +---@param dirX real +---@param dirY real +---@param distance real +---@param speed real +---@param radius real +---@param depth real +---@param trailTime integer +---@param count integer +---@return terraindeformation +function common.TerrainDeformWave(x,y,dirX,dirY,distance,speed,radius,depth,trailTime,count) end + +---新建地形变化:随机 [R] +---@param x real +---@param y real +---@param radius real +---@param minDelta real +---@param maxDelta real +---@param duration integer +---@param updateInterval integer +---@return terraindeformation +function common.TerrainDeformRandom(x,y,radius,minDelta,maxDelta,duration,updateInterval) end + +---停止地形变化 [R] +---@param deformation terraindeformation +---@param duration integer +function common.TerrainDeformStop(deformation,duration) end + +---停止所有地域变形 +function common.TerrainDeformStopAll() end + +---新建特效(创建到坐标) [R] +---@param modelName string +---@param x real +---@param y real +---@return effect +function common.AddSpecialEffect(modelName,x,y) end + +---新建特效(创建到点) [R] +---@param modelName string +---@param where location +---@return effect +function common.AddSpecialEffectLoc(modelName,where) end + +---新建特效(创建到单位) [R] +---@param modelName string +---@param targetWidget widget +---@param attachPointName string +---@return effect +function common.AddSpecialEffectTarget(modelName,targetWidget,attachPointName) end + +---DestroyEffect +---@param whichEffect effect +function common.DestroyEffect(whichEffect) end + +---AddSpellEffect +---@param abilityString string +---@param t effecttype +---@param x real +---@param y real +---@return effect +function common.AddSpellEffect(abilityString,t,x,y) end + +---AddSpellEffectLoc +---@param abilityString string +---@param t effecttype +---@param where location +---@return effect +function common.AddSpellEffectLoc(abilityString,t,where) end + +---新建特效(指定技能,创建到坐标) [R] +---@param abilityId integer +---@param t effecttype +---@param x real +---@param y real +---@return effect +function common.AddSpellEffectById(abilityId,t,x,y) end + +---新建特效(指定技能,创建到点) [R] +---@param abilityId integer +---@param t effecttype +---@param where location +---@return effect +function common.AddSpellEffectByIdLoc(abilityId,t,where) end + +---AddSpellEffectTarget +---@param modelName string +---@param t effecttype +---@param targetWidget widget +---@param attachPoint string +---@return effect +function common.AddSpellEffectTarget(modelName,t,targetWidget,attachPoint) end + +---新建特效(指定技能,创建到单位) [R] +---@param abilityId integer +---@param t effecttype +---@param targetWidget widget +---@param attachPoint string +---@return effect +function common.AddSpellEffectTargetById(abilityId,t,targetWidget,attachPoint) end + +---新建闪电效果 [R] +---@param codeName string +---@param checkVisibility boolean +---@param x1 real +---@param y1 real +---@param x2 real +---@param y2 real +---@return lightning +function common.AddLightning(codeName,checkVisibility,x1,y1,x2,y2) end + +---新建闪电效果(指定Z轴) [R] +---@param codeName string +---@param checkVisibility boolean +---@param x1 real +---@param y1 real +---@param z1 real +---@param x2 real +---@param y2 real +---@param z2 real +---@return lightning +function common.AddLightningEx(codeName,checkVisibility,x1,y1,z1,x2,y2,z2) end + +---DestroyLightning +---@param whichBolt lightning +---@return boolean +function common.DestroyLightning(whichBolt) end + +---MoveLightning +---@param whichBolt lightning +---@param checkVisibility boolean +---@param x1 real +---@param y1 real +---@param x2 real +---@param y2 real +---@return boolean +function common.MoveLightning(whichBolt,checkVisibility,x1,y1,x2,y2) end + +---移动闪电效果(指定坐标) [R] +---@param whichBolt lightning +---@param checkVisibility boolean +---@param x1 real +---@param y1 real +---@param z1 real +---@param x2 real +---@param y2 real +---@param z2 real +---@return boolean +function common.MoveLightningEx(whichBolt,checkVisibility,x1,y1,z1,x2,y2,z2) end + +---GetLightningColorA +---@param whichBolt lightning +---@return real +function common.GetLightningColorA(whichBolt) end + +---GetLightningColorR +---@param whichBolt lightning +---@return real +function common.GetLightningColorR(whichBolt) end + +---GetLightningColorG +---@param whichBolt lightning +---@return real +function common.GetLightningColorG(whichBolt) end + +---GetLightningColorB +---@param whichBolt lightning +---@return real +function common.GetLightningColorB(whichBolt) end + +---SetLightningColor +---@param whichBolt lightning +---@param r real +---@param g real +---@param b real +---@param a real +---@return boolean +function common.SetLightningColor(whichBolt,r,g,b,a) end + +---GetAbilityEffect +---@param abilityString string +---@param t effecttype +---@param index integer +---@return string +function common.GetAbilityEffect(abilityString,t,index) end + +---GetAbilityEffectById +---@param abilityId integer +---@param t effecttype +---@param index integer +---@return string +function common.GetAbilityEffectById(abilityId,t,index) end + +---GetAbilitySound +---@param abilityString string +---@param t soundtype +---@return string +function common.GetAbilitySound(abilityString,t) end + +---GetAbilitySoundById +---@param abilityId integer +---@param t soundtype +---@return string +function common.GetAbilitySoundById(abilityId,t) end + +---Terrain API +---地形悬崖高度(指定坐标) [R] +---@param x real +---@param y real +---@return integer +function common.GetTerrainCliffLevel(x,y) end + +---设置水颜色 [R] +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.SetWaterBaseColor(red,green,blue,alpha) end + +---设置 水变形 开/关 +---@param val boolean +function common.SetWaterDeforms(val) end + +---指定坐标地形 [R] +---@param x real +---@param y real +---@return integer +function common.GetTerrainType(x,y) end + +---地形样式(指定坐标) [R] +---@param x real +---@param y real +---@return integer +function common.GetTerrainVariance(x,y) end + +---改变地形类型(指定坐标) [R] +---@param x real +---@param y real +---@param terrainType integer +---@param variation integer +---@param area integer +---@param shape integer +function common.SetTerrainType(x,y,terrainType,variation,area,shape) end + +---地形通行状态关闭(指定坐标) [R] +---@param x real +---@param y real +---@param t pathingtype +---@return boolean +function common.IsTerrainPathable(x,y,t) end + +---设置地形通行状态(指定坐标) [R] +---@param x real +---@param y real +---@param t pathingtype +---@param flag boolean +function common.SetTerrainPathable(x,y,t,flag) end + +---Image API +---新建图像 [R] +---@param file string +---@param sizeX real +---@param sizeY real +---@param sizeZ real +---@param posX real +---@param posY real +---@param posZ real +---@param originX real +---@param originY real +---@param originZ real +---@param imageType integer +---@return image +function common.CreateImage(file,sizeX,sizeY,sizeZ,posX,posY,posZ,originX,originY,originZ,imageType) end + +---删除图像 +---@param whichImage image +function common.DestroyImage(whichImage) end + +---显示/隐藏 [R] +---@param whichImage image +---@param flag boolean +function common.ShowImage(whichImage,flag) end + +---改变图像高度 +---@param whichImage image +---@param flag boolean +---@param height real +function common.SetImageConstantHeight(whichImage,flag,height) end + +---改变图像位置(指定坐标) [R] +---@param whichImage image +---@param x real +---@param y real +---@param z real +function common.SetImagePosition(whichImage,x,y,z) end + +---改变图像颜色 [R] +---@param whichImage image +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +function common.SetImageColor(whichImage,red,green,blue,alpha) end + +---改变图像着色状态 +---@param whichImage image +---@param flag boolean +function common.SetImageRender(whichImage,flag) end + +---改变图像永久着色状态 +---@param whichImage image +---@param flag boolean +function common.SetImageRenderAlways(whichImage,flag) end + +---改变图像水上状态 +---@param whichImage image +---@param flag boolean +---@param useWaterAlpha boolean +function common.SetImageAboveWater(whichImage,flag,useWaterAlpha) end + +---改变图像类型 +---@param whichImage image +---@param imageType integer +function common.SetImageType(whichImage,imageType) end + +---Ubersplat API +---新建地面纹理变化 [R] +---@param x real +---@param y real +---@param name string +---@param red integer +---@param green integer +---@param blue integer +---@param alpha integer +---@param forcePaused boolean +---@param noBirthTime boolean +---@return ubersplat +function common.CreateUbersplat(x,y,name,red,green,blue,alpha,forcePaused,noBirthTime) end + +---删除地面纹理 +---@param whichSplat ubersplat +function common.DestroyUbersplat(whichSplat) end + +---重置地面纹理 +---@param whichSplat ubersplat +function common.ResetUbersplat(whichSplat) end + +---完成地面纹理 +---@param whichSplat ubersplat +function common.FinishUbersplat(whichSplat) end + +---显示/隐藏 地面纹理变化[R] +---@param whichSplat ubersplat +---@param flag boolean +function common.ShowUbersplat(whichSplat,flag) end + +---改变地面纹理着色状态 +---@param whichSplat ubersplat +---@param flag boolean +function common.SetUbersplatRender(whichSplat,flag) end + +---改变地面纹理永久着色状态 +---@param whichSplat ubersplat +---@param flag boolean +function common.SetUbersplatRenderAlways(whichSplat,flag) end + +---Blight API +---创建/删除荒芜地表(圆范围)(指定坐标) [R] +---@param whichPlayer player +---@param x real +---@param y real +---@param radius real +---@param addBlight boolean +function common.SetBlight(whichPlayer,x,y,radius,addBlight) end + +---创建/删除荒芜地表(矩形区域) [R] +---@param whichPlayer player +---@param r rect +---@param addBlight boolean +function common.SetBlightRect(whichPlayer,r,addBlight) end + +---SetBlightPoint +---@param whichPlayer player +---@param x real +---@param y real +---@param addBlight boolean +function common.SetBlightPoint(whichPlayer,x,y,addBlight) end + +---SetBlightLoc +---@param whichPlayer player +---@param whichLocation location +---@param radius real +---@param addBlight boolean +function common.SetBlightLoc(whichPlayer,whichLocation,radius,addBlight) end + +---新建不死族金矿 [R] +---@param id player +---@param x real +---@param y real +---@param face real +---@return unit +function common.CreateBlightedGoldmine(id,x,y,face) end + +---坐标点被荒芜地表覆盖 [R] +---@param x real +---@param y real +---@return boolean +function common.IsPointBlighted(x,y) end + +---Doodad API +---播放圆范围内地形装饰物动画 [R] +---@param x real +---@param y real +---@param radius real +---@param doodadID integer +---@param nearestOnly boolean +---@param animName string +---@param animRandom boolean +function common.SetDoodadAnimation(x,y,radius,doodadID,nearestOnly,animName,animRandom) end + +---播放矩形区域内地形装饰物动画 [R] +---@param r rect +---@param doodadID integer +---@param animName string +---@param animRandom boolean +function common.SetDoodadAnimationRect(r,doodadID,animName,animRandom) end + +---Computer AI interface +---启动对战 AI +---@param num player +---@param script string +function common.StartMeleeAI(num,script) end + +---启动战役 AI +---@param num player +---@param script string +function common.StartCampaignAI(num,script) end + +---发送 AI 命令 +---@param num player +---@param command integer +---@param data integer +function common.CommandAI(num,command,data) end + +---暂停/恢复 AI脚本运行 [R] +---@param p player +---@param pause boolean +function common.PauseCompAI(p,pause) end + +---对战 AI +---@param num player +---@return aidifficulty +function common.GetAIDifficulty(num) end + +---忽略单位的防守职责 +---@param hUnit unit +function common.RemoveGuardPosition(hUnit) end + +---恢复单位的防守职责 +---@param hUnit unit +function common.RecycleGuardPosition(hUnit) end + +---忽略所有单位的防守职责 +---@param num player +function common.RemoveAllGuardPositions(num) end + +---** Cheat标签 ** +---@param cheatStr string +function common.Cheat(cheatStr) end + +---无法胜利 [R] +---@return boolean +function common.IsNoVictoryCheat() end + +---无法失败 [R] +---@return boolean +function common.IsNoDefeatCheat() end + +---预读文件 +---@param filename string +function common.Preload(filename) end + +---开始预读 +---@param timeout real +function common.PreloadEnd(timeout) end + +---PreloadStart +function common.PreloadStart() end + +---PreloadRefresh +function common.PreloadRefresh() end + +---PreloadEndEx +function common.PreloadEndEx() end + +---PreloadGenClear +function common.PreloadGenClear() end + +---PreloadGenStart +function common.PreloadGenStart() end + +---PreloadGenEnd +---@param filename string +function common.PreloadGenEnd(filename) end + +---预读一批文件 +---@param filename string +function common.Preloader(filename) end + +---Automation Test +---Automation Test +---@param testType string +function common.AutomationSetTestType(testType) end + +---AutomationTestStart +---@param testName string +function common.AutomationTestStart(testName) end + +---AutomationTestEnd +function common.AutomationTestEnd() end + +---AutomationTestingFinished +function common.AutomationTestingFinished() end + +---RequestExtraIntegerData +---@param dataType integer +---@param whichPlayer player +---@param param1 string +---@param param2 string +---@param param3 boolean +---@param param4 integer +---@param param5 integer +---@param param6 integer +---@return integer +function common.RequestExtraIntegerData(dataType,whichPlayer,param1,param2,param3,param4,param5,param6) end + +---RequestExtraBooleanData +---@param dataType integer +---@param whichPlayer player +---@param param1 string +---@param param2 string +---@param param3 boolean +---@param param4 integer +---@param param5 integer +---@param param6 integer +---@return boolean +function common.RequestExtraBooleanData(dataType,whichPlayer,param1,param2,param3,param4,param5,param6) end + +---RequestExtraStringData +---@param dataType integer +---@param whichPlayer player +---@param param1 string +---@param param2 string +---@param param3 boolean +---@param param4 integer +---@param param5 integer +---@param param6 integer +---@return string +function common.RequestExtraStringData(dataType,whichPlayer,param1,param2,param3,param4,param5,param6) end + +---RequestExtraRealData +---@param dataType integer +---@param whichPlayer player +---@param param1 string +---@param param2 string +---@param param3 boolean +---@param param4 integer +---@param param5 integer +---@param param6 integer +---@return real +function common.RequestExtraRealData(dataType,whichPlayer,param1,param2,param3,param4,param5,param6) end + +---CreateCommandButtonEffect +---@param abilityId integer +---@param order string +---@return commandbuttoneffect +function common.CreateCommandButtonEffect(abilityId,order) end + +---CreateUpgradeCommandButtonEffect +---@param whichUprgade integer +---@return commandbuttoneffect +function common.CreateUpgradeCommandButtonEffect(whichUprgade) end + +---CreateLearnCommandButtonEffect +---@param abilityId integer +---@return commandbuttoneffect +function common.CreateLearnCommandButtonEffect(abilityId) end + +---DestroyCommandButtonEffect +---@param whichEffect commandbuttoneffect +function common.DestroyCommandButtonEffect(whichEffect) end + +return common diff --git a/meta/3rd/OpenResty/ndk.lua b/meta/3rd/OpenResty/ndk.lua new file mode 100644 index 00000000..8211e0c1 --- /dev/null +++ b/meta/3rd/OpenResty/ndk.lua @@ -0,0 +1,3 @@ +ndk={} +ndk.set_var={} +return ndk
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.balancer.lua b/meta/3rd/OpenResty/ngx.balancer.lua new file mode 100644 index 00000000..33f4d480 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.balancer.lua @@ -0,0 +1,7 @@ +ngx_balancer={} +function ngx_balancer.set_current_peer(addr, port) end +function ngx_balancer.set_timeouts(connect_timeout, send_timeout, read_timeout) end +function ngx_balancer.get_last_failure() end +function ngx_balancer.set_more_tries(count) end +ngx_balancer.version="0.1.17" +return ngx_balancer
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.base64.lua b/meta/3rd/OpenResty/ngx.base64.lua new file mode 100644 index 00000000..5d40a2b8 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.base64.lua @@ -0,0 +1,5 @@ +ngx_base64={} +function ngx_base64.encode_base64url(s) end +function ngx_base64.decode_base64url(s) end +ngx_base64.version="0.1.17" +return ngx_base64
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.errlog.lua b/meta/3rd/OpenResty/ngx.errlog.lua new file mode 100644 index 00000000..cf0ae09e --- /dev/null +++ b/meta/3rd/OpenResty/ngx.errlog.lua @@ -0,0 +1,7 @@ +ngx_errlog={} +function ngx_errlog.get_sys_filter_level() end +function ngx_errlog.set_filter_level(level) end +function ngx_errlog.get_logs(max, logs) end +function ngx_errlog.raw_log(level, msg) end +ngx_errlog.version="0.1.17" +return ngx_errlog
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.lua b/meta/3rd/OpenResty/ngx.lua new file mode 100644 index 00000000..5a8652de --- /dev/null +++ b/meta/3rd/OpenResty/ngx.lua @@ -0,0 +1,5037 @@ +ngx={} + +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua** +--- +--- This table can be used to store per-request Lua context data and has a life time identical to the current request (as with the Nginx variables). +--- +--- Consider the following example, +--- +--- ```nginx +--- +--- location /test { +--- rewrite_by_lua_block { +--- ngx.ctx.foo = 76 +--- } +--- access_by_lua_block { +--- ngx.ctx.foo = ngx.ctx.foo + 3 +--- } +--- content_by_lua_block { +--- ngx.say(ngx.ctx.foo) +--- } +--- } +--- ``` +--- +--- Then `GET /test` will yield the output +--- +--- ```bash +--- +--- 79 +--- ``` +--- +--- That is, the `ngx.ctx.foo` entry persists across the rewrite, access, and content phases of a request. +--- +--- Every request, including subrequests, has its own copy of the table. For example: +--- +--- ```nginx +--- +--- location /sub { +--- content_by_lua_block { +--- ngx.say("sub pre: ", ngx.ctx.blah) +--- ngx.ctx.blah = 32 +--- ngx.say("sub post: ", ngx.ctx.blah) +--- } +--- } +--- +--- location /main { +--- content_by_lua_block { +--- ngx.ctx.blah = 73 +--- ngx.say("main pre: ", ngx.ctx.blah) +--- local res = ngx.location.capture("/sub") +--- ngx.print(res.body) +--- ngx.say("main post: ", ngx.ctx.blah) +--- } +--- } +--- ``` +--- +--- Then `GET /main` will give the output +--- +--- ```bash +--- +--- main pre: 73 +--- sub pre: nil +--- sub post: 32 +--- main post: 73 +--- ``` +--- +--- Here, modification of the `ngx.ctx.blah` entry in the subrequest does not affect the one in the parent request. This is because they have two separate versions of `ngx.ctx.blah`. +--- +--- Internal redirection will destroy the original request `ngx.ctx` data (if any) and the new request will have an empty `ngx.ctx` table. For instance, +--- +--- ```nginx +--- +--- location /new { +--- content_by_lua_block { +--- ngx.say(ngx.ctx.foo) +--- } +--- } +--- +--- location /orig { +--- content_by_lua_block { +--- ngx.ctx.foo = "hello" +--- ngx.exec("/new") +--- } +--- } +--- ``` +--- +--- Then `GET /orig` will give +--- +--- ```bash +--- +--- nil +--- ``` +--- +--- rather than the original `"hello"` value. +--- +--- Arbitrary data values, including Lua closures and nested tables, can be inserted into this "magic" table. It also allows the registration of custom meta methods. +--- +--- Overriding `ngx.ctx` with a new Lua table is also supported, for example, +--- +--- ```lua +--- +--- ngx.ctx = { foo = 32, bar = 54 } +--- ``` +--- +--- When being used in the context of [init_worker_by_lua*](#init_worker_by_lua), this table just has the same lifetime of the current Lua handler. +--- +--- The `ngx.ctx` lookup requires relatively expensive metamethod calls and it is much slower than explicitly passing per-request data along by your own function arguments. So do not abuse this API for saving your own function arguments because it usually has quite some performance impact. +--- +--- Because of the metamethod magic, never "local" the `ngx.ctx` table outside your Lua function scope on the Lua module level due to [worker-level data sharing](#data-sharing-within-an-nginx-worker). For example, the following is bad: +--- +--- ```lua +--- +--- -- mymodule.lua +--- local _M = {} +--- +--- -- the following line is bad since ngx.ctx is a per-request +--- -- data while this <code>ctx</code> variable is on the Lua module level +--- -- and thus is per-nginx-worker. +--- local ctx = ngx.ctx +--- +--- function _M.main() +--- ctx.foo = "bar" +--- end +--- +--- return _M +--- ``` +--- +--- Use the following instead: +--- +--- ```lua +--- +--- -- mymodule.lua +--- local _M = {} +--- +--- function _M.main(ctx) +--- ctx.foo = "bar" +--- end +--- +--- return _M +--- ``` +--- +--- That is, let the caller pass the `ctx` table explicitly via a function argument. +--- +--- [Back to TOC](#nginx-api-for-lua) +--- +ngx.ctx={} + +ngx.WARN=5 +ngx.HTTP_PATCH=16384 +ngx.HTTP_NO_CONTENT=204 +--- ------------- +--- +--- **syntax:** *digest = ngx.hmac_sha1(secret_key, str)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Computes the [HMAC-SHA1](https://en.wikipedia.org/wiki/HMAC) digest of the argument `str` and turns the result using the secret key `<secret_key>`. +--- +--- The raw binary form of the `HMAC-SHA1` digest will be generated, use [ngx.encode_base64](#ngxencode_base64), for example, to encode the result to a textual representation if desired. +--- +--- For example, +--- +--- ```lua +--- +--- local key = "thisisverysecretstuff" +--- local src = "some string we want to sign" +--- local digest = ngx.hmac_sha1(key, src) +--- ngx.say(ngx.encode_base64(digest)) +--- ``` +--- +--- yields the output +--- +--- +--- R/pvxzHC4NLtj7S+kXFg/NePTmk= +--- +--- +--- This API requires the OpenSSL library enabled in the Nginx build (usually by passing the `--with-http_ssl_module` option to the `./configure` script). +--- +--- This function was first introduced in the `v0.3.1rc29` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param secret_key string +---@param str string +---@return string +function ngx.hmac_sha1(secret_key, str) end +ngx.resp={} +--- -------------------- +--- +--- **syntax:** *headers, err = ngx.resp.get_headers(max_headers?, raw?)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, balancer_by_lua** +--- +--- Returns a Lua table holding all the current response headers for the current request. +--- +--- ```lua +--- +--- local h, err = ngx.resp.get_headers() +--- +--- if err == "truncated" then +--- -- one can choose to ignore or reject the current response here +--- end +--- +--- for k, v in pairs(h) do +--- ... +--- end +--- ``` +--- +--- This function has the same signature as [ngx.req.get_headers](#ngxreqget_headers) except getting response headers instead of request headers. +--- +--- Note that a maximum of 100 response headers are parsed by default (including those with the same name) and that additional response headers are silently discarded to guard against potential denial of service attacks. Since `v0.10.13`, when the limit is exceeded, it will return a second value which is the string `"truncated"`. +--- +--- This API was first introduced in the `v0.9.5` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param max_headers number +---@param raw string +---@return table,string +function ngx.resp.get_headers(max_headers, raw) end +ngx.HTTP_SWITCHING_PROTOCOLS=101 +ngx.HTTP_GET=2 +ngx.thread={} +--- **syntax:** *ok, err = ngx.thread.kill(thread)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Kills a running "light thread" created by [ngx.thread.spawn](#ngxthreadspawn). Returns a true value when successful or `nil` and a string describing the error otherwise. +--- +--- According to the current implementation, only the parent coroutine (or "light thread") can kill a thread. Also, a running "light thread" with pending Nginx subrequests (initiated by [ngx.location.capture](#ngxlocationcapture) for example) cannot be killed due to a limitation in the Nginx core. +--- +--- This API was first enabled in the `v0.9.9` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param thread ngx.thread +---@return boolean,string +function ngx.thread.kill(thread) end +--- --------------- +--- +--- **syntax:** *ok, res1, res2, ... = ngx.thread.wait(thread1, thread2, ...)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Waits on one or more child "light threads" and returns the results of the first "light thread" that terminates (either successfully or with an error). +--- +--- The arguments `thread1`, `thread2`, and etc are the Lua thread objects returned by earlier calls of [ngx.thread.spawn](#ngxthreadspawn). +--- +--- The return values have exactly the same meaning as [coroutine.resume](#coroutineresume), that is, the first value returned is a boolean value indicating whether the "light thread" terminates successfully or not, and subsequent values returned are the return values of the user Lua function that was used to spawn the "light thread" (in case of success) or the error object (in case of failure). +--- +--- Only the direct "parent coroutine" can wait on its child "light thread", otherwise a Lua exception will be raised. +--- +--- The following example demonstrates the use of `ngx.thread.wait` and [ngx.location.capture](#ngxlocationcapture) to emulate [ngx.location.capture_multi](#ngxlocationcapture_multi): +--- +--- ```lua +--- +--- local capture = ngx.location.capture +--- local spawn = ngx.thread.spawn +--- local wait = ngx.thread.wait +--- local say = ngx.say +--- +--- local function fetch(uri) +--- return capture(uri) +--- end +--- +--- local threads = { +--- spawn(fetch, "/foo"), +--- spawn(fetch, "/bar"), +--- spawn(fetch, "/baz") +--- } +--- +--- for i = 1, #threads do +--- local ok, res = wait(threads[i]) +--- if not ok then +--- say(i, ": failed to run: ", res) +--- else +--- say(i, ": status: ", res.status) +--- say(i, ": body: ", res.body) +--- end +--- end +--- ``` +--- +--- Here it essentially implements the "wait all" model. +--- +--- And below is an example demonstrating the "wait any" model: +--- +--- ```lua +--- +--- function f() +--- ngx.sleep(0.2) +--- ngx.say("f: hello") +--- return "f done" +--- end +--- +--- function g() +--- ngx.sleep(0.1) +--- ngx.say("g: hello") +--- return "g done" +--- end +--- +--- local tf, err = ngx.thread.spawn(f) +--- if not tf then +--- ngx.say("failed to spawn thread f: ", err) +--- return +--- end +--- +--- ngx.say("f thread created: ", coroutine.status(tf)) +--- +--- local tg, err = ngx.thread.spawn(g) +--- if not tg then +--- ngx.say("failed to spawn thread g: ", err) +--- return +--- end +--- +--- ngx.say("g thread created: ", coroutine.status(tg)) +--- +--- ok, res = ngx.thread.wait(tf, tg) +--- if not ok then +--- ngx.say("failed to wait: ", res) +--- return +--- end +--- +--- ngx.say("res: ", res) +--- +--- -- stop the "world", aborting other running threads +--- ngx.exit(ngx.OK) +--- ``` +--- +--- And it will generate the following output: +--- +--- +--- f thread created: running +--- g thread created: running +--- g: hello +--- res: g done +--- +--- +--- This API was first enabled in the `v0.7.0` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@vararg ngx.thread +---@return boolean,any +function ngx.thread.wait(...) end +--- **syntax:** *co = ngx.thread.spawn(func, arg1, arg2, ...)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Spawns a new user "light thread" with the Lua function `func` as well as those optional arguments `arg1`, `arg2`, and etc. Returns a Lua thread (or Lua coroutine) object represents this "light thread". +--- +--- "Light threads" are just a special kind of Lua coroutines that are scheduled by the ngx_lua module. +--- +--- Before `ngx.thread.spawn` returns, the `func` will be called with those optional arguments until it returns, aborts with an error, or gets yielded due to I/O operations via the [Nginx API for Lua](#nginx-api-for-lua) (like [tcpsock:receive](#tcpsockreceive)). +--- +--- After `ngx.thread.spawn` returns, the newly-created "light thread" will keep running asynchronously usually at various I/O events. +--- +--- All the Lua code chunks running by [rewrite_by_lua](#rewrite_by_lua), [access_by_lua](#access_by_lua), and [content_by_lua](#content_by_lua) are in a boilerplate "light thread" created automatically by ngx_lua. Such boilerplate "light thread" are also called "entry threads". +--- +--- By default, the corresponding Nginx handler (e.g., [rewrite_by_lua](#rewrite_by_lua) handler) will not terminate until +--- +--- 1. both the "entry thread" and all the user "light threads" terminates, +--- 1. a "light thread" (either the "entry thread" or a user "light thread" aborts by calling [ngx.exit](#ngxexit), [ngx.exec](#ngxexec), [ngx.redirect](#ngxredirect), or [ngx.req.set_uri(uri, true)](#ngxreqset_uri), or +--- 1. the "entry thread" terminates with a Lua error. +--- +--- When the user "light thread" terminates with a Lua error, however, it will not abort other running "light threads" like the "entry thread" does. +--- +--- Due to the limitation in the Nginx subrequest model, it is not allowed to abort a running Nginx subrequest in general. So it is also prohibited to abort a running "light thread" that is pending on one ore more Nginx subrequests. You must call [ngx.thread.wait](#ngxthreadwait) to wait for those "light thread" to terminate before quitting the "world". A notable exception here is that you can abort pending subrequests by calling [ngx.exit](#ngxexit) with and only with the status code `ngx.ERROR` (-1), `408`, `444`, or `499`. +--- +--- The "light threads" are not scheduled in a pre-emptive way. In other words, no time-slicing is performed automatically. A "light thread" will keep running exclusively on the CPU until +--- +--- 1. a (nonblocking) I/O operation cannot be completed in a single run, +--- 1. it calls [coroutine.yield](#coroutineyield) to actively give up execution, or +--- 1. it is aborted by a Lua error or an invocation of [ngx.exit](#ngxexit), [ngx.exec](#ngxexec), [ngx.redirect](#ngxredirect), or [ngx.req.set_uri(uri, true)](#ngxreqset_uri). +--- +--- For the first two cases, the "light thread" will usually be resumed later by the ngx_lua scheduler unless a "stop-the-world" event happens. +--- +--- User "light threads" can create "light threads" themselves. And normal user coroutines created by [coroutine.create](#coroutinecreate) can also create "light threads". The coroutine (be it a normal Lua coroutine or a "light thread") that directly spawns the "light thread" is called the "parent coroutine" for the "light thread" newly spawned. +--- +--- The "parent coroutine" can call [ngx.thread.wait](#ngxthreadwait) to wait on the termination of its child "light thread". +--- +--- You can call coroutine.status() and coroutine.yield() on the "light thread" coroutines. +--- +--- The status of the "light thread" coroutine can be "zombie" if +--- +--- 1. the current "light thread" already terminates (either successfully or with an error), +--- 1. its parent coroutine is still alive, and +--- 1. its parent coroutine is not waiting on it with [ngx.thread.wait](#ngxthreadwait). +--- +--- The following example demonstrates the use of coroutine.yield() in the "light thread" coroutines +--- to do manual time-slicing: +--- +--- ```lua +--- +--- local yield = coroutine.yield +--- +--- function f() +--- local self = coroutine.running() +--- ngx.say("f 1") +--- yield(self) +--- ngx.say("f 2") +--- yield(self) +--- ngx.say("f 3") +--- end +--- +--- local self = coroutine.running() +--- ngx.say("0") +--- yield(self) +--- +--- ngx.say("1") +--- ngx.thread.spawn(f) +--- +--- ngx.say("2") +--- yield(self) +--- +--- ngx.say("3") +--- yield(self) +--- +--- ngx.say("4") +--- ``` +--- +--- Then it will generate the output +--- +--- +--- 0 +--- 1 +--- f 1 +--- 2 +--- f 2 +--- 3 +--- f 3 +--- 4 +--- +--- +--- "Light threads" are mostly useful for making concurrent upstream requests in a single Nginx request handler, much like a generalized version of [ngx.location.capture_multi](#ngxlocationcapture_multi) that can work with all the [Nginx API for Lua](#nginx-api-for-lua). The following example demonstrates parallel requests to MySQL, Memcached, and upstream HTTP services in a single Lua handler, and outputting the results in the order that they actually return (similar to Facebook's BigPipe model): +--- +--- ```lua +--- +--- -- query mysql, memcached, and a remote http service at the same time, +--- -- output the results in the order that they +--- -- actually return the results. +--- +--- local mysql = require "resty.mysql" +--- local memcached = require "resty.memcached" +--- +--- local function query_mysql() +--- local db = mysql:new() +--- db:connect{ +--- host = "127.0.0.1", +--- port = 3306, +--- database = "test", +--- user = "monty", +--- password = "mypass" +--- } +--- local res, err, errno, sqlstate = +--- db:query("select * from cats order by id asc") +--- db:set_keepalive(0, 100) +--- ngx.say("mysql done: ", cjson.encode(res)) +--- end +--- +--- local function query_memcached() +--- local memc = memcached:new() +--- memc:connect("127.0.0.1", 11211) +--- local res, err = memc:get("some_key") +--- ngx.say("memcached done: ", res) +--- end +--- +--- local function query_http() +--- local res = ngx.location.capture("/my-http-proxy") +--- ngx.say("http done: ", res.body) +--- end +--- +--- ngx.thread.spawn(query_mysql) -- create thread 1 +--- ngx.thread.spawn(query_memcached) -- create thread 2 +--- ngx.thread.spawn(query_http) -- create thread 3 +--- ``` +--- +--- This API was first enabled in the `v0.7.0` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param func fun(...:any):any +---@vararg any @meaning the function arg +---@return ngx.thread +function ngx.thread.spawn(func,...) end +ngx.HTTP_OPTIONS=512 +ngx.worker={} +--- **syntax:** *exiting = ngx.worker.exiting()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua** +--- +--- This function returns a boolean value indicating whether the current Nginx worker process already starts exiting. Nginx worker process exiting happens on Nginx server quit or configuration reload (aka HUP reload). +--- +--- This API was first introduced in the `0.9.3` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return boolean +function ngx.worker.exiting() end +--- **syntax:** *count = ngx.worker.id()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_worker_by_lua** +--- +--- Returns the ordinal number of the current Nginx worker processes (starting from number 0). +--- +--- So if the total number of workers is `N`, then this method may return a number between 0 +--- and `N - 1` (inclusive). +--- +--- This function returns meaningful values only for Nginx 1.9.1+. With earlier versions of Nginx, it +--- always returns `nil`. +--- +--- See also [ngx.worker.count](#ngxworkercount). +--- +--- This API was first introduced in the `0.9.20` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.worker.id() end +--- **syntax:** *count = ngx.worker.count()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua** +--- +--- Returns the total number of the Nginx worker processes (i.e., the value configured +--- by the [worker_processes](https://nginx.org/en/docs/ngx_core_module.html#worker_processes) +--- directive in `nginx.conf`). +--- +--- This API was first introduced in the `0.9.20` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.worker.count() end +--- **syntax:** *pid = ngx.worker.pid()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua** +--- +--- This function returns a Lua number for the process ID (PID) of the current Nginx worker process. This API is more efficient than `ngx.var.pid` and can be used in contexts where the [ngx.var.VARIABLE](#ngxvarvariable) API cannot be used (like [init_worker_by_lua](#init_worker_by_lua)). +--- +--- This API was first introduced in the `0.9.5` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.worker.pid() end +--- -------------- +--- +--- **syntax:** *intval = ngx.crc32_long(str)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Calculates the CRC-32 (Cyclic Redundancy Code) digest for the `str` argument. +--- +--- This method performs better on relatively long `str` inputs (i.e., longer than 30 ~ 60 bytes), as compared to [ngx.crc32_short](#ngxcrc32_short). The result is exactly the same as [ngx.crc32_short](#ngxcrc32_short). +--- +--- Behind the scene, it is just a thin wrapper around the `ngx_crc32_long` function defined in the Nginx core. +--- +--- This API was first introduced in the `v0.3.1rc8` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return number +function ngx.crc32_long(str) end +ngx.config={} +--- **syntax:** *prefix = ngx.config.prefix()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua** +--- +--- Returns the Nginx server "prefix" path, as determined by the `-p` command-line option when running the Nginx executable, or the path specified by the `--prefix` command-line option when building Nginx with the `./configure` script. +--- +--- This function was first introduced in the `0.9.2`. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return string +function ngx.config.prefix() end +--- **syntax:** *ver = ngx.config.nginx_version* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua** +--- +--- This field take an integral value indicating the version number of the current Nginx core being used. For example, the version number `1.4.3` results in the Lua number 1004003. +--- +--- This API was first introduced in the `0.9.3` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +ngx.config.nginx_version=1015008 +--- **syntax:** *subsystem = ngx.config.subsystem* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua** +--- +--- This string field indicates the current Nginx subsystem the current Lua environment is based on. For this module, this field always takes the string value `"http"`. For +--- [ngx_stream_lua_module](https://github.com/openresty/stream-lua-nginx-module#readme), however, this field takes the value `"stream"`. +--- +--- This field was first introduced in the `0.10.1`. +--- +--- [Back to TOC](#nginx-api-for-lua) +ngx.config.subsystem="http" +--- **syntax:** *str = ngx.config.nginx_configure()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua** +--- +--- This function returns a string for the Nginx `./configure` command's arguments string. +--- +--- This API was first introduced in the `0.9.5` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return string +function ngx.config.nginx_configure() end +--- **syntax:** *ver = ngx.config.ngx_lua_version* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua** +--- +--- This field take an integral value indicating the version number of the current `ngx_lua` module being used. For example, the version number `0.9.3` results in the Lua number 9003. +--- +--- This API was first introduced in the `0.9.3` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +ngx.config.ngx_lua_version=10015 +--- **syntax:** *debug = ngx.config.debug* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, init_by_lua*, init_worker_by_lua** +--- +--- This boolean field indicates whether the current Nginx is a debug build, i.e., being built by the `./configure` option `--with-debug`. +--- +--- This field was first introduced in the `0.8.7`. +--- +--- [Back to TOC](#nginx-api-for-lua) +ngx.config.debug=false +ngx.HTTP_UNAUTHORIZED=401 +ngx.timer={} +--- **syntax:** *count = ngx.timer.pending_count()* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns the number of pending timers. +--- +--- This directive was first introduced in the `v0.9.20` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.timer.pending_count() end +--- **syntax:** *count = ngx.timer.running_count()* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns the number of timers currently running. +--- +--- This directive was first introduced in the `v0.9.20` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return count +function ngx.timer.running_count() end +--- **syntax:** *hdl, err = ngx.timer.every(delay, callback, user_arg1, user_arg2, ...)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Similar to the [ngx.timer.at](#ngxtimerat) API function, but +--- +--- 1. `delay` *cannot* be zero, +--- 1. timer will be created every `delay` seconds until the current Nginx worker process starts exiting. +--- +--- When success, returns a "conditional true" value (but not a `true`). Otherwise, returns a "conditional false" value and a string describing the error. +--- +--- This API also respect the [lua_max_pending_timers](#lua_max_pending_timers) and [lua_max_running_timers](#lua_max_running_timers). +--- +--- This API was first introduced in the `v0.10.9` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param delay number +---@param callback fun(premature:any,...:any):any +---@param user_arg1 any +---@param user_arg2 any +---@vararg any +---@return boolean,string +function ngx.timer.every(delay, callback, user_arg1, user_arg2, ...) end +--- **syntax:** *hdl, err = ngx.timer.at(delay, callback, user_arg1, user_arg2, ...)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Creates an Nginx timer with a user callback function as well as optional user arguments. +--- +--- The first argument, `delay`, specifies the delay for the timer, +--- in seconds. One can specify fractional seconds like `0.001` to mean 1 +--- millisecond here. `0` delay can also be specified, in which case the +--- timer will immediately expire when the current handler yields +--- execution. +--- +--- The second argument, `callback`, can +--- be any Lua function, which will be invoked later in a background +--- "light thread" after the delay specified. The user callback will be +--- called automatically by the Nginx core with the arguments `premature`, +--- `user_arg1`, `user_arg2`, and etc, where the `premature` +--- argument takes a boolean value indicating whether it is a premature timer +--- expiration or not, and `user_arg1`, `user_arg2`, and etc, are +--- those (extra) user arguments specified when calling `ngx.timer.at` +--- as the remaining arguments. +--- +--- Premature timer expiration happens when the Nginx worker process is +--- trying to shut down, as in an Nginx configuration reload triggered by +--- the `HUP` signal or in an Nginx server shutdown. When the Nginx worker +--- is trying to shut down, one can no longer call `ngx.timer.at` to +--- create new timers with nonzero delays and in that case `ngx.timer.at` will return a "conditional false" value and +--- a string describing the error, that is, "process exiting". +--- +--- Starting from the `v0.9.3` release, it is allowed to create zero-delay timers even when the Nginx worker process starts shutting down. +--- +--- When a timer expires, the user Lua code in the timer callback is +--- running in a "light thread" detached completely from the original +--- request creating the timer. So objects with the same lifetime as the +--- request creating them, like [cosockets](#ngxsockettcp), cannot be shared between the +--- original request and the timer user callback function. +--- +--- Here is a simple example: +--- +--- ```nginx +--- +--- location / { +--- ... +--- log_by_lua_block { +--- local function push_data(premature, uri, args, status) +--- -- push the data uri, args, and status to the remote +--- -- via ngx.socket.tcp or ngx.socket.udp +--- -- (one may want to buffer the data in Lua a bit to +--- -- save I/O operations) +--- end +--- local ok, err = ngx.timer.at(0, push_data, +--- ngx.var.uri, ngx.var.args, ngx.header.status) +--- if not ok then +--- ngx.log(ngx.ERR, "failed to create timer: ", err) +--- return +--- end +--- } +--- } +--- ``` +--- +--- One can also create infinite re-occurring timers, for instance, a timer getting triggered every `5` seconds, by calling `ngx.timer.at` recursively in the timer callback function. Here is such an example, +--- +--- ```lua +--- +--- local delay = 5 +--- local handler +--- handler = function (premature) +--- -- do some routine job in Lua just like a cron job +--- if premature then +--- return +--- end +--- local ok, err = ngx.timer.at(delay, handler) +--- if not ok then +--- ngx.log(ngx.ERR, "failed to create the timer: ", err) +--- return +--- end +--- end +--- +--- local ok, err = ngx.timer.at(delay, handler) +--- if not ok then +--- ngx.log(ngx.ERR, "failed to create the timer: ", err) +--- return +--- end +--- ``` +--- +--- It is recommended, however, to use the [ngx.timer.every](#ngxtimerevery) API function +--- instead for creating recurring timers since it is more robust. +--- +--- Because timer callbacks run in the background and their running time +--- will not add to any client request's response time, they can easily +--- accumulate in the server and exhaust system resources due to either +--- Lua programming mistakes or just too much client traffic. To prevent +--- extreme consequences like crashing the Nginx server, there are +--- built-in limitations on both the number of "pending timers" and the +--- number of "running timers" in an Nginx worker process. The "pending +--- timers" here mean timers that have not yet been expired and "running +--- timers" are those whose user callbacks are currently running. +--- +--- The maximal number of pending timers allowed in an Nginx +--- worker is controlled by the [lua_max_pending_timers](#lua_max_pending_timers) +--- directive. The maximal number of running timers is controlled by the +--- [lua_max_running_timers](#lua_max_running_timers) directive. +--- +--- According to the current implementation, each "running timer" will +--- take one (fake) connection record from the global connection record +--- list configured by the standard [worker_connections](http://nginx.org/en/docs/ngx_core_module.html#worker_connections) directive in +--- `nginx.conf`. So ensure that the +--- [worker_connections](http://nginx.org/en/docs/ngx_core_module.html#worker_connections) directive is set to +--- a large enough value that takes into account both the real connections +--- and fake connections required by timer callbacks (as limited by the +--- [lua_max_running_timers](#lua_max_running_timers) directive). +--- +--- A lot of the Lua APIs for Nginx are enabled in the context of the timer +--- callbacks, like stream/datagram cosockets ([ngx.socket.tcp](#ngxsockettcp) and [ngx.socket.udp](#ngxsocketudp)), shared +--- memory dictionaries ([ngx.shared.DICT](#ngxshareddict)), user coroutines ([coroutine.*](#coroutinecreate)), +--- user "light threads" ([ngx.thread.*](#ngxthreadspawn)), [ngx.exit](#ngxexit), [ngx.now](#ngxnow)/[ngx.time](#ngxtime), +--- [ngx.md5](#ngxmd5)/[ngx.sha1_bin](#ngxsha1_bin), are all allowed. But the subrequest API (like +--- [ngx.location.capture](#ngxlocationcapture)), the [ngx.req.*](#ngxreqstart_time) API, the downstream output API +--- (like [ngx.say](#ngxsay), [ngx.print](#ngxprint), and [ngx.flush](#ngxflush)) are explicitly disabled in +--- this context. +--- +--- You can pass most of the standard Lua values (nils, booleans, numbers, strings, tables, closures, file handles, and etc) into the timer callback, either explicitly as user arguments or implicitly as upvalues for the callback closure. There are several exceptions, however: you *cannot* pass any thread objects returned by [coroutine.create](#coroutinecreate) and [ngx.thread.spawn](#ngxthreadspawn) or any cosocket objects returned by [ngx.socket.tcp](#ngxsockettcp), [ngx.socket.udp](#ngxsocketudp), and [ngx.req.socket](#ngxreqsocket) because these objects' lifetime is bound to the request context creating them while the timer callback is detached from the creating request's context (by design) and runs in its own (fake) request context. If you try to share the thread or cosocket objects across the boundary of the creating request, then you will get the "no co ctx found" error (for threads) or "bad request" (for cosockets). It is fine, however, to create all these objects inside your timer callback. +--- +--- This API was first introduced in the `v0.8.0` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param delay number +---@param callback fun(premature:any,...:any):any +---@param user_arg1 any +---@param user_arg2 any +---@vararg any +---@return boolean,string +function ngx.timer.at(delay, callback, user_arg1, user_arg2, ...) end +--- ---------------- +--- +--- **syntax:** *newstr = ngx.unescape_uri(str)* +--- +--- **context:** *init_by_lua*, init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua** +--- +--- Unescape `str` as an escaped URI component. +--- +--- For example, +--- +--- ```lua +--- +--- ngx.say(ngx.unescape_uri("b%20r56+7")) +--- ``` +--- +--- gives the output +--- +--- +--- b r56 7 +--- +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return str +function ngx.unescape_uri(str) end +--- --------------- +--- +--- **syntax:** *dict = ngx.shared.DICT* +--- +--- **syntax:** *dict = ngx.shared\[name_var\]* +--- +--- **context:** *init_by_lua*, init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Fetching the shm-based Lua dictionary object for the shared memory zone named `DICT` defined by the [lua_shared_dict](#lua_shared_dict) directive. +--- +--- Shared memory zones are always shared by all the Nginx worker processes in the current Nginx server instance. +--- +--- The resulting object `dict` has the following methods: +--- +--- * [get](#ngxshareddictget) +--- * [get_stale](#ngxshareddictget_stale) +--- * [set](#ngxshareddictset) +--- * [safe_set](#ngxshareddictsafe_set) +--- * [add](#ngxshareddictadd) +--- * [safe_add](#ngxshareddictsafe_add) +--- * [replace](#ngxshareddictreplace) +--- * [delete](#ngxshareddictdelete) +--- * [incr](#ngxshareddictincr) +--- * [lpush](#ngxshareddictlpush) +--- * [rpush](#ngxshareddictrpush) +--- * [lpop](#ngxshareddictlpop) +--- * [rpop](#ngxshareddictrpop) +--- * [llen](#ngxshareddictllen) +--- * [ttl](#ngxshareddictttl) +--- * [expire](#ngxshareddictexpire) +--- * [flush_all](#ngxshareddictflush_all) +--- * [flush_expired](#ngxshareddictflush_expired) +--- * [get_keys](#ngxshareddictget_keys) +--- * [capacity](#ngxshareddictcapacity) +--- * [free_space](#ngxshareddictfree_space) +--- +--- All these methods are *atomic* operations, that is, safe from concurrent accesses from multiple Nginx worker processes for the same `lua_shared_dict` zone. +--- +--- Here is an example: +--- +--- ```nginx +--- +--- http { +--- lua_shared_dict dogs 10m; +--- server { +--- location /set { +--- content_by_lua_block { +--- local dogs = ngx.shared.dogs +--- dogs:set("Jim", 8) +--- ngx.say("STORED") +--- } +--- } +--- location /get { +--- content_by_lua_block { +--- local dogs = ngx.shared.dogs +--- ngx.say(dogs:get("Jim")) +--- } +--- } +--- } +--- } +--- ``` +--- +--- Let us test it: +--- +--- ```bash +--- +--- $ curl localhost/set +--- STORED +--- +--- $ curl localhost/get +--- 8 +--- +--- $ curl localhost/get +--- 8 +--- ``` +--- +--- The number `8` will be consistently output when accessing `/get` regardless of how many Nginx workers there are because the `dogs` dictionary resides in the shared memory and visible to *all* of the worker processes. +--- +--- The shared dictionary will retain its contents through a server config reload (either by sending the `HUP` signal to the Nginx process or by using the `-s reload` command-line option). +--- +--- The contents in the dictionary storage will be lost, however, when the Nginx server quits. +--- +--- This feature was first introduced in the `v0.3.1rc22` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@type table<string,ngx.shared.DICT> +ngx.shared={} + +---NOT EXIT +---@class ngx.shared.DICT +ngx.shared.DICT={} + +--- ------------------- +--- +--- **syntax:** *value, flags = ngx.shared.DICT:get(key)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Retrieving the value in the dictionary [ngx.shared.DICT](#ngxshareddict) for the key `key`. If the key does not exist or has expired, then `nil` will be returned. +--- +--- In case of errors, `nil` and a string describing the error will be returned. +--- +--- The value returned will have the original data type when they were inserted into the dictionary, for example, Lua booleans, numbers, or strings. +--- +--- The first argument to this method must be the dictionary object itself, for example, +--- +--- ```lua +--- +--- local cats = ngx.shared.cats +--- local value, flags = cats.get(cats, "Marry") +--- ``` +--- +--- or use Lua's syntactic sugar for method calls: +--- +--- ```lua +--- +--- local cats = ngx.shared.cats +--- local value, flags = cats:get("Marry") +--- ``` +--- +--- These two forms are fundamentally equivalent. +--- +--- If the user flags is `0` (the default), then no flags value will be returned. +--- +--- This feature was first introduced in the `v0.3.1rc22` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@return any,number +function ngx.shared.DICT:get(key) end + + + +--- ------------------------- +--- +--- **syntax:** *value, flags, stale = ngx.shared.DICT:get_stale(key)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Similar to the [get](#ngxshareddictget) method but returns the value even if the key has already expired. +--- +--- Returns a 3rd value, `stale`, indicating whether the key has expired or not. +--- +--- Note that the value of an expired key is not guaranteed to be available so one should never rely on the availability of expired items. +--- +--- This method was first introduced in the `0.8.6` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@return any,number,boolean +function ngx.shared.DICT:get_stale(key) end + +--- ------------------- +--- +--- **syntax:** *success, err, forcible = ngx.shared.DICT:set(key, value, exptime?, flags?)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Unconditionally sets a key-value pair into the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). Returns three values: +--- +--- * `success`: boolean value to indicate whether the key-value pair is stored or not. +--- * `err`: textual error message, can be `"no memory"`. +--- * `forcible`: a boolean value to indicate whether other valid items have been removed forcibly when out of storage in the shared memory zone. +--- +--- The `value` argument inserted can be Lua booleans, numbers, strings, or `nil`. Their value type will also be stored into the dictionary and the same data type can be retrieved later via the [get](#ngxshareddictget) method. +--- +--- The optional `exptime` argument specifies expiration time (in seconds) for the inserted key-value pair. The time resolution is `0.001` seconds. If the `exptime` takes the value `0` (which is the default), then the item will never expire. +--- +--- The optional `flags` argument specifies a user flags value associated with the entry to be stored. It can also be retrieved later with the value. The user flags is stored as an unsigned 32-bit integer internally. Defaults to `0`. The user flags argument was first introduced in the `v0.5.0rc2` release. +--- +--- When it fails to allocate memory for the current key-value item, then `set` will try removing existing items in the storage according to the Least-Recently Used (LRU) algorithm. Note that, LRU takes priority over expiration time here. If up to tens of existing items have been removed and the storage left is still insufficient (either due to the total capacity limit specified by [lua_shared_dict](#lua_shared_dict) or memory segmentation), then the `err` return value will be `no memory` and `success` will be `false`. +--- +--- If this method succeeds in storing the current item by forcibly removing other not-yet-expired items in the dictionary via LRU, the `forcible` return value will be `true`. If it stores the item without forcibly removing other valid items, then the return value `forcible` will be `false`. +--- +--- The first argument to this method must be the dictionary object itself, for example, +--- +--- ```lua +--- +--- local cats = ngx.shared.cats +--- local succ, err, forcible = cats.set(cats, "Marry", "it is a nice cat!") +--- ``` +--- +--- or use Lua's syntactic sugar for method calls: +--- +--- ```lua +--- +--- local cats = ngx.shared.cats +--- local succ, err, forcible = cats:set("Marry", "it is a nice cat!") +--- ``` +--- +--- These two forms are fundamentally equivalent. +--- +--- This feature was first introduced in the `v0.3.1rc22` release. +--- +--- Please note that while internally the key-value pair is set atomically, the atomicity does not go across the method call boundary. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param value any +---@param exptime number +---@param flags number +---@return boolean,string,boolean@ success, err, forcible +function ngx.shared.DICT:set(key, value, exptime, flags) end + +--- ------------------------ +--- +--- **syntax:** *ok, err = ngx.shared.DICT:safe_set(key, value, exptime?, flags?)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Similar to the [set](#ngxshareddictset) method, but never overrides the (least recently used) unexpired items in the store when running out of storage in the shared memory zone. In this case, it will immediately return `nil` and the string "no memory". +--- +--- This feature was first introduced in the `v0.7.18` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param value any +---@param exptime number +---@param flags number +---@return boolean,string@ ok, err +function ngx.shared.DICT:safe_set(key, value, exptime, flags) end + +--- ------------------- +--- +--- **syntax:** *success, err, forcible = ngx.shared.DICT:add(key, value, exptime?, flags?)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Just like the [set](#ngxshareddictset) method, but only stores the key-value pair into the dictionary [ngx.shared.DICT](#ngxshareddict) if the key does *not* exist. +--- +--- If the `key` argument already exists in the dictionary (and not expired for sure), the `success` return value will be `false` and the `err` return value will be `"exists"`. +--- +--- This feature was first introduced in the `v0.3.1rc22` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param value any +---@param exptime number +---@param flags number +---@return boolean,string,boolean@ success, err, forcible +function ngx.shared.DICT:add(key, value, exptime, flags) end + +--- ------------------------ +--- +--- **syntax:** *ok, err = ngx.shared.DICT:safe_add(key, value, exptime?, flags?)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Similar to the [add](#ngxshareddictadd) method, but never overrides the (least recently used) unexpired items in the store when running out of storage in the shared memory zone. In this case, it will immediately return `nil` and the string "no memory". +--- +--- This feature was first introduced in the `v0.7.18` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param value any +---@param exptime number +---@param flags number +---@return boolean,string@ ok, err +function ngx.shared.DICT:safe_add(key, value, exptime, flags) end + + +--- ----------------------- +--- +--- **syntax:** *success, err, forcible = ngx.shared.DICT:replace(key, value, exptime?, flags?)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Just like the [set](#ngxshareddictset) method, but only stores the key-value pair into the dictionary [ngx.shared.DICT](#ngxshareddict) if the key *does* exist. +--- +--- If the `key` argument does *not* exist in the dictionary (or expired already), the `success` return value will be `false` and the `err` return value will be `"not found"`. +--- +--- This feature was first introduced in the `v0.3.1rc22` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param value any +---@param exptime number +---@param flags number +---@return boolean,string,boolean@ success, err, forcible +function ngx.shared.DICT:replace(key, value, exptime, flags) end + + +--- ---------------------- +--- +--- **syntax:** *ngx.shared.DICT:delete(key)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Unconditionally removes the key-value pair from the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). +--- +--- It is equivalent to `ngx.shared.DICT:set(key, nil)`. +--- +--- This feature was first introduced in the `v0.3.1rc22` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@return void +function ngx.shared.DICT:delete(key) end + + +--- -------------------- +--- +--- **syntax:** *newval, err, forcible? = ngx.shared.DICT:incr(key, value, init?, init_ttl?)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- **optional requirement:** `resty.core.shdict` or `resty.core` +--- +--- Increments the (numerical) value for `key` in the shm-based dictionary [ngx.shared.DICT](#ngxshareddict) by the step value `value`. Returns the new resulting number if the operation is successfully completed or `nil` and an error message otherwise. +--- +--- When the key does not exist or has already expired in the shared dictionary, +--- +--- 1. if the `init` argument is not specified or takes the value `nil`, this method will return `nil` and the error string `"not found"`, or +--- 1. if the `init` argument takes a number value, this method will create a new `key` with the value `init + value`. +--- +--- Like the [add](#ngxshareddictadd) method, it also overrides the (least recently used) unexpired items in the store when running out of storage in the shared memory zone. +--- +--- The optional `init_ttl` argument specifies expiration time (in seconds) of the value when it is initialized via the `init` argument. The time resolution is `0.001` seconds. If `init_ttl` takes the value `0` (which is the default), then the item will never expire. This argument cannot be provided without providing the `init` argument as well, and has no effect if the value already exists (e.g., if it was previously inserted via [set](#ngxshareddictset) or the likes). +--- +--- **Note:** Usage of the `init_ttl` argument requires the `resty.core.shdict` or `resty.core` modules from the [lua-resty-core](https://github.com/openresty/lua-resty-core) library. Example: +--- +--- ```lua +--- +--- require "resty.core" +--- +--- local cats = ngx.shared.cats +--- local newval, err = cats:incr("black_cats", 1, 0, 0.1) +--- +--- print(newval) -- 1 +--- +--- ngx.sleep(0.2) +--- +--- local val, err = cats:get("black_cats") +--- print(val) -- nil +--- ``` +--- +--- The `forcible` return value will always be `nil` when the `init` argument is not specified. +--- +--- If this method succeeds in storing the current item by forcibly removing other not-yet-expired items in the dictionary via LRU, the `forcible` return value will be `true`. If it stores the item without forcibly removing other valid items, then the return value `forcible` will be `false`. +--- +--- If the original value is not a valid Lua number in the dictionary, it will return `nil` and `"not a number"`. +--- +--- The `value` argument and `init` argument can be any valid Lua numbers, like negative numbers or floating-point numbers. +--- +--- This method was first introduced in the `v0.3.1rc22` release. +--- +--- The optional `init` parameter was first added in the `v0.10.6` release. +--- +--- The optional `init_ttl` parameter was introduced in the `v0.10.12rc2` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param value number +---@param init number +---@param init_ttl number +---@return number | nil ,string,boolean@newval, err, forcible +function ngx.shared.DICT:incr(key, value, init, init_ttl) end + + +--- --------------------- +--- +--- **syntax:** *length, err = ngx.shared.DICT:lpush(key, value)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Inserts the specified (numerical or string) `value` at the head of the list named `key` in the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). Returns the number of elements in the list after the push operation. +--- +--- If `key` does not exist, it is created as an empty list before performing the push operation. When the `key` already takes a value that is not a list, it will return `nil` and `"value not a list"`. +--- +--- It never overrides the (least recently used) unexpired items in the store when running out of storage in the shared memory zone. In this case, it will immediately return `nil` and the string "no memory". +--- +--- This feature was first introduced in the `v0.10.6` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param value string| number +---@return number ,string @length, err +function ngx.shared.DICT:lpush(key,value) end + + +--- --------------------- +--- +--- **syntax:** *length, err = ngx.shared.DICT:rpush(key, value)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Similar to the [lpush](#ngxshareddictlpush) method, but inserts the specified (numerical or string) `value` at the tail of the list named `key`. +--- +--- This feature was first introduced in the `v0.10.6` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param value any +---@return number ,string @length, err +function ngx.shared.DICT:rpush(key, value) end + + +--- -------------------- +--- +--- **syntax:** *val, err = ngx.shared.DICT:lpop(key)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Removes and returns the first element of the list named `key` in the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). +--- +--- If `key` does not exist, it will return `nil`. When the `key` already takes a value that is not a list, it will return `nil` and `"value not a list"`. +--- +--- This feature was first introduced in the `v0.10.6` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@return any,string @val,err +function ngx.shared.DICT:lpop(key) end + + +--- -------------------- +--- +--- **syntax:** *val, err = ngx.shared.DICT:rpop(key)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Removes and returns the last element of the list named `key` in the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). +--- +--- If `key` does not exist, it will return `nil`. When the `key` already takes a value that is not a list, it will return `nil` and `"value not a list"`. +--- +--- This feature was first introduced in the `v0.10.6` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@return any,string@val,err +function ngx.shared.DICT:rpop(key) end + + +--- -------------------- +--- +--- **syntax:** *len, err = ngx.shared.DICT:llen(key)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns the number of elements in the list named `key` in the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). +--- +--- If key does not exist, it is interpreted as an empty list and 0 is returned. When the `key` already takes a value that is not a list, it will return `nil` and `"value not a list"`. +--- +--- This feature was first introduced in the `v0.10.6` release. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@return number,string @len,err +function ngx.shared.DICT:llen(key) end + + +--- ------------------- +--- +--- **syntax:** *ttl, err = ngx.shared.DICT:ttl(key)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- **requires:** `resty.core.shdict` or `resty.core` +--- +--- Retrieves the remaining TTL (time-to-live in seconds) of a key-value pair in the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). Returns the TTL as a number if the operation is successfully completed or `nil` and an error message otherwise. +--- +--- If the key does not exist (or has already expired), this method will return `nil` and the error string `"not found"`. +--- +--- The TTL is originally determined by the `exptime` argument of the [set](#ngxshareddictset), [add](#ngxshareddictadd), [replace](#ngxshareddictreplace) (and the likes) methods. It has a time resolution of `0.001` seconds. A value of `0` means that the item will never expire. +--- +--- Example: +--- +--- ```lua +--- +--- require "resty.core" +--- +--- local cats = ngx.shared.cats +--- local succ, err = cats:set("Marry", "a nice cat", 0.5) +--- +--- ngx.sleep(0.2) +--- +--- local ttl, err = cats:ttl("Marry") +--- ngx.say(ttl) -- 0.3 +--- ``` +--- +--- This feature was first introduced in the `v0.10.11` release. +--- +--- **Note:** This method requires the `resty.core.shdict` or `resty.core` modules from the [lua-resty-core](https://github.com/openresty/lua-resty-core) library. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@return number,string @ttl,err +function ngx.shared.DICT:ttl(key) end + + +--- ---------------------- +--- +--- **syntax:** *success, err = ngx.shared.DICT:expire(key, exptime)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- **requires:** `resty.core.shdict` or `resty.core` +--- +--- Updates the `exptime` (in second) of a key-value pair in the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). Returns a boolean indicating success if the operation completes or `nil` and an error message otherwise. +--- +--- If the key does not exist, this method will return `nil` and the error string `"not found"`. +--- +--- The `exptime` argument has a resolution of `0.001` seconds. If `exptime` is `0`, then the item will never expire. +--- +--- Example: +--- +--- ```lua +--- +--- require "resty.core" +--- +--- local cats = ngx.shared.cats +--- local succ, err = cats:set("Marry", "a nice cat", 0.1) +--- +--- succ, err = cats:expire("Marry", 0.5) +--- +--- ngx.sleep(0.2) +--- +--- local val, err = cats:get("Marry") +--- ngx.say(val) -- "a nice cat" +--- ``` +--- +--- This feature was first introduced in the `v0.10.11` release. +--- +--- **Note:** This method requires the `resty.core.shdict` or `resty.core` modules from the [lua-resty-core](https://github.com/openresty/lua-resty-core) library. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param key string +---@param exptime number +---@return boolean,string @success,err +function ngx.shared.DICT:expire(key, exptime) end + + +--- ------------------------- +--- +--- **syntax:** *ngx.shared.DICT:flush_all()* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Flushes out all the items in the dictionary. This method does not actuall free up all the memory blocks in the dictionary but just marks all the existing items as expired. +--- +--- This feature was first introduced in the `v0.5.0rc17` release. +--- +--- See also [ngx.shared.DICT.flush_expired](#ngxshareddictflush_expired) and [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +function ngx.shared.DICT:flush_all() end + + +--- ----------------------------- +--- +--- **syntax:** *flushed = ngx.shared.DICT:flush_expired(max_count?)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Flushes out the expired items in the dictionary, up to the maximal number specified by the optional `max_count` argument. When the `max_count` argument is given `0` or not given at all, then it means unlimited. Returns the number of items that have actually been flushed. +--- +--- Unlike the [flush_all](#ngxshareddictflush_all) method, this method actually frees up the memory used by the expired items. +--- +--- This feature was first introduced in the `v0.6.3` release. +--- +--- See also [ngx.shared.DICT.flush_all](#ngxshareddictflush_all) and [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param max_count number +---@return number@flushed +function ngx.shared.DICT:flush_expired(max_count) end + + +--- ------------------------ +--- +--- **syntax:** *keys = ngx.shared.DICT:get_keys(max_count?)* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Fetch a list of the keys from the dictionary, up to `<max_count>`. +--- +--- By default, only the first 1024 keys (if any) are returned. When the `<max_count>` argument is given the value `0`, then all the keys will be returned even there is more than 1024 keys in the dictionary. +--- +--- **CAUTION** Avoid calling this method on dictionaries with a very large number of keys as it may lock the dictionary for significant amount of time and block Nginx worker processes trying to access the dictionary. +--- +--- This feature was first introduced in the `v0.7.3` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param max_count number +---@return string[]@keys +function ngx.shared.DICT:get_keys(max_count) end + + +--- ------------------------ +--- +--- **syntax:** *capacity_bytes = ngx.shared.DICT:capacity()* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- **requires:** `resty.core.shdict` or `resty.core` +--- +--- Retrieves the capacity in bytes for the shm-based dictionary [ngx.shared.DICT](#ngxshareddict) declared with +--- the [lua_shared_dict](#lua_shared_dict) directive. +--- +--- Example: +--- +--- ```lua +--- +--- require "resty.core.shdict" +--- +--- local cats = ngx.shared.cats +--- local capacity_bytes = cats:capacity() +--- ``` +--- +--- This feature was first introduced in the `v0.10.11` release. +--- +--- **Note:** This method requires the `resty.core.shdict` or `resty.core` modules from the [lua-resty-core](https://github.com/openresty/lua-resty-core) library. +--- +--- This feature requires at least Nginx core version `0.7.3`. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.shared.DICT:capacity() end + + +--- -------------------------- +--- +--- **syntax:** *free_page_bytes = ngx.shared.DICT:free_space()* +--- +--- **context:** *init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- **requires:** `resty.core.shdict` or `resty.core` +--- +--- Retrieves the free page size in bytes for the shm-based dictionary [ngx.shared.DICT](#ngxshareddict). +--- +--- **Note:** The memory for ngx.shared.DICT is allocated via the Nginx slab allocator which has each slot for +--- data size ranges like \~8, 9\~16, 17\~32, ..., 1025\~2048, 2048\~ bytes. And pages are assigned to a slot if there +--- is no room in already assigned pages for the slot. +--- +--- So even if the return value of the `free_space` method is zero, there may be room in already assigned pages, so +--- you may successfully set a new key value pair to the shared dict without getting `true` for `forcible` or +--- non nil `err` from the `ngx.shared.DICT.set`. +--- +--- On the other hand, if already assigned pages for a slot are full and a new key value pair is added to the +--- slot and there is no free page, you may get `true` for `forcible` or non nil `err` from the +--- `ngx.shared.DICT.set` method. +--- +--- Example: +--- +--- ```lua +--- +--- require "resty.core.shdict" +--- +--- local cats = ngx.shared.cats +--- local free_page_bytes = cats:free_space() +--- ``` +--- +--- This feature was first introduced in the `v0.10.11` release. +--- +--- **Note:** This method requires the `resty.core.shdict` or `resty.core` modules from the [lua-resty-core](https://github.com/openresty/lua-resty-core) library. +--- +--- This feature requires at least Nginx core version `1.11.7`. +--- +--- See also [ngx.shared.DICT](#ngxshareddict). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.shared.DICT:free_space() end + + + + + + +--- --------- +--- +--- **syntax:** *ok, err = ngx.flush(wait?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Flushes response output to the client. +--- +--- `ngx.flush` accepts an optional boolean `wait` argument (Default: `false`) first introduced in the `v0.3.1rc34` release. When called with the default argument, it issues an asynchronous call (Returns immediately without waiting for output data to be written into the system send buffer). Calling the function with the `wait` argument set to `true` switches to synchronous mode. +--- +--- In synchronous mode, the function will not return until all output data has been written into the system send buffer or until the [send_timeout](http://nginx.org/en/docs/http/ngx_http_core_module.html#send_timeout) setting has expired. Note that using the Lua coroutine mechanism means that this function does not block the Nginx event loop even in the synchronous mode. +--- +--- When `ngx.flush(true)` is called immediately after [ngx.print](#ngxprint) or [ngx.say](#ngxsay), it causes the latter functions to run in synchronous mode. This can be particularly useful for streaming output. +--- +--- Note that `ngx.flush` is not functional when in the HTTP 1.0 output buffering mode. See [HTTP 1.0 support](#http-10-support). +--- +--- Since `v0.8.3` this function returns `1` on success, or returns `nil` and a string describing the error otherwise. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param wait boolean +---@return boolean,string@ok,err +function ngx.flush(wait) end +function ngx._phase_ctx() end +ngx.HTTP_NOT_ALLOWED=405 +ngx.HTTP_ACCEPTED=202 +ngx.HTTP_CONFLICT=409 +ngx.HTTP_SPECIAL_RESPONSE=300 +ngx.HTTP_PERMANENT_REDIRECT=308 +ngx.var={} +--- ------------ +--- +--- **syntax:** *digest = ngx.sha1_bin(str)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns the binary form of the SHA-1 digest of the `str` argument. +--- +--- This function requires SHA-1 support in the Nginx build. (This usually just means OpenSSL should be installed while building Nginx). +--- +--- This function was first introduced in the `v0.5.0rc6`. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return any +function ngx.sha1_bin(str) end +ngx.HTTP_INSUFFICIENT_STORAGE=507 +ngx.HTTP_LOCK=4096 +ngx.req={} +--- ------------------- +--- +--- **syntax:** *is_internal = ngx.req.is_internal()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua** +--- +--- Returns a boolean indicating whether the current request is an "internal request", i.e., +--- a request initiated from inside the current Nginx server instead of from the client side. +--- +--- Subrequests are all internal requests and so are requests after internal redirects. +--- +--- This API was first introduced in the `v0.9.20` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return boolean +function ngx.req.is_internal() end +--- -------------------- +--- +--- **syntax:** *num = ngx.req.http_version()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua** +--- +--- Returns the HTTP version number for the current request as a Lua number. +--- +--- Current possible values are 2.0, 1.0, 1.1, and 0.9. Returns `nil` for unrecognized values. +--- +--- This method was first introduced in the `v0.7.17` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.req.http_version() end +--- --------------------- +--- +--- **syntax:** *ngx.req.set_body_data(data)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Set the current request's request body using the in-memory data specified by the `data` argument. +--- +--- If the request body has not been read yet, call [ngx.req.read_body](#ngxreqread_body) first (or turn on [lua_need_request_body](#lua_need_request_body) to force this module to read the request body. This is not recommended however). Additionally, the request body must not have been previously discarded by [ngx.req.discard_body](#ngxreqdiscard_body). +--- +--- Whether the previous request body has been read into memory or buffered into a disk file, it will be freed or the disk file will be cleaned up immediately, respectively. +--- +--- This function was first introduced in the `v0.3.1rc18` release. +--- +--- See also [ngx.req.set_body_file](#ngxreqset_body_file). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param data any +function ngx.req.set_body_data(data) end +--- --------------------- +--- +--- **syntax:** *args, err = ngx.req.get_post_args(max_args?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua** +--- +--- Returns a Lua table holding all the current request POST query arguments (of the MIME type `application/x-www-form-urlencoded`). Call [ngx.req.read_body](#ngxreqread_body) to read the request body first or turn on the [lua_need_request_body](#lua_need_request_body) directive to avoid errors. +--- +--- ```nginx +--- +--- location = /test { +--- content_by_lua_block { +--- ngx.req.read_body() +--- local args, err = ngx.req.get_post_args() +--- +--- if err == "truncated" then +--- -- one can choose to ignore or reject the current request here +--- end +--- +--- if not args then +--- ngx.say("failed to get post args: ", err) +--- return +--- end +--- for key, val in pairs(args) do +--- if type(val) == "table" then +--- ngx.say(key, ": ", table.concat(val, ", ")) +--- else +--- ngx.say(key, ": ", val) +--- end +--- end +--- } +--- } +--- ``` +--- +--- Then +--- +--- ```bash +--- +--- # Post request with the body 'foo=bar&bar=baz&bar=blah' +--- $ curl --data 'foo=bar&bar=baz&bar=blah' localhost/test +--- ``` +--- +--- will yield the response body like +--- +--- ```bash +--- +--- foo: bar +--- bar: baz, blah +--- ``` +--- +--- Multiple occurrences of an argument key will result in a table value holding all of the values for that key in order. +--- +--- Keys and values will be unescaped according to URI escaping rules. +--- +--- With the settings above, +--- +--- ```bash +--- +--- # POST request with body 'a%20b=1%61+2' +--- $ curl -d 'a%20b=1%61+2' localhost/test +--- ``` +--- +--- will yield: +--- +--- ```bash +--- +--- a b: 1a 2 +--- ``` +--- +--- Arguments without the `=<value>` parts are treated as boolean arguments. `POST /test` with the request body `foo&bar` will yield: +--- +--- ```bash +--- +--- foo: true +--- bar: true +--- ``` +--- +--- That is, they will take Lua boolean values `true`. However, they are different from arguments taking empty string values. `POST /test` with request body `foo=&bar=` will return something like +--- +--- ```bash +--- +--- foo: +--- bar: +--- ``` +--- +--- Empty key arguments are discarded. `POST /test` with body `=hello&=world` will yield empty outputs for instance. +--- +--- Note that a maximum of 100 request arguments are parsed by default (including those with the same name) and that additional request arguments are silently discarded to guard against potential denial of service attacks. Since `v0.10.13`, when the limit is exceeded, it will return a second value which is the string `"truncated"`. +--- +--- However, the optional `max_args` function argument can be used to override this limit: +--- +--- ```lua +--- +--- local args, err = ngx.req.get_post_args(10) +--- if err == "truncated" then +--- -- one can choose to ignore or reject the current request here +--- end +--- ``` +--- +--- This argument can be set to zero to remove the limit and to process all request arguments received: +--- +--- ```lua +--- +--- local args, err = ngx.req.get_post_args(0) +--- ``` +--- +--- Removing the `max_args` cap is strongly discouraged. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param max_args number +---@return table,string@args,err +function ngx.req.get_post_args(max_args) end +--- -------------------- +--- +--- **syntax:** *args, err = ngx.req.get_uri_args(max_args?)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, balancer_by_lua** +--- +--- Returns a Lua table holding all the current request URL query arguments. +--- +--- ```nginx +--- +--- location = /test { +--- content_by_lua_block { +--- local args, err = ngx.req.get_uri_args() +--- +--- if err == "truncated" then +--- -- one can choose to ignore or reject the current request here +--- end +--- +--- for key, val in pairs(args) do +--- if type(val) == "table" then +--- ngx.say(key, ": ", table.concat(val, ", ")) +--- else +--- ngx.say(key, ": ", val) +--- end +--- end +--- } +--- } +--- ``` +--- +--- Then `GET /test?foo=bar&bar=baz&bar=blah` will yield the response body +--- +--- ```bash +--- +--- foo: bar +--- bar: baz, blah +--- ``` +--- +--- Multiple occurrences of an argument key will result in a table value holding all the values for that key in order. +--- +--- Keys and values are unescaped according to URI escaping rules. In the settings above, `GET /test?a%20b=1%61+2` will yield: +--- +--- ```bash +--- +--- a b: 1a 2 +--- ``` +--- +--- Arguments without the `=<value>` parts are treated as boolean arguments. `GET /test?foo&bar` will yield: +--- +--- ```bash +--- +--- foo: true +--- bar: true +--- ``` +--- +--- That is, they will take Lua boolean values `true`. However, they are different from arguments taking empty string values. `GET /test?foo=&bar=` will give something like +--- +--- ```bash +--- +--- foo: +--- bar: +--- ``` +--- +--- Empty key arguments are discarded. `GET /test?=hello&=world` will yield an empty output for instance. +--- +--- Updating query arguments via the Nginx variable `$args` (or `ngx.var.args` in Lua) at runtime is also supported: +--- +--- ```lua +--- +--- ngx.var.args = "a=3&b=42" +--- local args, err = ngx.req.get_uri_args() +--- ``` +--- +--- Here the `args` table will always look like +--- +--- ```lua +--- +--- {a = 3, b = 42} +--- ``` +--- +--- regardless of the actual request query string. +--- +--- Note that a maximum of 100 request arguments are parsed by default (including those with the same name) and that additional request arguments are silently discarded to guard against potential denial of service attacks. Since `v0.10.13`, when the limit is exceeded, it will return a second value which is the string `"truncated"`. +--- +--- However, the optional `max_args` function argument can be used to override this limit: +--- +--- ```lua +--- +--- local args, err = ngx.req.get_uri_args(10) +--- if err == "truncated" then +--- -- one can choose to ignore or reject the current request here +--- end +--- ``` +--- +--- This argument can be set to zero to remove the limit and to process all request arguments received: +--- +--- ```lua +--- +--- local args, err = ngx.req.get_uri_args(0) +--- ``` +--- +--- Removing the `max_args` cap is strongly discouraged. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param max_args number +---@return table,string@args, err +function ngx.req.get_uri_args(max_args) end +--- --------------- +--- +--- **syntax:** *ngx.req.set_uri(uri, jump?)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua** +--- +--- Rewrite the current request's (parsed) URI by the `uri` argument. The `uri` argument must be a Lua string and cannot be of zero length, or a Lua exception will be thrown. +--- +--- The optional boolean `jump` argument can trigger location rematch (or location jump) as [ngx_http_rewrite_module](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html)'s [rewrite](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite) directive, that is, when `jump` is `true` (default to `false`), this function will never return and it will tell Nginx to try re-searching locations with the new URI value at the later `post-rewrite` phase and jumping to the new location. +--- +--- Location jump will not be triggered otherwise, and only the current request's URI will be modified, which is also the default behavior. This function will return but with no returned values when the `jump` argument is `false` or absent altogether. +--- +--- For example, the following Nginx config snippet +--- +--- ```nginx +--- +--- rewrite ^ /foo last; +--- ``` +--- +--- can be coded in Lua like this: +--- +--- ```lua +--- +--- ngx.req.set_uri("/foo", true) +--- ``` +--- +--- Similarly, Nginx config +--- +--- ```nginx +--- +--- rewrite ^ /foo break; +--- ``` +--- +--- can be coded in Lua as +--- +--- ```lua +--- +--- ngx.req.set_uri("/foo", false) +--- ``` +--- +--- or equivalently, +--- +--- ```lua +--- +--- ngx.req.set_uri("/foo") +--- ``` +--- +--- The `jump` argument can only be set to `true` in [rewrite_by_lua*](#rewrite_by_lua). Use of jump in other contexts is prohibited and will throw out a Lua exception. +--- +--- A more sophisticated example involving regex substitutions is as follows +--- +--- ```nginx +--- +--- location /test { +--- rewrite_by_lua_block { +--- local uri = ngx.re.sub(ngx.var.uri, "^/test/(.*)", "/$1", "o") +--- ngx.req.set_uri(uri) +--- } +--- proxy_pass http://my_backend; +--- } +--- ``` +--- +--- which is functionally equivalent to +--- +--- ```nginx +--- +--- location /test { +--- rewrite ^/test/(.*) /$1 break; +--- proxy_pass http://my_backend; +--- } +--- ``` +--- +--- Note that it is not possible to use this interface to rewrite URI arguments and that [ngx.req.set_uri_args](#ngxreqset_uri_args) should be used for this instead. For instance, Nginx config +--- +--- ```nginx +--- +--- rewrite ^ /foo?a=3? last; +--- ``` +--- +--- can be coded as +--- +--- ```nginx +--- +--- ngx.req.set_uri_args("a=3") +--- ngx.req.set_uri("/foo", true) +--- ``` +--- +--- or +--- +--- ```nginx +--- +--- ngx.req.set_uri_args({a = 3}) +--- ngx.req.set_uri("/foo", true) +--- ``` +--- +--- This interface was first introduced in the `v0.3.1rc14` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param uri string +---@param jump boolean +---@return void +function ngx.req.set_uri(uri, jump) end +--- ------------------- +--- +--- **syntax:** *ngx.req.append_body(data_chunk)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Append new data chunk specified by the `data_chunk` argument onto the existing request body created by the [ngx.req.init_body](#ngxreqinit_body) call. +--- +--- When the data can no longer be hold in the memory buffer for the request body, then the data will be flushed onto a temporary file just like the standard request body reader in the Nginx core. +--- +--- It is important to always call the [ngx.req.finish_body](#ngxreqfinish_body) after all the data has been appended onto the current request body. +--- +--- This function can be used with [ngx.req.init_body](#ngxreqinit_body), [ngx.req.finish_body](#ngxreqfinish_body), and [ngx.req.socket](#ngxreqsocket) to implement efficient input filters in pure Lua (in the context of [rewrite_by_lua*](#rewrite_by_lua) or [access_by_lua*](#access_by_lua)), which can be used with other Nginx content handler or upstream modules like [ngx_http_proxy_module](http://nginx.org/en/docs/http/ngx_http_proxy_module.html) and [ngx_http_fastcgi_module](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html). +--- +--- This function was first introduced in the `v0.5.11` release. +--- +--- See also [ngx.req.init_body](#ngxreqinit_body). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param data_chunk any +function ngx.req.append_body(data_chunk) end +--- ------------------ +--- +--- **syntax:** *ngx.req.set_method(method_id)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua** +--- +--- Overrides the current request's request method with the `method_id` argument. Currently only numerical [method constants](#http-method-constants) are supported, like `ngx.HTTP_POST` and `ngx.HTTP_GET`. +--- +--- If the current request is an Nginx subrequest, then the subrequest's method will be overridden. +--- +--- This method was first introduced in the `v0.5.6` release. +--- +--- See also [ngx.req.get_method](#ngxreqget_method). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param method_id number +function ngx.req.set_method(method_id) end +--- ------------------ +--- +--- **syntax:** *method_name = ngx.req.get_method()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, balancer_by_lua*, log_by_lua** +--- +--- Retrieves the current request's request method name. Strings like `"GET"` and `"POST"` are returned instead of numerical [method constants](#http-method-constants). +--- +--- If the current request is an Nginx subrequest, then the subrequest's method name will be returned. +--- +--- This method was first introduced in the `v0.5.6` release. +--- +--- See also [ngx.req.set_method](#ngxreqset_method). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return string@method_name +function ngx.req.get_method() end +--- -------------- +--- +--- **syntax:** *tcpsock, err = ngx.req.socket()* +--- +--- **syntax:** *tcpsock, err = ngx.req.socket(raw)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Returns a read-only cosocket object that wraps the downstream connection. Only [receive](#tcpsockreceive) and [receiveuntil](#tcpsockreceiveuntil) methods are supported on this object. +--- +--- In case of error, `nil` will be returned as well as a string describing the error. +--- +--- The socket object returned by this method is usually used to read the current request's body in a streaming fashion. Do not turn on the [lua_need_request_body](#lua_need_request_body) directive, and do not mix this call with [ngx.req.read_body](#ngxreqread_body) and [ngx.req.discard_body](#ngxreqdiscard_body). +--- +--- If any request body data has been pre-read into the Nginx core request header buffer, the resulting cosocket object will take care of this to avoid potential data loss resulting from such pre-reading. +--- Chunked request bodies are not yet supported in this API. +--- +--- Since the `v0.9.0` release, this function accepts an optional boolean `raw` argument. When this argument is `true`, this function returns a full-duplex cosocket object wrapping around the raw downstream connection socket, upon which you can call the [receive](#tcpsockreceive), [receiveuntil](#tcpsockreceiveuntil), and [send](#tcpsocksend) methods. +--- +--- When the `raw` argument is `true`, it is required that no pending data from any previous [ngx.say](#ngxsay), [ngx.print](#ngxprint), or [ngx.send_headers](#ngxsend_headers) calls exists. So if you have these downstream output calls previously, you should call [ngx.flush(true)](#ngxflush) before calling `ngx.req.socket(true)` to ensure that there is no pending output data. If the request body has not been read yet, then this "raw socket" can also be used to read the request body. +--- +--- You can use the "raw request socket" returned by `ngx.req.socket(true)` to implement fancy protocols like [WebSocket](https://en.wikipedia.org/wiki/WebSocket), or just emit your own raw HTTP response header or body data. You can refer to the [lua-resty-websocket library](https://github.com/openresty/lua-resty-websocket) for a real world example. +--- +--- This function was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param raw boolean +---@return tcpsock,string @tcpsock,err +function ngx.req.socket(raw) end +--- ------------------- +--- +--- **syntax:** *ngx.req.finish_body()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Completes the construction process of the new request body created by the [ngx.req.init_body](#ngxreqinit_body) and [ngx.req.append_body](#ngxreqappend_body) calls. +--- +--- This function can be used with [ngx.req.init_body](#ngxreqinit_body), [ngx.req.append_body](#ngxreqappend_body), and [ngx.req.socket](#ngxreqsocket) to implement efficient input filters in pure Lua (in the context of [rewrite_by_lua*](#rewrite_by_lua) or [access_by_lua*](#access_by_lua)), which can be used with other Nginx content handler or upstream modules like [ngx_http_proxy_module](http://nginx.org/en/docs/http/ngx_http_proxy_module.html) and [ngx_http_fastcgi_module](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html). +--- +--- This function was first introduced in the `v0.5.11` release. +--- +--- See also [ngx.req.init_body](#ngxreqinit_body). +--- +--- [Back to TOC](#nginx-api-for-lua) +function ngx.req.finish_body() end +--- ------------------ +--- +--- **syntax:** *str = ngx.req.raw_header(no_request_line?)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua** +--- +--- Returns the original raw HTTP protocol header received by the Nginx server. +--- +--- By default, the request line and trailing `CR LF` terminator will also be included. For example, +--- +--- ```lua +--- +--- ngx.print(ngx.req.raw_header()) +--- ``` +--- +--- gives something like this: +--- +--- +--- GET /t HTTP/1.1 +--- Host: localhost +--- Connection: close +--- Foo: bar +--- +--- +--- +--- You can specify the optional +--- `no_request_line` argument as a `true` value to exclude the request line from the result. For example, +--- +--- ```lua +--- +--- ngx.print(ngx.req.raw_header(true)) +--- ``` +--- +--- outputs something like this: +--- +--- +--- Host: localhost +--- Connection: close +--- Foo: bar +--- +--- +--- +--- This method was first introduced in the `v0.7.17` release. +--- +--- This method does not work in HTTP/2 requests yet. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param no_request_line boolean +---@return string @str +function ngx.req.raw_header(no_request_line) end +function ngx.req.get_query_args() end +--- ------------------ +--- +--- **syntax:** *secs = ngx.req.start_time()* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua** +--- +--- Returns a floating-point number representing the timestamp (including milliseconds as the decimal part) when the current request was created. +--- +--- The following example emulates the `$request_time` variable value (provided by [ngx_http_log_module](http://nginx.org/en/docs/http/ngx_http_log_module.html)) in pure Lua: +--- +--- ```lua +--- +--- local request_time = ngx.now() - ngx.req.start_time() +--- ``` +--- +--- This function was first introduced in the `v0.7.7` release. +--- +--- See also [ngx.now](#ngxnow) and [ngx.update_time](#ngxupdate_time). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.req.start_time() end +--- ----------------- +--- +--- **syntax:** *ngx.req.init_body(buffer_size?)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Creates a new blank request body for the current request and inializes the buffer for later request body data writing via the [ngx.req.append_body](#ngxreqappend_body) and [ngx.req.finish_body](#ngxreqfinish_body) APIs. +--- +--- If the `buffer_size` argument is specified, then its value will be used for the size of the memory buffer for body writing with [ngx.req.append_body](#ngxreqappend_body). If the argument is omitted, then the value specified by the standard [client_body_buffer_size](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size) directive will be used instead. +--- +--- When the data can no longer be hold in the memory buffer for the request body, then the data will be flushed onto a temporary file just like the standard request body reader in the Nginx core. +--- +--- It is important to always call the [ngx.req.finish_body](#ngxreqfinish_body) after all the data has been appended onto the current request body. Also, when this function is used together with [ngx.req.socket](#ngxreqsocket), it is required to call [ngx.req.socket](#ngxreqsocket) *before* this function, or you will get the "request body already exists" error message. +--- +--- The usage of this function is often like this: +--- +--- ```lua +--- +--- ngx.req.init_body(128 * 1024) -- buffer is 128KB +--- for chunk in next_data_chunk() do +--- ngx.req.append_body(chunk) -- each chunk can be 4KB +--- end +--- ngx.req.finish_body() +--- ``` +--- +--- This function can be used with [ngx.req.append_body](#ngxreqappend_body), [ngx.req.finish_body](#ngxreqfinish_body), and [ngx.req.socket](#ngxreqsocket) to implement efficient input filters in pure Lua (in the context of [rewrite_by_lua*](#rewrite_by_lua) or [access_by_lua*](#access_by_lua)), which can be used with other Nginx content handler or upstream modules like [ngx_http_proxy_module](http://nginx.org/en/docs/http/ngx_http_proxy_module.html) and [ngx_http_fastcgi_module](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html). +--- +--- This function was first introduced in the `v0.5.11` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param buffer_size number +function ngx.req.init_body( buffer_size) end +--- --------------------- +--- +--- **syntax:** *ngx.req.set_body_file(file_name, auto_clean?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Set the current request's request body using the in-file data specified by the `file_name` argument. +--- +--- If the request body has not been read yet, call [ngx.req.read_body](#ngxreqread_body) first (or turn on [lua_need_request_body](#lua_need_request_body) to force this module to read the request body. This is not recommended however). Additionally, the request body must not have been previously discarded by [ngx.req.discard_body](#ngxreqdiscard_body). +--- +--- If the optional `auto_clean` argument is given a `true` value, then this file will be removed at request completion or the next time this function or [ngx.req.set_body_data](#ngxreqset_body_data) are called in the same request. The `auto_clean` is default to `false`. +--- +--- Please ensure that the file specified by the `file_name` argument exists and is readable by an Nginx worker process by setting its permission properly to avoid Lua exception errors. +--- +--- Whether the previous request body has been read into memory or buffered into a disk file, it will be freed or the disk file will be cleaned up immediately, respectively. +--- +--- This function was first introduced in the `v0.3.1rc18` release. +--- +--- See also [ngx.req.set_body_data](#ngxreqset_body_data). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param file_name string +---@param auto_clean boolean +function ngx.req.set_body_file(file_name, auto_clean) end +--- -------------------- +--- +--- **syntax:** *ngx.req.clear_header(header_name)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua** +--- +--- Clears the current request's request header named `header_name`. None of the current request's existing subrequests will be affected but subsequently initiated subrequests will inherit the change by default. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param header_name string +function ngx.req.clear_header(header_name) end +--- ------------------- +--- +--- **syntax:** *headers, err = ngx.req.get_headers(max_headers?, raw?)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua** +--- +--- Returns a Lua table holding all the current request headers. +--- +--- ```lua +--- +--- local h, err = ngx.req.get_headers() +--- +--- if err == "truncated" then +--- -- one can choose to ignore or reject the current request here +--- end +--- +--- for k, v in pairs(h) do +--- ... +--- end +--- ``` +--- +--- To read an individual header: +--- +--- ```lua +--- +--- ngx.say("Host: ", ngx.req.get_headers()["Host"]) +--- ``` +--- +--- Note that the [ngx.var.HEADER](#ngxvarvariable) API call, which uses core [$http_HEADER](http://nginx.org/en/docs/http/ngx_http_core_module.html#var_http_) variables, may be more preferable for reading individual request headers. +--- +--- For multiple instances of request headers such as: +--- +--- ```bash +--- +--- Foo: foo +--- Foo: bar +--- Foo: baz +--- ``` +--- +--- the value of `ngx.req.get_headers()["Foo"]` will be a Lua (array) table such as: +--- +--- ```lua +--- +--- {"foo", "bar", "baz"} +--- ``` +--- +--- Note that a maximum of 100 request headers are parsed by default (including those with the same name) and that additional request headers are silently discarded to guard against potential denial of service attacks. Since `v0.10.13`, when the limit is exceeded, it will return a second value which is the string `"truncated"`. +--- +--- However, the optional `max_headers` function argument can be used to override this limit: +--- +--- ```lua +--- +--- local headers, err = ngx.req.get_headers(10) +--- +--- if err == "truncated" then +--- -- one can choose to ignore or reject the current request here +--- end +--- ``` +--- +--- This argument can be set to zero to remove the limit and to process all request headers received: +--- +--- ```lua +--- +--- local headers, err = ngx.req.get_headers(0) +--- ``` +--- +--- Removing the `max_headers` cap is strongly discouraged. +--- +--- Since the `0.6.9` release, all the header names in the Lua table returned are converted to the pure lower-case form by default, unless the `raw` argument is set to `true` (default to `false`). +--- +--- Also, by default, an `__index` metamethod is added to the resulting Lua table and will normalize the keys to a pure lowercase form with all underscores converted to dashes in case of a lookup miss. For example, if a request header `My-Foo-Header` is present, then the following invocations will all pick up the value of this header correctly: +--- +--- ```lua +--- +--- ngx.say(headers.my_foo_header) +--- ngx.say(headers["My-Foo-Header"]) +--- ngx.say(headers["my-foo-header"]) +--- ``` +--- +--- The `__index` metamethod will not be added when the `raw` argument is set to `true`. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param max_headers number +---@param raw boolean +---@return table,string@headers, err +function ngx.req.get_headers(max_headers, raw) end +--- -------------------- +--- +--- **syntax:** *ngx.req.discard_body()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Explicitly discard the request body, i.e., read the data on the connection and throw it away immediately (without using the request body by any means). +--- +--- This function is an asynchronous call and returns immediately. +--- +--- If the request body has already been read, this function does nothing and returns immediately. +--- +--- This function was first introduced in the `v0.3.1rc17` release. +--- +--- See also [ngx.req.read_body](#ngxreqread_body). +--- +--- [Back to TOC](#nginx-api-for-lua) +function ngx.req.discard_body() end +--- ------------------ +--- +--- **syntax:** *ngx.req.set_header(header_name, header_value)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua** +--- +--- Set the current request's request header named `header_name` to value `header_value`, overriding any existing ones. +--- +--- By default, all the subrequests subsequently initiated by [ngx.location.capture](#ngxlocationcapture) and [ngx.location.capture_multi](#ngxlocationcapture_multi) will inherit the new header. +--- +--- Here is an example of setting the `Content-Type` header: +--- +--- ```lua +--- +--- ngx.req.set_header("Content-Type", "text/css") +--- ``` +--- +--- The `header_value` can take an array list of values, +--- for example, +--- +--- ```lua +--- +--- ngx.req.set_header("Foo", {"a", "abc"}) +--- ``` +--- +--- will produce two new request headers: +--- +--- ```bash +--- +--- Foo: a +--- Foo: abc +--- ``` +--- +--- and old `Foo` headers will be overridden if there is any. +--- +--- When the `header_value` argument is `nil`, the request header will be removed. So +--- +--- ```lua +--- +--- ngx.req.set_header("X-Foo", nil) +--- ``` +--- +--- is equivalent to +--- +--- ```lua +--- +--- ngx.req.clear_header("X-Foo") +--- ``` +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param header_name string +---@param header_value string | string[] +function ngx.req.set_header(header_name, header_value) end +--- --------------------- +--- +--- **syntax:** *data = ngx.req.get_body_data()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, log_by_lua** +--- +--- Retrieves in-memory request body data. It returns a Lua string rather than a Lua table holding all the parsed query arguments. Use the [ngx.req.get_post_args](#ngxreqget_post_args) function instead if a Lua table is required. +--- +--- This function returns `nil` if +--- +--- 1. the request body has not been read, +--- 1. the request body has been read into disk temporary files, +--- 1. or the request body has zero size. +--- +--- If the request body has not been read yet, call [ngx.req.read_body](#ngxreqread_body) first (or turn on [lua_need_request_body](#lua_need_request_body) to force this module to read the request body. This is not recommended however). +--- +--- If the request body has been read into disk files, try calling the [ngx.req.get_body_file](#ngxreqget_body_file) function instead. +--- +--- To force in-memory request bodies, try setting [client_body_buffer_size](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size) to the same size value in [client_max_body_size](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size). +--- +--- Note that calling this function instead of using `ngx.var.request_body` or `ngx.var.echo_request_body` is more efficient because it can save one dynamic memory allocation and one data copy. +--- +--- This function was first introduced in the `v0.3.1rc17` release. +--- +--- See also [ngx.req.get_body_file](#ngxreqget_body_file). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return any@data +function ngx.req.get_body_data() end +--- ----------------- +--- +--- **syntax:** *ngx.req.read_body()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Reads the client request body synchronously without blocking the Nginx event loop. +--- +--- ```lua +--- +--- ngx.req.read_body() +--- local args = ngx.req.get_post_args() +--- ``` +--- +--- If the request body is already read previously by turning on [lua_need_request_body](#lua_need_request_body) or by using other modules, then this function does not run and returns immediately. +--- +--- If the request body has already been explicitly discarded, either by the [ngx.req.discard_body](#ngxreqdiscard_body) function or other modules, this function does not run and returns immediately. +--- +--- In case of errors, such as connection errors while reading the data, this method will throw out a Lua exception *or* terminate the current request with a 500 status code immediately. +--- +--- The request body data read using this function can be retrieved later via [ngx.req.get_body_data](#ngxreqget_body_data) or, alternatively, the temporary file name for the body data cached to disk using [ngx.req.get_body_file](#ngxreqget_body_file). This depends on +--- +--- 1. whether the current request body is already larger than the [client_body_buffer_size](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size), +--- 1. and whether [client_body_in_file_only](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_in_file_only) has been switched on. +--- +--- In cases where current request may have a request body and the request body data is not required, The [ngx.req.discard_body](#ngxreqdiscard_body) function must be used to explicitly discard the request body to avoid breaking things under HTTP 1.1 keepalive or HTTP 1.1 pipelining. +--- +--- This function was first introduced in the `v0.3.1rc17` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +--- +function ngx.req.read_body() end +--- --------------------- +--- +--- **syntax:** *file_name = ngx.req.get_body_file()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Retrieves the file name for the in-file request body data. Returns `nil` if the request body has not been read or has been read into memory. +--- +--- The returned file is read only and is usually cleaned up by Nginx's memory pool. It should not be manually modified, renamed, or removed in Lua code. +--- +--- If the request body has not been read yet, call [ngx.req.read_body](#ngxreqread_body) first (or turn on [lua_need_request_body](#lua_need_request_body) to force this module to read the request body. This is not recommended however). +--- +--- If the request body has been read into memory, try calling the [ngx.req.get_body_data](#ngxreqget_body_data) function instead. +--- +--- To force in-file request bodies, try turning on [client_body_in_file_only](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_in_file_only). +--- +--- This function was first introduced in the `v0.3.1rc17` release. +--- +--- See also [ngx.req.get_body_data](#ngxreqget_body_data). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return string@file_name +function ngx.req.get_body_file() end +--- -------------------- +--- +--- **syntax:** *ngx.req.set_uri_args(args)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua** +--- +--- Rewrite the current request's URI query arguments by the `args` argument. The `args` argument can be either a Lua string, as in +--- +--- ```lua +--- +--- ngx.req.set_uri_args("a=3&b=hello%20world") +--- ``` +--- +--- or a Lua table holding the query arguments' key-value pairs, as in +--- +--- ```lua +--- +--- ngx.req.set_uri_args({ a = 3, b = "hello world" }) +--- ``` +--- +--- where in the latter case, this method will escape argument keys and values according to the URI escaping rule. +--- +--- Multi-value arguments are also supported: +--- +--- ```lua +--- +--- ngx.req.set_uri_args({ a = 3, b = {5, 6} }) +--- ``` +--- +--- which will result in a query string like `a=3&b=5&b=6`. +--- +--- This interface was first introduced in the `v0.3.1rc13` release. +--- +--- See also [ngx.req.set_uri](#ngxreqset_uri). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param args string | table<string,any> +function ngx.req.set_uri_args(args) end + + +---**syntax:** *secs = ngx.time()* +--- +---**context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +---Returns the elapsed seconds from the epoch for the current time stamp from the Nginx cached time (no syscall involved unlike Lua's date library). +--- +---Updates of the Nginx time cache can be forced by calling [ngx.update_time](#ngxupdate_time) first. +--- +---[Back to TOC](#nginx-api-for-lua) +--- +---@return number@secs +function ngx.time() end +ngx.re={} +--- ----------- +--- +--- **syntax:** *from, to, err = ngx.re.find(subject, regex, options?, ctx?, nth?)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Similar to [ngx.re.match](#ngxrematch) but only returns the beginning index (`from`) and end index (`to`) of the matched substring. The returned indexes are 1-based and can be fed directly into the [string.sub](https://www.lua.org/manual/5.1/manual.html#pdf-string.sub) API function to obtain the matched substring. +--- +--- In case of errors (like bad regexes or any PCRE runtime errors), this API function returns two `nil` values followed by a string describing the error. +--- +--- If no match is found, this function just returns a `nil` value. +--- +--- Below is an example: +--- +--- ```lua +--- +--- local s = "hello, 1234" +--- local from, to, err = ngx.re.find(s, "([0-9]+)", "jo") +--- if from then +--- ngx.say("from: ", from) +--- ngx.say("to: ", to) +--- ngx.say("matched: ", string.sub(s, from, to)) +--- else +--- if err then +--- ngx.say("error: ", err) +--- return +--- end +--- ngx.say("not matched!") +--- end +--- ``` +--- +--- This example produces the output +--- +--- from: 8 +--- to: 11 +--- matched: 1234 +--- +--- Because this API function does not create new Lua strings nor new Lua tables, it is much faster than [ngx.re.match](#ngxrematch). It should be used wherever possible. +--- +--- Since the `0.9.3` release, an optional 5th argument, `nth`, is supported to specify which (submatch) capture's indexes to return. When `nth` is 0 (which is the default), the indexes for the whole matched substring is returned; when `nth` is 1, then the 1st submatch capture's indexes are returned; when `nth` is 2, then the 2nd submatch capture is returned, and so on. When the specified submatch does not have a match, then two `nil` values will be returned. Below is an example for this: +--- +--- ```lua +--- +--- local str = "hello, 1234" +--- local from, to = ngx.re.find(str, "([0-9])([0-9]+)", "jo", nil, 2) +--- if from then +--- ngx.say("matched 2nd submatch: ", string.sub(str, from, to)) -- yields "234" +--- end +--- ``` +--- +--- This API function was first introduced in the `v0.9.2` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param subject string +---@param regex string +---@param options string@see ngx.re.match +---@param ctx table@see ngx.re.match +---@param nth number +---@return number,number,string@from, to, err +function ngx.re.find(subject, regex, options, ctx, nth) end +--- ------------- +--- +--- **syntax:** *iterator, err = ngx.re.gmatch(subject, regex, options?)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Similar to [ngx.re.match](#ngxrematch), but returns a Lua iterator instead, so as to let the user programmer iterate all the matches over the `<subject>` string argument with the PCRE `regex`. +--- +--- In case of errors, like seeing an ill-formed regular expression, `nil` and a string describing the error will be returned. +--- +--- Here is a small example to demonstrate its basic usage: +--- +--- ```lua +--- +--- local iterator, err = ngx.re.gmatch("hello, world!", "([a-z]+)", "i") +--- if not iterator then +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- +--- local m +--- m, err = iterator() -- m[0] == m[1] == "hello" +--- if err then +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- +--- m, err = iterator() -- m[0] == m[1] == "world" +--- if err then +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- +--- m, err = iterator() -- m == nil +--- if err then +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- ``` +--- +--- More often we just put it into a Lua loop: +--- +--- ```lua +--- +--- local it, err = ngx.re.gmatch("hello, world!", "([a-z]+)", "i") +--- if not it then +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- +--- while true do +--- local m, err = it() +--- if err then +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- +--- if not m then +--- -- no match found (any more) +--- break +--- end +--- +--- -- found a match +--- ngx.say(m[0]) +--- ngx.say(m[1]) +--- end +--- ``` +--- +--- The optional `options` argument takes exactly the same semantics as the [ngx.re.match](#ngxrematch) method. +--- +--- The current implementation requires that the iterator returned should only be used in a single request. That is, one should *not* assign it to a variable belonging to persistent namespace like a Lua package. +--- +--- This method requires the PCRE library enabled in Nginx ([Known Issue With Special Escaping Sequences](#special-escaping-sequences)). +--- +--- This feature was first introduced in the `v0.2.1rc12` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@alias re.gmatch.iterator fun():string,string +---@param subject string +---@param regex string@see ngx.re.match +---@param options string@see ngx.re.match +---@return re.gmatch.iterator,string@iterator,err +function ngx.re.gmatch(subject, regex, options) end + + +--- ------------ +--- +--- **syntax:** *captures, err = ngx.re.match(subject, regex, options?, ctx?, res_table?)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Matches the `subject` string using the Perl compatible regular expression `regex` with the optional `options`. +--- +--- Only the first occurrence of the match is returned, or `nil` if no match is found. In case of errors, like seeing a bad regular expression or exceeding the PCRE stack limit, `nil` and a string describing the error will be returned. +--- +--- When a match is found, a Lua table `captures` is returned, where `captures[0]` holds the whole substring being matched, and `captures[1]` holds the first parenthesized sub-pattern's capturing, `captures[2]` the second, and so on. +--- +--- ```lua +--- +--- local m, err = ngx.re.match("hello, 1234", "[0-9]+") +--- if m then +--- -- m[0] == "1234" +--- +--- else +--- if err then +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- +--- ngx.say("match not found") +--- end +--- ``` +--- +--- ```lua +--- +--- local m, err = ngx.re.match("hello, 1234", "([0-9])[0-9]+") +--- -- m[0] == "1234" +--- -- m[1] == "1" +--- ``` +--- +--- Named captures are also supported since the `v0.7.14` release +--- and are returned in the same Lua table as key-value pairs as the numbered captures. +--- +--- ```lua +--- +--- local m, err = ngx.re.match("hello, 1234", "([0-9])(?<remaining>[0-9]+)") +--- -- m[0] == "1234" +--- -- m[1] == "1" +--- -- m[2] == "234" +--- -- m["remaining"] == "234" +--- ``` +--- +--- Unmatched subpatterns will have `false` values in their `captures` table fields. +--- +--- ```lua +--- +--- local m, err = ngx.re.match("hello, world", "(world)|(hello)|(?<named>howdy)") +--- -- m[0] == "hello" +--- -- m[1] == false +--- -- m[2] == "hello" +--- -- m[3] == false +--- -- m["named"] == false +--- ``` +--- +--- Specify `options` to control how the match operation will be performed. The following option characters are supported: +--- +--- +--- a anchored mode (only match from the beginning) +--- +--- d enable the DFA mode (or the longest token match semantics). +--- this requires PCRE 6.0+ or else a Lua exception will be thrown. +--- first introduced in ngx_lua v0.3.1rc30. +--- +--- D enable duplicate named pattern support. This allows named +--- subpattern names to be repeated, returning the captures in +--- an array-like Lua table. for example, +--- local m = ngx.re.match("hello, world", +--- "(?<named>\w+), (?<named>\w+)", +--- "D") +--- -- m["named"] == {"hello", "world"} +--- this option was first introduced in the v0.7.14 release. +--- this option requires at least PCRE 8.12. +--- +--- i case insensitive mode (similar to Perl's /i modifier) +--- +--- j enable PCRE JIT compilation, this requires PCRE 8.21+ which +--- must be built with the --enable-jit option. for optimum performance, +--- this option should always be used together with the 'o' option. +--- first introduced in ngx_lua v0.3.1rc30. +--- +--- J enable the PCRE Javascript compatible mode. this option was +--- first introduced in the v0.7.14 release. this option requires +--- at least PCRE 8.12. +--- +--- m multi-line mode (similar to Perl's /m modifier) +--- +--- o compile-once mode (similar to Perl's /o modifier), +--- to enable the worker-process-level compiled-regex cache +--- +--- s single-line mode (similar to Perl's /s modifier) +--- +--- u UTF-8 mode. this requires PCRE to be built with +--- the --enable-utf8 option or else a Lua exception will be thrown. +--- +--- U similar to "u" but disables PCRE's UTF-8 validity check on +--- the subject string. first introduced in ngx_lua v0.8.1. +--- +--- x extended mode (similar to Perl's /x modifier) +--- +--- +--- These options can be combined: +--- +--- ```nginx +--- +--- local m, err = ngx.re.match("hello, world", "HEL LO", "ix") +--- -- m[0] == "hello" +--- ``` +--- +--- ```nginx +--- +--- local m, err = ngx.re.match("hello, 美好生活", "HELLO, (.{2})", "iu") +--- -- m[0] == "hello, 美好" +--- -- m[1] == "美好" +--- ``` +--- +--- The `o` option is useful for performance tuning, because the regex pattern in question will only be compiled once, cached in the worker-process level, and shared among all requests in the current Nginx worker process. The upper limit of the regex cache can be tuned via the [lua_regex_cache_max_entries](#lua_regex_cache_max_entries) directive. +--- +--- The optional fourth argument, `ctx`, can be a Lua table holding an optional `pos` field. When the `pos` field in the `ctx` table argument is specified, `ngx.re.match` will start matching from that offset (starting from 1). Regardless of the presence of the `pos` field in the `ctx` table, `ngx.re.match` will always set this `pos` field to the position *after* the substring matched by the whole pattern in case of a successful match. When match fails, the `ctx` table will be left intact. +--- +--- ```lua +--- +--- local ctx = {} +--- local m, err = ngx.re.match("1234, hello", "[0-9]+", "", ctx) +--- -- m[0] = "1234" +--- -- ctx.pos == 5 +--- ``` +--- +--- ```lua +--- +--- local ctx = { pos = 2 } +--- local m, err = ngx.re.match("1234, hello", "[0-9]+", "", ctx) +--- -- m[0] = "234" +--- -- ctx.pos == 5 +--- ``` +--- +--- The `ctx` table argument combined with the `a` regex modifier can be used to construct a lexer atop `ngx.re.match`. +--- +--- Note that, the `options` argument is not optional when the `ctx` argument is specified and that the empty Lua string (`""`) must be used as placeholder for `options` if no meaningful regex options are required. +--- +--- This method requires the PCRE library enabled in Nginx ([Known Issue With Special Escaping Sequences](#special-escaping-sequences)). +--- +--- To confirm that PCRE JIT is enabled, activate the Nginx debug log by adding the `--with-debug` option to Nginx or OpenResty's `./configure` script. Then, enable the "debug" error log level in `error_log` directive. The following message will be generated if PCRE JIT is enabled: +--- +--- +--- pcre JIT compiling result: 1 +--- +--- +--- Starting from the `0.9.4` release, this function also accepts a 5th argument, `res_table`, for letting the caller supply the Lua table used to hold all the capturing results. Starting from `0.9.6`, it is the caller's responsibility to ensure this table is empty. This is very useful for recycling Lua tables and saving GC and table allocation overhead. +--- +--- This feature was introduced in the `v0.2.1rc11` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param subject string +---@param regex string +---@param options string +---@param ctx table +---@param res_table table +---@return table<number,string>,err @captures, err +function ngx.re.match(subject, regex, options, ctx, res_table) end +--- ----------- +--- +--- **syntax:** *newstr, n, err = ngx.re.gsub(subject, regex, replace, options?)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Just like [ngx.re.sub](#ngxresub), but does global substitution. +--- +--- Here is some examples: +--- +--- ```lua +--- +--- local newstr, n, err = ngx.re.gsub("hello, world", "([a-z])[a-z]+", "[$0,$1]", "i") +--- if newstr then +--- -- newstr == "[hello,h], [world,w]" +--- -- n == 2 +--- else +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- ``` +--- +--- ```lua +--- +--- local func = function (m) +--- return "[" .. m[0] .. "," .. m[1] .. "]" +--- end +--- local newstr, n, err = ngx.re.gsub("hello, world", "([a-z])[a-z]+", func, "i") +--- -- newstr == "[hello,h], [world,w]" +--- -- n == 2 +--- ``` +--- +--- This method requires the PCRE library enabled in Nginx ([Known Issue With Special Escaping Sequences](#special-escaping-sequences)). +--- +--- This feature was first introduced in the `v0.2.1rc15` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param subject string +---@param regex string +---@param replace string +---@param options string +---@return string,number,string @newStr,n,err +function ngx.re.gsub(subject, regex, replace, options) end + + +--- ---------- +--- +--- **syntax:** *newstr, n, err = ngx.re.sub(subject, regex, replace, options?)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Substitutes the first match of the Perl compatible regular expression `regex` on the `subject` argument string with the string or function argument `replace`. The optional `options` argument has exactly the same meaning as in [ngx.re.match](#ngxrematch). +--- +--- This method returns the resulting new string as well as the number of successful substitutions. In case of failures, like syntax errors in the regular expressions or the `<replace>` string argument, it will return `nil` and a string describing the error. +--- +--- When the `replace` is a string, then it is treated as a special template for string replacement. For example, +--- +--- ```lua +--- +--- local newstr, n, err = ngx.re.sub("hello, 1234", "([0-9])[0-9]", "[$0][$1]") +--- if newstr then +--- -- newstr == "hello, [12][1]34" +--- -- n == 1 +--- else +--- ngx.log(ngx.ERR, "error: ", err) +--- return +--- end +--- ``` +--- +--- where `$0` referring to the whole substring matched by the pattern and `$1` referring to the first parenthesized capturing substring. +--- +--- Curly braces can also be used to disambiguate variable names from the background string literals: +--- +--- ```lua +--- +--- local newstr, n, err = ngx.re.sub("hello, 1234", "[0-9]", "${0}00") +--- -- newstr == "hello, 100234" +--- -- n == 1 +--- ``` +--- +--- Literal dollar sign characters (`$`) in the `replace` string argument can be escaped by another dollar sign, for instance, +--- +--- ```lua +--- +--- local newstr, n, err = ngx.re.sub("hello, 1234", "[0-9]", "$$") +--- -- newstr == "hello, $234" +--- -- n == 1 +--- ``` +--- +--- Do not use backlashes to escape dollar signs; it will not work as expected. +--- +--- When the `replace` argument is of type "function", then it will be invoked with the "match table" as the argument to generate the replace string literal for substitution. The "match table" fed into the `replace` function is exactly the same as the return value of [ngx.re.match](#ngxrematch). Here is an example: +--- +--- ```lua +--- +--- local func = function (m) +--- return "[" .. m[0] .. "][" .. m[1] .. "]" +--- end +--- local newstr, n, err = ngx.re.sub("hello, 1234", "( [0-9] ) [0-9]", func, "x") +--- -- newstr == "hello, [12][1]34" +--- -- n == 1 +--- ``` +--- +--- The dollar sign characters in the return value of the `replace` function argument are not special at all. +--- +--- This method requires the PCRE library enabled in Nginx ([Known Issue With Special Escaping Sequences](#special-escaping-sequences)). +--- +--- This feature was first introduced in the `v0.2.1rc13` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param subject string +---@param regex string +---@param replace string +---@param options string +---@return string,number,string @newStr,n,err +function ngx.re.sub(subject, regex, replace, options) end +--- --------- +--- +--- **syntax:** *str = ngx.today()* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns current date (in the format `yyyy-mm-dd`) from the Nginx cached time (no syscall involved unlike Lua's date library). +--- +--- This is the local time. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return string +function ngx.get_today() end +ngx.HTTP_BAD_GATEWAY=502 +ngx.HTTP_INTERNAL_SERVER_ERROR=500 +--- ----------------- +--- +--- **syntax:** *newstr = ngx.decode_base64(str)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Decodes the `str` argument as a base64 digest to the raw form. Returns `nil` if `str` is not well formed. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return string +function ngx.decode_base64(str) end +--- --------- +--- +--- **syntax:** *ngx.sleep(seconds)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Sleeps for the specified seconds without blocking. One can specify time resolution up to 0.001 seconds (i.e., one milliseconds). +--- +--- Behind the scene, this method makes use of the Nginx timers. +--- +--- Since the `0.7.20` release, The `0` time argument can also be specified. +--- +--- This method was introduced in the `0.5.0rc30` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param seconds number +function ngx.sleep(seconds) end +--- --------------- +--- +--- **syntax:** *ngx.update_time()* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Forcibly updates the Nginx current time cache. This call involves a syscall and thus has some overhead, so do not abuse it. +--- +--- This API was first introduced in `v0.3.1rc32`. +--- +--- [Back to TOC](#nginx-api-for-lua) +function ngx.update_time() end +--- **syntax:** *ok, err = ngx.on_abort(callback)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Registers a user Lua function as the callback which gets called automatically when the client closes the (downstream) connection prematurely. +--- +--- Returns `1` if the callback is registered successfully or returns `nil` and a string describing the error otherwise. +--- +--- All the [Nginx API for Lua](#nginx-api-for-lua) can be used in the callback function because the function is run in a special "light thread", just as those "light threads" created by [ngx.thread.spawn](#ngxthreadspawn). +--- +--- The callback function can decide what to do with the client abortion event all by itself. For example, it can simply ignore the event by doing nothing and the current Lua request handler will continue executing without interruptions. And the callback function can also decide to terminate everything by calling [ngx.exit](#ngxexit), for example, +--- +--- ```lua +--- +--- local function my_cleanup() +--- -- custom cleanup work goes here, like cancelling a pending DB transaction +--- +--- -- now abort all the "light threads" running in the current request handler +--- ngx.exit(499) +--- end +--- +--- local ok, err = ngx.on_abort(my_cleanup) +--- if not ok then +--- ngx.log(ngx.ERR, "failed to register the on_abort callback: ", err) +--- ngx.exit(500) +--- end +--- ``` +--- +--- When [lua_check_client_abort](#lua_check_client_abort) is set to `off` (which is the default), then this function call will always return the error message "lua_check_client_abort is off". +--- +--- According to the current implementation, this function can only be called once in a single request handler; subsequent calls will return the error message "duplicate call". +--- +--- This API was first introduced in the `v0.7.4` release. +--- +--- See also [lua_check_client_abort](#lua_check_client_abort). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param callback fun() +---@return boolean,string@ok,err +function ngx.on_abort(callback) end +function ngx.get_now() end +--- ------- +--- +--- **syntax:** *digest = ngx.md5(str)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns the hexadecimal representation of the MD5 digest of the `str` argument. +--- +--- For example, +--- +--- ```nginx +--- +--- location = /md5 { +--- content_by_lua_block { ngx.say(ngx.md5("hello")) } +--- } +--- ``` +--- +--- yields the output +--- +--- +--- 5d41402abc4b2a76b9719d911017c592 +--- +--- +--- See [ngx.md5_bin](#ngxmd5_bin) if the raw binary MD5 digest is required. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return string +function ngx.md5(str) end +ngx.ERR=4 +ngx.HTTP_PROPFIND=1024 +ngx.HTTP_DELETE=32 +--- -------- +--- +--- **syntax:** *ngx.exit(status)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- When `status >= 200` (i.e., `ngx.HTTP_OK` and above), it will interrupt the execution of the current request and return status code to Nginx. +--- +--- When `status == 0` (i.e., `ngx.OK`), it will only quit the current phase handler (or the content handler if the [content_by_lua*](#content_by_lua) directive is used) and continue to run later phases (if any) for the current request. +--- +--- The `status` argument can be `ngx.OK`, `ngx.ERROR`, `ngx.HTTP_NOT_FOUND`, +--- `ngx.HTTP_MOVED_TEMPORARILY`, or other [HTTP status constants](#http-status-constants). +--- +--- To return an error page with custom contents, use code snippets like this: +--- +--- ```lua +--- +--- ngx.status = ngx.HTTP_GONE +--- ngx.say("This is our own content") +--- -- to cause quit the whole request rather than the current phase handler +--- ngx.exit(ngx.HTTP_OK) +--- ``` +--- +--- The effect in action: +--- +--- ```bash +--- +--- $ curl -i http://localhost/test +--- HTTP/1.1 410 Gone +--- Server: nginx/1.0.6 +--- Date: Thu, 15 Sep 2011 00:51:48 GMT +--- Content-Type: text/plain +--- Transfer-Encoding: chunked +--- Connection: keep-alive +--- +--- This is our own content +--- ``` +--- +--- Number literals can be used directly as the argument, for instance, +--- +--- ```lua +--- +--- ngx.exit(501) +--- ``` +--- +--- Note that while this method accepts all [HTTP status constants](#http-status-constants) as input, it only accepts `ngx.OK` and `ngx.ERROR` of the [core constants](#core-constants). +--- +--- Also note that this method call terminates the processing of the current request and that it is recommended that a coding style that combines this method call with the `return` statement, i.e., `return ngx.exit(...)` be used to reinforce the fact that the request processing is being terminated. +--- +--- When being used in the contexts of [header_filter_by_lua*](#header_filter_by_lua), [balancer_by_lua*](#balancer_by_lua_block), and +--- [ssl_session_store_by_lua*](#ssl_session_store_by_lua_block), `ngx.exit()` is +--- an asynchronous operation and will return immediately. This behavior may change in future and it is recommended that users always use `return` in combination as suggested above. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param status number +function ngx.exit(status) end +ngx.HTTP_NOT_FOUND=404 +--- --------------- +--- +--- **syntax:** *str = ngx.cookie_time(sec)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns a formatted string can be used as the cookie expiration time. The parameter `sec` is the time stamp in seconds (like those returned from [ngx.time](#ngxtime)). +--- +--- ```nginx +--- +--- ngx.say(ngx.cookie_time(1290079655)) +--- -- yields "Thu, 18-Nov-10 11:27:35 GMT" +--- ``` +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param sec number +---@return str string +function ngx.cookie_time(sec) end +ngx.INFO=7 +function ngx.today() end +ngx.CRIT=3 +--- ------------ +--- +--- **syntax:** *ngx.redirect(uri, status?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Issue an `HTTP 301` or `302` redirection to `uri`. +--- +--- Notice: the `uri` should not contains `\r` or `\n`, otherwise, the characters after `\r` or `\n` will be truncated, including the `\r` or `\n` bytes themself. +--- +--- The `uri` argument will be truncated if it contains the +--- `\r` or `\n` characters. The truncated value will contain +--- all characters up to (and excluding) the first occurrence of `\r` or +--- `\n`. +--- +--- The optional `status` parameter specifies the HTTP status code to be used. The following status codes are supported right now: +--- +--- * `301` +--- * `302` (default) +--- * `303` +--- * `307` +--- * `308` +--- +--- It is `302` (`ngx.HTTP_MOVED_TEMPORARILY`) by default. +--- +--- Here is an example assuming the current server name is `localhost` and that it is listening on port 1984: +--- +--- ```lua +--- +--- return ngx.redirect("/foo") +--- ``` +--- +--- which is equivalent to +--- +--- ```lua +--- +--- return ngx.redirect("/foo", ngx.HTTP_MOVED_TEMPORARILY) +--- ``` +--- +--- Redirecting arbitrary external URLs is also supported, for example: +--- +--- ```lua +--- +--- return ngx.redirect("http://www.google.com") +--- ``` +--- +--- We can also use the numerical code directly as the second `status` argument: +--- +--- ```lua +--- +--- return ngx.redirect("/foo", 301) +--- ``` +--- +--- This method is similar to the [rewrite](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite) directive with the `redirect` modifier in the standard +--- [ngx_http_rewrite_module](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html), for example, this `nginx.conf` snippet +--- +--- ```nginx +--- +--- rewrite ^ /foo? redirect; # nginx config +--- ``` +--- +--- is equivalent to the following Lua code +--- +--- ```lua +--- +--- return ngx.redirect('/foo'); -- Lua code +--- ``` +--- +--- while +--- +--- ```nginx +--- +--- rewrite ^ /foo? permanent; # nginx config +--- ``` +--- +--- is equivalent to +--- +--- ```lua +--- +--- return ngx.redirect('/foo', ngx.HTTP_MOVED_PERMANENTLY) -- Lua code +--- ``` +--- +--- URI arguments can be specified as well, for example: +--- +--- ```lua +--- +--- return ngx.redirect('/foo?a=3&b=4') +--- ``` +--- +--- Note that this method call terminates the processing of the current request and that it *must* be called before [ngx.send_headers](#ngxsend_headers) or explicit response body +--- outputs by either [ngx.print](#ngxprint) or [ngx.say](#ngxsay). +--- +--- It is recommended that a coding style that combines this method call with the `return` statement, i.e., `return ngx.redirect(...)` be adopted when this method call is used in contexts other than [header_filter_by_lua*](#header_filter_by_lua) to reinforce the fact that the request processing is being terminated. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param uri string +---@param status number +function ngx.redirect(uri, status) end +--- --------------- +--- +--- **syntax:** *intval = ngx.crc32_short(str)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Calculates the CRC-32 (Cyclic Redundancy Code) digest for the `str` argument. +--- +--- This method performs better on relatively short `str` inputs (i.e., less than 30 ~ 60 bytes), as compared to [ngx.crc32_long](#ngxcrc32_long). The result is exactly the same as [ngx.crc32_long](#ngxcrc32_long). +--- +--- Behind the scene, it is just a thin wrapper around the `ngx_crc32_short` function defined in the Nginx core. +--- +--- This API was first introduced in the `v0.3.1rc8` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return number +function ngx.crc32_short(str) end +ngx.ALERT=2 +ngx.HTTP_SEE_OTHER=303 +ngx.HTTP_FORBIDDEN=403 +ngx.HTTP_MOVED_TEMPORARILY=302 +ngx.HTTP_PAYMENT_REQUIRED=402 +ngx.HTTP_GATEWAY_TIMEOUT=504 +--- ----------- +--- +--- **syntax:** *digest = ngx.md5_bin(str)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns the binary form of the MD5 digest of the `str` argument. +--- +--- See [ngx.md5](#ngxmd5) if the hexadecimal form of the MD5 digest is required. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return string +function ngx.md5_bin(str) end +ngx.DONE=-4 +ngx.HTTP_OK=200 +--- --------------- +--- +--- **syntax:** *str = ngx.encode_args(table)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua** +--- +--- Encode the Lua table to a query args string according to the URI encoded rules. +--- +--- For example, +--- +--- ```lua +--- +--- ngx.encode_args({foo = 3, ["b r"] = "hello world"}) +--- ``` +--- +--- yields +--- +--- +--- foo=3&b%20r=hello%20world +--- +--- +--- The table keys must be Lua strings. +--- +--- Multi-value query args are also supported. Just use a Lua table for the argument's value, for example: +--- +--- ```lua +--- +--- ngx.encode_args({baz = {32, "hello"}}) +--- ``` +--- +--- gives +--- +--- +--- baz=32&baz=hello +--- +--- +--- If the value table is empty and the effect is equivalent to the `nil` value. +--- +--- Boolean argument values are also supported, for instance, +--- +--- ```lua +--- +--- ngx.encode_args({a = true, b = 1}) +--- ``` +--- +--- yields +--- +--- +--- a&b=1 +--- +--- +--- If the argument value is `false`, then the effect is equivalent to the `nil` value. +--- +--- This method was first introduced in the `v0.3.1rc27` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param table table +---@return string +function ngx.encode_args(table) end +ngx.DEBUG=8 +ngx.HTTP_PARTIAL_CONTENT=206 +--- --------------- +--- +--- **syntax:** *table, err = ngx.decode_args(str, max_args?)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Decodes a URI encoded query-string into a Lua table. This is the inverse function of [ngx.encode_args](#ngxencode_args). +--- +--- The optional `max_args` argument can be used to specify the maximum number of arguments parsed from the `str` argument. By default, a maximum of 100 request arguments are parsed (including those with the same name) and that additional URI arguments are silently discarded to guard against potential denial of service attacks. Since `v0.10.13`, when the limit is exceeded, it will return a second value which is the string `"truncated"`. +--- +--- This argument can be set to zero to remove the limit and to process all request arguments received: +--- +--- ```lua +--- +--- local args = ngx.decode_args(str, 0) +--- ``` +--- +--- Removing the `max_args` cap is strongly discouraged. +--- +--- This method was introduced in the `v0.5.0rc29`. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@param max_args number +---@return table,string +function ngx.decode_args(str, max_args) end +--- ----------------- +--- +--- **syntax:** *newstr = ngx.encode_base64(str, no_padding?)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Encodes `str` to a base64 digest. +--- +--- Since the `0.9.16` release, an optional boolean-typed `no_padding` argument can be specified to control whether the base64 padding should be appended to the resulting digest (default to `false`, i.e., with padding enabled). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@param no_padding boolean +---@return string@newstr +function ngx.encode_base64(str, no_padding) end +ngx.HTTP_PUT=16 +ngx.socket={} +---@class udpsock +local udpsock={} +--- ------------------- +--- +--- **syntax:** *ok, err = udpsock:setpeername(host, port)* +--- +--- **syntax:** *ok, err = udpsock:setpeername("unix:/path/to/unix-domain.socket")* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Attempts to connect a UDP socket object to a remote server or to a datagram unix domain socket file. Because the datagram protocol is actually connection-less, this method does not really establish a "connection", but only just set the name of the remote peer for subsequent read/write operations. +--- +--- Both IP addresses and domain names can be specified as the `host` argument. In case of domain names, this method will use Nginx core's dynamic resolver to parse the domain name without blocking and it is required to configure the [resolver](http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver) directive in the `nginx.conf` file like this: +--- +--- ```nginx +--- +--- resolver 8.8.8.8; # use Google's public DNS nameserver +--- ``` +--- +--- If the nameserver returns multiple IP addresses for the host name, this method will pick up one randomly. +--- +--- In case of error, the method returns `nil` followed by a string describing the error. In case of success, the method returns `1`. +--- +--- Here is an example for connecting to a UDP (memcached) server: +--- +--- ```nginx +--- +--- location /test { +--- resolver 8.8.8.8; +--- +--- content_by_lua_block { +--- local sock = ngx.socket.udp() +--- local ok, err = sock:setpeername("my.memcached.server.domain", 11211) +--- if not ok then +--- ngx.say("failed to connect to memcached: ", err) +--- return +--- end +--- ngx.say("successfully connected to memcached!") +--- sock:close() +--- } +--- } +--- ``` +--- +--- Since the `v0.7.18` release, connecting to a datagram unix domain socket file is also possible on Linux: +--- +--- ```lua +--- +--- local sock = ngx.socket.udp() +--- local ok, err = sock:setpeername("unix:/tmp/some-datagram-service.sock") +--- if not ok then +--- ngx.say("failed to connect to the datagram unix domain socket: ", err) +--- return +--- end +--- ``` +--- +--- assuming the datagram service is listening on the unix domain socket file `/tmp/some-datagram-service.sock` and the client socket will use the "autobind" feature on Linux. +--- +--- Calling this method on an already connected socket object will cause the original connection to be closed first. +--- +--- This method was first introduced in the `v0.5.7` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param host string +---@param port number +---@return boolean,string@ok,err +function udpsock:setpeername(host, port) end + +--- ------------ +--- +--- **syntax:** *ok, err = udpsock:send(data)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Sends data on the current UDP or datagram unix domain socket object. +--- +--- In case of success, it returns `1`. Otherwise, it returns `nil` and a string describing the error. +--- +--- The input argument `data` can either be a Lua string or a (nested) Lua table holding string fragments. In case of table arguments, this method will copy all the string elements piece by piece to the underlying Nginx socket send buffers, which is usually optimal than doing string concatenation operations on the Lua land. +--- +--- This feature was first introduced in the `v0.5.7` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param data string | string[] +---@return boolean,string@ok,err +function udpsock:send(data) end + +--- --------------- +--- +--- **syntax:** *data, err = udpsock:receive(size?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Receives data from the UDP or datagram unix domain socket object with an optional receive buffer size argument, `size`. +--- +--- This method is a synchronous operation and is 100% nonblocking. +--- +--- In case of success, it returns the data received; in case of error, it returns `nil` with a string describing the error. +--- +--- If the `size` argument is specified, then this method will use this size as the receive buffer size. But when this size is greater than `8192`, then `8192` will be used instead. +--- +--- If no argument is specified, then the maximal buffer size, `8192` is assumed. +--- +--- Timeout for the reading operation is controlled by the [lua_socket_read_timeout](#lua_socket_read_timeout) config directive and the [settimeout](#udpsocksettimeout) method. And the latter takes priority. For example: +--- +--- ```lua +--- +--- sock:settimeout(1000) -- one second timeout +--- local data, err = sock:receive() +--- if not data then +--- ngx.say("failed to read a packet: ", err) +--- return +--- end +--- ngx.say("successfully read a packet: ", data) +--- ``` +--- +--- It is important here to call the [settimeout](#udpsocksettimeout) method *before* calling this method. +--- +--- This feature was first introduced in the `v0.5.7` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param size number@optional param +---@return string,string@data,err +function udpsock:receive(size) end + + +--- ------------- +--- +--- **syntax:** *ok, err = udpsock:close()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Closes the current UDP or datagram unix domain socket. It returns the `1` in case of success and returns `nil` with a string describing the error otherwise. +--- +--- Socket objects that have not invoked this method (and associated connections) will be closed when the socket object is released by the Lua GC (Garbage Collector) or the current client HTTP request finishes processing. +--- +--- This feature was first introduced in the `v0.5.7` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return boolean,string@ok,err +function udpsock:close() end + +--- ------------------ +--- +--- **syntax:** *udpsock:settimeout(time)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Set the timeout value in milliseconds for subsequent socket operations (like [receive](#udpsockreceive)). +--- +--- Settings done by this method takes priority over those config directives, like [lua_socket_read_timeout](#lua_socket_read_timeout). +--- +--- This feature was first introduced in the `v0.5.7` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param time number +function udpsock:settimeout(time) end + +--- -------------- +--- +--- **syntax:** *tcpsock = ngx.socket.tcp()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Creates and returns a TCP or stream-oriented unix domain socket object (also known as one type of the "cosocket" objects). The following methods are supported on this object: +--- +--- * [connect](#tcpsockconnect) +--- * [sslhandshake](#tcpsocksslhandshake) +--- * [send](#tcpsocksend) +--- * [receive](#tcpsockreceive) +--- * [close](#tcpsockclose) +--- * [settimeout](#tcpsocksettimeout) +--- * [settimeouts](#tcpsocksettimeouts) +--- * [setoption](#tcpsocksetoption) +--- * [receiveany](#tcpsockreceiveany) +--- * [receiveuntil](#tcpsockreceiveuntil) +--- * [setkeepalive](#tcpsocksetkeepalive) +--- * [getreusedtimes](#tcpsockgetreusedtimes) +--- +--- It is intended to be compatible with the TCP API of the [LuaSocket](http://w3.impa.br/~diego/software/luasocket/tcp.html) library but is 100% nonblocking out of the box. Also, we introduce some new APIs to provide more functionalities. +--- +--- The cosocket object created by this API function has exactly the same lifetime as the Lua handler creating it. So never pass the cosocket object to any other Lua handler (including ngx.timer callback functions) and never share the cosocket object between different Nginx requests. +--- +--- For every cosocket object's underlying connection, if you do not +--- explicitly close it (via [close](#tcpsockclose)) or put it back to the connection +--- pool (via [setkeepalive](#tcpsocksetkeepalive)), then it is automatically closed when one of +--- the following two events happens: +--- +--- * the current request handler completes, or +--- * the Lua cosocket object value gets collected by the Lua GC. +--- +--- Fatal errors in cosocket operations always automatically close the current +--- connection (note that, read timeout error is the only error that is +--- not fatal), and if you call [close](#tcpsockclose) on a closed connection, you will get +--- the "closed" error. +--- +--- Starting from the `0.9.9` release, the cosocket object here is full-duplex, that is, a reader "light thread" and a writer "light thread" can operate on a single cosocket object simultaneously (both "light threads" must belong to the same Lua handler though, see reasons above). But you cannot have two "light threads" both reading (or writing or connecting) the same cosocket, otherwise you might get an error like "socket busy reading" when calling the methods of the cosocket object. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- See also [ngx.socket.udp](#ngxsocketudp). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return tcpsock +function ngx.socket.tcp() end + +---@class tcpsock +local tcpsock={} + +--- --------------- +--- +--- **syntax:** *ok, err = tcpsock:connect(host, port, options_table?)* +--- +--- **syntax:** *ok, err = tcpsock:connect("unix:/path/to/unix-domain.socket", options_table?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Attempts to connect a TCP socket object to a remote server or to a stream unix domain socket file without blocking. +--- +--- Before actually resolving the host name and connecting to the remote backend, this method will always look up the connection pool for matched idle connections created by previous calls of this method (or the [ngx.socket.connect](#ngxsocketconnect) function). +--- +--- Both IP addresses and domain names can be specified as the `host` argument. In case of domain names, this method will use Nginx core's dynamic resolver to parse the domain name without blocking and it is required to configure the [resolver](http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver) directive in the `nginx.conf` file like this: +--- +--- ```nginx +--- +--- resolver 8.8.8.8; # use Google's public DNS nameserver +--- ``` +--- +--- If the nameserver returns multiple IP addresses for the host name, this method will pick up one randomly. +--- +--- In case of error, the method returns `nil` followed by a string describing the error. In case of success, the method returns `1`. +--- +--- Here is an example for connecting to a TCP server: +--- +--- ```nginx +--- +--- location /test { +--- resolver 8.8.8.8; +--- +--- content_by_lua_block { +--- local sock = ngx.socket.tcp() +--- local ok, err = sock:connect("www.google.com", 80) +--- if not ok then +--- ngx.say("failed to connect to google: ", err) +--- return +--- end +--- ngx.say("successfully connected to google!") +--- sock:close() +--- } +--- } +--- ``` +--- +--- Connecting to a Unix Domain Socket file is also possible: +--- +--- ```lua +--- +--- local sock = ngx.socket.tcp() +--- local ok, err = sock:connect("unix:/tmp/memcached.sock") +--- if not ok then +--- ngx.say("failed to connect to the memcached unix domain socket: ", err) +--- return +--- end +--- ``` +--- +--- assuming memcached (or something else) is listening on the unix domain socket file `/tmp/memcached.sock`. +--- +--- Timeout for the connecting operation is controlled by the [lua_socket_connect_timeout](#lua_socket_connect_timeout) config directive and the [settimeout](#tcpsocksettimeout) method. And the latter takes priority. For example: +--- +--- ```lua +--- +--- local sock = ngx.socket.tcp() +--- sock:settimeout(1000) -- one second timeout +--- local ok, err = sock:connect(host, port) +--- ``` +--- +--- It is important here to call the [settimeout](#tcpsocksettimeout) method *before* calling this method. +--- +--- Calling this method on an already connected socket object will cause the original connection to be closed first. +--- +--- An optional Lua table can be specified as the last argument to this method to specify various connect options: +--- +--- * `pool` +--- specify a custom name for the connection pool being used. If omitted, then the connection pool name will be generated from the string template `"<host>:<port>"` or `"<unix-socket-path>"`. +--- +--- * `pool_size` +--- specify the size of the connection pool. If omitted and no +--- `backlog` option was provided, no pool will be created. If omitted +--- but `backlog` was provided, the pool will be created with a default +--- size equal to the value of the [lua_socket_pool_size](#lua_socket_pool_size) +--- directive. +--- The connection pool holds up to `pool_size` alive connections +--- ready to be reused by subsequent calls to [connect](#tcpsockconnect), but +--- note that there is no upper limit to the total number of opened connections +--- outside of the pool. If you need to restrict the total number of opened +--- connections, specify the `backlog` option. +--- When the connection pool would exceed its size limit, the least recently used +--- (kept-alive) connection already in the pool will be closed to make room for +--- the current connection. +--- Note that the cosocket connection pool is per Nginx worker process rather +--- than per Nginx server instance, so the size limit specified here also applies +--- to every single Nginx worker process. Also note that the size of the connection +--- pool cannot be changed once it has been created. +--- This option was first introduced in the `v0.10.14` release. +--- +--- * `backlog` +--- if specified, this module will limit the total number of opened connections +--- for this pool. No more connections than `pool_size` can be opened +--- for this pool at any time. If the connection pool is full, subsequent +--- connect operations will be queued into a queue equal to this option's +--- value (the "backlog" queue). +--- If the number of queued connect operations is equal to `backlog`, +--- subsequent connect operations will fail and return `nil` plus the +--- error string `"too many waiting connect operations"`. +--- The queued connect operations will be resumed once the number of connections +--- in the pool is less than `pool_size`. +--- The queued connect operation will abort once they have been queued for more +--- than `connect_timeout`, controlled by +--- [settimeouts](#tcpsocksettimeouts), and will return `nil` plus +--- the error string `"timeout"`. +--- This option was first introduced in the `v0.10.14` release. +--- +--- The support for the options table argument was first introduced in the `v0.5.7` release. +--- +--- This method was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param host string +---@param port number +---@param options_table table +---@return boolean,string @ok,err +function tcpsock:connect(host, port, options_table) end + + +--- -------------------- +--- +--- **syntax:** *session, err = tcpsock:sslhandshake(reused_session?, server_name?, ssl_verify?, send_status_req?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Does SSL/TLS handshake on the currently established connection. +--- +--- The optional `reused_session` argument can take a former SSL +--- session userdata returned by a previous `sslhandshake` +--- call for exactly the same target. For short-lived connections, reusing SSL +--- sessions can usually speed up the handshake by one order by magnitude but it +--- is not so useful if the connection pool is enabled. This argument defaults to +--- `nil`. If this argument takes the boolean `false` value, no SSL session +--- userdata would return by this call and only a Lua boolean will be returned as +--- the first return value; otherwise the current SSL session will +--- always be returned as the first argument in case of successes. +--- +--- The optional `server_name` argument is used to specify the server +--- name for the new TLS extension Server Name Indication (SNI). Use of SNI can +--- make different servers share the same IP address on the server side. Also, +--- when SSL verification is enabled, this `server_name` argument is +--- also used to validate the server name specified in the server certificate sent from +--- the remote. +--- +--- The optional `ssl_verify` argument takes a Lua boolean value to +--- control whether to perform SSL verification. When set to `true`, the server +--- certificate will be verified according to the CA certificates specified by +--- the [lua_ssl_trusted_certificate](#lua_ssl_trusted_certificate) directive. +--- You may also need to adjust the [lua_ssl_verify_depth](#lua_ssl_verify_depth) +--- directive to control how deep we should follow along the certificate chain. +--- Also, when the `ssl_verify` argument is true and the +--- `server_name` argument is also specified, the latter will be used +--- to validate the server name in the server certificate. +--- +--- The optional `send_status_req` argument takes a boolean that controls whether to send +--- the OCSP status request in the SSL handshake request (which is for requesting OCSP stapling). +--- +--- For connections that have already done SSL/TLS handshake, this method returns +--- immediately. +--- +--- This method was first introduced in the `v0.9.11` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param reused_session boolean@ +---@param server_name string@ +---@param ssl_verify boolean@ +---@param send_status_req boolean +---@return ngx.ssl.session,string@session, err +function tcpsock:sslhandshake(reused_session, server_name, ssl_verify, send_status_req) end + + +--- ------------ +--- +--- **syntax:** *bytes, err = tcpsock:send(data)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Sends data without blocking on the current TCP or Unix Domain Socket connection. +--- +--- This method is a synchronous operation that will not return until *all* the data has been flushed into the system socket send buffer or an error occurs. +--- +--- In case of success, it returns the total number of bytes that have been sent. Otherwise, it returns `nil` and a string describing the error. +--- +--- The input argument `data` can either be a Lua string or a (nested) Lua table holding string fragments. In case of table arguments, this method will copy all the string elements piece by piece to the underlying Nginx socket send buffers, which is usually optimal than doing string concatenation operations on the Lua land. +--- +--- Timeout for the sending operation is controlled by the [lua_socket_send_timeout](#lua_socket_send_timeout) config directive and the [settimeout](#tcpsocksettimeout) method. And the latter takes priority. For example: +--- +--- ```lua +--- +--- sock:settimeout(1000) -- one second timeout +--- local bytes, err = sock:send(request) +--- ``` +--- +--- It is important here to call the [settimeout](#tcpsocksettimeout) method *before* calling this method. +--- +--- In case of any connection errors, this method always automatically closes the current connection. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param data string| string[] +---@return string,string@bytes,err +function tcpsock:send(data) end + + +--- --------------- +--- +--- **syntax:** *data, err, partial = tcpsock:receive(size)* +--- +--- **syntax:** *data, err, partial = tcpsock:receive(pattern?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Receives data from the connected socket according to the reading pattern or size. +--- +--- This method is a synchronous operation just like the [send](#tcpsocksend) method and is 100% nonblocking. +--- +--- In case of success, it returns the data received; in case of error, it returns `nil` with a string describing the error and the partial data received so far. +--- +--- If a number-like argument is specified (including strings that look like numbers), then it is interpreted as a size. This method will not return until it reads exactly this size of data or an error occurs. +--- +--- If a non-number-like string argument is specified, then it is interpreted as a "pattern". The following patterns are supported: +--- +--- * `'*a'`: reads from the socket until the connection is closed. No end-of-line translation is performed; +--- * `'*l'`: reads a line of text from the socket. The line is terminated by a `Line Feed` (LF) character (ASCII 10), optionally preceded by a `Carriage Return` (CR) character (ASCII 13). The CR and LF characters are not included in the returned line. In fact, all CR characters are ignored by the pattern. +--- +--- If no argument is specified, then it is assumed to be the pattern `'*l'`, that is, the line reading pattern. +--- +--- Timeout for the reading operation is controlled by the [lua_socket_read_timeout](#lua_socket_read_timeout) config directive and the [settimeout](#tcpsocksettimeout) method. And the latter takes priority. For example: +--- +--- ```lua +--- +--- sock:settimeout(1000) -- one second timeout +--- local line, err, partial = sock:receive() +--- if not line then +--- ngx.say("failed to read a line: ", err) +--- return +--- end +--- ngx.say("successfully read a line: ", line) +--- ``` +--- +--- It is important here to call the [settimeout](#tcpsocksettimeout) method *before* calling this method. +--- +--- Since the `v0.8.8` release, this method no longer automatically closes the current connection when the read timeout error happens. For other connection errors, this method always automatically closes the connection. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@overload fun(pattern:string):string,string,any +---@param size number +---@return string,string,any @ data, err, partial +function tcpsock:receive(size) end + +--- ------------------ +--- +--- **syntax:** *data, err = tcpsock:receiveany(max)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Returns any data received by the connected socket, at most `max` bytes. +--- +--- This method is a synchronous operation just like the [send](#tcpsocksend) method and is 100% nonblocking. +--- +--- In case of success, it returns the data received; in case of error, it returns `nil` with a string describing the error. +--- +--- If the received data is more than this size, this method will return with exactly this size of data. +--- The remaining data in the underlying receive buffer could be returned in the next reading operation. +--- +--- Timeout for the reading operation is controlled by the [lua_socket_read_timeout](#lua_socket_read_timeout) config directive and the [settimeouts](#tcpsocksettimeouts) method. And the latter takes priority. For example: +--- +--- ```lua +--- +--- sock:settimeouts(1000, 1000, 1000) -- one second timeout for connect/read/write +--- local data, err = sock:receiveany(10 * 1024) -- read any data, at most 10K +--- if not data then +--- ngx.say("failed to read any data: ", err) +--- return +--- end +--- ngx.say("successfully read: ", data) +--- ``` +--- +--- This method doesn't automatically close the current connection when the read timeout error occurs. For other connection errors, this method always automatically closes the connection. +--- +--- This feature was first introduced in the `v0.10.14` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param max string +---@return string,string@data,err +function tcpsock:receiveany(max) end + + +--- -------------------- +--- +--- **syntax:** *iterator = tcpsock:receiveuntil(pattern, options?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- This method returns an iterator Lua function that can be called to read the data stream until it sees the specified pattern or an error occurs. +--- +--- Here is an example for using this method to read a data stream with the boundary sequence `--abcedhb`: +--- +--- ```lua +--- +--- local reader = sock:receiveuntil("\r\n--abcedhb") +--- local data, err, partial = reader() +--- if not data then +--- ngx.say("failed to read the data stream: ", err) +--- end +--- ngx.say("read the data stream: ", data) +--- ``` +--- +--- When called without any argument, the iterator function returns the received data right *before* the specified pattern string in the incoming data stream. So for the example above, if the incoming data stream is `'hello, world! -agentzh\r\n--abcedhb blah blah'`, then the string `'hello, world! -agentzh'` will be returned. +--- +--- In case of error, the iterator function will return `nil` along with a string describing the error and the partial data bytes that have been read so far. +--- +--- The iterator function can be called multiple times and can be mixed safely with other cosocket method calls or other iterator function calls. +--- +--- The iterator function behaves differently (i.e., like a real iterator) when it is called with a `size` argument. That is, it will read that `size` of data on each invocation and will return `nil` at the last invocation (either sees the boundary pattern or meets an error). For the last successful invocation of the iterator function, the `err` return value will be `nil` too. The iterator function will be reset after the last successful invocation that returns `nil` data and `nil` error. Consider the following example: +--- +--- ```lua +--- +--- local reader = sock:receiveuntil("\r\n--abcedhb") +--- +--- while true do +--- local data, err, partial = reader(4) +--- if not data then +--- if err then +--- ngx.say("failed to read the data stream: ", err) +--- break +--- end +--- +--- ngx.say("read done") +--- break +--- end +--- ngx.say("read chunk: [", data, "]") +--- end +--- ``` +--- +--- Then for the incoming data stream `'hello, world! -agentzh\r\n--abcedhb blah blah'`, we shall get the following output from the sample code above: +--- +--- +--- read chunk: [hell] +--- read chunk: [o, w] +--- read chunk: [orld] +--- read chunk: [! -a] +--- read chunk: [gent] +--- read chunk: [zh] +--- read done +--- +--- +--- Note that, the actual data returned *might* be a little longer than the size limit specified by the `size` argument when the boundary pattern has ambiguity for streaming parsing. Near the boundary of the data stream, the data string actually returned could also be shorter than the size limit. +--- +--- Timeout for the iterator function's reading operation is controlled by the [lua_socket_read_timeout](#lua_socket_read_timeout) config directive and the [settimeout](#tcpsocksettimeout) method. And the latter takes priority. For example: +--- +--- ```lua +--- +--- local readline = sock:receiveuntil("\r\n") +--- +--- sock:settimeout(1000) -- one second timeout +--- line, err, partial = readline() +--- if not line then +--- ngx.say("failed to read a line: ", err) +--- return +--- end +--- ngx.say("successfully read a line: ", line) +--- ``` +--- +--- It is important here to call the [settimeout](#tcpsocksettimeout) method *before* calling the iterator function (note that the `receiveuntil` call is irrelevant here). +--- +--- As from the `v0.5.1` release, this method also takes an optional `options` table argument to control the behavior. The following options are supported: +--- +--- * `inclusive` +--- +--- The `inclusive` takes a boolean value to control whether to include the pattern string in the returned data string. Default to `false`. For example, +--- +--- ```lua +--- +--- local reader = tcpsock:receiveuntil("_END_", { inclusive = true }) +--- local data = reader() +--- ngx.say(data) +--- ``` +--- +--- Then for the input data stream `"hello world _END_ blah blah blah"`, then the example above will output `hello world _END_`, including the pattern string `_END_` itself. +--- +--- Since the `v0.8.8` release, this method no longer automatically closes the current connection when the read timeout error happens. For other connection errors, this method always automatically closes the connection. +--- +--- This method was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@alias ngx.socket.tcpsock.iterator fun(size:number):string,string,any +---@param pattern string +---@param options table +---@return ngx.socket.tcpsock.iterator +function tcpsock:receiveuntil(pattern, options) end + + +--- ------------- +--- +--- **syntax:** *ok, err = tcpsock:close()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Closes the current TCP or stream unix domain socket. It returns the `1` in case of success and returns `nil` with a string describing the error otherwise. +--- +--- Note that there is no need to call this method on socket objects that have invoked the [setkeepalive](#tcpsocksetkeepalive) method because the socket object is already closed (and the current connection is saved into the built-in connection pool). +--- +--- Socket objects that have not invoked this method (and associated connections) will be closed when the socket object is released by the Lua GC (Garbage Collector) or the current client HTTP request finishes processing. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return boolean,string @ok,err +function tcpsock:close() end + + +--- ------------------ +--- +--- **syntax:** *tcpsock:settimeout(time)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Set the timeout value in milliseconds for subsequent socket operations ([connect](#tcpsockconnect), [receive](#tcpsockreceive), and iterators returned from [receiveuntil](#tcpsockreceiveuntil)). +--- +--- Settings done by this method take priority over those specified via config directives (i.e. [lua_socket_connect_timeout](#lua_socket_connect_timeout), [lua_socket_send_timeout](#lua_socket_send_timeout), and [lua_socket_read_timeout](#lua_socket_read_timeout)). +--- +--- Note that this method does *not* affect the [lua_socket_keepalive_timeout](#lua_socket_keepalive_timeout) setting; the `timeout` argument to the [setkeepalive](#tcpsocksetkeepalive) method should be used for this purpose instead. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param time number +function tcpsock:settimeout(time) end + + +--- ------------------- +--- +--- **syntax:** *tcpsock:settimeouts(connect_timeout, send_timeout, read_timeout)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Respectively sets the connect, send, and read timeout thresholds (in milliseconds) for subsequent socket +--- operations ([connect](#tcpsockconnect), [send](#tcpsocksend), [receive](#tcpsockreceive), and iterators returned from [receiveuntil](#tcpsockreceiveuntil)). +--- +--- Settings done by this method take priority over those specified via config directives (i.e. [lua_socket_connect_timeout](#lua_socket_connect_timeout), [lua_socket_send_timeout](#lua_socket_send_timeout), and [lua_socket_read_timeout](#lua_socket_read_timeout)). +--- +--- It is recommended to use [settimeouts](#tcpsocksettimeouts) instead of [settimeout](#tcpsocksettimeout). +--- +--- Note that this method does *not* affect the [lua_socket_keepalive_timeout](#lua_socket_keepalive_timeout) setting; the `timeout` argument to the [setkeepalive](#tcpsocksetkeepalive) method should be used for this purpose instead. +--- +--- This feature was first introduced in the `v0.10.7` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param connect_timeout number +---@param send_timeout number +---@param read_timeout number +function tcpsock:settimeouts(connect_timeout, send_timeout, read_timeout) end + + +--- ----------------- +--- +--- **syntax:** *tcpsock:setoption(option, value?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- This function is added for [LuaSocket](http://w3.impa.br/~diego/software/luasocket/tcp.html) API compatibility and does nothing for now. Its functionality will be implemented in future. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param option any +---@param value any +function tcpsock:setoption(option,value) end + +--- -------------------- +--- +--- **syntax:** *ok, err = tcpsock:setkeepalive(timeout?, size?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Puts the current socket's connection immediately into the cosocket built-in connection pool and keep it alive until other [connect](#tcpsockconnect) method calls request it or the associated maximal idle timeout is expired. +--- +--- The first optional argument, `timeout`, can be used to specify the maximal idle timeout (in milliseconds) for the current connection. If omitted, the default setting in the [lua_socket_keepalive_timeout](#lua_socket_keepalive_timeout) config directive will be used. If the `0` value is given, then the timeout interval is unlimited. +--- +--- The second optional argument `size` is considered deprecated since +--- the `v0.10.14` release of this module, in favor of the +--- `pool_size` option of the [connect](#tcpsockconnect) method. +--- Since the `v0.10.14` release, this option will only take effect if +--- the call to [connect](#tcpsockconnect) did not already create a connection +--- pool. +--- When this option takes effect (no connection pool was previously created by +--- [connect](#tcpsockconnect)), it will specify the size of the connection pool, +--- and create it. +--- If omitted (and no pool was previously created), the default size is the value +--- of the [lua_socket_pool_size](#lua_socket_pool_size) directive. +--- The connection pool holds up to `size` alive connections ready to be +--- reused by subsequent calls to [connect](#tcpsockconnect), but note that there +--- is no upper limit to the total number of opened connections outside of the +--- pool. +--- When the connection pool would exceed its size limit, the least recently used +--- (kept-alive) connection already in the pool will be closed to make room for +--- the current connection. +--- Note that the cosocket connection pool is per Nginx worker process rather +--- than per Nginx server instance, so the size limit specified here also applies +--- to every single Nginx worker process. Also note that the size of the connection +--- pool cannot be changed once it has been created. +--- If you need to restrict the total number of opened connections, specify both +--- the `pool_size` and `backlog` option in the call to +--- [connect](#tcpsockconnect). +--- +--- In case of success, this method returns `1`; otherwise, it returns `nil` and a string describing the error. +--- +--- When the system receive buffer for the current connection has unread data, then this method will return the "connection in dubious state" error message (as the second return value) because the previous session has unread data left behind for the next session and the connection is not safe to be reused. +--- +--- This method also makes the current cosocket object enter the "closed" state, so there is no need to manually call the [close](#tcpsockclose) method on it afterwards. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param timeout number +---@param size number +---@return boolean,string @ok,err +function tcpsock:setkeepalive(timeout, size) end + + +--- ---------------------- +--- +--- **syntax:** *count, err = tcpsock:getreusedtimes()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- This method returns the (successfully) reused times for the current connection. In case of error, it returns `nil` and a string describing the error. +--- +--- If the current connection does not come from the built-in connection pool, then this method always returns `0`, that is, the connection has never been reused (yet). If the connection comes from the connection pool, then the return value is always non-zero. So this method can also be used to determine if the current connection comes from the pool. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number,string@count,err +function tcpsock:getreusedtimes() end +--- ------------------ +--- +--- **syntax:** *tcpsock, err = ngx.socket.connect(host, port)* +--- +--- **syntax:** *tcpsock, err = ngx.socket.connect("unix:/path/to/unix-domain.socket")* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.** +--- +--- This function is a shortcut for combining [ngx.socket.tcp()](#ngxsockettcp) and the [connect()](#tcpsockconnect) method call in a single operation. It is actually implemented like this: +--- +--- ```lua +--- +--- local sock = ngx.socket.tcp() +--- local ok, err = sock:connect(...) +--- if not ok then +--- return nil, err +--- end +--- return sock +--- ``` +--- +--- There is no way to use the [settimeout](#tcpsocksettimeout) method to specify connecting timeout for this method and the [lua_socket_connect_timeout](#lua_socket_connect_timeout) directive must be set at configure time instead. +--- +--- This feature was first introduced in the `v0.5.0rc1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param host string +---@param port number +---@return tcpsock,string @tcpsock,err +function ngx.socket.connect(host,port) end +--- -------------- +--- +--- **syntax:** *udpsock = ngx.socket.udp()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua** +--- +--- Creates and returns a UDP or datagram-oriented unix domain socket object (also known as one type of the "cosocket" objects). The following methods are supported on this object: +--- +--- * [setpeername](#udpsocksetpeername) +--- * [send](#udpsocksend) +--- * [receive](#udpsockreceive) +--- * [close](#udpsockclose) +--- * [settimeout](#udpsocksettimeout) +--- +--- It is intended to be compatible with the UDP API of the [LuaSocket](http://w3.impa.br/~diego/software/luasocket/udp.html) library but is 100% nonblocking out of the box. +--- +--- This feature was first introduced in the `v0.5.7` release. +--- +--- See also [ngx.socket.tcp](#ngxsockettcp). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return udpsock +function ngx.socket.udp() end +--- ----------------- +--- +--- Just an alias to [ngx.socket.tcp](#ngxsockettcp). If the stream-typed cosocket may also connect to a unix domain +--- socket, then this API name is preferred. +--- +--- This API function was first added to the `v0.10.1` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +--- +function ngx.socket.stream() end +ngx.DECLINED=-5 +--- -------------- +--- +--- **syntax:** *newstr = ngx.escape_uri(str)* +--- +--- **context:** *init_by_lua*, init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Escape `str` as a URI component. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return string +function ngx.escape_uri(str) end +ngx.HTTP_NOT_MODIFIED=304 +ngx.arg={} +--- ------------------- +--- +--- **syntax:** *sec = ngx.parse_http_time(str)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Parse the http time string (as returned by [ngx.http_time](#ngxhttp_time)) into seconds. Returns the seconds or `nil` if the input string is in bad forms. +--- +--- ```nginx +--- +--- local time = ngx.parse_http_time("Thu, 18 Nov 2010 11:27:35 GMT") +--- if time == nil then +--- ... +--- end +--- ``` +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param str string +---@return sec number +function ngx.parse_http_time(str) end +--- ------------- +--- +--- **syntax:** *str = ngx.http_time(sec)* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns a formated string can be used as the http header time (for example, being used in `Last-Modified` header). The parameter `sec` is the time stamp in seconds (like those returned from [ngx.time](#ngxtime)). +--- +--- ```nginx +--- +--- ngx.say(ngx.http_time(1290079655)) +--- -- yields "Thu, 18 Nov 2010 11:27:35 GMT" +--- ``` +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param sec number +---@return string +function ngx.http_time(sec) end +ngx.HTTP_CREATED=201 +function ngx.throw_error() end +ngx.HTTP_MKCOL=64 +ngx.ERROR=-1 +--- -------- +--- +--- **syntax:** *ngx.exec(uri, args?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Does an internal redirect to `uri` with `args` and is similar to the [echo_exec](http://github.com/openresty/echo-nginx-module#echo_exec) directive of the [echo-nginx-module](http://github.com/openresty/echo-nginx-module). +--- +--- ```lua +--- +--- ngx.exec('/some-location'); +--- ngx.exec('/some-location', 'a=3&b=5&c=6'); +--- ngx.exec('/some-location?a=3&b=5', 'c=6'); +--- ``` +--- +--- The optional second `args` can be used to specify extra URI query arguments, for example: +--- +--- ```lua +--- +--- ngx.exec("/foo", "a=3&b=hello%20world") +--- ``` +--- +--- Alternatively, a Lua table can be passed for the `args` argument for ngx_lua to carry out URI escaping and string concatenation. +--- +--- ```lua +--- +--- ngx.exec("/foo", { a = 3, b = "hello world" }) +--- ``` +--- +--- The result is exactly the same as the previous example. +--- +--- The format for the Lua table passed as the `args` argument is identical to the format used in the [ngx.encode_args](#ngxencode_args) method. +--- +--- Named locations are also supported but the second `args` argument will be ignored if present and the querystring for the new target is inherited from the referring location (if any). +--- +--- `GET /foo/file.php?a=hello` will return "hello" and not "goodbye" in the example below +--- +--- ```nginx +--- +--- location /foo { +--- content_by_lua_block { +--- ngx.exec("@bar", "a=goodbye"); +--- } +--- } +--- +--- location @bar { +--- content_by_lua_block { +--- local args = ngx.req.get_uri_args() +--- for key, val in pairs(args) do +--- if key == "a" then +--- ngx.say(val) +--- end +--- end +--- } +--- } +--- ``` +--- +--- Note that the `ngx.exec` method is different from [ngx.redirect](#ngxredirect) in that +--- it is purely an internal redirect and that no new external HTTP traffic is involved. +--- +--- Also note that this method call terminates the processing of the current request and that it *must* be called before [ngx.send_headers](#ngxsend_headers) or explicit response body +--- outputs by either [ngx.print](#ngxprint) or [ngx.say](#ngxsay). +--- +--- It is recommended that a coding style that combines this method call with the `return` statement, i.e., `return ngx.exec(...)` be adopted when this method call is used in contexts other than [header_filter_by_lua*](#header_filter_by_lua) to reinforce the fact that the request processing is being terminated. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param uri string +---@param args string| table<string,any> +function ngx.exec(uri, args) end +--- ------------- +--- +--- **syntax:** *str = ngx.localtime()* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns the current time stamp (in the format `yyyy-mm-dd hh:mm:ss`) of the Nginx cached time (no syscall involved unlike Lua's [os.date](https://www.lua.org/manual/5.1/manual.html#pdf-os.date) function). +--- +--- This is the local time. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return string +function ngx.utctime() end +ngx.HTTP_UPGRADE_REQUIRED=426 +ngx.HTTP_POST=8 +ngx.HTTP_GONE=410 +--- ------------- +--- +--- **syntax:** *str = ngx.get_phase()* +--- +--- **context:** *init_by_lua*, init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Retrieves the current running phase name. Possible return values are +--- +--- * `init` +--- for the context of [init_by_lua*](#init_by_lua). +--- * `init_worker` +--- for the context of [init_worker_by_lua*](#init_worker_by_lua). +--- * `ssl_cert` +--- for the context of [ssl_certificate_by_lua*](#ssl_certificate_by_lua_block). +--- * `ssl_session_fetch` +--- for the context of [ssl_session_fetch_by_lua*](#ssl_session_fetch_by_lua_block). +--- * `ssl_session_store` +--- for the context of [ssl_session_store_by_lua*](#ssl_session_store_by_lua_block). +--- * `set` +--- for the context of [set_by_lua*](#set_by_lua). +--- * `rewrite` +--- for the context of [rewrite_by_lua*](#rewrite_by_lua). +--- * `balancer` +--- for the context of [balancer_by_lua*](#balancer_by_lua_block). +--- * `access` +--- for the context of [access_by_lua*](#access_by_lua). +--- * `content` +--- for the context of [content_by_lua*](#content_by_lua). +--- * `header_filter` +--- for the context of [header_filter_by_lua*](#header_filter_by_lua). +--- * `body_filter` +--- for the context of [body_filter_by_lua*](#body_filter_by_lua). +--- * `log` +--- for the context of [log_by_lua*](#log_by_lua). +--- * `timer` +--- for the context of user callback functions for [ngx.timer.*](#ngxtimerat). +--- +--- This API was first introduced in the `v0.5.10` release. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return string +function ngx.get_phase() end +ngx.location={} +--- -------------------------- +--- +--- **syntax:** *res1, res2, ... = ngx.location.capture_multi({ {uri, options?}, {uri, options?}, ... })* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Just like [ngx.location.capture](#ngxlocationcapture), but supports multiple subrequests running in parallel. +--- +--- This function issues several parallel subrequests specified by the input table and returns their results in the same order. For example, +--- +--- ```lua +--- +--- res1, res2, res3 = ngx.location.capture_multi{ +--- { "/foo", { args = "a=3&b=4" } }, +--- { "/bar" }, +--- { "/baz", { method = ngx.HTTP_POST, body = "hello" } }, +--- } +--- +--- if res1.status == ngx.HTTP_OK then +--- ... +--- end +--- +--- if res2.body == "BLAH" then +--- ... +--- end +--- ``` +--- +--- This function will not return until all the subrequests terminate. +--- The total latency is the longest latency of the individual subrequests rather than the sum. +--- +--- Lua tables can be used for both requests and responses when the number of subrequests to be issued is not known in advance: +--- +--- ```lua +--- +--- -- construct the requests table +--- local reqs = {} +--- table.insert(reqs, { "/mysql" }) +--- table.insert(reqs, { "/postgres" }) +--- table.insert(reqs, { "/redis" }) +--- table.insert(reqs, { "/memcached" }) +--- +--- -- issue all the requests at once and wait until they all return +--- local resps = { ngx.location.capture_multi(reqs) } +--- +--- -- loop over the responses table +--- for i, resp in ipairs(resps) do +--- -- process the response table "resp" +--- end +--- ``` +--- +--- The [ngx.location.capture](#ngxlocationcapture) function is just a special form +--- of this function. Logically speaking, the [ngx.location.capture](#ngxlocationcapture) can be implemented like this +--- +--- ```lua +--- +--- ngx.location.capture = +--- function (uri, args) +--- return ngx.location.capture_multi({ {uri, args} }) +--- end +--- ``` +--- +--- Please also refer to restrictions on capturing locations configured by [subrequest directives of other modules](#locations-configured-by-subrequest-directives-of-other-modules). +--- +--- [Back to TOC](#nginx-api-for-lua) +---see doc +function ngx.location.capture_multi(...) end + + + +--- ---------- +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua** +--- +--- Read and write the current request's response status. This should be called +--- before sending out the response headers. +--- +--- ```lua +--- +--- ngx.status = ngx.HTTP_CREATED +--- status = ngx.status +--- ``` +--- +--- Setting `ngx.status` after the response header is sent out has no effect but leaving an error message in your Nginx's error log file: +--- +--- +--- attempt to set ngx.status after sending out response headers +--- +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number +function ngx.status() end +--- ----------------- +--- +--- **syntax:** *ngx.header.HEADER = VALUE* +--- +--- **syntax:** *value = ngx.header.HEADER* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua** +--- +--- Set, add to, or clear the current request's `HEADER` response header that is to be sent. +--- +--- Underscores (`_`) in the header names will be replaced by hyphens (`-`) by default. This transformation can be turned off via the [lua_transform_underscores_in_response_headers](#lua_transform_underscores_in_response_headers) directive. +--- +--- The header names are matched case-insensitively. +--- +--- ```lua +--- +--- -- equivalent to ngx.header["Content-Type"] = 'text/plain' +--- ngx.header.content_type = 'text/plain'; +--- +--- ngx.header["X-My-Header"] = 'blah blah'; +--- ``` +--- +--- Multi-value headers can be set this way: +--- +--- ```lua +--- +--- ngx.header['Set-Cookie'] = {'a=32; path=/', 'b=4; path=/'} +--- ``` +--- +--- will yield +--- +--- ```bash +--- +--- Set-Cookie: a=32; path=/ +--- Set-Cookie: b=4; path=/ +--- ``` +--- +--- in the response headers. +--- +--- Only Lua tables are accepted (Only the last element in the table will take effect for standard headers such as `Content-Type` that only accept a single value). +--- +--- ```lua +--- +--- ngx.header.content_type = {'a', 'b'} +--- ``` +--- +--- is equivalent to +--- +--- ```lua +--- +--- ngx.header.content_type = 'b' +--- ``` +--- +--- Setting a slot to `nil` effectively removes it from the response headers: +--- +--- ```lua +--- +--- ngx.header["X-My-Header"] = nil; +--- ``` +--- +--- The same applies to assigning an empty table: +--- +--- ```lua +--- +--- ngx.header["X-My-Header"] = {}; +--- ``` +--- +--- Setting `ngx.header.HEADER` after sending out response headers (either explicitly with [ngx.send_headers](#ngxsend_headers) or implicitly with [ngx.print](#ngxprint) and similar) will log an error message. +--- +--- Reading `ngx.header.HEADER` will return the value of the response header named `HEADER`. +--- +--- Underscores (`_`) in the header names will also be replaced by dashes (`-`) and the header names will be matched case-insensitively. If the response header is not present at all, `nil` will be returned. +--- +--- This is particularly useful in the context of [header_filter_by_lua*](#header_filter_by_lua), for example, +--- +--- ```nginx +--- +--- location /test { +--- set $footer ''; +--- +--- proxy_pass http://some-backend; +--- +--- header_filter_by_lua_block { +--- if ngx.header["X-My-Header"] == "blah" then +--- ngx.var.footer = "some value" +--- end +--- } +--- +--- echo_after_body $footer; +--- } +--- ``` +--- +--- For multi-value headers, all of the values of header will be collected in order and returned as a Lua table. For example, response headers +--- +--- +--- Foo: bar +--- Foo: baz +--- +--- +--- will result in +--- +--- ```lua +--- +--- {"bar", "baz"} +--- ``` +--- +--- to be returned when reading `ngx.header.Foo`. +--- +--- Note that `ngx.header` is not a normal Lua table and as such, it is not possible to iterate through it using the Lua `ipairs` function. +--- +--- Note: `HEADER` and `VALUE` will be truncated if they +--- contain the `\r` or `\n` characters. The truncated values +--- will contain all characters up to (and excluding) the first occurrence of +--- `\r` or `\n`. +--- +--- For reading *request* headers, use the [ngx.req.get_headers](#ngxreqget_headers) function instead. +--- +--- [Back to TOC](#nginx-api-for-lua) +--- +ngx.header={} + + +--- -------------------- +--- +--- **syntax:** *res = ngx.location.capture(uri, options?)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Issues a synchronous but still non-blocking *Nginx Subrequest* using `uri`. +--- +--- Nginx's subrequests provide a powerful way to make non-blocking internal requests to other locations configured with disk file directory or *any* other Nginx C modules like `ngx_proxy`, `ngx_fastcgi`, `ngx_memc`, +--- `ngx_postgres`, `ngx_drizzle`, and even ngx_lua itself and etc etc etc. +--- +--- Also note that subrequests just mimic the HTTP interface but there is *no* extra HTTP/TCP traffic *nor* IPC involved. Everything works internally, efficiently, on the C level. +--- +--- Subrequests are completely different from HTTP 301/302 redirection (via [ngx.redirect](#ngxredirect)) and internal redirection (via [ngx.exec](#ngxexec)). +--- +--- You should always read the request body (by either calling [ngx.req.read_body](#ngxreqread_body) or configuring [lua_need_request_body](#lua_need_request_body) on) before initiating a subrequest. +--- +--- This API function (as well as [ngx.location.capture_multi](#ngxlocationcapture_multi)) always buffers the whole response body of the subrequest in memory. Thus, you should use [cosockets](#ngxsockettcp) +--- and streaming processing instead if you have to handle large subrequest responses. +--- +--- Here is a basic example: +--- +--- ```lua +--- +--- res = ngx.location.capture(uri) +--- ``` +--- +--- Returns a Lua table with 4 slots: `res.status`, `res.header`, `res.body`, and `res.truncated`. +--- +--- `res.status` holds the response status code for the subrequest response. +--- +--- `res.header` holds all the response headers of the +--- subrequest and it is a normal Lua table. For multi-value response headers, +--- the value is a Lua (array) table that holds all the values in the order that +--- they appear. For instance, if the subrequest response headers contain the following +--- lines: +--- +--- ```bash +--- +--- Set-Cookie: a=3 +--- Set-Cookie: foo=bar +--- Set-Cookie: baz=blah +--- ``` +--- +--- Then `res.header["Set-Cookie"]` will be evaluated to the table value +--- `{"a=3", "foo=bar", "baz=blah"}`. +--- +--- `res.body` holds the subrequest's response body data, which might be truncated. You always need to check the `res.truncated` boolean flag to see if `res.body` contains truncated data. The data truncation here can only be caused by those unrecoverable errors in your subrequests like the cases that the remote end aborts the connection prematurely in the middle of the response body data stream or a read timeout happens when your subrequest is receiving the response body data from the remote. +--- +--- URI query strings can be concatenated to URI itself, for instance, +--- +--- ```lua +--- +--- res = ngx.location.capture('/foo/bar?a=3&b=4') +--- ``` +--- +--- Named locations like `@foo` are not allowed due to a limitation in +--- the Nginx core. Use normal locations combined with the `internal` directive to +--- prepare internal-only locations. +--- +--- An optional option table can be fed as the second +--- argument, which supports the options: +--- +--- * `method` +--- specify the subrequest's request method, which only accepts constants like `ngx.HTTP_POST`. +--- * `body` +--- specify the subrequest's request body (string value only). +--- * `args` +--- specify the subrequest's URI query arguments (both string value and Lua tables are accepted) +--- * `ctx` +--- specify a Lua table to be the [ngx.ctx](#ngxctx) table for the subrequest. It can be the current request's [ngx.ctx](#ngxctx) table, which effectively makes the parent and its subrequest to share exactly the same context table. This option was first introduced in the `v0.3.1rc25` release. +--- * `vars` +--- take a Lua table which holds the values to set the specified Nginx variables in the subrequest as this option's value. This option was first introduced in the `v0.3.1rc31` release. +--- * `copy_all_vars` +--- specify whether to copy over all the Nginx variable values of the current request to the subrequest in question. modifications of the Nginx variables in the subrequest will not affect the current (parent) request. This option was first introduced in the `v0.3.1rc31` release. +--- * `share_all_vars` +--- specify whether to share all the Nginx variables of the subrequest with the current (parent) request. modifications of the Nginx variables in the subrequest will affect the current (parent) request. Enabling this option may lead to hard-to-debug issues due to bad side-effects and is considered bad and harmful. Only enable this option when you completely know what you are doing. +--- * `always_forward_body` +--- when set to true, the current (parent) request's request body will always be forwarded to the subrequest being created if the `body` option is not specified. The request body read by either [ngx.req.read_body()](#ngxreqread_body) or [lua_need_request_body on](#lua_need_request_body) will be directly forwarded to the subrequest without copying the whole request body data when creating the subrequest (no matter the request body data is buffered in memory buffers or temporary files). By default, this option is `false` and when the `body` option is not specified, the request body of the current (parent) request is only forwarded when the subrequest takes the `PUT` or `POST` request method. +--- +--- Issuing a POST subrequest, for example, can be done as follows +--- +--- ```lua +--- +--- res = ngx.location.capture( +--- '/foo/bar', +--- { method = ngx.HTTP_POST, body = 'hello, world' } +--- ) +--- ``` +--- +--- See HTTP method constants methods other than POST. +--- The `method` option is `ngx.HTTP_GET` by default. +--- +--- The `args` option can specify extra URI arguments, for instance, +--- +--- ```lua +--- +--- ngx.location.capture('/foo?a=1', +--- { args = { b = 3, c = ':' } } +--- ) +--- ``` +--- +--- is equivalent to +--- +--- ```lua +--- +--- ngx.location.capture('/foo?a=1&b=3&c=%3a') +--- ``` +--- +--- that is, this method will escape argument keys and values according to URI rules and +--- concatenate them together into a complete query string. The format for the Lua table passed as the `args` argument is identical to the format used in the [ngx.encode_args](#ngxencode_args) method. +--- +--- The `args` option can also take plain query strings: +--- +--- ```lua +--- +--- ngx.location.capture('/foo?a=1', +--- { args = 'b=3&c=%3a' } +--- ) +--- ``` +--- +--- This is functionally identical to the previous examples. +--- +--- The `share_all_vars` option controls whether to share Nginx variables among the current request and its subrequests. +--- If this option is set to `true`, then the current request and associated subrequests will share the same Nginx variable scope. Hence, changes to Nginx variables made by a subrequest will affect the current request. +--- +--- Care should be taken in using this option as variable scope sharing can have unexpected side effects. The `args`, `vars`, or `copy_all_vars` options are generally preferable instead. +--- +--- This option is set to `false` by default +--- +--- ```nginx +--- +--- location /other { +--- set $dog "$dog world"; +--- echo "$uri dog: $dog"; +--- } +--- +--- location /lua { +--- set $dog 'hello'; +--- content_by_lua_block { +--- res = ngx.location.capture("/other", +--- { share_all_vars = true }); +--- +--- ngx.print(res.body) +--- ngx.say(ngx.var.uri, ": ", ngx.var.dog) +--- } +--- } +--- ``` +--- +--- Accessing location `/lua` gives +--- +--- +--- /other dog: hello world +--- /lua: hello world +--- +--- +--- The `copy_all_vars` option provides a copy of the parent request's Nginx variables to subrequests when such subrequests are issued. Changes made to these variables by such subrequests will not affect the parent request or any other subrequests sharing the parent request's variables. +--- +--- ```nginx +--- +--- location /other { +--- set $dog "$dog world"; +--- echo "$uri dog: $dog"; +--- } +--- +--- location /lua { +--- set $dog 'hello'; +--- content_by_lua_block { +--- res = ngx.location.capture("/other", +--- { copy_all_vars = true }); +--- +--- ngx.print(res.body) +--- ngx.say(ngx.var.uri, ": ", ngx.var.dog) +--- } +--- } +--- ``` +--- +--- Request `GET /lua` will give the output +--- +--- +--- /other dog: hello world +--- /lua: hello +--- +--- +--- Note that if both `share_all_vars` and `copy_all_vars` are set to true, then `share_all_vars` takes precedence. +--- +--- In addition to the two settings above, it is possible to specify +--- values for variables in the subrequest using the `vars` option. These +--- variables are set after the sharing or copying of variables has been +--- evaluated, and provides a more efficient method of passing specific +--- values to a subrequest over encoding them as URL arguments and +--- unescaping them in the Nginx config file. +--- +--- ```nginx +--- +--- location /other { +--- content_by_lua_block { +--- ngx.say("dog = ", ngx.var.dog) +--- ngx.say("cat = ", ngx.var.cat) +--- } +--- } +--- +--- location /lua { +--- set $dog ''; +--- set $cat ''; +--- content_by_lua_block { +--- res = ngx.location.capture("/other", +--- { vars = { dog = "hello", cat = 32 }}); +--- +--- ngx.print(res.body) +--- } +--- } +--- ``` +--- +--- Accessing `/lua` will yield the output +--- +--- +--- dog = hello +--- cat = 32 +--- +--- +--- The `ctx` option can be used to specify a custom Lua table to serve as the [ngx.ctx](#ngxctx) table for the subrequest. +--- +--- ```nginx +--- +--- location /sub { +--- content_by_lua_block { +--- ngx.ctx.foo = "bar"; +--- } +--- } +--- location /lua { +--- content_by_lua_block { +--- local ctx = {} +--- res = ngx.location.capture("/sub", { ctx = ctx }) +--- +--- ngx.say(ctx.foo); +--- ngx.say(ngx.ctx.foo); +--- } +--- } +--- ``` +--- +--- Then request `GET /lua` gives +--- +--- +--- bar +--- nil +--- +--- +--- It is also possible to use this `ctx` option to share the same [ngx.ctx](#ngxctx) table between the current (parent) request and the subrequest: +--- +--- ```nginx +--- +--- location /sub { +--- content_by_lua_block { +--- ngx.ctx.foo = "bar"; +--- } +--- } +--- location /lua { +--- content_by_lua_block { +--- res = ngx.location.capture("/sub", { ctx = ngx.ctx }) +--- ngx.say(ngx.ctx.foo); +--- } +--- } +--- ``` +--- +--- Request `GET /lua` yields the output +--- +--- +--- bar +--- +--- +--- Note that subrequests issued by [ngx.location.capture](#ngxlocationcapture) inherit all the +--- request headers of the current request by default and that this may have unexpected side effects on the +--- subrequest responses. For example, when using the standard `ngx_proxy` module to serve +--- subrequests, an "Accept-Encoding: gzip" header in the main request may result +--- in gzipped responses that cannot be handled properly in Lua code. Original request headers should be ignored by setting +--- [proxy_pass_request_headers](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass_request_headers) to `off` in subrequest locations. +--- +--- When the `body` option is not specified and the `always_forward_body` option is false (the default value), the `POST` and `PUT` subrequests will inherit the request bodies of the parent request (if any). +--- +--- There is a hard-coded upper limit on the number of concurrent subrequests possible for every main request. In older versions of Nginx, the limit was `50` concurrent subrequests and in more recent versions, Nginx `1.1.x` onwards, this was increased to `200` concurrent subrequests. When this limit is exceeded, the following error message is added to the `error.log` file: +--- +--- +--- [error] 13983#0: *1 subrequests cycle while processing "/uri" +--- +--- +--- The limit can be manually modified if required by editing the definition of the `NGX_HTTP_MAX_SUBREQUESTS` macro in the `nginx/src/http/ngx_http_request.h` file in the Nginx source tree. +--- +--- Please also refer to restrictions on capturing locations configured by [subrequest directives of other modules](#locations-configured-by-subrequest-directives-of-other-modules). +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param uri string +---@param options string | table<string,string> +---@return any +function ngx.location.capture(uri, options) end + + +--- ------- +--- +--- **syntax:** *secs = ngx.now()* +--- +--- **context:** *init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns a floating-point number for the elapsed time in seconds (including milliseconds as the decimal part) from the epoch for the current time stamp from the Nginx cached time (no syscall involved unlike Lua's date library). +--- +--- You can forcibly update the Nginx time cache by calling [ngx.update_time](#ngxupdate_time) first. +--- +--- This API was first introduced in `v0.3.1rc32`. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return number@secs +function ngx.now() end +function ngx.localtime() end +function ngx.get_now_ts() end +--- ------- +--- +--- **syntax:** *ok, err = ngx.eof()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Explicitly specify the end of the response output stream. In the case of HTTP 1.1 chunked encoded output, it will just trigger the Nginx core to send out the "last chunk". +--- +--- When you disable the HTTP 1.1 keep-alive feature for your downstream connections, you can rely on well written HTTP clients to close the connection actively for you when you call this method. This trick can be used do back-ground jobs without letting the HTTP clients to wait on the connection, as in the following example: +--- +--- ```nginx +--- +--- location = /async { +--- keepalive_timeout 0; +--- content_by_lua_block { +--- ngx.say("got the task!") +--- ngx.eof() -- well written HTTP clients will close the connection at this point +--- -- access MySQL, PostgreSQL, Redis, Memcached, and etc here... +--- } +--- } +--- ``` +--- +--- But if you create subrequests to access other locations configured by Nginx upstream modules, then you should configure those upstream modules to ignore client connection abortions if they are not by default. For example, by default the standard [ngx_http_proxy_module](http://nginx.org/en/docs/http/ngx_http_proxy_module.html) will terminate both the subrequest and the main request as soon as the client closes the connection, so it is important to turn on the [proxy_ignore_client_abort](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_ignore_client_abort) directive in your location block configured by [ngx_http_proxy_module](http://nginx.org/en/docs/http/ngx_http_proxy_module.html): +--- +--- ```nginx +--- +--- proxy_ignore_client_abort on; +--- ``` +--- +--- A better way to do background jobs is to use the [ngx.timer.at](#ngxtimerat) API. +--- +--- Since `v0.8.3` this function returns `1` on success, or returns `nil` and a string describing the error otherwise. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return boolean,string@ok,err +function ngx.eof() end +ngx.NOTICE=6 +ngx.HTTP_UNLOCK=8192 +--- --------- +--- +--- **syntax:** *ok, err = ngx.print(...)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Emits arguments concatenated to the HTTP client (as response body). If response headers have not been sent, this function will send headers out first and then output body data. +--- +--- Since `v0.8.3` this function returns `1` on success, or returns `nil` and a string describing the error otherwise. +--- +--- Lua `nil` values will output `"nil"` strings and Lua boolean values will output `"true"` and `"false"` literal strings respectively. +--- +--- Nested arrays of strings are permitted and the elements in the arrays will be sent one by one: +--- +--- ```lua +--- +--- local table = { +--- "hello, ", +--- {"world: ", true, " or ", false, +--- {": ", nil}} +--- } +--- ngx.print(table) +--- ``` +--- +--- will yield the output +--- +--- ```bash +--- +--- hello, world: true or false: nil +--- ``` +--- +--- Non-array table arguments will cause a Lua exception to be thrown. +--- +--- The `ngx.null` constant will yield the `"null"` string output. +--- +--- This is an asynchronous call and will return immediately without waiting for all the data to be written into the system send buffer. To run in synchronous mode, call `ngx.flush(true)` after calling `ngx.print`. This can be particularly useful for streaming output. See [ngx.flush](#ngxflush) for more details. +--- +--- Please note that both `ngx.print` and [ngx.say](#ngxsay) will always invoke the whole Nginx output body filter chain, which is an expensive operation. So be careful when calling either of these two in a tight loop; buffer the data yourself in Lua and save the calls. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@vararg string +---@return boolean,string@ok,err +function ngx.print(...) end +ngx.HTTP_HEAD=4 +ngx.HTTP_COPY=128 +ngx.HTTP_ILLEGAL=451 +ngx.HTTP_CONTINUE=100 +ngx.STDERR=0 +ngx.HTTP_BAD_REQUEST=400 +ngx.HTTP_NOT_ACCEPTABLE=406 +ngx.HTTP_MOVED_PERMANENTLY=301 +--- ------- +--- +--- **syntax:** *ngx.log(log_level, ...)* +--- +--- **context:** *init_by_lua*, init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Log arguments concatenated to error.log with the given logging level. +--- +--- Lua `nil` arguments are accepted and result in literal `"nil"` string while Lua booleans result in literal `"true"` or `"false"` string outputs. And the `ngx.null` constant will yield the `"null"` string output. +--- +--- The `log_level` argument can take constants like `ngx.ERR` and `ngx.WARN`. Check out [Nginx log level constants](#nginx-log-level-constants) for details. +--- +--- There is a hard coded `2048` byte limitation on error message lengths in the Nginx core. This limit includes trailing newlines and leading time stamps. If the message size exceeds this limit, Nginx will truncate the message text accordingly. This limit can be manually modified by editing the `NGX_MAX_ERROR_STR` macro definition in the `src/core/ngx_log.h` file in the Nginx source tree. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param log_level number +---@vararg string +function ngx.log(log_level,...) end +--- ----------------- +--- +--- **syntax:** *quoted_value = ngx.quote_sql_str(raw_value)* +--- +--- **context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua** +--- +--- Returns a quoted SQL string literal according to the MySQL quoting rules. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@param raw_value string +---@return string +function ngx.quote_sql_str(raw_value) end +--- ------- +--- +--- **syntax:** *ok, err = ngx.say(...)* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Just as [ngx.print](#ngxprint) but also emit a trailing newline. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@vararg string +function ngx.say(...) end +ngx.EMERG=1 +ngx.null={} +ngx.HTTP_METHOD_NOT_IMPLEMENTED=501 +--- ---------------- +--- +--- **syntax:** *ok, err = ngx.send_headers()* +--- +--- **context:** *rewrite_by_lua*, access_by_lua*, content_by_lua** +--- +--- Explicitly send out the response headers. +--- +--- Since `v0.8.3` this function returns `1` on success, or returns `nil` and a string describing the error otherwise. +--- +--- Note that there is normally no need to manually send out response headers as ngx_lua will automatically send headers out +--- before content is output with [ngx.say](#ngxsay) or [ngx.print](#ngxprint) or when [content_by_lua*](#content_by_lua) exits normally. +--- +--- [Back to TOC](#nginx-api-for-lua) +---@return boolean,string@ok,err +function ngx.send_headers() end +ngx.HTTP_MOVE=256 +ngx.OK=0 +ngx.HTTP_CLOSE=444 +ngx.HTTP_SERVICE_UNAVAILABLE=503 +ngx.AGAIN=-2 +ngx.HTTP_TOO_MANY_REQUESTS=429 +ngx.HTTP_TRACE=32768 +ngx.HTTP_VERSION_NOT_SUPPORTED=505 +ngx.HTTP_TEMPORARY_REDIRECT=307 +ngx.HTTP_REQUEST_TIMEOUT=408 +ngx.HTTP_PROPPATCH=2048 +return ngx
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.ocsp.lua b/meta/3rd/OpenResty/ngx.ocsp.lua new file mode 100644 index 00000000..5a965d66 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.ocsp.lua @@ -0,0 +1,7 @@ +ngx_ocsp={} +function ngx_ocsp.get_ocsp_responder_from_der_chain(certs, maxlen) end +function ngx_ocsp.validate_ocsp_response(resp, chain, max_errmsg_len) end +function ngx_ocsp.create_ocsp_request(certs, maxlen) end +function ngx_ocsp.set_ocsp_status_resp(ocsp_resp) end +ngx_ocsp.version="0.1.17" +return ngx_ocsp
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.pipe.lua b/meta/3rd/OpenResty/ngx.pipe.lua new file mode 100644 index 00000000..4d6c7667 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.pipe.lua @@ -0,0 +1,5 @@ +ngx_pipe={} +ngx_pipe._gc_ref_c_opt="-c" +function ngx_pipe.spawn() end +ngx_pipe.version="0.1.17" +return ngx_pipe
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.process.lua b/meta/3rd/OpenResty/ngx.process.lua new file mode 100644 index 00000000..39591381 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.process.lua @@ -0,0 +1,7 @@ +ngx_process={} +function ngx_process.get_master_pid() end +function ngx_process.enable_privileged_agent() end +function ngx_process.type() end +function ngx_process.signal_graceful_exit() end +ngx_process.version="0.1.17" +return ngx_process
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.re.lua b/meta/3rd/OpenResty/ngx.re.lua new file mode 100644 index 00000000..38805f9a --- /dev/null +++ b/meta/3rd/OpenResty/ngx.re.lua @@ -0,0 +1,5 @@ +ngx_re={} +function ngx_re.opt(option, value) end +function ngx_re.split(subj, regex, opts, ctx, max, res) end +ngx_re.version="0.1.17" +return ngx_re
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.resp.lua b/meta/3rd/OpenResty/ngx.resp.lua new file mode 100644 index 00000000..d04afb27 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.resp.lua @@ -0,0 +1,4 @@ +ngx_resp={} +function ngx_resp.add_header(key, value) end +ngx_resp.version="0.1.17" +return ngx_resp
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.semaphore.lua b/meta/3rd/OpenResty/ngx.semaphore.lua new file mode 100644 index 00000000..66c45f64 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.semaphore.lua @@ -0,0 +1,7 @@ +ngx_semaphore={} +function ngx_semaphore.count(self) end +function ngx_semaphore.new(n) end +function ngx_semaphore.wait(self, seconds) end +function ngx_semaphore.post(self, n) end +ngx_semaphore.version="0.1.17" +return ngx_semaphore
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.ssl.lua b/meta/3rd/OpenResty/ngx.ssl.lua new file mode 100644 index 00000000..7dc93b57 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.ssl.lua @@ -0,0 +1,21 @@ +ngx_ssl={} +function ngx_ssl.set_der_priv_key(data) end +function ngx_ssl.parse_pem_priv_key(pem) end +function ngx_ssl.get_tls1_version() end +function ngx_ssl.set_cert(cert) end +ngx_ssl.TLS1_VERSION=769 +function ngx_ssl.set_priv_key(priv_key) end +function ngx_ssl.raw_server_addr() end +function ngx_ssl.clear_certs() end +function ngx_ssl.raw_client_addr() end +function ngx_ssl.parse_pem_cert(pem) end +ngx_ssl.version="0.1.17" +ngx_ssl.TLS1_2_VERSION=771 +function ngx_ssl.server_name() end +ngx_ssl.TLS1_1_VERSION=770 +ngx_ssl.SSL3_VERSION=768 +function ngx_ssl.set_der_cert(data) end +function ngx_ssl.get_tls1_version_str() end +function ngx_ssl.priv_key_pem_to_der(pem) end +function ngx_ssl.cert_pem_to_der(pem) end +return ngx_ssl
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.ssl.session.lua b/meta/3rd/OpenResty/ngx.ssl.session.lua new file mode 100644 index 00000000..2fd909df --- /dev/null +++ b/meta/3rd/OpenResty/ngx.ssl.session.lua @@ -0,0 +1,6 @@ +ngx_ssl_session={} +function ngx_ssl_session.set_serialized_session(sess) end +function ngx_ssl_session.get_serialized_session() end +function ngx_ssl_session.get_session_id() end +ngx_ssl_session.version="0.1.17" +return ngx_ssl_session
\ No newline at end of file diff --git a/meta/3rd/OpenResty/ngx.upstream.lua b/meta/3rd/OpenResty/ngx.upstream.lua new file mode 100644 index 00000000..37b4ebc8 --- /dev/null +++ b/meta/3rd/OpenResty/ngx.upstream.lua @@ -0,0 +1,8 @@ +ngx_upstream={} +function ngx_upstream.get_backup_peers() end +function ngx_upstream.get_servers() end +function ngx_upstream.current_upstream_name() end +function ngx_upstream.get_primary_peers() end +function ngx_upstream.set_peer_down() end +function ngx_upstream.get_upstreams() end +return ngx_upstream
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.aes.lua b/meta/3rd/OpenResty/resty.aes.lua new file mode 100644 index 00000000..7b40a5d0 --- /dev/null +++ b/meta/3rd/OpenResty/resty.aes.lua @@ -0,0 +1,14 @@ +resty_aes={} +function resty_aes.cipher() end +resty_aes.hash={} +resty_aes.hash.sha1={} +resty_aes.hash.md5={} +resty_aes.hash.sha224={} +resty_aes.hash.sha512={} +resty_aes.hash.sha256={} +resty_aes.hash.sha384={} +function resty_aes.new(self, key, salt, _cipher, _hash, hash_rounds) end +function resty_aes.decrypt(self, s) end +resty_aes._VERSION="0.11" +function resty_aes.encrypt(self, s) end +return resty_aes
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.base.lua b/meta/3rd/OpenResty/resty.core.base.lua new file mode 100644 index 00000000..4ea0f5e7 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.base.lua @@ -0,0 +1,21 @@ +resty_core_base={} +function resty_core_base.new_tab() end +resty_core_base.FFI_ERROR=-1 +function resty_core_base.set_string_buf_size(size) end +resty_core_base.FFI_AGAIN=-2 +resty_core_base.FFI_NO_REQ_CTX=-100 +resty_core_base.FFI_OK=0 +function resty_core_base.ref_in_table(tb, key) end +resty_core_base.FFI_BAD_CONTEXT=-101 +function resty_core_base.allows_subsystem(...) end +function resty_core_base.get_errmsg_ptr() end +function resty_core_base.get_string_buf_size() end +resty_core_base.version="0.1.17" +function resty_core_base.clear_tab() end +function resty_core_base.get_size_ptr() end +resty_core_base.FFI_DECLINED=-5 +resty_core_base.FFI_DONE=-4 +resty_core_base.FFI_BUSY=-3 +function resty_core_base.get_string_buf(size, must_alloc) end +function resty_core_base.get_request() end +return resty_core_base
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.base64.lua b/meta/3rd/OpenResty/resty.core.base64.lua new file mode 100644 index 00000000..c13dad81 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.base64.lua @@ -0,0 +1,3 @@ +resty_core_base64={} +resty_core_base64.version="0.1.17" +return resty_core_base64
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.ctx.lua b/meta/3rd/OpenResty/resty.core.ctx.lua new file mode 100644 index 00000000..deddeece --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.ctx.lua @@ -0,0 +1,3 @@ +resty_core_ctx={} +resty_core_ctx._VERSION="0.1.17" +return resty_core_ctx
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.exit.lua b/meta/3rd/OpenResty/resty.core.exit.lua new file mode 100644 index 00000000..2d0c3912 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.exit.lua @@ -0,0 +1,3 @@ +resty_core_exit={} +resty_core_exit.version="0.1.17" +return resty_core_exit
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.hash.lua b/meta/3rd/OpenResty/resty.core.hash.lua new file mode 100644 index 00000000..eabfa1e2 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.hash.lua @@ -0,0 +1,3 @@ +resty_core_hash={} +resty_core_hash.version="0.1.17" +return resty_core_hash
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.lua b/meta/3rd/OpenResty/resty.core.lua new file mode 100644 index 00000000..1f196c61 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.lua @@ -0,0 +1,3 @@ +resty_core={} +resty_core.version="0.1.17" +return resty_core
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.misc.lua b/meta/3rd/OpenResty/resty.core.misc.lua new file mode 100644 index 00000000..e67ff674 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.misc.lua @@ -0,0 +1,5 @@ +resty_core_misc={} +function resty_core_misc.register_ngx_magic_key_getter() end +function resty_core_misc.register_ngx_magic_key_setter() end +resty_core_misc._VERSION="0.1.17" +return resty_core_misc
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.ndk.lua b/meta/3rd/OpenResty/resty.core.ndk.lua new file mode 100644 index 00000000..fd5c28f4 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.ndk.lua @@ -0,0 +1,3 @@ +resty_core_ndk={} +resty_core_ndk.version="0.1.17" +return resty_core_ndk
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.phase.lua b/meta/3rd/OpenResty/resty.core.phase.lua new file mode 100644 index 00000000..9cbefd8f --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.phase.lua @@ -0,0 +1,3 @@ +resty_core_phase={} +resty_core_phase.version="0.1.17" +return resty_core_phase
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.regex.lua b/meta/3rd/OpenResty/resty.core.regex.lua new file mode 100644 index 00000000..be8439e5 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.regex.lua @@ -0,0 +1,10 @@ +resty_core_regex={} +function resty_core_regex.collect_captures() end +function resty_core_regex.set_buf_grow_ratio(ratio) end +function resty_core_regex.re_sub_compile() end +function resty_core_regex.is_regex_cache_empty() end +function resty_core_regex.check_buf_size() end +function resty_core_regex.re_match_compile() end +function resty_core_regex.destroy_compiled_regex() end +resty_core_regex.version="0.1.17" +return resty_core_regex
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.request.lua b/meta/3rd/OpenResty/resty.core.request.lua new file mode 100644 index 00000000..04c334de --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.request.lua @@ -0,0 +1,3 @@ +resty_core_request={} +resty_core_request.version="0.1.17" +return resty_core_request
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.response.lua b/meta/3rd/OpenResty/resty.core.response.lua new file mode 100644 index 00000000..3bcfe74c --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.response.lua @@ -0,0 +1,4 @@ +resty_core_response={} +function resty_core_response.set_resp_header() end +resty_core_response.version="0.1.17" +return resty_core_response
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.shdict.lua b/meta/3rd/OpenResty/resty.core.shdict.lua new file mode 100644 index 00000000..d716429c --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.shdict.lua @@ -0,0 +1,3 @@ +resty_core_shdict={} +resty_core_shdict.version="0.1.17" +return resty_core_shdict
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.time.lua b/meta/3rd/OpenResty/resty.core.time.lua new file mode 100644 index 00000000..e1c53718 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.time.lua @@ -0,0 +1,3 @@ +resty_core_time={} +resty_core_time.version="0.1.17" +return resty_core_time
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.uri.lua b/meta/3rd/OpenResty/resty.core.uri.lua new file mode 100644 index 00000000..af3b2e81 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.uri.lua @@ -0,0 +1,3 @@ +resty_core_uri={} +resty_core_uri.version="0.1.17" +return resty_core_uri
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.utils.lua b/meta/3rd/OpenResty/resty.core.utils.lua new file mode 100644 index 00000000..9ebc4d66 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.utils.lua @@ -0,0 +1,4 @@ +resty_core_utils={} +function resty_core_utils.str_replace_char(str, find, replace) end +resty_core_utils.version="0.1.17" +return resty_core_utils
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.var.lua b/meta/3rd/OpenResty/resty.core.var.lua new file mode 100644 index 00000000..062ede5a --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.var.lua @@ -0,0 +1,3 @@ +resty_core_var={} +resty_core_var.version="0.1.17" +return resty_core_var
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.core.worker.lua b/meta/3rd/OpenResty/resty.core.worker.lua new file mode 100644 index 00000000..02d97650 --- /dev/null +++ b/meta/3rd/OpenResty/resty.core.worker.lua @@ -0,0 +1,3 @@ +resty_core_worker={} +resty_core_worker._VERSION="0.1.17" +return resty_core_worker
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.dns.resolver.lua b/meta/3rd/OpenResty/resty.dns.resolver.lua new file mode 100644 index 00000000..665d1e4c --- /dev/null +++ b/meta/3rd/OpenResty/resty.dns.resolver.lua @@ -0,0 +1,25 @@ +resty_dns_resolver={} +resty_dns_resolver.SECTION_NS=2 +resty_dns_resolver.SECTION_AN=1 +resty_dns_resolver.TYPE_AAAA=28 +function resty_dns_resolver.new(class, opts) end +resty_dns_resolver.TYPE_NS=2 +function resty_dns_resolver.query(self, qname, opts, tries) end +resty_dns_resolver.TYPE_A=1 +function resty_dns_resolver.compress_ipv6_addr(addr) end +resty_dns_resolver.TYPE_SRV=33 +resty_dns_resolver.TYPE_PTR=12 +function resty_dns_resolver.reverse_query(self, addr) end +resty_dns_resolver.TYPE_SPF=99 +resty_dns_resolver._VERSION="0.21" +function resty_dns_resolver.expand_ipv6_addr() end +function resty_dns_resolver.set_timeout(self, timeout) end +function resty_dns_resolver.tcp_query(self, qname, opts) end +resty_dns_resolver.TYPE_TXT=16 +resty_dns_resolver.TYPE_SOA=6 +resty_dns_resolver.TYPE_MX=15 +resty_dns_resolver.CLASS_IN=1 +function resty_dns_resolver.arpa_str(addr) end +resty_dns_resolver.SECTION_AR=3 +resty_dns_resolver.TYPE_CNAME=5 +return resty_dns_resolver
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.limit.conn.lua b/meta/3rd/OpenResty/resty.limit.conn.lua new file mode 100644 index 00000000..b8b4cace --- /dev/null +++ b/meta/3rd/OpenResty/resty.limit.conn.lua @@ -0,0 +1,10 @@ +resty_limit_conn={} +function resty_limit_conn.set_conn(self, conn) end +function resty_limit_conn.uncommit(self, key) end +function resty_limit_conn.is_committed(self) end +function resty_limit_conn.new(dict_name, max, burst, default_conn_delay) end +function resty_limit_conn.set_burst(self, burst) end +function resty_limit_conn.leaving(self, key, req_latency) end +function resty_limit_conn.incoming(self, key, commit) end +resty_limit_conn._VERSION="0.06" +return resty_limit_conn
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.limit.count.lua b/meta/3rd/OpenResty/resty.limit.count.lua new file mode 100644 index 00000000..65a339fa --- /dev/null +++ b/meta/3rd/OpenResty/resty.limit.count.lua @@ -0,0 +1,6 @@ +resty_limit_count={} +function resty_limit_count.uncommit(self, key) end +function resty_limit_count.incoming(self, key, commit) end +resty_limit_count._VERSION="0.06" +function resty_limit_count.new(dict_name, limit, window) end +return resty_limit_count
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.limit.req.lua b/meta/3rd/OpenResty/resty.limit.req.lua new file mode 100644 index 00000000..6b26b5c1 --- /dev/null +++ b/meta/3rd/OpenResty/resty.limit.req.lua @@ -0,0 +1,8 @@ +resty_limit_req={} +function resty_limit_req.set_rate(self, rate) end +function resty_limit_req.uncommit(self, key) end +function resty_limit_req.set_burst(self, burst) end +function resty_limit_req.new(dict_name, rate, burst) end +function resty_limit_req.incoming(self, key, commit) end +resty_limit_req._VERSION="0.06" +return resty_limit_req
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.limit.traffic.lua b/meta/3rd/OpenResty/resty.limit.traffic.lua new file mode 100644 index 00000000..731a0a73 --- /dev/null +++ b/meta/3rd/OpenResty/resty.limit.traffic.lua @@ -0,0 +1,4 @@ +resty_limit_traffic={} +resty_limit_traffic._VERSION="0.06" +function resty_limit_traffic.combine(limiters, keys, states) end +return resty_limit_traffic
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.lock.lua b/meta/3rd/OpenResty/resty.lock.lua new file mode 100644 index 00000000..7d0d4062 --- /dev/null +++ b/meta/3rd/OpenResty/resty.lock.lua @@ -0,0 +1,7 @@ +resty_lock={} +function resty_lock.expire(self, time) end +function resty_lock.unlock(self) end +function resty_lock.new(_, dict_name, opts) end +resty_lock._VERSION="0.08" +function resty_lock.lock(self, key) end +return resty_lock
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.lrucache.lua b/meta/3rd/OpenResty/resty.lrucache.lua new file mode 100644 index 00000000..62d06c76 --- /dev/null +++ b/meta/3rd/OpenResty/resty.lrucache.lua @@ -0,0 +1,8 @@ +resty_lrucache={} +function resty_lrucache.delete(self, key) end +function resty_lrucache.new(size) end +function resty_lrucache.set(self, key, value, ttl) end +function resty_lrucache.flush_all(self) end +resty_lrucache._VERSION="0.09" +function resty_lrucache.get(self, key) end +return resty_lrucache
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.lrucache.pureffi.lua b/meta/3rd/OpenResty/resty.lrucache.pureffi.lua new file mode 100644 index 00000000..00c9bb89 --- /dev/null +++ b/meta/3rd/OpenResty/resty.lrucache.pureffi.lua @@ -0,0 +1,8 @@ +resty_lrucache_pureffi={} +function resty_lrucache_pureffi.delete(self, key) end +function resty_lrucache_pureffi.new(size, load_factor) end +function resty_lrucache_pureffi.set(self, key, value, ttl) end +function resty_lrucache_pureffi.flush_all(self) end +resty_lrucache_pureffi._VERSION="0.09" +function resty_lrucache_pureffi.get(self, key) end +return resty_lrucache_pureffi
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.md5.lua b/meta/3rd/OpenResty/resty.md5.lua new file mode 100644 index 00000000..f891040d --- /dev/null +++ b/meta/3rd/OpenResty/resty.md5.lua @@ -0,0 +1,7 @@ +resty_md5={} +function resty_md5.final(self) end +function resty_md5.new(self) end +function resty_md5.reset(self) end +resty_md5._VERSION="0.11" +function resty_md5.update(self, s) end +return resty_md5
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.memcached.lua b/meta/3rd/OpenResty/resty.memcached.lua new file mode 100644 index 00000000..e8ad4234 --- /dev/null +++ b/meta/3rd/OpenResty/resty.memcached.lua @@ -0,0 +1,26 @@ +resty_memcached={} +function resty_memcached.cas(self, key, value, cas_uniq, exptime, flags) end +function resty_memcached.new(self, opts) end +function resty_memcached.append(self, ...) end +function resty_memcached.gets(self, key) end +function resty_memcached.quit(self) end +function resty_memcached.get_reused_times(self) end +function resty_memcached.close(self) end +function resty_memcached.touch(self, key, exptime) end +function resty_memcached.replace(self, ...) end +function resty_memcached.delete(self, key) end +function resty_memcached.version(self) end +function resty_memcached.set(self, ...) end +function resty_memcached.stats(self, args) end +function resty_memcached.flush_all(self, time) end +function resty_memcached.add(self, ...) end +function resty_memcached.set_timeout(self, timeout) end +function resty_memcached.incr(self, key, value) end +function resty_memcached.set_keepalive(self, ...) end +function resty_memcached.connect(self, ...) end +function resty_memcached.prepend(self, ...) end +function resty_memcached.decr(self, key, value) end +function resty_memcached.verbosity(self, level) end +resty_memcached._VERSION="0.13" +function resty_memcached.get(self, key) end +return resty_memcached
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.mysql.lua b/meta/3rd/OpenResty/resty.mysql.lua new file mode 100644 index 00000000..97f7980e --- /dev/null +++ b/meta/3rd/OpenResty/resty.mysql.lua @@ -0,0 +1,14 @@ +resty_mysql={} +function resty_mysql.read_result() end +function resty_mysql.new(self) end +function resty_mysql.connect(self, opts) end +function resty_mysql.server_ver(self) end +function resty_mysql.send_query() end +function resty_mysql.set_keepalive(self, ...) end +function resty_mysql.set_compact_arrays(self, value) end +function resty_mysql.query(self, query, est_nrows) end +function resty_mysql.set_timeout(self, timeout) end +function resty_mysql.close(self) end +resty_mysql._VERSION="0.21" +function resty_mysql.get_reused_times(self) end +return resty_mysql
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.random.lua b/meta/3rd/OpenResty/resty.random.lua new file mode 100644 index 00000000..cb8fc95c --- /dev/null +++ b/meta/3rd/OpenResty/resty.random.lua @@ -0,0 +1,4 @@ +resty_random={} +resty_random._VERSION="0.11" +function resty_random.bytes(len, strong) end +return resty_random
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.redis.lua b/meta/3rd/OpenResty/resty.redis.lua new file mode 100644 index 00000000..149f4153 --- /dev/null +++ b/meta/3rd/OpenResty/resty.redis.lua @@ -0,0 +1,56 @@ +resty_redis={} +function resty_redis.lrange() end +function resty_redis.new(self) end +function resty_redis.hset() end +function resty_redis.hexists() end +function resty_redis.punsubscribe() end +function resty_redis.incr() end +function resty_redis.lindex() end +function resty_redis.read_reply(self) end +function resty_redis.sismember() end +function resty_redis.set() end +function resty_redis.unsubscribe() end +function resty_redis.linsert() end +function resty_redis.zrem() end +function resty_redis.add_commands(...) end +function resty_redis.array_to_hash(self, t) end +function resty_redis.mset() end +function resty_redis.commit_pipeline(self) end +function resty_redis.zrange() end +function resty_redis.auth() end +function resty_redis.cancel_pipeline(self) end +resty_redis._VERSION="0.27" +function resty_redis.eval() end +function resty_redis.expire() end +function resty_redis.sdiff() end +function resty_redis.sinter() end +function resty_redis.hmset(self, hashname, ...) end +function resty_redis.zrank() end +function resty_redis.psubscribe() end +function resty_redis.sunion() end +function resty_redis.sadd() end +function resty_redis.srem() end +function resty_redis.script() end +function resty_redis.lpush() end +function resty_redis.init_pipeline(self, n) end +function resty_redis.zincrby() end +function resty_redis.get_reused_times(self) end +function resty_redis.zrangebyscore() end +function resty_redis.zadd() end +function resty_redis.subscribe() end +function resty_redis.hdel() end +function resty_redis.hget() end +function resty_redis.sort() end +function resty_redis.smembers() end +function resty_redis.connect(self, ...) end +function resty_redis.hmget() end +function resty_redis.set_timeout(self, timeout) end +function resty_redis.mget() end +function resty_redis.set_keepalive(self, ...) end +function resty_redis.llen() end +function resty_redis.del() end +function resty_redis.decr() end +function resty_redis.lpop() end +function resty_redis.close() end +function resty_redis.get() end +return resty_redis
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.sha.lua b/meta/3rd/OpenResty/resty.sha.lua new file mode 100644 index 00000000..655f5a99 --- /dev/null +++ b/meta/3rd/OpenResty/resty.sha.lua @@ -0,0 +1,3 @@ +resty_sha={} +resty_sha._VERSION="0.11" +return resty_sha
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.sha1.lua b/meta/3rd/OpenResty/resty.sha1.lua new file mode 100644 index 00000000..3b3a2b04 --- /dev/null +++ b/meta/3rd/OpenResty/resty.sha1.lua @@ -0,0 +1,7 @@ +resty_sha1={} +function resty_sha1.final(self) end +function resty_sha1.new(self) end +function resty_sha1.reset(self) end +resty_sha1._VERSION="0.11" +function resty_sha1.update(self, s) end +return resty_sha1
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.sha224.lua b/meta/3rd/OpenResty/resty.sha224.lua new file mode 100644 index 00000000..3d406947 --- /dev/null +++ b/meta/3rd/OpenResty/resty.sha224.lua @@ -0,0 +1,7 @@ +resty_sha224={} +function resty_sha224.final(self) end +function resty_sha224.new(self) end +function resty_sha224.reset(self) end +resty_sha224._VERSION="0.11" +function resty_sha224.update(self, s) end +return resty_sha224
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.sha256.lua b/meta/3rd/OpenResty/resty.sha256.lua new file mode 100644 index 00000000..41597069 --- /dev/null +++ b/meta/3rd/OpenResty/resty.sha256.lua @@ -0,0 +1,7 @@ +resty_sha256={} +function resty_sha256.final(self) end +function resty_sha256.new(self) end +function resty_sha256.reset(self) end +resty_sha256._VERSION="0.11" +function resty_sha256.update(self, s) end +return resty_sha256
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.sha384.lua b/meta/3rd/OpenResty/resty.sha384.lua new file mode 100644 index 00000000..8b653e8a --- /dev/null +++ b/meta/3rd/OpenResty/resty.sha384.lua @@ -0,0 +1,7 @@ +resty_sha384={} +function resty_sha384.final(self) end +function resty_sha384.new(self) end +function resty_sha384.reset(self) end +resty_sha384._VERSION="0.11" +function resty_sha384.update(self, s) end +return resty_sha384
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.sha512.lua b/meta/3rd/OpenResty/resty.sha512.lua new file mode 100644 index 00000000..9249e9d3 --- /dev/null +++ b/meta/3rd/OpenResty/resty.sha512.lua @@ -0,0 +1,7 @@ +resty_sha512={} +function resty_sha512.final(self) end +function resty_sha512.new(self) end +function resty_sha512.reset(self) end +resty_sha512._VERSION="0.11" +function resty_sha512.update(self, s) end +return resty_sha512
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.shell.lua b/meta/3rd/OpenResty/resty.shell.lua new file mode 100644 index 00000000..ff7936a4 --- /dev/null +++ b/meta/3rd/OpenResty/resty.shell.lua @@ -0,0 +1,4 @@ +resty_shell={} +function resty_shell.run(cmd, stdin, timeout, max_size) end +resty_shell.version=0.01 +return resty_shell
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.signal.lua b/meta/3rd/OpenResty/resty.signal.lua new file mode 100644 index 00000000..d44e91a5 --- /dev/null +++ b/meta/3rd/OpenResty/resty.signal.lua @@ -0,0 +1,5 @@ +resty_signal={} +function resty_signal.kill(pid, sig) end +function resty_signal.signum(name) end +resty_signal.version=0.02 +return resty_signal
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.string.lua b/meta/3rd/OpenResty/resty.string.lua new file mode 100644 index 00000000..66a16c5f --- /dev/null +++ b/meta/3rd/OpenResty/resty.string.lua @@ -0,0 +1,5 @@ +resty_string={} +function resty_string.to_hex(s) end +resty_string._VERSION="0.11" +function resty_string.atoi(s) end +return resty_string
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.upload.lua b/meta/3rd/OpenResty/resty.upload.lua new file mode 100644 index 00000000..74323253 --- /dev/null +++ b/meta/3rd/OpenResty/resty.upload.lua @@ -0,0 +1,6 @@ +resty_upload={} +function resty_upload.read(self) end +function resty_upload.set_timeout(self, timeout) end +resty_upload._VERSION="0.10" +function resty_upload.new(self, chunk_size, max_line_size) end +return resty_upload
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.upstream.healthcheck.lua b/meta/3rd/OpenResty/resty.upstream.healthcheck.lua new file mode 100644 index 00000000..51690f75 --- /dev/null +++ b/meta/3rd/OpenResty/resty.upstream.healthcheck.lua @@ -0,0 +1,5 @@ +resty_upstream_healthcheck={} +function resty_upstream_healthcheck.status_page() end +resty_upstream_healthcheck._VERSION="0.05" +function resty_upstream_healthcheck.spawn_checker(opts) end +return resty_upstream_healthcheck
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.websocket.client.lua b/meta/3rd/OpenResty/resty.websocket.client.lua new file mode 100644 index 00000000..1ee17f45 --- /dev/null +++ b/meta/3rd/OpenResty/resty.websocket.client.lua @@ -0,0 +1,15 @@ +resty_websocket_client={} +function resty_websocket_client.send_text(self, data) end +function resty_websocket_client.new(self, opts) end +function resty_websocket_client.send_ping(self, data) end +function resty_websocket_client.connect(self, uri, opts) end +function resty_websocket_client.set_timeout(self, time) end +function resty_websocket_client.set_keepalive(self, ...) end +function resty_websocket_client.send_binary(self, data) end +function resty_websocket_client.send_close() end +function resty_websocket_client.send_frame() end +function resty_websocket_client.recv_frame(self) end +function resty_websocket_client.close(self) end +resty_websocket_client._VERSION="0.07" +function resty_websocket_client.send_pong(self, data) end +return resty_websocket_client
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.websocket.protocol.lua b/meta/3rd/OpenResty/resty.websocket.protocol.lua new file mode 100644 index 00000000..5f40ca4c --- /dev/null +++ b/meta/3rd/OpenResty/resty.websocket.protocol.lua @@ -0,0 +1,7 @@ +resty_websocket_protocol={} +function resty_websocket_protocol.build_frame() end +function resty_websocket_protocol.new_tab() end +function resty_websocket_protocol.send_frame(sock, fin, opcode, payload, max_payload_len, masking) end +resty_websocket_protocol._VERSION="0.07" +function resty_websocket_protocol.recv_frame(sock, max_payload_len, force_masking) end +return resty_websocket_protocol
\ No newline at end of file diff --git a/meta/3rd/OpenResty/resty.websocket.server.lua b/meta/3rd/OpenResty/resty.websocket.server.lua new file mode 100644 index 00000000..9a2e03f8 --- /dev/null +++ b/meta/3rd/OpenResty/resty.websocket.server.lua @@ -0,0 +1,12 @@ +resty_websocket_server={} +function resty_websocket_server.send_text(self, data) end +function resty_websocket_server.new(self, opts) end +function resty_websocket_server.send_ping(self, data) end +function resty_websocket_server.set_timeout(self, time) end +function resty_websocket_server.send_binary(self, data) end +function resty_websocket_server.send_frame() end +function resty_websocket_server.recv_frame(self) end +function resty_websocket_server.send_close(self, code, msg) end +resty_websocket_server._VERSION="0.07" +function resty_websocket_server.send_pong(self, data) end +return resty_websocket_server
\ No newline at end of file diff --git a/meta/3rd/OpenResty/table.clear.lua b/meta/3rd/OpenResty/table.clear.lua new file mode 100644 index 00000000..a6d84c5a --- /dev/null +++ b/meta/3rd/OpenResty/table.clear.lua @@ -0,0 +1,2 @@ +function table_clear() end +return table_clear
\ No newline at end of file diff --git a/meta/3rd/OpenResty/table.new.lua b/meta/3rd/OpenResty/table.new.lua new file mode 100644 index 00000000..d517af3c --- /dev/null +++ b/meta/3rd/OpenResty/table.new.lua @@ -0,0 +1,2 @@ +function table_new() end +return table_new
\ No newline at end of file diff --git a/meta/3rd/OpenResty/tablepool.lua b/meta/3rd/OpenResty/tablepool.lua new file mode 100644 index 00000000..63db91da --- /dev/null +++ b/meta/3rd/OpenResty/tablepool.lua @@ -0,0 +1,4 @@ +tablepool={} +function tablepool.release(tag, obj, noclear) end +function tablepool.fetch(tag, narr, nrec) end +return tablepool
\ No newline at end of file diff --git a/meta/3rd/OpenResty/thread.exdata.lua b/meta/3rd/OpenResty/thread.exdata.lua new file mode 100644 index 00000000..c667d0e9 --- /dev/null +++ b/meta/3rd/OpenResty/thread.exdata.lua @@ -0,0 +1,2 @@ +function thread_exdata() end +return thread_exdata
\ No newline at end of file diff --git a/meta/3rd/OpenResty/toComment.lua b/meta/3rd/OpenResty/toComment.lua new file mode 100644 index 00000000..7950e295 --- /dev/null +++ b/meta/3rd/OpenResty/toComment.lua @@ -0,0 +1,2 @@ +toComment={} +return toComment
\ No newline at end of file |