2014-12-31 16:28:14 +08:00
|
|
|
if nil == ccs then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2014-08-04 15:22:07 +08:00
|
|
|
--tip
|
|
|
|
local function deprecatedTip(old_name,new_name)
|
|
|
|
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
|
|
|
|
end
|
|
|
|
|
|
|
|
--functions of GUIReader will be deprecated begin
|
|
|
|
local GUIReaderDeprecated = { }
|
|
|
|
function GUIReaderDeprecated.shareReader()
|
|
|
|
deprecatedTip("GUIReader:shareReader","ccs.GUIReader:getInstance")
|
|
|
|
return ccs.GUIReader:getInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
GUIReader.shareReader = GUIReaderDeprecated.shareReader
|
2014-08-04 15:22:07 +08:00
|
|
|
|
|
|
|
function GUIReaderDeprecated.purgeGUIReader()
|
|
|
|
deprecatedTip("GUIReader:purgeGUIReader","ccs.GUIReader:destroyInstance")
|
|
|
|
return ccs.GUIReader:destroyInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
GUIReader.purgeGUIReader = GUIReaderDeprecated.purgeGUIReader
|
2014-08-04 15:22:07 +08:00
|
|
|
--functions of GUIReader will be deprecated end
|
|
|
|
|
|
|
|
--functions of SceneReader will be deprecated begin
|
|
|
|
local SceneReaderDeprecated = { }
|
|
|
|
function SceneReaderDeprecated.sharedSceneReader()
|
|
|
|
deprecatedTip("SceneReader:sharedSceneReader","ccs.SceneReader:getInstance")
|
|
|
|
return ccs.SceneReader:getInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
SceneReader.sharedSceneReader = SceneReaderDeprecated.sharedSceneReader
|
2014-08-04 15:22:07 +08:00
|
|
|
|
|
|
|
function SceneReaderDeprecated.purgeSceneReader(self)
|
|
|
|
deprecatedTip("SceneReader:purgeSceneReader","ccs.SceneReader:destroyInstance")
|
|
|
|
return self:destroyInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
SceneReader.purgeSceneReader = SceneReaderDeprecated.purgeSceneReader
|
2014-08-04 15:22:07 +08:00
|
|
|
--functions of SceneReader will be deprecated end
|
|
|
|
|
|
|
|
|
|
|
|
--functions of ccs.GUIReader will be deprecated begin
|
|
|
|
local CCSGUIReaderDeprecated = { }
|
|
|
|
function CCSGUIReaderDeprecated.purgeGUIReader()
|
|
|
|
deprecatedTip("ccs.GUIReader:purgeGUIReader","ccs.GUIReader:destroyInstance")
|
|
|
|
return ccs.GUIReader:destroyInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
ccs.GUIReader.purgeGUIReader = CCSGUIReaderDeprecated.purgeGUIReader
|
2014-08-04 15:22:07 +08:00
|
|
|
--functions of ccs.GUIReader will be deprecated end
|
|
|
|
|
|
|
|
--functions of ccs.ActionManagerEx will be deprecated begin
|
|
|
|
local CCSActionManagerExDeprecated = { }
|
|
|
|
function CCSActionManagerExDeprecated.destroyActionManager()
|
|
|
|
deprecatedTip("ccs.ActionManagerEx:destroyActionManager","ccs.ActionManagerEx:destroyInstance")
|
|
|
|
return ccs.ActionManagerEx:destroyInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
ccs.ActionManagerEx.destroyActionManager = CCSActionManagerExDeprecated.destroyActionManager
|
2014-08-04 15:22:07 +08:00
|
|
|
--functions of ccs.ActionManagerEx will be deprecated end
|
|
|
|
|
|
|
|
--functions of ccs.SceneReader will be deprecated begin
|
|
|
|
local CCSSceneReaderDeprecated = { }
|
|
|
|
function CCSSceneReaderDeprecated.destroySceneReader(self)
|
|
|
|
deprecatedTip("ccs.SceneReader:destroySceneReader","ccs.SceneReader:destroyInstance")
|
|
|
|
return self:destroyInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
ccs.SceneReader.destroySceneReader = CCSSceneReaderDeprecated.destroySceneReader
|
2014-08-04 15:22:07 +08:00
|
|
|
--functions of ccs.SceneReader will be deprecated end
|
|
|
|
|
|
|
|
--functions of CCArmatureDataManager will be deprecated begin
|
|
|
|
local CCArmatureDataManagerDeprecated = { }
|
|
|
|
function CCArmatureDataManagerDeprecated.sharedArmatureDataManager()
|
|
|
|
deprecatedTip("CCArmatureDataManager:sharedArmatureDataManager","ccs.ArmatureDataManager:getInstance")
|
|
|
|
return ccs.ArmatureDataManager:getInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
CCArmatureDataManager.sharedArmatureDataManager = CCArmatureDataManagerDeprecated.sharedArmatureDataManager
|
2014-08-04 15:22:07 +08:00
|
|
|
|
|
|
|
function CCArmatureDataManagerDeprecated.purge()
|
|
|
|
deprecatedTip("CCArmatureDataManager:purge","ccs.ArmatureDataManager:destoryInstance")
|
|
|
|
return ccs.ArmatureDataManager:destoryInstance()
|
|
|
|
end
|
2014-10-17 14:15:30 +08:00
|
|
|
CCArmatureDataManager.purge = CCArmatureDataManagerDeprecated.purge
|
2014-08-04 15:22:07 +08:00
|
|
|
--functions of CCArmatureDataManager will be deprecated end
|