summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.Ref.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
commit8fefb8f3e100976235dc83d6ae3785952d11c710 (patch)
tree459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.Ref.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.Ref.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.Ref.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.Ref.lua b/meta/3rd/Cocos4.0/library/cc.Ref.lua
new file mode 100644
index 00000000..2814940e
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.Ref.lua
@@ -0,0 +1,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 \ No newline at end of file