60 lines
1.1 KiB
C
60 lines
1.1 KiB
C
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#ifndef XCLEAF_H
|
||
|
|
#define XCLEAF_H
|
||
|
|
|
||
|
|
#include "xasset.h"
|
||
|
|
|
||
|
|
class XCLeaf : public XAsset
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit XCLeaf();
|
||
|
|
|
||
|
|
void ParseData(QDataStream *aStream) override;
|
||
|
|
|
||
|
|
quint16 GetFirstCollAabbIndex() const;
|
||
|
|
void SetFirstCollAabbIndex(quint16 index);
|
||
|
|
|
||
|
|
quint16 GetCollAabbCount() const;
|
||
|
|
void SetCollAabbCount(quint16 count);
|
||
|
|
|
||
|
|
int GetBrushContents() const;
|
||
|
|
void SetBrushContents(int contents);
|
||
|
|
|
||
|
|
int GetTerrainContents() const;
|
||
|
|
void SetTerrainContents(int contents);
|
||
|
|
|
||
|
|
const float* GetMins() const;
|
||
|
|
void SetMins(const float* mins, size_t count = 3);
|
||
|
|
|
||
|
|
const float* GetMaxs() const;
|
||
|
|
void SetMaxs(const float* maxs, size_t count = 3);
|
||
|
|
|
||
|
|
int GetLeafBrushNode() const;
|
||
|
|
void SetLeafBrushNode(int node);
|
||
|
|
|
||
|
|
qint16 GetCluster() const;
|
||
|
|
void SetCluster(qint16 cluster);
|
||
|
|
|
||
|
|
private:
|
||
|
|
quint16 mFirstCollAabbIndex = 0;
|
||
|
|
quint16 mCollAabbCount = 0;
|
||
|
|
int mBrushContents = 0;
|
||
|
|
int mTerrainContents = 0;
|
||
|
|
float mMins[3] = {0.0f, 0.0f, 0.0f};
|
||
|
|
float mMaxs[3] = {0.0f, 0.0f, 0.0f};
|
||
|
|
int mLeafBrushNode = 0;
|
||
|
|
qint16 mCluster = 0;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // XCLEAF_H
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|