Makes some stuff work

This commit is contained in:
zontreck 2024-07-30 22:30:55 -07:00
parent 43e16ce945
commit e5a3717e64
24 changed files with 2048 additions and 1 deletions

30
src/nbt/FloatTag.h Normal file
View file

@ -0,0 +1,30 @@
#ifndef FLOAT_TAG_H
#define FLOAT_TAG_H
#include "Tag.h"
namespace nbt
{
class FloatTag : public Tag
{
public:
FloatTag();
FloatTag(float val);
~FloatTag();
// Function overrides
void readValue(ByteLayer &data) override;
void writeValue(ByteLayer &data) override;
TagType getTagType() const override;
dynamic getValue() const override;
void setValue(const dynamic &val) override;
void prettyPrint(int indent, bool recurse) const override;
void writeStringifiedValue(StringBuilder &builder, int indent, bool isList) const override;
void readStringifiedValue(StringReader &reader) override;
private:
float value;
};
}
#endif