summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/EnchantmentSerializer.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-19 17:52:45 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-19 17:52:45 +0100
commitf13a14d2cf4a7858c22fe003acff6753d0d50ba1 (patch)
treef5be449d907c142d6560fb025db11bc6d01dc147 /src/WorldStorage/EnchantmentSerializer.cpp
parentSpilt Writing of Enchantments to seperate class (diff)
downloadcuberite-f13a14d2cf4a7858c22fe003acff6753d0d50ba1.tar
cuberite-f13a14d2cf4a7858c22fe003acff6753d0d50ba1.tar.gz
cuberite-f13a14d2cf4a7858c22fe003acff6753d0d50ba1.tar.bz2
cuberite-f13a14d2cf4a7858c22fe003acff6753d0d50ba1.tar.lz
cuberite-f13a14d2cf4a7858c22fe003acff6753d0d50ba1.tar.xz
cuberite-f13a14d2cf4a7858c22fe003acff6753d0d50ba1.tar.zst
cuberite-f13a14d2cf4a7858c22fe003acff6753d0d50ba1.zip
Diffstat (limited to 'src/WorldStorage/EnchantmentSerializer.cpp')
-rw-r--r--src/WorldStorage/EnchantmentSerializer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WorldStorage/EnchantmentSerializer.cpp b/src/WorldStorage/EnchantmentSerializer.cpp
index a481f1682..56072207f 100644
--- a/src/WorldStorage/EnchantmentSerializer.cpp
+++ b/src/WorldStorage/EnchantmentSerializer.cpp
@@ -2,9 +2,10 @@
#include "Globals.h"
#include "EnchantmentSerializer.h"
+#include "Enchantments.h"
#include "FastNBT.h"
-void cEnchantmentSerializer::WriteToNBTCompound(cEnchantments const& a_Enchantments, cFastNBTWriter & a_Writer, const AString & a_ListTagName)
+void EnchantmentSerializer::WriteToNBTCompound(cEnchantments const& a_Enchantments, cFastNBTWriter & a_Writer, const AString & a_ListTagName)
{
// Write the enchantments into the specified NBT writer
// begin with the LIST tag of the specified name ("ench" or "StoredEnchantments")
@@ -24,7 +25,7 @@ void cEnchantmentSerializer::WriteToNBTCompound(cEnchantments const& a_Enchantme
-void cEnchantmentSerializer::ParseFromNBT(cEnchantments& a_Enchantments, const cParsedNBT & a_NBT, int a_EnchListTagIdx)
+void EnchantmentSerializer::ParseFromNBT(cEnchantments& a_Enchantments, const cParsedNBT & a_NBT, int a_EnchListTagIdx)
{
// Read the enchantments from the specified NBT list tag (ench or StoredEnchantments)