mirror of
https://git.neonteam.dev/amizing/robinsr.git
synced 2025-03-12 03:28:30 -04:00
fix warn
This commit is contained in:
parent
8c170781c5
commit
91f1e031a6
@ -1,9 +1,6 @@
|
|||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use crate::{
|
use crate::util::{self};
|
||||||
net::tools::JsonData,
|
|
||||||
util::{self, cur_timestamp_ms},
|
|
||||||
};
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
@ -23,28 +20,6 @@ pub async fn on_get_basic_info_cs_req(
|
|||||||
.await
|
.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(
|
pub async fn on_player_heart_beat_cs_req(
|
||||||
session: &mut PlayerSession,
|
session: &mut PlayerSession,
|
||||||
body: &PlayerHeartBeatCsReq,
|
body: &PlayerHeartBeatCsReq,
|
||||||
|
|||||||
@ -8,7 +8,7 @@ use crate::{
|
|||||||
tools::{AvatarJson, JsonData, Position},
|
tools::{AvatarJson, JsonData, Position},
|
||||||
tools_res::{PropState, GAME_RESOURCES},
|
tools_res::{PropState, GAME_RESOURCES},
|
||||||
},
|
},
|
||||||
util::{self, cur_timestamp_ms},
|
util::{self},
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
@ -337,7 +337,6 @@ async fn load_scene(
|
|||||||
..Default::default()
|
..Default::default()
|
||||||
})),
|
})),
|
||||||
entity_id: prop_entity_id,
|
entity_id: prop_entity_id,
|
||||||
..Default::default()
|
|
||||||
};
|
};
|
||||||
|
|
||||||
group_info.entity_list.push(entity_info);
|
group_info.entity_list.push(entity_info);
|
||||||
@ -367,7 +366,6 @@ async fn load_scene(
|
|||||||
npc_id: npc.npcid,
|
npc_id: npc.npcid,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})),
|
})),
|
||||||
..Default::default()
|
|
||||||
};
|
};
|
||||||
|
|
||||||
group_info.entity_list.push(info);
|
group_info.entity_list.push(info);
|
||||||
@ -396,7 +394,6 @@ async fn load_scene(
|
|||||||
entity_id: monster_entity_id,
|
entity_id: monster_entity_id,
|
||||||
motion: Some(monster_position.to_motion()),
|
motion: Some(monster_position.to_motion()),
|
||||||
entity: Some(Entity::NpcMonster(npc_monster)),
|
entity: Some(Entity::NpcMonster(npc_monster)),
|
||||||
..Default::default()
|
|
||||||
};
|
};
|
||||||
|
|
||||||
group_info.entity_list.push(info);
|
group_info.entity_list.push(info);
|
||||||
|
|||||||
@ -125,7 +125,7 @@ trait_handler! {
|
|||||||
TakeOffRelicCsReq 362;
|
TakeOffRelicCsReq 362;
|
||||||
|
|
||||||
// // Chat (dummy!)
|
// // Chat (dummy!)
|
||||||
// SendMsgCsReq 3918;
|
SendMsgCsReq 3918;
|
||||||
GetPrivateChatHistoryCsReq 3958;
|
GetPrivateChatHistoryCsReq 3958;
|
||||||
GetFriendListInfoCsReq 2918;
|
GetFriendListInfoCsReq 2918;
|
||||||
|
|
||||||
@ -146,9 +146,9 @@ trait_handler! {
|
|||||||
EnterSceneCsReq 1425;
|
EnterSceneCsReq 1425;
|
||||||
|
|
||||||
// // Optional
|
// // Optional
|
||||||
// GetMailCsReq 861;
|
GetMailCsReq 861;
|
||||||
// GetGachaInfoCsReq 1961;
|
GetGachaInfoCsReq 1961;
|
||||||
// DoGachaCsReq 1991;
|
DoGachaCsReq 1991;
|
||||||
// GetQuestDataCsReq 961;
|
// GetQuestDataCsReq 961;
|
||||||
PlayerLoginFinishCsReq 76;
|
PlayerLoginFinishCsReq 76;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user