diff --git a/gameserver/src/net/handlers/map.rs b/gameserver/src/net/handlers/map.rs index e587607..9383d1a 100644 --- a/gameserver/src/net/handlers/map.rs +++ b/gameserver/src/net/handlers/map.rs @@ -12,3 +12,13 @@ pub async fn on_mark_map_req(session: &PlayerSession, body: &MarkMapReq) -> Resu session.send(MARK_MAP_RSP, MarkMapRsp::default()).await } + +pub async fn on_get_scene_area_req(session: &PlayerSession, body: &GetSceneAreaReq) -> Result<()> { + let rsp = GetSceneAreaRsp { + area_id_list: (0..50).collect(), + scene_id: body.scene_id, + ..Default::default() + }; + + session.send(GET_SCENE_AREA_RSP, rsp).await +} diff --git a/gameserver/src/net/packet.rs b/gameserver/src/net/packet.rs index ac2dcd8..e69a791 100644 --- a/gameserver/src/net/packet.rs +++ b/gameserver/src/net/packet.rs @@ -137,4 +137,5 @@ trait_handler! { EvtAvatarSitDownReq 764; EvtAvatarStandUpNotify 8549; MarkMapReq 7802; + GetSceneAreaReq 5114; } diff --git a/proto/out/_.rs b/proto/out/_.rs index faad89a..ad5a227 100644 --- a/proto/out/_.rs +++ b/proto/out/_.rs @@ -3868,7 +3868,7 @@ pub struct Aebahhdlblh { } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct Niijhlphknp { +pub struct CityInfo { #[prost(uint32, tag = "11")] pub gopafbeakcb: u32, #[prost(uint32, tag = "9")] @@ -21383,7 +21383,7 @@ pub struct Mdfhdifmlgj { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Flmmpoonphk { #[prost(uint32, repeated, tag = "8")] - pub nfjhodfgfpk: ::prost::alloc::vec::Vec, + pub area_id_list: ::prost::alloc::vec::Vec, } /// CmdId: 95 #[allow(clippy::derive_partial_eq_without_eq)] @@ -25990,7 +25990,7 @@ pub struct Amlefnnmlei { #[prost(int32, tag = "4")] pub retcode: i32, #[prost(uint32, tag = "15")] - pub ljbnggpbeni: u32, + pub belong_uid: u32, } /// CmdId: 24632 #[allow(clippy::derive_partial_eq_without_eq)] @@ -27765,7 +27765,7 @@ pub struct Ccajhlpaipj { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Elaemanoekm { #[prost(message, optional, tag = "9")] - pub cdgokfagpdn: ::core::option::Option, + pub cdgokfagpdn: ::core::option::Option, #[prost(int32, tag = "5")] pub retcode: i32, #[prost(uint32, tag = "13")] @@ -32630,7 +32630,7 @@ pub struct Kmnjefmdmmf { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Nchibhabdle { #[prost(uint32, repeated, tag = "10")] - pub nfjhodfgfpk: ::prost::alloc::vec::Vec, + pub area_id_list: ::prost::alloc::vec::Vec, #[prost(uint32, repeated, tag = "1")] pub aonamoacmbi: ::prost::alloc::vec::Vec, #[prost(int32, tag = "14")] @@ -33754,9 +33754,9 @@ pub struct Dfpfobhagmg { /// CmdId: 1668 #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct Lpfinpojlce { +pub struct GetScenePointReq { #[prost(uint32, tag = "10")] - pub ljbnggpbeni: u32, + pub belong_uid: u32, #[prost(bool, tag = "6")] pub appfphlakbg: bool, #[prost(uint32, tag = "11")] @@ -38166,11 +38166,11 @@ pub struct Nffnahoahkk { /// CmdId: 5114 #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct Baklebmfmmi { +pub struct GetSceneAreaReq { #[prost(uint32, tag = "2")] pub scene_id: u32, #[prost(uint32, tag = "14")] - pub ljbnggpbeni: u32, + pub belong_uid: u32, } /// CmdId: 3779 #[allow(clippy::derive_partial_eq_without_eq)] @@ -42608,11 +42608,11 @@ pub struct Poggadgmmbf { /// CmdId: 22648 #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct Akdfbahhljp { +pub struct GetSceneAreaRsp { #[prost(message, repeated, tag = "4")] - pub inllpcgcpfk: ::prost::alloc::vec::Vec, + pub city_info_list: ::prost::alloc::vec::Vec, #[prost(uint32, repeated, tag = "7")] - pub nfjhodfgfpk: ::prost::alloc::vec::Vec, + pub area_id_list: ::prost::alloc::vec::Vec, #[prost(uint32, tag = "5")] pub scene_id: u32, #[prost(int32, tag = "15")] diff --git a/proto/src/cmd_types.rs b/proto/src/cmd_types.rs index 024f362..bd91141 100644 --- a/proto/src/cmd_types.rs +++ b/proto/src/cmd_types.rs @@ -22,3 +22,4 @@ pub const CHANGE_AVATAR_RSP: u16 = 5958; pub const EVT_AVATAR_SIT_DOWN_RSP: u16 = 29232; pub const EVT_AVATAR_STAND_UP_NOTIFY: u16 = 8549; pub const MARK_MAP_RSP: u16 = 25569; +pub const GET_SCENE_AREA_RSP: u16 = 22648;