summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-10 18:17:28 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-10 18:17:28 +0100
commit0a509ab85e395bf46e29b7b554d736fadfaed0ba (patch)
treef67665e089d372b89505f1b9a3ee21c8cd9f0d8c /src/Item.h
parentBe more parinoid about int sizes (diff)
parentFixed MSVC2008 compilation. (diff)
downloadcuberite-0a509ab85e395bf46e29b7b554d736fadfaed0ba.tar
cuberite-0a509ab85e395bf46e29b7b554d736fadfaed0ba.tar.gz
cuberite-0a509ab85e395bf46e29b7b554d736fadfaed0ba.tar.bz2
cuberite-0a509ab85e395bf46e29b7b554d736fadfaed0ba.tar.lz
cuberite-0a509ab85e395bf46e29b7b554d736fadfaed0ba.tar.xz
cuberite-0a509ab85e395bf46e29b7b554d736fadfaed0ba.tar.zst
cuberite-0a509ab85e395bf46e29b7b554d736fadfaed0ba.zip
Diffstat (limited to 'src/Item.h')
-rw-r--r--src/Item.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Item.h b/src/Item.h
index cc3b3c961..4bdfb12dd 100644
--- a/src/Item.h
+++ b/src/Item.h
@@ -11,6 +11,7 @@
#include "Defines.h"
#include "Enchantments.h"
+#include "WorldStorage/FireworksSerializer.h"
@@ -38,7 +39,8 @@ public:
m_ItemCount(0),
m_ItemDamage(0),
m_CustomName(""),
- m_Lore("")
+ m_Lore(""),
+ m_FireworkItem()
{
}
@@ -57,7 +59,8 @@ public:
m_ItemDamage (a_ItemDamage),
m_Enchantments(a_Enchantments),
m_CustomName (a_CustomName),
- m_Lore (a_Lore)
+ m_Lore (a_Lore),
+ m_FireworkItem()
{
if (!IsValidItem(m_ItemType))
{
@@ -77,7 +80,8 @@ public:
m_ItemDamage (a_CopyFrom.m_ItemDamage),
m_Enchantments(a_CopyFrom.m_Enchantments),
m_CustomName (a_CopyFrom.m_CustomName),
- m_Lore (a_CopyFrom.m_Lore)
+ m_Lore (a_CopyFrom.m_Lore),
+ m_FireworkItem(a_CopyFrom.m_FireworkItem)
{
}
@@ -90,6 +94,7 @@ public:
m_Enchantments.Clear();
m_CustomName = "";
m_Lore = "";
+ m_FireworkItem.EmptyData();
}
@@ -115,7 +120,8 @@ public:
(m_ItemDamage == a_Item.m_ItemDamage) &&
(m_Enchantments == a_Item.m_Enchantments) &&
(m_CustomName == a_Item.m_CustomName) &&
- (m_Lore == a_Item.m_Lore)
+ (m_Lore == a_Item.m_Lore) &&
+ m_FireworkItem.IsEqualTo(a_Item.m_FireworkItem)
);
}
@@ -177,6 +183,8 @@ public:
cEnchantments m_Enchantments;
AString m_CustomName;
AString m_Lore;
+
+ cFireworkItem m_FireworkItem;
};
// tolua_end