2.3.51
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
use crate::{net::tools::JsonData, util};
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::{
|
||||
net::tools::JsonData,
|
||||
util::{self, cur_timestamp_ms},
|
||||
};
|
||||
|
||||
use super::*;
|
||||
|
||||
@@ -18,27 +23,27 @@ pub async fn on_get_basic_info_cs_req(
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn on_get_hero_basic_type_info_cs_req(
|
||||
session: &mut PlayerSession,
|
||||
_body: &GetHeroBasicTypeInfoCsReq,
|
||||
) -> Result<()> {
|
||||
let mc = JsonData::load().await.main_character;
|
||||
session
|
||||
.send(
|
||||
CMD_GET_HERO_BASIC_TYPE_INFO_SC_RSP,
|
||||
GetHeroBasicTypeInfoScRsp {
|
||||
retcode: 0,
|
||||
gender: mc.get_gender().into(),
|
||||
cur_basic_type: mc.get_type().into(),
|
||||
basic_type_info_list: vec![HeroBasicTypeInfo {
|
||||
basic_type: mc.get_type().into(),
|
||||
..Default::default()
|
||||
}],
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
.await
|
||||
}
|
||||
// pub async fn on_get_hero_basic_type_info_cs_req(
|
||||
// session: &mut PlayerSession,
|
||||
// _body: &GetHeroBasicTypeInfoCsReq,
|
||||
// ) -> Result<()> {
|
||||
// let mc = JsonData::load().await.main_character;
|
||||
// session
|
||||
// .send(
|
||||
// CMD_GET_HERO_BASIC_TYPE_INFO_SC_RSP,
|
||||
// GetHeroBasicTypeInfoScRsp {
|
||||
// retcode: 0,
|
||||
// gender: mc.get_gender().into(),
|
||||
// cur_basic_type: mc.get_type().into(),
|
||||
// basic_type_info_list: vec![HeroBasicTypeInfo {
|
||||
// basic_type: mc.get_type().into(),
|
||||
// ..Default::default()
|
||||
// }],
|
||||
// ..Default::default()
|
||||
// },
|
||||
// )
|
||||
// .await
|
||||
// }
|
||||
|
||||
pub async fn on_player_heart_beat_cs_req(
|
||||
session: &mut PlayerSession,
|
||||
@@ -79,13 +84,31 @@ pub async fn on_player_login_finish_cs_req(
|
||||
session
|
||||
.send(
|
||||
CMD_CONTENT_PACKAGE_SYNC_DATA_SC_NOTIFY,
|
||||
Chhopfkjmje {
|
||||
data: Some(Gdafmkkhkkl {
|
||||
himejaheaoj: vec![Bejmehlnpan {
|
||||
status: Olngclnnaie::ContentPackageStatusFinished.into(),
|
||||
jkbgighlakf: 200001,
|
||||
}],
|
||||
eoljolnkooh: 0,
|
||||
ContentPackageSyncDataScNotify {
|
||||
data: Some(PackageData {
|
||||
info_list: vec![
|
||||
ContentInfo {
|
||||
status: ContentPackageStatus::Finished.into(),
|
||||
content_id: 200001,
|
||||
},
|
||||
ContentInfo {
|
||||
status: ContentPackageStatus::Finished.into(),
|
||||
content_id: 200002,
|
||||
},
|
||||
ContentInfo {
|
||||
status: ContentPackageStatus::Finished.into(),
|
||||
content_id: 200003,
|
||||
},
|
||||
ContentInfo {
|
||||
status: ContentPackageStatus::Finished.into(),
|
||||
content_id: 150017,
|
||||
},
|
||||
ContentInfo {
|
||||
status: ContentPackageStatus::Finished.into(),
|
||||
content_id: 150015,
|
||||
},
|
||||
],
|
||||
fnmhgeaflmn: 0,
|
||||
}),
|
||||
},
|
||||
)
|
||||
@@ -93,3 +116,84 @@ pub async fn on_player_login_finish_cs_req(
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn on_get_multi_path_avatar_info_cs_req(
|
||||
session: &mut PlayerSession,
|
||||
_: &GetMultiPathAvatarInfoCsReq,
|
||||
) -> Result<()> {
|
||||
session
|
||||
.send(
|
||||
CMD_GET_MULTI_PATH_AVATAR_INFO_SC_RSP,
|
||||
GetMultiPathAvatarInfoScRsp {
|
||||
retcode: 0,
|
||||
multi_path_avatar_type_info_list: vec![
|
||||
MultiPathAvatarTypeInfo {
|
||||
multi_path_avatar_type: MultiPathAvatarType::GirlShamanType.into(),
|
||||
rank: 6,
|
||||
equip_relic_list: vec![],
|
||||
skilltree_list: vec![
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 8006001,
|
||||
},
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 8006002,
|
||||
},
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 8006003,
|
||||
},
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 8006004,
|
||||
},
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 8006001,
|
||||
},
|
||||
],
|
||||
all_path_special_skilltree_list: vec![],
|
||||
path_equipment_id: 0,
|
||||
all_path_unlocked_special_point_id_list: vec![],
|
||||
},
|
||||
MultiPathAvatarTypeInfo {
|
||||
multi_path_avatar_type: MultiPathAvatarType::Mar7thKnightType.into(),
|
||||
rank: 6,
|
||||
equip_relic_list: vec![],
|
||||
skilltree_list: vec![
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 1224001,
|
||||
},
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 1224002,
|
||||
},
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 1224003,
|
||||
},
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 1224004,
|
||||
},
|
||||
AvatarSkillTree {
|
||||
level: 1,
|
||||
point_id: 1224005,
|
||||
},
|
||||
],
|
||||
all_path_special_skilltree_list: vec![],
|
||||
path_equipment_id: 1224,
|
||||
all_path_unlocked_special_point_id_list: vec![],
|
||||
},
|
||||
],
|
||||
gmhdhimdkfi: vec![],
|
||||
current_multi_path_avatar_id: HashMap::from([
|
||||
(8001, MultiPathAvatarType::GirlShamanType.into()),
|
||||
(1001, MultiPathAvatarType::Mar7thRogueType.into()),
|
||||
]),
|
||||
},
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user