#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;
    float *mH0X;
    float *mH0Y;
    float *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
