NewsStand interaction

This commit is contained in:
xeon 2024-08-04 15:40:06 +03:00
parent 55b7ed3beb
commit 285fc0b6fa
4 changed files with 25 additions and 3 deletions

View file

@ -200,5 +200,16 @@
"store_template_id": 1191 "store_template_id": 1191
} }
] ]
},
{
"event_id": 15000301,
"actions": [
{
"$type": "OpenUi",
"ui": "UINewsStandPageController",
"args": 0,
"store_template_id": 1061
}
]
} }
] ]

View file

@ -54,6 +54,16 @@ pub async fn on_get_news_stand_data(
}) })
} }
pub async fn on_news_stand_seen(
_session: &NetSession,
_player: &mut Player,
_req: NewsStandSeenCsReq,
) -> NetResult<NewsStandSeenScRsp> {
Ok(NewsStandSeenScRsp {
retcode: Retcode::RetSucc.into(),
})
}
pub async fn on_get_trashbin_hermit_data( pub async fn on_get_trashbin_hermit_data(
_session: &NetSession, _session: &NetSession,
_player: &mut Player, _player: &mut Player,

View file

@ -107,6 +107,7 @@ req_handlers! {
client_systems::ReportSystemSettingsChange; client_systems::ReportSystemSettingsChange;
client_systems::InteractWithSceneObject; client_systems::InteractWithSceneObject;
client_systems::PlayerSystemParameterChange; client_systems::PlayerSystemParameterChange;
client_systems::NewsStandSeen;
perform::PerformTrigger; perform::PerformTrigger;
perform::PerformEnd; perform::PerformEnd;
perform::PerformJump; perform::PerformJump;

View file

@ -14738,9 +14738,9 @@ pub struct UpdateEventGraphScNotify {
#[derive(proto_gen::XorFields)] #[derive(proto_gen::XorFields)]
#[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 Kckdjohckaf { pub struct NewsStandSeenCsReq {
#[prost(int32, repeated, tag = "9")] #[prost(int32, repeated, tag = "9")]
pub kijpafaibda: ::prost::alloc::vec::Vec<i32>, pub seen_news_id_list: ::prost::alloc::vec::Vec<i32>,
} }
#[derive(proto_gen::CmdID)] #[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)] #[derive(proto_gen::XorFields)]
@ -21580,7 +21580,7 @@ pub struct Jiebkihfhpb {
#[derive(proto_gen::XorFields)] #[derive(proto_gen::XorFields)]
#[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 Ffnabokpijm { pub struct NewsStandSeenScRsp {
#[xor(12369)] #[xor(12369)]
#[prost(int32, tag = "7")] #[prost(int32, tag = "7")]
pub retcode: i32, pub retcode: i32,