From 2e09f532b90a6c9dbd128b58e7a5ff3cf7b16aca Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Wed, 3 Sep 2025 13:20:39 -0400 Subject: [PATCH] Add xphysgeomlist structures --- libs/xassets/xphysgeomlist.cpp | 27 +++++++++++++++++++++++++++ libs/xassets/xphysgeomlist.h | 23 +++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 libs/xassets/xphysgeomlist.cpp create mode 100644 libs/xassets/xphysgeomlist.h diff --git a/libs/xassets/xphysgeomlist.cpp b/libs/xassets/xphysgeomlist.cpp new file mode 100644 index 0000000..c9c06ec --- /dev/null +++ b/libs/xassets/xphysgeomlist.cpp @@ -0,0 +1,27 @@ +#include "xphysgeomlist.h" + +XPhysGeomList::XPhysGeomList() + : XAsset() + , mCount(0) + , mGeoms() + , mMass() +{ + +} + +XPhysGeomList::~XPhysGeomList() +{ + +} + +void XPhysGeomList::ParseData(QDataStream *aStream) +{ + +} + +void XPhysGeomList::Clear() +{ + mCount = 0; + mGeoms.clear(); + mMass.Clear(); +} diff --git a/libs/xassets/xphysgeomlist.h b/libs/xassets/xphysgeomlist.h new file mode 100644 index 0000000..7f857e5 --- /dev/null +++ b/libs/xassets/xphysgeomlist.h @@ -0,0 +1,23 @@ +#ifndef XPHYSGEOMLIST_H +#define XPHYSGEOMLIST_H + +#include "xasset.h" +#include "xphysmass.h" +#include "xphysgeominfo.h" + +class XPhysGeomList : public XAsset +{ +public: + XPhysGeomList(); + ~XPhysGeomList(); + + virtual void ParseData(QDataStream* aStream) override; + virtual void Clear() override; + +private: + unsigned int mCount; + QVector mGeoms; + XPhysMass mMass; +}; + +#endif // XPHYSGEOMLIST_H