Makes some stuff work
This commit is contained in:
parent
43e16ce945
commit
e5a3717e64
24 changed files with 2048 additions and 1 deletions
30
src/nbt/FloatTag.h
Normal file
30
src/nbt/FloatTag.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue