2025-08-17 13:14:17 -04:00
|
|
|
#ifndef XDMATERIAL_H
|
|
|
|
|
#define XDMATERIAL_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
class XDMaterial : public XAsset
|
2025-08-17 13:14:17 -04:00
|
|
|
{
|
|
|
|
|
public:
|
2025-09-05 18:35:17 -04:00
|
|
|
explicit XDMaterial();
|
|
|
|
|
~XDMaterial();
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
void ParseData(QDataStream *aStream) override;
|
|
|
|
|
|
|
|
|
|
const QString& GetMaterial() const;
|
|
|
|
|
void SetMaterial(const QString& material);
|
|
|
|
|
|
|
|
|
|
int GetSurfaceFlags() const;
|
|
|
|
|
void SetSurfaceFlags(int flags);
|
|
|
|
|
|
|
|
|
|
int GetContentFlags() const;
|
|
|
|
|
void SetContentFlags(int flags);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QString mMaterial = "";
|
|
|
|
|
int mSurfaceFlags = 0;
|
|
|
|
|
int mContentFlags = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XDMATERIAL_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|