diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.Ref.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.Ref.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.Ref.lua b/meta/3rd/Cocos4.0/cc.Ref.lua new file mode 100644 index 00000000..71587f8b --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Ref.lua @@ -0,0 +1,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
\ No newline at end of file |