You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
474 B
C++
22 lines
474 B
C++
#ifndef NBTMODIFIER_TAGFLOAT_H
|
|
#define NBTMODIFIER_TAGFLOAT_H
|
|
|
|
#include <QtCore/qfloat16.h>
|
|
#include "AbstractNamedTag.h"
|
|
|
|
class TagFloat : public AbstractNamedTag {
|
|
public:
|
|
static constexpr quint8 ID = 5;
|
|
|
|
TagFloat(const float value = 0);
|
|
|
|
protected:
|
|
virtual bool const readPayloadFromData(QDataStream &data) override;
|
|
virtual bool const writePayloadToData(QDataStream &data) const override;
|
|
|
|
private:
|
|
float m_value;
|
|
};
|
|
|
|
#endif //NBTMODIFIER_TAGFLOAT_H
|