探索地图修改提交
parent
89c298f593
commit
657574b61a
|
@ -77,7 +77,6 @@ end
|
||||||
|
|
||||||
--刷新编队
|
--刷新编队
|
||||||
function this.UpdateFormationData(team)
|
function this.UpdateFormationData(team)
|
||||||
LogGreen("team.teamId:"..team.teamId.." team.hp:"..team.hp)
|
|
||||||
if this.FormationData[team.teamId] then
|
if this.FormationData[team.teamId] then
|
||||||
this.FormationData[team.teamId].hp = team.hp
|
this.FormationData[team.teamId].hp = team.hp
|
||||||
this.FormationData[team.teamId].exploreTime = team.exploreTime
|
this.FormationData[team.teamId].exploreTime = team.exploreTime
|
||||||
|
@ -102,7 +101,6 @@ function this.UpdateFormationData(team)
|
||||||
this.UpdateMapFormationData(team.mapId,team.teamId,1)
|
this.UpdateMapFormationData(team.mapId,team.teamId,1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
LogGreen("this.FormationData[team.teamId].hp:"..this.FormationData[team.teamId].hp)
|
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Explore.UpdateSingleFormation,team.teamId)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Explore.UpdateSingleFormation,team.teamId)
|
||||||
else
|
else
|
||||||
LogGreen(string.format("%s编队不属于探索玩法",team.teamId))
|
LogGreen(string.format("%s编队不属于探索玩法",team.teamId))
|
||||||
|
|
|
@ -90,10 +90,10 @@ function this:RemoveListener()
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.Refresh(teamId)
|
function this.Refresh(teamId)
|
||||||
LogGreen("teamId:"..teamId)
|
|
||||||
this.playerViews[teamId]:RefreshHp()
|
this.playerViews[teamId]:RefreshHp()
|
||||||
if ExploreManager.FormationData[teamId].state < 1 then
|
if ExploreManager.FormationData[teamId].state < 1 then
|
||||||
SubUIManager.Close(this.playerViews[this.playerViews[teamId].formationId])
|
SubUIManager.Close(this.playerViews[teamId])
|
||||||
|
this.playerViews[teamId] = nil
|
||||||
if this.playerViews[0].formationId == teamId then
|
if this.playerViews[0].formationId == teamId then
|
||||||
this.playerViews[0] = nil
|
this.playerViews[0] = nil
|
||||||
this.playerViews[this.playerViews[0].formationId] = nil
|
this.playerViews[this.playerViews[0].formationId] = nil
|
||||||
|
|
|
@ -1090,7 +1090,6 @@ function this.ExplorerMapIndicationResponse(buffer)
|
||||||
local data = buffer:DataByte()
|
local data = buffer:DataByte()
|
||||||
local msg = PlayerInfoProto_pb.ExplorerMapIndicationResponse()
|
local msg = PlayerInfoProto_pb.ExplorerMapIndicationResponse()
|
||||||
msg:ParseFromString(data)
|
msg:ParseFromString(data)
|
||||||
LogGreen("收到了刷新探索编队的indication")
|
|
||||||
ExploreManager.UpdateFormationData(msg.exploreInfo)
|
ExploreManager.UpdateFormationData(msg.exploreInfo)
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Explore.UpdateFormation)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Explore.UpdateFormation)
|
||||||
end
|
end
|
||||||
|
|
|
@ -301,7 +301,6 @@ end
|
||||||
|
|
||||||
-- 随机一个位置给大爷走走
|
-- 随机一个位置给大爷走走
|
||||||
function SingleExplorePlayerView:SetRoleHitTarget()
|
function SingleExplorePlayerView:SetRoleHitTarget()
|
||||||
LogGreen("self.activeState:"..self.activeState)
|
|
||||||
if self.activeState == 0 then
|
if self.activeState == 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue