axmol/cocos/scripting/lua-bindings/auto/api/Ref.lua

35 lines
981 B
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module Ref
-- @parent_module cc
2014-03-10 14:04:58 +08:00
--------------------------------
-- Releases the ownership immediately.<br>
-- This decrements the Ref's reference count.<br>
-- If the reference count reaches 0 after the descrement, this Ref is<br>
-- destructed.<br>
-- see retain, autorelease<br>
-- js NA
2014-03-10 14:04:58 +08:00
-- @function [parent=#Ref] release
-- @param self
-- @return Ref#Ref self (return value: cc.Ref)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Retains the ownership.<br>
-- This increases the Ref's reference count.<br>
-- see release, autorelease<br>
-- js NA
2014-03-10 14:04:58 +08:00
-- @function [parent=#Ref] retain
-- @param self
-- @return Ref#Ref self (return value: cc.Ref)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Returns the Ref's current reference count.<br>
-- returns The Ref's reference count.<br>
-- js NA
2014-03-10 14:04:58 +08:00
-- @function [parent=#Ref] getReferenceCount
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
return nil