From d5e4df6806b4e9f66a7424452ad3cdaf5c24126e Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 3 Mar 2023 20:15:53 -0400 Subject: TPlySmth: Add `TPlySmth` --- include/pso/TPlySmth.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/pso/TPlySmth.h (limited to 'include') diff --git a/include/pso/TPlySmth.h b/include/pso/TPlySmth.h new file mode 100644 index 0000000..660955f --- /dev/null +++ b/include/pso/TPlySmth.h @@ -0,0 +1,31 @@ +#ifndef TPLYSMTH_H +#define TPLYSMTH_H + +#include +#include +#include + +class TPlySmth { +public: + TPlySmth() /*{}*/; + + TPlySmth &operator=(const TPlySmth &src) /*{ return assign(src); }*/; + + void bswap() /*{ + bswap_32(m_smth.at_as(0)); + bswap_32(m_smth1.at_as(0)); + }*/; + + TPlySmth &assign(const TPlySmth &src) /*{ + m_smth = src.m_smth; + m_smth1 = src.m_smth1; + }*/; + + PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth, 4); + PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth1, 4); +private: + TArray m_smth; + TArray m_smth1; +}; + +#endif -- cgit v1.2.3-13-gbd6f