Add xphysgeomlist structures
This commit is contained in:
parent
c39185e35c
commit
2e09f532b9
27
libs/xassets/xphysgeomlist.cpp
Normal file
27
libs/xassets/xphysgeomlist.cpp
Normal 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();
|
||||
}
|
||||
23
libs/xassets/xphysgeomlist.h
Normal file
23
libs/xassets/xphysgeomlist.h
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user