Gacha System implementation #1

Merged
xeon merged 7 commits from YYHEggEgg/JaneDoe-ZS:master into master 2024-08-04 11:41:24 +00:00
Showing only changes of commit db2677be50 - Show all commits

View file

@ -227,7 +227,7 @@ pub struct Nkhnlakggmj {
pub iddehlcpjjn: ::prost::alloc::string::String,
#[xor(10163)]
#[prost(int64, tag = "14")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[xor(8852)]
#[prost(uint32, tag = "8")]
pub ppnbkmndpjc: u32,
@ -829,7 +829,7 @@ pub struct Fkkojjgepnb {
pub lchdjcdjiik: u32,
#[xor(4851)]
#[prost(int64, tag = "3")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[xor(8589)]
#[prost(int32, tag = "505")]
pub lecpejadije: i32,
@ -4512,7 +4512,7 @@ pub struct Kancdiinhgh {
#[prost(uint64, tag = "2")]
pub dbkpbkpcoog: u64,
#[prost(uint64, tag = "3")]
pub phkcdmjheen: u64,
pub end_timestamp: u64,
}
#[derive(proto_gen::CmdID)]
#[cmdid(2438)]
@ -8223,7 +8223,7 @@ pub struct Ihhaahinlik {
#[prost(int64, tag = "3")]
pub dbkpbkpcoog: i64,
#[prost(int64, tag = "4")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -9108,7 +9108,7 @@ pub struct Gkfhklbbcpo {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Enkkecgonaf {
#[prost(uint32, tag = "1")]
pub abalhhfapla: u32,
pub cost_item_count: u32,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -9603,7 +9603,7 @@ pub struct Gfpehbhpgfb {
pub avatars: ::prost::alloc::vec::Vec<u32>,
#[xor(8960)]
#[prost(uint32, tag = "14")]
pub abalhhfapla: u32,
pub cost_item_count: u32,
#[xor(8889)]
#[prost(uint32, tag = "6")]
pub damhjcgieco: u32,
@ -9668,7 +9668,7 @@ pub struct Cbccakknimc {
pub struct Bfkkjofnjjo {
#[xor(4795)]
#[prost(uint32, tag = "10")]
pub abalhhfapla: u32,
pub cost_item_count: u32,
#[xor(5066)]
#[prost(uint32, tag = "4")]
pub cmacbfkaoma: u32,
@ -10605,7 +10605,7 @@ pub struct Npdgpemipij {
#[prost(int32, tag = "5")]
pub peamchapinf: i32,
#[prost(string, tag = "2")]
pub phkcdmjheen: ::prost::alloc::string::String,
pub end_timestamp: ::prost::alloc::string::String,
}
#[derive(proto_gen::CmdID)]
#[cmdid(5101)]
@ -12389,7 +12389,7 @@ pub struct InteractWithUnitCsReq {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Ofcdfiihahe {
#[prost(uint32, tag = "1")]
pub abalhhfapla: u32,
pub cost_item_count: u32,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -12926,7 +12926,7 @@ pub struct Hdjijldgmab {
pub struct Cnmgfcllhpl {
#[xor(11487)]
#[prost(uint32, tag = "3")]
pub dcealmadfgi: u32,
pub gacha_parent_schedule_id: u32,
}
#[derive(proto_gen::CmdID)]
#[cmdid(665)]
@ -13423,7 +13423,7 @@ pub struct Jlldijenmoc {
pub dphghojclod: u32,
#[xor(8783)]
#[prost(int64, tag = "2")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[xor(525)]
#[prost(uint32, tag = "8")]
pub leagnodilli: u32,
@ -13731,19 +13731,19 @@ pub struct Omdfkjoopce {
#[derive(proto_gen::XorFields)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Effclengcpo {
pub struct DoGachaCsReq {
#[xor(13734)]
#[prost(uint32, tag = "15")]
pub eglpecifagd: u32,
#[xor(4101)]
#[prost(uint32, tag = "1")]
pub dcealmadfgi: u32,
pub gacha_parent_schedule_id: u32,
#[xor(8588)]
#[prost(uint32, tag = "13")]
pub madciamhahg: u32,
pub random_number: u32,
#[xor(10835)]
#[prost(uint32, tag = "3")]
pub abalhhfapla: u32,
pub cost_item_count: u32,
#[xor(3853)]
#[prost(uint32, tag = "5")]
pub gacha_type: u32,
@ -14035,10 +14035,10 @@ pub struct Nffblkigaan {
pub weapon_uid: u32,
#[xor(2492)]
#[prost(uint32, tag = "9")]
pub eijhjbplhih: u32,
pub need_item_id: u32,
#[xor(13312)]
#[prost(uint32, tag = "8")]
pub bplmpghdklb: u32,
pub need_item_count: u32,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -15705,7 +15705,7 @@ pub struct Gcffmmdgobe {
#[prost(int32, tag = "1")]
pub opmgaofadph: i32,
#[prost(int32, tag = "2")]
pub abalhhfapla: i32,
pub cost_item_count: i32,
}
#[derive(proto_gen::CmdID)]
#[cmdid(1224)]
@ -16201,13 +16201,13 @@ pub struct ClientSystemsInfo {
#[derive(proto_gen::XorFields)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Feanepokfam {
pub struct NeedItemInfo {
#[xor(156)]
#[prost(uint32, tag = "15")]
pub bplmpghdklb: u32,
pub need_item_count: u32,
#[xor(11997)]
#[prost(uint32, tag = "5")]
pub eijhjbplhih: u32,
pub need_item_id: u32,
}
#[derive(proto_gen::CmdID)]
#[cmdid(1140)]
@ -16647,14 +16647,14 @@ pub struct Ejjimjcohgg {
#[derive(proto_gen::XorFields)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Akjiehealco {
pub struct DoGachaScRsp {
#[prost(message, optional, tag = "6")]
pub gacha_data: ::core::option::Option<GachaData>,
#[prost(message, repeated, tag = "13")]
pub mjajbddaemm: ::prost::alloc::vec::Vec<Depahhdodeb>,
pub gain_item_list: ::prost::alloc::vec::Vec<GainItemInfo>,
#[xor(12395)]
#[prost(uint32, tag = "11")]
pub abalhhfapla: u32,
pub cost_item_count: u32,
#[xor(14106)]
#[prost(int32, tag = "5")]
pub retcode: i32,
@ -17252,7 +17252,7 @@ pub struct Ipfpofcbnjp {
pub struct Ilehibpgief {
#[xor(14424)]
#[prost(int64, tag = "4")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[prost(uint32, repeated, tag = "6")]
pub pjilpbkknan: ::prost::alloc::vec::Vec<u32>,
#[xor(4341)]
@ -17842,7 +17842,7 @@ pub struct Odijcgldmia {
#[prost(uint32, tag = "11")]
pub bpegheknole: u32,
#[prost(message, repeated, tag = "14")]
pub bapbocgilep: ::prost::alloc::vec::Vec<Feanepokfam>,
pub bapbocgilep: ::prost::alloc::vec::Vec<NeedItemInfo>,
#[prost(map = "uint32, uint32", tag = "10")]
pub maeegjdknkg: ::std::collections::HashMap<u32, u32>,
#[prost(uint32, repeated, tag = "9")]
@ -17850,20 +17850,20 @@ pub struct Odijcgldmia {
#[prost(string, tag = "3")]
pub fnanndecaan: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "13")]
pub pbalmllekpp: ::prost::alloc::vec::Vec<Feanepokfam>,
pub need_item_info_list: ::prost::alloc::vec::Vec<NeedItemInfo>,
#[prost(message, repeated, tag = "6")]
pub mplcofohjnl: ::prost::alloc::vec::Vec<Feanepokfam>,
pub mplcofohjnl: ::prost::alloc::vec::Vec<NeedItemInfo>,
#[xor(5947)]
#[prost(uint32, tag = "5")]
pub r#type: u32,
#[prost(message, repeated, tag = "8")]
pub dnadnehoogk: ::prost::alloc::vec::Vec<Feanepokfam>,
pub dnadnehoogk: ::prost::alloc::vec::Vec<NeedItemInfo>,
#[xor(5194)]
#[prost(uint32, tag = "1")]
pub dgaafhidocl: u32,
#[xor(11358)]
#[prost(uint32, tag = "12")]
pub dcealmadfgi: u32,
pub gacha_parent_schedule_id: u32,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -18737,7 +18737,7 @@ pub struct Ilghjldjhcl {
pub hbmnikpdgon: ::prost::alloc::string::String,
#[xor(9518)]
#[prost(int64, tag = "9")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[xor(1810)]
#[prost(uint32, tag = "1")]
pub oeaieooemng: u32,
@ -18990,7 +18990,7 @@ pub struct Cobgikcepkp {
#[prost(int32, tag = "1")]
pub imhfejennof: i32,
#[prost(string, tag = "4")]
pub phkcdmjheen: ::prost::alloc::string::String,
pub end_timestamp: ::prost::alloc::string::String,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -22212,9 +22212,9 @@ pub struct Mbokdhgpobc {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Gacha {
#[prost(uint32, repeated, tag = "1425")]
pub jkbfeediiho: ::prost::alloc::vec::Vec<u32>,
pub chooseable_up_list: ::prost::alloc::vec::Vec<u32>,
#[prost(uint32, repeated, tag = "15")]
pub nfngmliibdf: ::prost::alloc::vec::Vec<u32>,
pub up_s_item_list: ::prost::alloc::vec::Vec<u32>,
#[xor(1098)]
#[prost(uint32, tag = "11")]
pub obabhacfokn: u32,
@ -22222,7 +22222,7 @@ pub struct Gacha {
pub ioiebkbcnoi: ::prost::alloc::string::String,
#[xor(13960)]
#[prost(uint32, tag = "698")]
pub gbmmbcbefmp: u32,
pub advanced_s_guarantee: u32,
#[xor(1462)]
#[prost(uint32, tag = "10")]
pub kagiddohcmk: u32,
@ -22230,30 +22230,30 @@ pub struct Gacha {
#[prost(uint32, tag = "1921")]
pub nammdglepbk: u32,
#[prost(message, repeated, tag = "3")]
pub pbalmllekpp: ::prost::alloc::vec::Vec<Feanepokfam>,
pub need_item_info_list: ::prost::alloc::vec::Vec<NeedItemInfo>,
#[xor(9792)]
#[prost(int64, tag = "14")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[xor(6233)]
#[prost(uint32, tag = "563")]
pub dimlpkbggfc: u32,
pub discount_ten_roll_prize: u32,
#[prost(bool, tag = "1756")]
pub nkeigieepgn: bool,
#[prost(uint32, repeated, tag = "755")]
pub hbhckgpjian: ::prost::alloc::vec::Vec<u32>,
pub free_select_item_list: ::prost::alloc::vec::Vec<u32>,
#[prost(string, tag = "2")]
pub mpmnlphpdlk: ::prost::alloc::string::String,
pub drop_history_webview: ::prost::alloc::string::String,
#[xor(4816)]
#[prost(uint32, tag = "13")]
pub pladpclalgn: u32,
pub gacha_schedule_id: u32,
#[xor(11392)]
#[prost(uint32, tag = "574")]
pub fjhglcclbgm: u32,
pub free_select_required_pull: u32,
#[prost(uint32, repeated, tag = "6")]
pub goainlmbhnn: ::prost::alloc::vec::Vec<u32>,
pub up_a_item_list: ::prost::alloc::vec::Vec<u32>,
#[xor(8288)]
#[prost(uint32, tag = "12")]
pub dcealmadfgi: u32,
pub gacha_parent_schedule_id: u32,
#[xor(8537)]
#[prost(uint32, tag = "1662")]
pub pcjdafaaimg: u32,
@ -22273,26 +22273,26 @@ pub struct Gacha {
pub gacha_type: u32,
#[xor(5057)]
#[prost(uint32, tag = "244")]
pub ahidoimfiof: u32,
pub s_guarantee: u32,
#[xor(1870)]
#[prost(int64, tag = "8")]
pub start_timestamp: i64,
#[xor(562)]
#[prost(uint32, tag = "726")]
pub mkiplhjemoi: u32,
pub free_select_progress: u32,
#[xor(8338)]
#[prost(uint32, tag = "96")]
pub ihjnkoijdgh: u32,
#[xor(4210)]
#[prost(uint32, tag = "789")]
pub gokmdbojehm: u32,
pub a_guarantee: u32,
#[prost(uint32, repeated, tag = "4")]
pub akggbhgkifd: ::prost::alloc::vec::Vec<u32>,
#[xor(1056)]
#[prost(uint32, tag = "2002")]
pub kikannccmmo: u32,
pub discount_avaliable_num: u32,
#[prost(string, tag = "7")]
pub jahbjmphipl: ::prost::alloc::string::String,
pub gacha_info_list_webview: ::prost::alloc::string::String,
#[xor(9009)]
#[prost(uint32, tag = "419")]
pub ekjlhhdekka: u32,
@ -22699,7 +22699,7 @@ pub struct Mcjgjlpjfjc {
pub gebpolkeieh: u32,
#[xor(4412)]
#[prost(int64, tag = "1")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -23294,7 +23294,7 @@ pub struct GachaData {
pub cmamhfldihg: ::core::option::Option<Dpgipnmocnj>,
#[xor(9369)]
#[prost(uint32, tag = "13")]
pub madciamhahg: u32,
pub random_number: u32,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -23399,7 +23399,7 @@ pub struct Nalkdbjimgk {
pub aohakmnfinf: u32,
#[xor(2280)]
#[prost(uint32, tag = "4")]
pub dcealmadfgi: u32,
pub gacha_parent_schedule_id: u32,
}
#[derive(proto_gen::CmdID)]
#[cmdid(4620)]
@ -24021,7 +24021,7 @@ pub struct Himappelgdm {
pub gppmclpnjoe: u32,
#[xor(4244)]
#[prost(uint64, tag = "11")]
pub phkcdmjheen: u64,
pub end_timestamp: u64,
#[xor(6824)]
#[prost(uint32, tag = "7")]
pub enhandfaalc: u32,
@ -24564,7 +24564,7 @@ pub struct Pahjnbjogon {
pub item_id: u32,
#[xor(1511)]
#[prost(uint32, tag = "1")]
pub dcealmadfgi: u32,
pub gacha_parent_schedule_id: u32,
}
#[derive(proto_gen::CmdID)]
#[derive(proto_gen::XorFields)]
@ -24653,7 +24653,7 @@ pub struct Eindafcpkce {
#[prost(int32, tag = "1")]
pub nkiegkopoeg: i32,
#[prost(int32, tag = "2")]
pub abalhhfapla: i32,
pub cost_item_count: i32,
}
#[derive(proto_gen::CmdID)]
#[cmdid(3276)]
@ -26395,7 +26395,7 @@ pub struct Pfcmihnfmme {
pub cfnblioopmp: u32,
#[xor(13350)]
#[prost(int64, tag = "15")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[xor(13289)]
#[prost(int64, tag = "5")]
pub kehdpankopd: i64,
@ -27534,7 +27534,7 @@ pub struct TipsInfo {
pub struct Ieimfkpmegp {
#[xor(378)]
#[prost(uint32, tag = "12")]
pub dcealmadfgi: u32,
pub gacha_parent_schedule_id: u32,
#[xor(1946)]
#[prost(uint32, tag = "7")]
pub avatar_id: u32,
@ -31149,7 +31149,7 @@ pub struct Bgheihedbcb {
pub apociobpoho: u32,
#[xor(9137)]
#[prost(int64, tag = "2")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[prost(bool, tag = "4")]
pub mgfcmlpkjkg: bool,
#[xor(438)]
@ -31470,7 +31470,7 @@ pub struct Nnbooaekcml {
pub ncjcmkgfpej: ::prost::alloc::vec::Vec<Bnpkpfadbdd>,
#[xor(15963)]
#[prost(int32, tag = "13")]
pub eijhjbplhih: i32,
pub need_item_id: i32,
}
#[derive(proto_gen::CmdID)]
#[cmdid(816)]
@ -32445,21 +32445,21 @@ pub struct Mkaecbehadi {
#[derive(proto_gen::XorFields)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Depahhdodeb {
pub struct GainItemInfo {
#[xor(9764)]
#[prost(uint32, tag = "5")]
pub num: u32,
#[xor(12647)]
#[prost(uint32, tag = "2")]
pub ollapieolpm: u32,
pub extra_item_count: u32,
#[prost(map = "uint32, uint32", tag = "4")]
pub nkdheebkjjl: ::std::collections::HashMap<u32, u32>,
pub extra_items: ::std::collections::HashMap<u32, u32>,
#[xor(11858)]
#[prost(uint32, tag = "11")]
pub item_id: u32,
#[xor(6146)]
#[prost(uint32, tag = "8")]
pub dghfjhiikkn: u32,
pub extra_item_id: u32,
#[xor(10021)]
#[prost(uint32, tag = "9")]
pub uid: u32,
@ -32766,7 +32766,7 @@ pub struct Lipadknfagg {
pub abdfdamklia: bool,
#[xor(1841)]
#[prost(int64, tag = "1696")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[xor(15522)]
#[prost(int64, tag = "14")]
pub jkjhhbpcaon: i64,
@ -32871,7 +32871,7 @@ pub struct Gojokjnppnp {
pub mlfannobjdp: bool,
#[xor(1038)]
#[prost(int64, tag = "4")]
pub phkcdmjheen: i64,
pub end_timestamp: i64,
#[xor(5317)]
#[prost(uint32, tag = "14")]
pub ialhcipedom: u32,