46 lines
743 B
C
46 lines
743 B
C
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#ifndef XCLEAFBRUSHNODE_H
|
||
|
|
#define XCLEAFBRUSHNODE_H
|
||
|
|
|
||
|
|
#include "xasset.h"
|
||
|
|
#include "xcleafbrushnodedata.h"
|
||
|
|
|
||
|
|
class XCLeafBrushNode : public XAsset
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit XCLeafBrushNode();
|
||
|
|
|
||
|
|
void ParseData(QDataStream *aStream) override;
|
||
|
|
|
||
|
|
quint8 GetAxis() const;
|
||
|
|
void SetAxis(quint8 axis);
|
||
|
|
|
||
|
|
qint16 GetLeafBrushCount() const;
|
||
|
|
void SetLeafBrushCount(qint16 count);
|
||
|
|
|
||
|
|
int GetContents() const;
|
||
|
|
void SetContents(int contents);
|
||
|
|
|
||
|
|
XCLeafBrushNodeData& GetData();
|
||
|
|
const XCLeafBrushNodeData& GetData() const;
|
||
|
|
void SetData(const XCLeafBrushNodeData& data);
|
||
|
|
|
||
|
|
private:
|
||
|
|
quint8 mAxis = 0;
|
||
|
|
qint16 mLeafBrushCount = 0;
|
||
|
|
int mContents = 0;
|
||
|
|
XCLeafBrushNodeData mData;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // XCLEAFBRUSHNODE_H
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|