40 lines
751 B
C++
40 lines
751 B
C++
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#include "xcleafbrushnodedata.h"
|
||
|
|
|
||
|
|
XCLeafBrushNodeData::XCLeafBrushNodeData()
|
||
|
|
: XAsset() {
|
||
|
|
}
|
||
|
|
|
||
|
|
void XCLeafBrushNodeData::ParseData(QDataStream *aStream) {
|
||
|
|
if (GetPtr() == -1) {
|
||
|
|
// We need to determine which part of the union to parse
|
||
|
|
// For simplicity, we'll assume it's always leaf for now
|
||
|
|
mLeaf.ParseData(aStream);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const XCLeafBrushNodeLeaf& XCLeafBrushNodeData::GetLeaf() const {
|
||
|
|
return mLeaf;
|
||
|
|
}
|
||
|
|
|
||
|
|
void XCLeafBrushNodeData::SetLeaf(const XCLeafBrushNodeLeaf& leaf) {
|
||
|
|
mLeaf = leaf;
|
||
|
|
}
|
||
|
|
|
||
|
|
const XCLeafBrushNodeChildren& XCLeafBrushNodeData::GetChildren() const {
|
||
|
|
return mChildren;
|
||
|
|
}
|
||
|
|
|
||
|
|
void XCLeafBrushNodeData::SetChildren(const XCLeafBrushNodeChildren& children) {
|
||
|
|
mChildren = children;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|