diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-05-11 15:37:34 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-05-11 15:37:34 -0300 |
commit | 233f92cfeab355feebc4c0d6fc3e42c44bd54769 (patch) | |
tree | f0da675eea8d5d3805a7c68f6bf667a147316b80 /include/pso/packet_classes.h | |
parent | 0b0f3da43d281b75cc04a9333332f2abc1eff0c7 (diff) |
TProtocol: Add, and match `send_chara_data_v2()`
Sorry for the long wait, was busy doing other things.
Diffstat (limited to 'include/pso/packet_classes.h')
-rw-r--r-- | include/pso/packet_classes.h | 38 |
1 files changed, 38 insertions, 0 deletions
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 <pso/forward.h> #include <pso/protocol.h> #include <pso/TMenuList.h> +#include <pso/TPlyChallenge.h> #include <pso/TPlyCharData.h> #include <pso/TPlyClientConfig.h> +#include <pso/TPlyChoiceSearchConfig.h> #include <pso/TPlyGuildCardTag.h> #include <pso/TPlySmth.h> @@ -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<int action_type = 0> class TSendAction { public: |