From 52097b6ee7cc8f5a770eb851902560b5b8592218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 22 Feb 2021 21:05:36 +0800 Subject: add meta/3rd with acknowledgement --- meta/3rd/Cocos4.0/cc.Liquid.lua | 60 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 meta/3rd/Cocos4.0/cc.Liquid.lua (limited to 'meta/3rd/Cocos4.0/cc.Liquid.lua') 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.
+---* 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.
+---* param duration Specify the duration of the Liquid action. It's a value in seconds.
+---* param gridSize Specify the size of the grid.
+---* param waves Specify the waves count of the Liquid action.
+---* param amplitude Specify the amplitude of the Liquid action.
+---* 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.
+---* return Return the amplitude of the effect. +---@return float +function Liquid:getAmplitude () end +---* brief Get the amplitude rate of the effect.
+---* return Return the amplitude rate of the effect. +---@return float +function Liquid:getAmplitudeRate () end +---* brief Set the amplitude to the effect.
+---* 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.
+---* param duration Specify the duration of the Liquid action. It's a value in seconds.
+---* param gridSize Specify the size of the grid.
+---* param waves Specify the waves count of the Liquid action.
+---* param amplitude Specify the amplitude of the Liquid action.
+---* 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 -- cgit v1.2.3