探索提交
parent
5c51490cf5
commit
a6652757b1
|
@ -539,6 +539,7 @@ GameEvent = {
|
||||||
},
|
},
|
||||||
Explore = {
|
Explore = {
|
||||||
UpdateFormation = "Explore.UpdateFormation",
|
UpdateFormation = "Explore.UpdateFormation",
|
||||||
|
UpdateSingleFormation = "Explore.UpdateSingleFormation",
|
||||||
},
|
},
|
||||||
Gem = {
|
Gem = {
|
||||||
RefreshPanel = "Gem.RefreshPanel",
|
RefreshPanel = "Gem.RefreshPanel",
|
||||||
|
|
|
@ -101,6 +101,7 @@ function this.UpdateFormationData(team)
|
||||||
this.UpdateMapFormationData(team.mapId,team.teamId,1)
|
this.UpdateMapFormationData(team.mapId,team.teamId,1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.Explore.UpdateSingleFormation,team.teamId)
|
||||||
else
|
else
|
||||||
LogGreen(string.format("%s编队不属于探索玩法",team.teamId))
|
LogGreen(string.format("%s编队不属于探索玩法",team.teamId))
|
||||||
end
|
end
|
||||||
|
@ -186,6 +187,18 @@ function this.InitMapUserInfosData(data,mapId)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not myData then
|
||||||
|
myData.userName = PlayerManager.nickName
|
||||||
|
myData.sex = NameManager.roleSex
|
||||||
|
myData.uid = PlayerManager.uid
|
||||||
|
myData.userSkin = PlayerManager.designation
|
||||||
|
myData.userTitle = PlayerManager.skin
|
||||||
|
myData.userMount = PlayerManager.ride
|
||||||
|
myData.practiceLevel = 0
|
||||||
|
myData.lv = PlayerManager.level
|
||||||
|
myData.formationId = 0
|
||||||
|
myData.hp = 0
|
||||||
|
end
|
||||||
for k,v in pairs(this.ExploreMapData[mapId].formations) do
|
for k,v in pairs(this.ExploreMapData[mapId].formations) do
|
||||||
local singleUserData = {}
|
local singleUserData = {}
|
||||||
singleUserData.userName = myData.userName
|
singleUserData.userName = myData.userName
|
||||||
|
|
Loading…
Reference in New Issue