def __init__(self, finishReasonLabel, shortResultLabel, fullResultLabel): meta = { finishReasonLabel: '', shortResultLabel: '', fullResultLabel: '' } auto = ((0, base.StatsItem(finishReasonLabel, 'finishReasonLabel')), (1, base.StatsItem(shortResultLabel, 'shortResultLabel')), (2, base.StatsItem(fullResultLabel, 'fullResultLabel'))) super(FinishResultMeta, self).__init__(meta, auto)
_TIME_STATS_BLOCK = base.StatsBlock(base.ListMeta(runtime=False), 'timeStats', _RECORD.COMMON) _TIME_STATS_BLOCK.addComponent(0, common.ArenaShortTimeVO('arenaCreateTimeOnlyStr', 'arenaCreateTime')) _TIME_STATS_BLOCK.addComponent(1, common.ArenaDurationVO('duration', 'duration')) _TIME_STATS_BLOCK.addComponent(2, common.PlayerKillingTimeVO('playerKilled')) _STATS_SORTING_VO_META = base.PropertyMeta((('iconType', 'tank', 'criteria'), ('sortDirection', 'descending', 'direction'))) _STATS_SORTING_VO_META.bind(shared.SortingBlock) FINISH_RESULT_VO_META = base.PropertyMeta((('finishReasonStr', '', 'finishReasonLabel'), ('resultShortStr', '', 'shortResultLabel'), ('resultStr', '', 'fullResultLabel'))) FINISH_RESULT_VO_META.bind(common.RegularFinishResultBlock) REGULAR_COMMON_STATS_BLOCK = base.StatsBlock(_COMMON_VO_META, 'common') REGULAR_COMMON_STATS_BLOCK.addComponent(0, shared.RegularSortingBlock()) REGULAR_COMMON_STATS_BLOCK.addComponent(1, shared.WasInBattleItem('wasInBattle')) REGULAR_COMMON_STATS_BLOCK.addComponent(2, common.ArenaDateTimeItem('arenaCreateTimeStr', _RECORD.COMMON, 'arenaCreateTime')) REGULAR_COMMON_STATS_BLOCK.addComponent(3, common.RegularArenaFullNameItem('arenaStr')) REGULAR_COMMON_STATS_BLOCK.addComponent(4, common.ArenaIconItem('arenaIcon', _RECORD.COMMON)) REGULAR_COMMON_STATS_BLOCK.addComponent(5, common.ArenaDurationItem('duration', _RECORD.COMMON, 'duration')) REGULAR_COMMON_STATS_BLOCK.addComponent(6, base.StatsItem('bonusType', _RECORD.COMMON, 'bonusType')) REGULAR_COMMON_STATS_BLOCK.addComponent(7, common.RegularFinishResultBlock()) REGULAR_COMMON_STATS_BLOCK.addComponent(8, personal.PersonalPlayerNameBlock()) REGULAR_COMMON_STATS_BLOCK.addComponent(9, personal.PersonalVehicleNamesBlock(base.ListMeta(), 'playerVehicleNames')) REGULAR_COMMON_STATS_BLOCK.addComponent(10, personal.PersonalVehiclesBlock(base.ListMeta(), 'playerVehicles', _RECORD.PERSONAL)) REGULAR_COMMON_STATS_BLOCK.addComponent(11, _TIME_STATS_BLOCK.clone()) REGULAR_COMMON_STATS_BLOCK.addComponent(12, shared.ClientIndexItem('clientArenaIdx')) REGULAR_COMMON_STATS_BLOCK.addComponent(13, common.TeamsUiVisibility('uiVisibility')) REGULAR_COMMON_STATS_BLOCK.addComponent(14, common.EligibleForCrystalRewards('eligibleForCrystalRewards')) _PERSONAL_VO_META = base.DictMeta({'isPremium': False, 'isLegionnaire': False, 'creditsStr': '0', 'xpStr': '0', 'fortResourceTotal': '', 'efficiencyHeader': {}, 'details': [],
REGULAR_COMMON_STATS_BLOCK = base.StatsBlock(_COMMON_VO_META, 'common') REGULAR_COMMON_STATS_BLOCK.addComponent(0, shared.RegularSortingBlock()) REGULAR_COMMON_STATS_BLOCK.addComponent(1, shared.WasInBattleItem('wasInBattle')) REGULAR_COMMON_STATS_BLOCK.addComponent( 2, common.ArenaDateTimeItem('arenaCreateTimeStr', _RECORD.COMMON, 'arenaCreateTime')) REGULAR_COMMON_STATS_BLOCK.addComponent( 3, common.RegularArenaFullNameItem('arenaStr')) REGULAR_COMMON_STATS_BLOCK.addComponent( 4, common.ArenaIconItem('arenaIcon', _RECORD.COMMON)) REGULAR_COMMON_STATS_BLOCK.addComponent( 5, common.ArenaDurationItem('duration', _RECORD.COMMON, 'duration')) REGULAR_COMMON_STATS_BLOCK.addComponent( 6, base.StatsItem('bonusType', _RECORD.COMMON, 'bonusType')) REGULAR_COMMON_STATS_BLOCK.addComponent(7, common.RegularFinishResultBlock()) REGULAR_COMMON_STATS_BLOCK.addComponent(8, personal.PersonalPlayerNameBlock()) REGULAR_COMMON_STATS_BLOCK.addComponent( 9, personal.PersonalVehicleNamesBlock(base.ListMeta(), 'playerVehicleNames')) REGULAR_COMMON_STATS_BLOCK.addComponent( 10, personal.PersonalVehiclesBlock(base.ListMeta(), 'playerVehicles', _RECORD.PERSONAL)) REGULAR_COMMON_STATS_BLOCK.addComponent(11, _TIME_STATS_BLOCK.clone()) REGULAR_COMMON_STATS_BLOCK.addComponent( 12, shared.ClientIndexItem('clientArenaIdx')) REGULAR_COMMON_STATS_BLOCK.addComponent( 13, common.TeamsUiVisibility('uiVisibility')) REGULAR_COMMON_STATS_BLOCK.addComponent(