Unlock map area
This commit is contained in:
parent
5ead0fb3be
commit
ac64a1b4fd
4 changed files with 24 additions and 12 deletions
|
@ -12,3 +12,13 @@ pub async fn on_mark_map_req(session: &PlayerSession, body: &MarkMapReq) -> Resu
|
||||||
|
|
||||||
session.send(MARK_MAP_RSP, MarkMapRsp::default()).await
|
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
|
||||||
|
}
|
||||||
|
|
|
@ -137,4 +137,5 @@ trait_handler! {
|
||||||
EvtAvatarSitDownReq 764;
|
EvtAvatarSitDownReq 764;
|
||||||
EvtAvatarStandUpNotify 8549;
|
EvtAvatarStandUpNotify 8549;
|
||||||
MarkMapReq 7802;
|
MarkMapReq 7802;
|
||||||
|
GetSceneAreaReq 5114;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3868,7 +3868,7 @@ pub struct Aebahhdlblh {
|
||||||
}
|
}
|
||||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Niijhlphknp {
|
pub struct CityInfo {
|
||||||
#[prost(uint32, tag = "11")]
|
#[prost(uint32, tag = "11")]
|
||||||
pub gopafbeakcb: u32,
|
pub gopafbeakcb: u32,
|
||||||
#[prost(uint32, tag = "9")]
|
#[prost(uint32, tag = "9")]
|
||||||
|
@ -21383,7 +21383,7 @@ pub struct Mdfhdifmlgj {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Flmmpoonphk {
|
pub struct Flmmpoonphk {
|
||||||
#[prost(uint32, repeated, tag = "8")]
|
#[prost(uint32, repeated, tag = "8")]
|
||||||
pub nfjhodfgfpk: ::prost::alloc::vec::Vec<u32>,
|
pub area_id_list: ::prost::alloc::vec::Vec<u32>,
|
||||||
}
|
}
|
||||||
/// CmdId: 95
|
/// CmdId: 95
|
||||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||||
|
@ -25990,7 +25990,7 @@ pub struct Amlefnnmlei {
|
||||||
#[prost(int32, tag = "4")]
|
#[prost(int32, tag = "4")]
|
||||||
pub retcode: i32,
|
pub retcode: i32,
|
||||||
#[prost(uint32, tag = "15")]
|
#[prost(uint32, tag = "15")]
|
||||||
pub ljbnggpbeni: u32,
|
pub belong_uid: u32,
|
||||||
}
|
}
|
||||||
/// CmdId: 24632
|
/// CmdId: 24632
|
||||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||||
|
@ -27765,7 +27765,7 @@ pub struct Ccajhlpaipj {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Elaemanoekm {
|
pub struct Elaemanoekm {
|
||||||
#[prost(message, optional, tag = "9")]
|
#[prost(message, optional, tag = "9")]
|
||||||
pub cdgokfagpdn: ::core::option::Option<Niijhlphknp>,
|
pub cdgokfagpdn: ::core::option::Option<CityInfo>,
|
||||||
#[prost(int32, tag = "5")]
|
#[prost(int32, tag = "5")]
|
||||||
pub retcode: i32,
|
pub retcode: i32,
|
||||||
#[prost(uint32, tag = "13")]
|
#[prost(uint32, tag = "13")]
|
||||||
|
@ -32630,7 +32630,7 @@ pub struct Kmnjefmdmmf {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Nchibhabdle {
|
pub struct Nchibhabdle {
|
||||||
#[prost(uint32, repeated, tag = "10")]
|
#[prost(uint32, repeated, tag = "10")]
|
||||||
pub nfjhodfgfpk: ::prost::alloc::vec::Vec<u32>,
|
pub area_id_list: ::prost::alloc::vec::Vec<u32>,
|
||||||
#[prost(uint32, repeated, tag = "1")]
|
#[prost(uint32, repeated, tag = "1")]
|
||||||
pub aonamoacmbi: ::prost::alloc::vec::Vec<u32>,
|
pub aonamoacmbi: ::prost::alloc::vec::Vec<u32>,
|
||||||
#[prost(int32, tag = "14")]
|
#[prost(int32, tag = "14")]
|
||||||
|
@ -33754,9 +33754,9 @@ pub struct Dfpfobhagmg {
|
||||||
/// CmdId: 1668
|
/// CmdId: 1668
|
||||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Lpfinpojlce {
|
pub struct GetScenePointReq {
|
||||||
#[prost(uint32, tag = "10")]
|
#[prost(uint32, tag = "10")]
|
||||||
pub ljbnggpbeni: u32,
|
pub belong_uid: u32,
|
||||||
#[prost(bool, tag = "6")]
|
#[prost(bool, tag = "6")]
|
||||||
pub appfphlakbg: bool,
|
pub appfphlakbg: bool,
|
||||||
#[prost(uint32, tag = "11")]
|
#[prost(uint32, tag = "11")]
|
||||||
|
@ -38166,11 +38166,11 @@ pub struct Nffnahoahkk {
|
||||||
/// CmdId: 5114
|
/// CmdId: 5114
|
||||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Baklebmfmmi {
|
pub struct GetSceneAreaReq {
|
||||||
#[prost(uint32, tag = "2")]
|
#[prost(uint32, tag = "2")]
|
||||||
pub scene_id: u32,
|
pub scene_id: u32,
|
||||||
#[prost(uint32, tag = "14")]
|
#[prost(uint32, tag = "14")]
|
||||||
pub ljbnggpbeni: u32,
|
pub belong_uid: u32,
|
||||||
}
|
}
|
||||||
/// CmdId: 3779
|
/// CmdId: 3779
|
||||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||||
|
@ -42608,11 +42608,11 @@ pub struct Poggadgmmbf {
|
||||||
/// CmdId: 22648
|
/// CmdId: 22648
|
||||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Akdfbahhljp {
|
pub struct GetSceneAreaRsp {
|
||||||
#[prost(message, repeated, tag = "4")]
|
#[prost(message, repeated, tag = "4")]
|
||||||
pub inllpcgcpfk: ::prost::alloc::vec::Vec<Niijhlphknp>,
|
pub city_info_list: ::prost::alloc::vec::Vec<CityInfo>,
|
||||||
#[prost(uint32, repeated, tag = "7")]
|
#[prost(uint32, repeated, tag = "7")]
|
||||||
pub nfjhodfgfpk: ::prost::alloc::vec::Vec<u32>,
|
pub area_id_list: ::prost::alloc::vec::Vec<u32>,
|
||||||
#[prost(uint32, tag = "5")]
|
#[prost(uint32, tag = "5")]
|
||||||
pub scene_id: u32,
|
pub scene_id: u32,
|
||||||
#[prost(int32, tag = "15")]
|
#[prost(int32, tag = "15")]
|
||||||
|
|
|
@ -22,3 +22,4 @@ pub const CHANGE_AVATAR_RSP: u16 = 5958;
|
||||||
pub const EVT_AVATAR_SIT_DOWN_RSP: u16 = 29232;
|
pub const EVT_AVATAR_SIT_DOWN_RSP: u16 = 29232;
|
||||||
pub const EVT_AVATAR_STAND_UP_NOTIFY: u16 = 8549;
|
pub const EVT_AVATAR_STAND_UP_NOTIFY: u16 = 8549;
|
||||||
pub const MARK_MAP_RSP: u16 = 25569;
|
pub const MARK_MAP_RSP: u16 = 25569;
|
||||||
|
pub const GET_SCENE_AREA_RSP: u16 = 22648;
|
||||||
|
|
Loading…
Reference in a new issue