summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--context.h16
-rw-r--r--include/pso/TPlyCharData.h24
2 files changed, 39 insertions, 1 deletions
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 <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