_SM_TYPE.goldReceived.index(): _sc.GoldReceivedFormatter(),
 _SM_TYPE.invoiceReceived.index(): _sc.InvoiceReceivedFormatter(),
 _SM_TYPE.adminTextMessage.index(): _sc.AdminMessageFormatter(),
 _SM_TYPE.accountTypeChanged.index(): _sc.AccountTypeChangedFormatter(),
 _SM_TYPE.giftReceived.index(): _sc.GiftReceivedFormatter(),
 _SM_TYPE.autoMaintenance.index(): _sc.AutoMaintenanceFormatter(),
 _SM_TYPE.premiumBought.index(): _sc.PremiumBoughtFormatter(),
 _SM_TYPE.premiumExtended.index(): _sc.PremiumExtendedFormatter(),
 _SM_TYPE.premiumExpired.index(): _sc.PremiumExpiredFormatter(),
 _SM_TYPE.prbArenaFinish.index(): _sc.PrebattleArenaFinishFormatter(),
 _SM_TYPE.prbKick.index(): _sc.PrebattleKickFormatter(),
 _SM_TYPE.prbDestruction.index(): _sc.PrebattleDestructionFormatter(),
 _SM_TYPE.vehicleCamouflageTimedOut.index(): _sc.VehCamouflageTimedOutFormatter(),
 _SM_TYPE.vehiclePlayerEmblemTimedOut.index(): _sc.VehEmblemTimedOutFormatter(),
 _SM_TYPE.vehiclePlayerInscriptionTimedOut.index(): _sc.VehInscriptionTimedOutFormatter(),
 _SM_TYPE.vehTypeLockExpired.index(): _sc.VehicleTypeLockExpired(),
 _SM_TYPE.serverDowntimeCompensation.index(): _sc.ServerDowntimeCompensation(),
 _SM_TYPE.achievementReceived.index(): _sc.AchievementFormatter(),
 _SM_TYPE.converter.index(): _sc.ConverterFormatter(),
 _SM_TYPE.tokenQuests.index(): _sc.TokenQuestsFormatter(),
 _SM_TYPE.notificationsCenter.index(): _sc.NCMessageFormatter(),
 _SM_TYPE.clanEvent.index(): _sc.ClanMessageFormatter(),
 _SM_TYPE.fortEvent.index(): _sc.StrongholdMessageFormatter(),
 _SM_TYPE.vehicleRented.index(): _sc.VehicleRentedFormatter(),
 _SM_TYPE.rentalsExpired.index(): _sc.RentalsExpiredFormatter(),
 _SM_TYPE.refSystemQuests.index(): _sc.RefSystemQuestsFormatter(),
 _SM_TYPE.refSystemReferralBoughtVehicle.index(): _sc.RefSystemReferralBoughtVehicleFormatter(),
 _SM_TYPE.refSystemReferralContributedXP.index(): _sc.RefSystemReferralContributedXPFormatter(),
 _SM_TYPE.potapovQuestBonus.index(): _sc.PersonalMissionsFormatter(),
 _SM_TYPE.goodieRemoved.index(): _sc.GoodieRemovedFormatter(),
 _SM_TYPE.goodieDisabled.index(): _sc.GoodieDisabledFormatter(),
Example #2
0
 _SM_TYPE.premiumExpired.index():
 _sc.PremiumExpiredFormatter(),
 _SM_TYPE.prbArenaFinish.index():
 _sc.PrebattleArenaFinishFormatter(),
 _SM_TYPE.prbKick.index():
 _sc.PrebattleKickFormatter(),
 _SM_TYPE.prbDestruction.index():
 _sc.PrebattleDestructionFormatter(),
 _SM_TYPE.vehicleCamouflageTimedOut.index():
 _sc.VehCamouflageTimedOutFormatter(),
 _SM_TYPE.vehiclePlayerEmblemTimedOut.index():
 _sc.VehEmblemTimedOutFormatter(),
 _SM_TYPE.vehiclePlayerInscriptionTimedOut.index():
 _sc.VehInscriptionTimedOutFormatter(),
 _SM_TYPE.vehTypeLockExpired.index():
 _sc.VehicleTypeLockExpired(),
 _SM_TYPE.serverDowntimeCompensation.index():
 _sc.ServerDowntimeCompensation(),
 _SM_TYPE.achievementReceived.index():
 _sc.AchievementFormatter(),
 _SM_TYPE.converter.index():
 _sc.ConverterFormatter(),
 _SM_TYPE.tokenQuests.index():
 _sc.TokenQuestsFormatter(),
 _SM_TYPE.historicalCostsReserved.index():
 _sc.HistoricalCostsReservedFormatter(),
 _SM_TYPE.notificationsCenter.index():
 _sc.NCMessageFormatter(),
 _SM_TYPE.clanEvent.index():
 _sc.ClanMessageFormatter(),
 _SM_TYPE.fortEvent.index():
Example #3
0
    SYS_MESSAGE_TYPE.premiumExpired.index():
    sch_formatters.PremiumExpiredFormatter(),
    SYS_MESSAGE_TYPE.prbArenaFinish.index():
    sch_formatters.PrebattleArenaFinishFormatter(),
    SYS_MESSAGE_TYPE.prbKick.index():
    sch_formatters.PrebattleKickFormatter(),
    SYS_MESSAGE_TYPE.prbDestruction.index():
    sch_formatters.PrebattleDestructionFormatter(),
    SYS_MESSAGE_TYPE.vehicleCamouflageTimedOut.index():
    sch_formatters.VehCamouflageTimedOutFormatter(),
    SYS_MESSAGE_TYPE.vehiclePlayerEmblemTimedOut.index():
    sch_formatters.VehEmblemTimedOutFormatter(),
    SYS_MESSAGE_TYPE.vehiclePlayerInscriptionTimedOut.index():
    sch_formatters.VehInscriptionTimedOutFormatter(),
    SYS_MESSAGE_TYPE.vehTypeLockExpired.index():
    sch_formatters.VehicleTypeLockExpired(),
    SYS_MESSAGE_TYPE.serverDowntimeCompensation.index():
    sch_formatters.ServerDowntimeCompensation(),
    SYS_MESSAGE_TYPE.achievementReceived.index():
    sch_formatters.AchievementFormatter(),
    SYS_MESSAGE_TYPE.converter.index():
    sch_formatters.ConverterFormatter()
}


class SCH_CLIENT_MSG_TYPE(object):
    SYS_MSG_TYPE, PREMIUM_ACCOUNT_EXPIRY_MSG, AOGAS_NOTIFY_TYPE, ACTION_NOTIFY_TYPE, BATTLE_TUTORIAL_RESULTS_TYPE = range(
        5)


SCH_CLIENT_FORMATTERS_DICT = {