Add xphysgeomlist structures

This commit is contained in:
Nicholas Johnson 2025-09-03 13:20:39 -04:00
parent c39185e35c
commit 2e09f532b9
2 changed files with 50 additions and 0 deletions

View File

@ -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();
}

View File

@ -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<XPhysGeomInfo> mGeoms;
XPhysMass mMass;
};
#endif // XPHYSGEOMLIST_H