协议提交
parent
039f212694
commit
90c21e5a73
|
@ -1215,6 +1215,7 @@ JumpType = {
|
|||
TreasureStoreSeason2 = 20300,--新百宝商会
|
||||
|
||||
zhongzhichengcheng = 96001, --众志成城
|
||||
zhongzhichengcheng_Explor = 96002,--众志成城跳转探索功能
|
||||
}
|
||||
|
||||
NPCPosType={
|
||||
|
|
|
@ -570,6 +570,7 @@ function this.RefreshActivityRedPoint()
|
|||
CheckRedPointStatus(RedPointType.Expert_SecretBox)
|
||||
CheckRedPointStatus(RedPointType.Expert_Expedition)
|
||||
CheckRedPointStatus(RedPointType.Expert_Slhj)
|
||||
CheckRedPointStatus(RedPointType.zhognzhichengcheng)
|
||||
--战力排行
|
||||
CheckRedPointStatus(RedPointType.WarPowerSort_Sort)
|
||||
--东海寻仙
|
||||
|
|
|
@ -960,7 +960,7 @@ end
|
|||
-- 设置我的公会信息
|
||||
function MyGuildManager.SetMyGuildExploreNums(id,nums)
|
||||
this.exploreNums[id] = nums
|
||||
|
||||
CheckRedPointStatus(RedPointType.zhognzhichengcheng)
|
||||
end
|
||||
|
||||
function MyGuildManager.GetMyGuildExploreNums()
|
||||
|
|
|
@ -156,6 +156,7 @@ function this.RegisterMessage(network)
|
|||
socket:RegistNetMessage(MessageTypeProto_pb.ArchitectureUnlockIndication, this.HomeLandIndication)
|
||||
-- 探索推送
|
||||
socket:RegistNetMessage(MessageTypeProto_pb.ExplorerMapIndicationResponse, this.ExplorerMapIndicationResponse)
|
||||
socket:RegistNetMessage(MessageTypeProto_pb.ExploreActivityIndication, this.ExploreActivityIndication)
|
||||
end
|
||||
|
||||
function this.EquipBookInfoIndication(buff)
|
||||
|
@ -1109,9 +1110,9 @@ function this.HomeLandIndication(buffer)
|
|||
HomeLandManager.GetServerData(msg)
|
||||
end
|
||||
-- 家园功能解锁
|
||||
function this.HomeLandIndication(buffer)
|
||||
function this.ExploreActivityIndication(buffer)
|
||||
local data = buffer:DataByte()
|
||||
local msg = PlayerInfoProto_pb.ArchitectureUnlockIndication()
|
||||
local msg = ActivityProto_pb.ExploreActivityIndication()
|
||||
msg:ParseFromString(data)
|
||||
MyGuildManager.SetMyGuildExploreNums(msg.id,msg.exploreTimes)
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Activity.OnActivityProgressStateChange)
|
||||
|
|
|
@ -886,6 +886,19 @@ local jumpDic = {
|
|||
[JumpType.zhongzhichengcheng] = function(data,args)
|
||||
this.JumpActivity(ActivityTypeDef.zhongzhichengcheng,data[1])
|
||||
end,
|
||||
[JumpType.zhongzhichengcheng_Explor] = function(data,args)
|
||||
if not MyGuildManager.MyGuildInfo or not MyGuildManager.MyGuildInfo.id then
|
||||
this.isOpen = false
|
||||
PopupTipPanel.ShowTip("需要先加入一个公会!")
|
||||
return 0
|
||||
end
|
||||
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.Explore) then
|
||||
this.isOpen = false
|
||||
PopupTipPanel.ShowTip("功能尚未开启")
|
||||
return 0
|
||||
end
|
||||
UIManager.OpenPanel(UIName.ExploreMainPanel)
|
||||
end,
|
||||
}
|
||||
|
||||
function this.JumpActivity(data,skipfactor)
|
||||
|
|
Loading…
Reference in New Issue