summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.Liquid.lua
blob: 54e912505e6044dc2b615b428fa7a93db47ce367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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