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
|
from_uid: SERVER_UID, // from
|
||||||
to_uid: 25, // to
|
to_uid: 25, // to
|
||||||
chat_type: body.chat_type,
|
chat_type: body.chat_type,
|
||||||
..Default::default()
|
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
@ -121,7 +120,6 @@ pub async fn on_send_msg_cs_req(
|
|||||||
from_uid: SERVER_UID, // from
|
from_uid: SERVER_UID, // from
|
||||||
to_uid: 25, // to
|
to_uid: 25, // to
|
||||||
chat_type: body.chat_type,
|
chat_type: body.chat_type,
|
||||||
..Default::default()
|
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
@ -153,7 +151,6 @@ pub async fn on_send_msg_cs_req(
|
|||||||
from_uid: SERVER_UID, // from
|
from_uid: SERVER_UID, // from
|
||||||
to_uid: 25, // to
|
to_uid: 25, // to
|
||||||
chat_type: body.chat_type,
|
chat_type: body.chat_type,
|
||||||
..Default::default()
|
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|||||||
@ -36,7 +36,7 @@ pub async fn on_player_login_finish_cs_req(
|
|||||||
session
|
session
|
||||||
.send(ContentPackageSyncDataScNotify {
|
.send(ContentPackageSyncDataScNotify {
|
||||||
data: Some(PackageData {
|
data: Some(PackageData {
|
||||||
info_list: vec![
|
info_list: [
|
||||||
200001, 200002, 200003, 200004, 150017, 150015, 150021, 150018, 130011, 130012,
|
200001, 200002, 200003, 200004, 150017, 150015, 150021, 150018, 130011, 130012,
|
||||||
130013,
|
130013,
|
||||||
]
|
]
|
||||||
|
|||||||
@ -102,9 +102,9 @@ pub struct ScenePropInfo {
|
|||||||
pub struct TeleportInfo {
|
pub struct TeleportInfo {
|
||||||
pub pos: Vector,
|
pub pos: Vector,
|
||||||
pub rot: Vector,
|
pub rot: Vector,
|
||||||
pub group_id: u32,
|
// pub group_id: u32,
|
||||||
pub inst_id: u32,
|
// pub inst_id: u32,
|
||||||
pub anchor_id: u32,
|
// pub anchor_id: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
@ -128,8 +128,8 @@ pub struct LevelOutputConfig {
|
|||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct AvatarConfig {
|
pub struct AvatarConfig {
|
||||||
pub weakness_buff_id: u32,
|
// pub weakness_buff_id: u32,
|
||||||
pub technique_buff_ids: Vec<u32>,
|
// pub technique_buff_ids: Vec<u32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Default)]
|
#[derive(Deserialize, Default)]
|
||||||
@ -137,7 +137,7 @@ pub struct AvatarConfig {
|
|||||||
pub struct JsonConfig {
|
pub struct JsonConfig {
|
||||||
/// `entryid` -> `P[planeId]_F[floorId]` -> `groupId`
|
/// `entryid` -> `P[planeId]_F[floorId]` -> `groupId`
|
||||||
pub level_output_configs: HashMap<u32, HashMap<String, LevelOutputConfig>>,
|
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(|| {
|
pub static GAME_RES: LazyLock<JsonConfig> = LazyLock::new(|| {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user