#ifndef XCLEAFBRUSHNODEDATA_H #define XCLEAFBRUSHNODEDATA_H #include "xasset.h" #include "xcleafbrushnodeleaf.h" #include "xcleafbrushnodechildren.h" class XCLeafBrushNodeData : public XAsset { public: explicit XCLeafBrushNodeData(); void ParseData(QDataStream *aStream) override; // Option 1: Leaf data const XCLeafBrushNodeLeaf& GetLeaf() const; void SetLeaf(const XCLeafBrushNodeLeaf& leaf); // Option 2: Children data const XCLeafBrushNodeChildren& GetChildren() const; void SetChildren(const XCLeafBrushNodeChildren& children); private: union { XCLeafBrushNodeLeaf mLeaf; XCLeafBrushNodeChildren mChildren; }; }; #endif // XCLEAFBRUSHNODEDATA_H