40 lines
882 B
C++
40 lines
882 B
C++
#ifndef COMWORLD_H
|
|
#define COMWORLD_H
|
|
|
|
#include "xasset.h"
|
|
#include "xstring.h"
|
|
#include "comprimarylight.h"
|
|
|
|
#include <QColor>
|
|
#include <QVector3D>
|
|
|
|
class ComWorldAsset : public XAsset
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ComWorldAsset(QObject *aParent = nullptr);
|
|
|
|
virtual void Clear() override;
|
|
virtual void ParseData(QDataStream *aStream) override;
|
|
|
|
QString GetName() const;
|
|
bool IsInUse() const;
|
|
quint32 GetPrimaryLightCount() const;
|
|
ComPrimaryLight* GetPrimaryLight(quint32 aIndex) const;
|
|
ComPrimaryLightArray* GetPrimaryLights() const;
|
|
|
|
public slots:
|
|
void SetName(const QString &aName);
|
|
void SetName(XString* aName);
|
|
void SetInUse(bool aInUse);
|
|
|
|
private:
|
|
XString* mName;
|
|
bool mInUse;
|
|
quint32 mPrimaryLightCount;
|
|
ComPrimaryLightArray* mPrimaryLights;
|
|
};
|
|
|
|
#endif // COMWORLD_H
|