fix warn
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::{
|
||||
net::tools::JsonData,
|
||||
util::{self, cur_timestamp_ms},
|
||||
};
|
||||
use crate::util::{self};
|
||||
|
||||
use super::*;
|
||||
|
||||
@@ -23,28 +20,6 @@ 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_player_heart_beat_cs_req(
|
||||
session: &mut PlayerSession,
|
||||
body: &PlayerHeartBeatCsReq,
|
||||
|
||||
Reference in New Issue
Block a user