c1_lua/lua/app/module/talent/talent_manager.lua
2025-10-07 19:59:53 +08:00

23 lines
711 B
Lua

local TalentManager = class("TalentManager", BaseModule)
function TalentManager:showMainUI()
UIManager:showUI("app/ui/talent/talent_main_ui")
end
function TalentManager:showInfoUI(parmas)
UIManager:showUI("app/ui/talent/talent_info_ui", parmas)
end
function TalentManager:talentUpgrade()
local args = {}
self:sendMessage(ProtoMsgType.FromMsgEnum.TalentUpgradeReq, args, self.onTalentUpgradeRsp, BIReport.ITEM_GET_TYPE.BOUNTY_REWARD)
end
function TalentManager:onTalentUpgradeRsp(result)
if result.err_code == GConst.ERROR_STR.SUCCESS then
DataManager.TalentData:onUpgrade(result)
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_TALENT_UP, 1)
end
end
return TalentManager