2025-08-17 13:14:17 -04:00
|
|
|
#ifndef XCLEAFBRUSHNODEDATA_H
|
|
|
|
|
#define XCLEAFBRUSHNODEDATA_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
#include "xcleafbrushnodechildren.h"
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
class XCLeafBrushNodeLeaf;
|
|
|
|
|
|
2025-08-17 13:14:17 -04:00
|
|
|
class XCLeafBrushNodeData : public XAsset
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit XCLeafBrushNodeData();
|
2025-09-03 13:01:12 -04:00
|
|
|
virtual ~XCLeafBrushNodeData() override;
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
void ParseData(QDataStream *aStream) override;
|
2025-09-05 18:35:17 -04:00
|
|
|
virtual void Clear() override;
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
// Option 1: Leaf data
|
2025-09-05 18:35:17 -04:00
|
|
|
XCLeafBrushNodeLeaf* GetLeaf() const;
|
|
|
|
|
void SetLeaf(XCLeafBrushNodeLeaf& leaf);
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
// Option 2: Children data
|
2025-09-05 18:35:17 -04:00
|
|
|
XCLeafBrushNodeChildren *GetChildren() const;
|
|
|
|
|
void SetChildren(XCLeafBrushNodeChildren& children);
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
private:
|
2025-09-05 18:35:17 -04:00
|
|
|
XCLeafBrushNodeLeaf *mLeaf;
|
|
|
|
|
XCLeafBrushNodeChildren *mChildren;
|
2025-08-17 13:14:17 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XCLEAFBRUSHNODEDATA_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|