Added TeleportData support

This commit is contained in:
traffic95 2025-03-13 19:10:38 +01:00
parent 7412dcec2d
commit 543727ce4e
2 changed files with 29 additions and 0 deletions

View file

@ -106,6 +106,8 @@ pub struct AbyssArpeggioGetDataCsReq {}
pub struct ClientSystemsData {
#[prost(map = "uint32, int32", tag = "1813")]
pub global_variables: ::std::collections::HashMap<u32, i32>,
#[prost(message, optional, tag = "6")]
pub teleport_data: ::core::option::Option<TeleportData>,
#[prost(message, optional, tag = "14")]
pub post_girl_data: ::core::option::Option<PostGirlData>,
#[prost(message, optional, tag = "4")]
@ -763,6 +765,13 @@ pub struct PerformEndCsReq {
pub perform_id: i32,
}
#[derive(trigger_protobuf_derive::CmdID)]
#[derive(trigger_protobuf_derive::XorFields)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TeleportData {
#[prost(int32, repeated, tag = "10")]
pub unlocked_list: ::prost::alloc::vec::Vec<i32>,
}
#[derive(trigger_protobuf_derive::CmdID)]
#[cmdid(5581)]
#[derive(trigger_protobuf_derive::XorFields)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]

View file

@ -2407,6 +2407,7 @@ impl From<::trigger_protocol::AbyssArpeggioGetDataCsReq> for AbyssArpeggioGetDat
impl From<ClientSystemsData> for ::trigger_protocol::ClientSystemsData {
fn from(value: ClientSystemsData) -> Self {
Self {
teleport_data: value.teleport_data.map(|v| v.into()),
post_girl_data: value.post_girl_data.map(|v| v.into()),
unlock_data: value.unlock_data.map(|v| v.into()),
..Default::default()
@ -2417,6 +2418,7 @@ impl From<ClientSystemsData> for ::trigger_protocol::ClientSystemsData {
impl From<::trigger_protocol::ClientSystemsData> for ClientSystemsData {
fn from(value: ::trigger_protocol::ClientSystemsData) -> Self {
Self {
teleport_data: value.teleport_data.map(|v| v.into()),
post_girl_data: value.post_girl_data.map(|v| v.into()),
unlock_data: value.unlock_data.map(|v| v.into()),
..Default::default()
@ -3604,6 +3606,24 @@ impl From<::trigger_protocol::PerformEndCsReq> for PerformEndCsReq {
}
}
#[allow(unused)]
impl From<TeleportData> for ::trigger_protocol::TeleportData {
fn from(value: TeleportData) -> Self {
Self {
unlocked_list: value.unlocked_list.into_iter().map(|v| v.into()).collect(),
..Default::default()
}
}
}
#[allow(unused)]
impl From<::trigger_protocol::TeleportData> for TeleportData {
fn from(value: ::trigger_protocol::TeleportData) -> Self {
Self {
unlocked_list: value.unlocked_list.into_iter().map(|v| v.into()).collect(),
..Default::default()
}
}
}
#[allow(unused)]
impl From<GetPlayerBasicInfoCsReq> for ::trigger_protocol::GetPlayerBasicInfoCsReq {
fn from(value: GetPlayerBasicInfoCsReq) -> Self {
Self { ..Default::default() }