diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-03 20:12:07 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-03 20:12:07 -0400 |
commit | d2a41b8c5db1cdd3ba7381ec55beaf03f90a4deb (patch) | |
tree | e2eb6117cc2429bc08fe439e811cd1d40efc0397 | |
parent | 0fa1aa6d0f0422cb18ce3eedac6d819808a92eab (diff) |
TPlyCharData: Add `TPlyCharData`
-rw-r--r-- | context.h | 16 | ||||
-rw-r--r-- | include/pso/TPlyCharData.h | 24 |
2 files changed, 39 insertions, 1 deletions
@@ -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 <global_types.h> +#include <pso/macros.h> +#include <pso/protocol.h> +#include <pso/TArray.h> +#include <pso/TPlyInventory.h> +#include <pso/TPlyDispData.h> + +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 |