diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-03 20:13:23 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-03 20:13:23 -0400 |
commit | fedff908d0aeab43459c1f6d4da8717e97bb63bf (patch) | |
tree | 042fad500a4b92d0feb5ad5e84a3cbaee49df790 | |
parent | d2a41b8c5db1cdd3ba7381ec55beaf03f90a4deb (diff) |
TPlyClientConfig: Add `TPlyClientConfig`
-rw-r--r-- | context.h | 16 | ||||
-rw-r--r-- | include/pso/TPlyClientConfig.h | 24 |
2 files changed, 40 insertions, 0 deletions
@@ -734,6 +734,22 @@ private: TPlyDispData m_disp_data; }; +// pso/TPlyClientConfig.h +class TPlyClientConfig { +public: + PRIVATE_MEMBER_ACCESSORS(u64, magic); + PRIVATE_MEMBER_ACCESSORS(u32, flags); + PRIVATE_MEMBER_ACCESSORS(u32, proxy_dst_addr); + PRIVATE_MEMBER_ACCESSORS(u16, proxy_dst_port); + PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, mbr_0xe, 14); +private: + u64 m_magic; + u32 m_flags; + u32 m_proxy_dst_addr; + u16 m_proxy_dst_port; + TArray<u8, 14> m_mbr_0xe; +}; + // pso/TPlyDispData.h class TPlyDispConfigSmthTag { public: diff --git a/include/pso/TPlyClientConfig.h b/include/pso/TPlyClientConfig.h new file mode 100644 index 0000000..d5796ad --- /dev/null +++ b/include/pso/TPlyClientConfig.h @@ -0,0 +1,24 @@ +#ifndef TPLYCLIENTCONFIG_H +#define TPLYCLIENTCONFIG_H + +#include <global_types.h> +#include <pso/macros.h> +#include <pso/protocol.h> +#include <pso/TArray.h> + +class TPlyClientConfig { +public: + PRIVATE_MEMBER_ACCESSORS(u64, magic); + PRIVATE_MEMBER_ACCESSORS(u32, flags); + PRIVATE_MEMBER_ACCESSORS(u32, proxy_dst_addr); + PRIVATE_MEMBER_ACCESSORS(u16, proxy_dst_port); + PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, mbr_0xe, 14); +private: + u64 m_magic; + u32 m_flags; + u32 m_proxy_dst_addr; + u16 m_proxy_dst_port; + TArray<u8, 14> m_mbr_0xe; +}; + +#endif |