summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.Ref.lua
blob: 71587f8b145dcbe0a782b064247a8167c263e89e (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

---@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