int Expedition_Global_Manager_Data::deserialize(Block_Buffer &r) { uint16_t len = 0; int64_t uuid = 0; Time_Value tv = Time_Value::zero; r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(uuid); tv.deserialize(r); opened_uuid_opentime_map_.insert(std::make_pair(uuid, tv)); } int inter = 0; r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(uuid); r.read_int32(inter); uuid_inter_map_.insert(std::make_pair(uuid, inter)); } r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int32(inter); tv.deserialize(r); opentime_.insert(std::make_pair(inter, tv)); } mmuid_.deserialize(r); // uint32_t inter_u = 0; // Expedition_Manager_Data emd; // r.read_uint16(len); // for (uint16_t i = 0; i < len; ++i) { // emd.reset(); // r.read_uint32(inter_u); // emd.deserialize(r); // inter_manager_data_map_.insert(std::make_pair(inter_u, emd)); // } return 0; }
int Expedition_Manager_Data::deserialize(Block_Buffer &r) { r.read_uint32(inter_); uint16_t len = 0; int64_t i_64 = 0; Time_Value tv = Time_Value::zero; r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64); tv.deserialize(r); opened_uuid_opentime_map_.insert(std::make_pair(i_64, tv)); } int64_t i_64_2 = 0; r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64); r.read_int64(i_64_2); gang_id_uuid_map_.insert(std::make_pair(i_64, i_64_2)); } last_reset_time_.deserialize(r); uint32_t ui_32 = 0; r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64); r.read_uint32(ui_32); first_gang_rank_.insert(std::make_pair(i_64, ui_32)); } r.read_bool(has_init_); r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { bool hi = false; r.read_int64(i_64); r.read_bool(hi); uuid_has_init_[i_64] = hi; } r.read_uint16(len); Expedition_Gang_Rank_Info egri; for (uint16_t i = 0; i < len; ++i) { egri.reset(); r.read_int64(i_64); egri.deserialize(r); gang_rank_map_.insert(std::make_pair(i_64, egri)); } int64_t i_64_t = 0; r.read_uint16(len); uint16_t len_t = 0; for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64_t); r.read_uint16(len_t); for (uint16_t j = 0; j < len_t; ++j) { r.read_int64(i_64); egri.deserialize(r); uuid_gang_rank_map_[i_64_t].insert(std::make_pair(i_64, egri)); } } r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64); gang_rank_sync_success_.insert(i_64); } r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64); gang_rank_sync_new_vec_.push_back(i_64); } r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64); r.read_uint32(ui_32); gang_id_point_id_.insert(std::make_pair(i_64, ui_32)); } int i_32 = 0; r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64); r.read_int32(i_32); gang_id_cur_line_.insert(std::make_pair(i_64, i_32)); } r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64_t); r.read_uint16(len_t); for (uint16_t j = 0; j < len_t; ++j) { r.read_int64(i_64); r.read_uint32(ui_32); uuid_gang_id_point_id_[i_64_t].insert(std::make_pair(i_64, ui_32)); } } r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64_t); r.read_uint16(len_t); for (uint16_t j = 0; j < len_t; ++j) { r.read_int64(i_64); r.read_int32(i_32); uuid_gang_id_cur_line_[i_64_t].insert(std::make_pair(i_64, i_32)); } } Expedition_Scene_Data esd; r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { esd.reset(); r.read_uint32(ui_32); esd.deserialize(r); line_scene_map_.insert(std::make_pair(ui_32, esd)); } r.read_uint16(len); for (uint16_t i = 0; i < len; ++i) { r.read_int64(i_64); r.read_uint16(len_t); for (uint16_t j = 0; j < len_t; ++j) { esd.reset(); r.read_uint32(ui_32); esd.deserialize(r); uuid_line_scene_map_[i_64].insert(std::make_pair(ui_32, esd)); } } return 0; }