From d2a41b8c5db1cdd3ba7381ec55beaf03f90a4deb Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 3 Mar 2023 20:12:07 -0400 Subject: TPlyCharData: Add `TPlyCharData` --- context.h | 16 +++++++++++++++- include/pso/TPlyCharData.h | 24 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 include/pso/TPlyCharData.h diff --git a/context.h b/context.h index 142fb4c..82386ac 100644 --- a/context.h +++ b/context.h @@ -719,8 +719,22 @@ static inline void operator^=(object_flags &a, object_flags b) { a = a ^ b; }; static inline void operator&=(object_flags &a, object_flags b) { a = a & b; }; static inline void operator|=(object_flags &a, object_flags b) { a = a | b; }; -// pso/TPlyDispData.h +// pso/TPlyCharData.h // Class defs. +class TPlyCharData { +public: + TPlyCharData(); + void bswap(); + TPlyCharData &assign(const TPlyCharData &src); + + PRIVATE_MEMBER_ACCESSORS(TPlyInventory, inventory); + PRIVATE_MEMBER_ACCESSORS(TPlyDispData, disp_data); +private: + TPlyInventory m_inventory; + TPlyDispData m_disp_data; +}; + +// pso/TPlyDispData.h class TPlyDispConfigSmthTag { public: TPlyDispConfigSmthTag(); diff --git a/include/pso/TPlyCharData.h b/include/pso/TPlyCharData.h new file mode 100644 index 0000000..1cdad01 --- /dev/null +++ b/include/pso/TPlyCharData.h @@ -0,0 +1,24 @@ +#ifndef TPLYCHARDATA_H +#define TPLYCHARDATA_H + +#include +#include +#include +#include +#include +#include + +class TPlyCharData { +public: + TPlyCharData(); + void bswap(); + TPlyCharData &assign(const TPlyCharData &src); + + PRIVATE_MEMBER_ACCESSORS(TPlyInventory, inventory); + PRIVATE_MEMBER_ACCESSORS(TPlyDispData, disp_data); +private: + TPlyInventory m_inventory; + TPlyDispData m_disp_data; +}; + +#endif -- cgit v1.2.3-13-gbd6f