axmol/cocos/scripting/lua-bindings/script/DeprecatedNetworkClass.lua

17 lines
516 B
Lua
Raw Normal View History

-- This is the DeprecatedNetworkClass
DeprecatedNetworkClass = {} or DeprecatedNetworkClass
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--WebSocket class will be Deprecated,begin
function DeprecatedNetworkClass.WebSocket()
deprecatedTip("WebSocket","cc.WebSocket")
return cc.WebSocket
end
_G["WebSocket"] = DeprecatedNetworkClass.WebSocket()
--WebSocket class will be Deprecated,end