#ifndef XWATER_H
#define XWATER_H

#include "xasset.h"
#include "xgfximage.h"
#include "xwaterwritable.h"

#include <QVector>

class XWater: public XAsset
{
public:
    explicit XWater();
    ~XWater();

    virtual void ParseData(QDataStream* aStream) override;
    virtual void Clear() override;

private:
    XWaterWritable mWritable;
    QByteArray mH0X;
    QByteArray mH0Y;
    QByteArray mWTerm;
    int mM;
    int mN;
    float mLx;
    float mLz;
    float mGravity;
    float mWindVel;
    QVector<float> mWindDir;
    float mAmplitude;
    QVector<float> mCodeConstant;
    XGfxImage mImage;
};

#endif // XWATER_H
