XPlor/libs/xassets/xphyspreset.h

31 lines
592 B
C
Raw Normal View History

2025-09-03 13:21:02 -04:00
#ifndef XPHYSPRESET_H
#define XPHYSPRESET_H
#include "xasset.h"
2025-09-07 23:16:12 -04:00
#include "xstring.h"
2025-09-03 13:21:02 -04:00
class XPhysPreset : public XAsset
{
public:
2025-09-07 23:16:12 -04:00
explicit XPhysPreset();
2025-09-03 13:21:02 -04:00
~XPhysPreset();
virtual void ParseData(QDataStream* aStream) override;
virtual void Clear() override;
private:
2025-09-07 23:16:12 -04:00
XString mName;
2025-09-03 13:21:02 -04:00
int mType;
float mMass;
float mBounce;
float mFriction;
float mBulletForceScale;
float mExplosiveForceScale;
2025-09-07 23:16:12 -04:00
XString mSndAliasPrefix;
2025-09-03 13:21:02 -04:00
float mPiecesSpreadFraction;
float mPiecesUpwardVelocity;
bool mTempDefaultToCylinder;
};
#endif // XPHYSPRESET_H