#ifndef XBRUSHWRAPPER_H
#define XBRUSHWRAPPER_H

#include "xasset.h"
#include "xcbrushside.h"

#include <QVector3D>

class XBrushWrapper : public XAsset
{
public:
    XBrushWrapper();
    ~XBrushWrapper();

    virtual void ParseData(QDataStream* aStream) override;
    virtual void Clear() override;

private:
    QVector3D mMins;
    int mContents;
    QVector3D mMaxs;
    quint32 mNumSides;
    QVector<XCBrushSide> mSides;
    QVector<QVector3D> mAxialMaterialNum;
    quint8 *mBaseAdjacentSide;
    QVector<QVector3D> mFirstAdjacentSideOffsets;
    QVector<QVector3D> mEdgeCount;
    int mTotalEdgeCount;
    XCPlane *mPlanes;
};

#endif // XBRUSHWRAPPER_H
