35 lines
674 B
C
35 lines
674 B
C
|
|
|
||
|
|
|
||
|
|
#ifndef XASSETLIST_H
|
||
|
|
#define XASSETLIST_H
|
||
|
|
|
||
|
|
#include "xasset.h"
|
||
|
|
#include <QVector>
|
||
|
|
#include "scriptstringlist.h"
|
||
|
|
|
||
|
|
class XAssetList : public XAsset
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit XAssetList();
|
||
|
|
|
||
|
|
void ParseData(QDataStream *aStream) override;
|
||
|
|
|
||
|
|
const ScriptStringList& GetStringList() const;
|
||
|
|
void SetStringList(const ScriptStringList& stringList);
|
||
|
|
|
||
|
|
int GetAssetCount() const;
|
||
|
|
void SetAssetCount(int count);
|
||
|
|
|
||
|
|
QVector<XAsset>& GetAssets();
|
||
|
|
const QVector<XAsset>& GetAssets() const;
|
||
|
|
void SetAssets(const QVector<XAsset>& assets);
|
||
|
|
|
||
|
|
private:
|
||
|
|
ScriptStringList mStringList;
|
||
|
|
int mAssetCount = 0;
|
||
|
|
QVector<XAsset> mAssets;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // XASSETLIST_H
|
||
|
|
|