示例#1
0
def prot_rsp_build(uc, message):
    message = pbjson.pb2dict(message)
    _update_source_change_info(uc, message['rsp_build']['source_change_info'])
    _update_progress_info(uc, message['rsp_build']['progress_info'])
    _update_building_info(uc, message['rsp_build']['building_info'])
    uc.user_data['base_info']['cash'] = message['rsp_build']['cash']
    uc.action_state = 1
示例#2
0
def prot_rsp_training(uc, message):
    message = pbjson.pb2dict(message.rsp_training)
    _update_source_change_info(uc, message['source_change_info'])
    _update_progress_info(uc, message['progress_info'])
    uc.user_data['army_info']['training_info'] = message['training_info']
    uc.user_data['base_info']['cash'] = message['cash']
    uc.action_state = 1
示例#3
0
def prot_rsp_cloud_map(uc, message):
    uc.user_data['cloud_map'] = pbjson.pb2dict(message.rsp_cloud_map)
    uc.action_state = 1
示例#4
0
def prot_rsp_map_info(uc, message):
    uc.user_data['map_info'] = pbjson.pb2dict(message.rsp_map_info)
    uc.action_state = 1
示例#5
0
def prot_rsp_city_change(uc, message):
    uc.user_data['city_change'] = pbjson.pb2dict(
        message.ext_info.rsp_city_change)
    uc.action_state = 1
示例#6
0
def prot_rsp_new_login(uc, message):
    message = pbjson.pb2dict(message)
    uc.user_data = message['rsp_login']['home_user_data']
    uc.user_id = uc.user_data['base_info']['uin']
    uc.action_state = 1