XPlor/libs/xassets/xcollisionaabbtreeindex.h
2025-08-17 13:14:17 -04:00

40 lines
605 B
C++

#ifndef XCOLLISIONAABBTREEINDEX_H
#define XCOLLISIONAABBTREEINDEX_H
#include "xasset.h"
class XCollisionAabbTreeIndex : public XAsset
{
public:
explicit XCollisionAabbTreeIndex();
void ParseData(QDataStream *aStream) override;
// Option 1: First child index
int GetFirstChildIndex() const;
void SetFirstChildIndex(int index);
// Option 2: Partition index
int GetPartitionIndex() const;
void SetPartitionIndex(int index);
private:
union {
int mFirstChildIndex = 0;
int mPartitionIndex = 0;
};
};
#endif // XCOLLISIONAABBTREEINDEX_H