46 lines
923 B
Plaintext
46 lines
923 B
Plaintext
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#ifndef XPATHDATA_H
|
||
|
|
#define XPATHDATA_H
|
||
|
|
|
||
|
|
#include "xasset.h"
|
||
|
|
#include "gameworld.h"
|
||
|
|
#include "xpathnode.h"
|
||
|
|
#include "xpathbasenode.h"
|
||
|
|
#include "xpathnodetree.h"
|
||
|
|
|
||
|
|
class XPathData : public XAsset
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit XPathData();
|
||
|
|
|
||
|
|
void ParseData(QDataStream *aStream) override;
|
||
|
|
|
||
|
|
unsigned int GetNodeCount() const;
|
||
|
|
void SetNodeCount(unsigned int count);
|
||
|
|
|
||
|
|
private:
|
||
|
|
unsigned int mNodeCount = 0;
|
||
|
|
// Using our new classes instead of raw pointers to structures
|
||
|
|
QVector<XPathNode> mNodes; // Vector for automatic memory management
|
||
|
|
QVector<XPathBaseNode> mBaseNodes;
|
||
|
|
unsigned int mChainNodeCount = 0;
|
||
|
|
QVector<unsigned short> mChainNodeForNode;
|
||
|
|
QVector<unsigned short> mNodeForChainNode;
|
||
|
|
int mVisBytes = 0;
|
||
|
|
QByteArray mPathVis; // Using QByteArray for automatic memory management
|
||
|
|
int mNodeTreeCount = 0;
|
||
|
|
QVector<XPathNodeTree> mNodeTrees;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // XPATHDATA_H
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|