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

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