添加主线阵容符文数据上报
This commit is contained in:
parent
6ce2886143
commit
2a62f2a94e
@ -331,6 +331,10 @@ BIReport.ACTIVITY_SUMMER = {
|
|||||||
BUY_LEVEL_UP = "BuyLevelUp",
|
BUY_LEVEL_UP = "BuyLevelUp",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIReport.RUNES_FORMATION = {
|
||||||
|
CHAPTER = "chapter",
|
||||||
|
}
|
||||||
|
|
||||||
-- b6
|
-- b6
|
||||||
local EVENT_NAME_EXIT = "client_exit"
|
local EVENT_NAME_EXIT = "client_exit"
|
||||||
local EVENT_NAME_FIGHT = "client_fight"
|
local EVENT_NAME_FIGHT = "client_fight"
|
||||||
@ -362,6 +366,7 @@ local EVENT_NAME_ARENA_OPT = "client_arena_opt"-- 竞技场
|
|||||||
local EVENT_NAME_MISCELLANEOUS_OPT = "event_name_miscellaneous_opt" -- 一些杂项
|
local EVENT_NAME_MISCELLANEOUS_OPT = "event_name_miscellaneous_opt" -- 一些杂项
|
||||||
local EVENT_BOX_OPEN = "client_box_open"
|
local EVENT_BOX_OPEN = "client_box_open"
|
||||||
local EVENT_ACT_OPT = "client_act_opt"
|
local EVENT_ACT_OPT = "client_act_opt"
|
||||||
|
local EVENT_NAME_RUNES = "client_runes"
|
||||||
|
|
||||||
function BIReport:setIsNewPlayer(isNewPlayer)
|
function BIReport:setIsNewPlayer(isNewPlayer)
|
||||||
self.isNewPlayer = isNewPlayer
|
self.isNewPlayer = isNewPlayer
|
||||||
@ -1777,4 +1782,12 @@ function BIReport:postActOpt(event_type, actId, level, exp, buyLevelCost)
|
|||||||
self:report(EVENT_ACT_OPT, args)
|
self:report(EVENT_ACT_OPT, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BIReport:postRunes(event_type, runes)
|
||||||
|
local args = {
|
||||||
|
event_type = event_type,
|
||||||
|
runes = runes
|
||||||
|
}
|
||||||
|
self:report(EVENT_NAME_RUNES, args)
|
||||||
|
end
|
||||||
|
|
||||||
return BIReport
|
return BIReport
|
||||||
@ -154,6 +154,8 @@ function DataManager:initWithServerData(data)
|
|||||||
self.DailyChallengeData:init(data.chapter_daily_challenge)
|
self.DailyChallengeData:init(data.chapter_daily_challenge)
|
||||||
self.DungeonData:initDungeonGold(data.chapter_gold_challenge)
|
self.DungeonData:initDungeonGold(data.chapter_gold_challenge)
|
||||||
self.DungeonData:initDungeonShards(data.chapter_shards_challenge)
|
self.DungeonData:initDungeonShards(data.chapter_shards_challenge)
|
||||||
|
-- FormationData要在RunesData之前初始化,依赖阵容数据进行上报
|
||||||
|
self.FormationData:init(data.fight_info)
|
||||||
self.EquipData:init(data.heroes_equips)
|
self.EquipData:init(data.heroes_equips)
|
||||||
self.EquipData:initGifts(data.act_weapon_armor_gift)
|
self.EquipData:initGifts(data.act_weapon_armor_gift)
|
||||||
self.SkinData:init(data.bag.skins)
|
self.SkinData:init(data.bag.skins)
|
||||||
@ -161,7 +163,6 @@ function DataManager:initWithServerData(data)
|
|||||||
-- HeroData要在EquipData、SkinData、RunesData之后初始化,依赖它们的属性数据
|
-- HeroData要在EquipData、SkinData、RunesData之后初始化,依赖它们的属性数据
|
||||||
self.HeroData:init(data.bag.heroes)
|
self.HeroData:init(data.bag.heroes)
|
||||||
self.BagData:init(data.bag)
|
self.BagData:init(data.bag)
|
||||||
self.FormationData:init(data.fight_info)
|
|
||||||
self.DungeonData:initDungeonWeapon(data.chapter_weapon_challenge)
|
self.DungeonData:initDungeonWeapon(data.chapter_weapon_challenge)
|
||||||
self.DungeonData:initDungeonArmor(data.chapter_armor_challenge)
|
self.DungeonData:initDungeonArmor(data.chapter_armor_challenge)
|
||||||
self.CollectionData:init(data.collection)
|
self.CollectionData:init(data.collection)
|
||||||
|
|||||||
@ -22,6 +22,14 @@ function RunesData:init(data)
|
|||||||
for heroId, grids in pairs(data.heroes_grids) do
|
for heroId, grids in pairs(data.heroes_grids) do
|
||||||
self:addEquip(heroId, grids.grids)
|
self:addEquip(heroId, grids.grids)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 处理上报
|
||||||
|
local formation = DataManager.FormationData:getStageFormation()
|
||||||
|
local runesChapter = {}
|
||||||
|
for elementType, heroId in pairs(formation) do
|
||||||
|
runesChapter[heroId] = data.heroes_grids[heroId]
|
||||||
|
end
|
||||||
|
BIReport:postRunes(BIReport.RUNES_FORMATION.CHAPTER, runesChapter)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 活动开启
|
-- 活动开启
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user