miduo_client/Assets/ManagedResources/~Lua/Modules/DataCenterService/TapDBManager.lua

35 lines
716 B
Lua
Raw Normal View History

2020-08-25 15:46:38 +08:00
TapDBManager = {}
2020-07-10 09:59:56 +08:00
local this = TapDBManager
function this.Initialize()
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
2020-07-27 14:42:25 +08:00
App.TBDMgr:Init()
2020-07-13 12:25:55 +08:00
App.TBDMgr:OnStart()
end
2020-07-10 09:59:56 +08:00
end
function this.SetUser(userId)
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:SetUser(userId)
end
2020-07-10 09:59:56 +08:00
end
function this.SetServer(serverId)
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:SetServer(serverId)
end
2020-07-10 09:59:56 +08:00
end
function this.SetLevel(level)
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:SetLevel(level)
end
2020-07-10 09:59:56 +08:00
end
function this.onChargeSuccess(orderId, goodsId, amount, currencyType, payment)
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:onChargeSuccess(orderId, goodsId, amount, currencyType, payment)
end
2020-07-10 09:59:56 +08:00
end
return TapDBManager