diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-07-21 16:17:40 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-07-21 16:29:26 +0200 |
commit | 59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50 (patch) | |
tree | 6659532fa46bc4aa0129c2723454f5b71bda5f1d /src/NBT/CompoundTag.hpp | |
parent | 4288935d701a871b91838dd6c837cc6c2060271f (diff) | |
download | MinedMap-59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50.tar MinedMap-59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50.zip |
NBT: make Tag constructors public, remove friend declarations
Diffstat (limited to 'src/NBT/CompoundTag.hpp')
-rw-r--r-- | src/NBT/CompoundTag.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/NBT/CompoundTag.hpp b/src/NBT/CompoundTag.hpp index 6be0479..310b995 100644 --- a/src/NBT/CompoundTag.hpp +++ b/src/NBT/CompoundTag.hpp @@ -36,9 +36,7 @@ namespace MinedMap { namespace NBT { class CompoundTag : public Tag, public std::unordered_map<std::string, std::shared_ptr<const Tag>> { -private: - friend class Tag; - +public: CompoundTag(Buffer *buffer) { while (true) { std::pair<std::string, std::shared_ptr<const Tag>> v = Tag::readNamedTag(buffer); @@ -49,7 +47,6 @@ private: } } -public: virtual Type getType() const { return Type::Compound; } |