XPlor/libs/xassets/xcomworld.h

39 lines
859 B
C
Raw Normal View History

2025-08-14 18:50:13 -04:00
#ifndef XCOMWORLD_H
#define XCOMWORLD_H
2025-06-07 11:20:47 -04:00
2025-08-14 17:30:25 -04:00
#include "xasset.h"
#include "xstring.h"
2025-08-14 18:50:13 -04:00
#include "xcomprimarylight.h"
2025-06-07 11:20:47 -04:00
2025-08-14 17:30:25 -04:00
#include <QColor>
#include <QVector3D>
2025-09-05 18:35:17 -04:00
class XComWorld : public XAsset
2025-06-07 11:20:47 -04:00
{
2025-08-14 17:30:25 -04:00
public:
2025-09-05 18:35:17 -04:00
explicit XComWorld();
~XComWorld();
2025-08-14 17:30:25 -04:00
virtual void Clear() override;
virtual void ParseData(QDataStream *aStream) override;
QString GetName() const;
bool IsInUse() const;
quint32 GetPrimaryLightCount() const;
2025-08-14 18:50:13 -04:00
XComPrimaryLight* GetPrimaryLight(quint32 aIndex) const;
XComPrimaryLightArray* GetPrimaryLights() const;
2025-08-14 17:30:25 -04:00
public slots:
void SetName(const QString &aName);
void SetName(XString* aName);
void SetInUse(bool aInUse);
private:
XString* mName;
bool mInUse;
quint32 mPrimaryLightCount;
2025-08-14 18:50:13 -04:00
XComPrimaryLightArray* mPrimaryLights;
2025-06-07 11:20:47 -04:00
};
2025-08-14 18:50:13 -04:00
#endif // XCOMWORLD_H