From 233f92cfeab355feebc4c0d6fc3e42c44bd54769 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 11 May 2023 15:37:34 -0300 Subject: TProtocol: Add, and match `send_chara_data_v2()` Sorry for the long wait, was busy doing other things. --- include/pso/packet_classes.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'include/pso/packet_classes.h') diff --git a/include/pso/packet_classes.h b/include/pso/packet_classes.h index 268ac40..e0a78bd 100644 --- a/include/pso/packet_classes.h +++ b/include/pso/packet_classes.h @@ -7,8 +7,10 @@ #include #include #include +#include #include #include +#include #include #include @@ -83,6 +85,42 @@ union game_command_union { u8 bytes[1024]; }; +class TBlockedSenders { +public: + packet_header header; + u32 blocked_senders[30]; +public: + void bswap() { + header.bswap(); + for (int i = 0; i < 30; ++i) { + bswap_32(&blocked_senders[i]); + } + }; +}; + +class TPlyJoinData { +public: + packet_header header; + TPlyCharData char_data; + TPlyChallenge challenge; + TPlyChoiceSearchConfig choice_search_config; + char info_board[172]; + u32 blocked_senders[30]; + u32 auto_reply_enabled; + char auto_reply[512]; +public: + void bswap() { + header.bswap(); + char_data.bswap(); + challenge.bswap(); + choice_search_config.bswap(); + for (int i = 0; i < 30; ++i) { + bswap_32(&blocked_senders[i]); + } + bswap_32(&auto_reply_enabled); + }; +}; + template class TSendAction { public: -- cgit v1.2.3-13-gbd6f