def sendConfig(self, flashObject): #trace('sendConfig') if flashObject is None: return try: movie = flashObject.movie if movie is not None: arena = BigWorld.player().arena movie.invoke((AS2RESPOND.CONFIG, [ config.config_str, config.lang_str, arena.extraData.get('battleLevel', 0), arena.bonusType, 'fallout' if arena_info.isEventBattle() else 'normal', vehinfo.getVehicleInfoDataStr(), simplejson.dumps(token.networkServicesSettings), simplejson.dumps(minimap_circles.getMinimapCirclesData()), IS_DEVELOPMENT, ])) except Exception, ex: err('sendConfig(): ' + traceback.format_exc())
def respondConfig(self): trace('respondConfig') as_xfw_cmd(XVM_COMMAND.AS_SET_CONFIG, config.config_str, config.lang_str, vehinfo.getVehicleInfoDataStr())