mirror of
https://git.neonteam.dev/amizing/robinsr.git
synced 2025-03-12 03:28:30 -04:00
feat: tidying (cargo clippy)
This commit is contained in:
parent
d7696f4769
commit
f41cc5e47b
@ -89,7 +89,6 @@ pub async fn on_send_msg_cs_req(
|
||||
from_uid: SERVER_UID, // from
|
||||
to_uid: 25, // to
|
||||
chat_type: body.chat_type,
|
||||
..Default::default()
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
@ -121,7 +120,6 @@ pub async fn on_send_msg_cs_req(
|
||||
from_uid: SERVER_UID, // from
|
||||
to_uid: 25, // to
|
||||
chat_type: body.chat_type,
|
||||
..Default::default()
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
@ -153,7 +151,6 @@ pub async fn on_send_msg_cs_req(
|
||||
from_uid: SERVER_UID, // from
|
||||
to_uid: 25, // to
|
||||
chat_type: body.chat_type,
|
||||
..Default::default()
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
@ -36,7 +36,7 @@ pub async fn on_player_login_finish_cs_req(
|
||||
session
|
||||
.send(ContentPackageSyncDataScNotify {
|
||||
data: Some(PackageData {
|
||||
info_list: vec![
|
||||
info_list: [
|
||||
200001, 200002, 200003, 200004, 150017, 150015, 150021, 150018, 130011, 130012,
|
||||
130013,
|
||||
]
|
||||
|
||||
@ -102,9 +102,9 @@ pub struct ScenePropInfo {
|
||||
pub struct TeleportInfo {
|
||||
pub pos: Vector,
|
||||
pub rot: Vector,
|
||||
pub group_id: u32,
|
||||
pub inst_id: u32,
|
||||
pub anchor_id: u32,
|
||||
// pub group_id: u32,
|
||||
// pub inst_id: u32,
|
||||
// pub anchor_id: u32,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
@ -128,8 +128,8 @@ pub struct LevelOutputConfig {
|
||||
#[derive(Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct AvatarConfig {
|
||||
pub weakness_buff_id: u32,
|
||||
pub technique_buff_ids: Vec<u32>,
|
||||
// pub weakness_buff_id: u32,
|
||||
// pub technique_buff_ids: Vec<u32>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default)]
|
||||
@ -137,7 +137,7 @@ pub struct AvatarConfig {
|
||||
pub struct JsonConfig {
|
||||
/// `entryid` -> `P[planeId]_F[floorId]` -> `groupId`
|
||||
pub level_output_configs: HashMap<u32, HashMap<String, LevelOutputConfig>>,
|
||||
pub avatar_configs: HashMap<u32, AvatarConfig>,
|
||||
// pub avatar_configs: HashMap<u32, AvatarConfig>,
|
||||
}
|
||||
|
||||
pub static GAME_RES: LazyLock<JsonConfig> = LazyLock::new(|| {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user