Fix compile errors in libnbt
This commit is contained in:
parent
7744e18d8c
commit
8a2282b2c2
16 changed files with 479 additions and 14 deletions
40
src/nbt/IntArrayTag.h
Normal file
40
src/nbt/IntArrayTag.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
#ifndef INTARRAYTAG_H
|
||||
#define INTARRAYTAG_H
|
||||
|
||||
#include "Tag.h"
|
||||
#include "../utils/ByteLayer.h"
|
||||
#include "../utils/StringBuilder.h"
|
||||
#include "../utils/StringReader.h"
|
||||
#include "../types/dynamic.h"
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
using namespace libac;
|
||||
using namespace std;
|
||||
|
||||
namespace nbt
|
||||
{
|
||||
|
||||
class IntArrayTag : public Tag
|
||||
{
|
||||
public:
|
||||
IntArrayTag();
|
||||
IntArrayTag(const std::vector<int> &value);
|
||||
|
||||
// Override functions from the Tag class
|
||||
void readValue(ByteLayer &data) override;
|
||||
void writeValue(ByteLayer &data) const override;
|
||||
TagType getTagType() const override;
|
||||
dynamic getValue() const;
|
||||
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:
|
||||
vector<int> value;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // INTARRAYTAG_H
|
Loading…
Add table
Add a link
Reference in a new issue