diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-01 00:47:57 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-05 17:34:17 +0200 |
commit | 3c102870f600178b7cabf6714f83e06fc05b42fd (patch) | |
tree | a9e022f5405de9c59b70ea7e664e1f5df758e3fc /src/Enchantments.cpp | |
parent | Merge pull request #978 from mc-server/VectorAssignmentOperator (diff) | |
download | cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.gz cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.bz2 cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.lz cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.xz cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.zst cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Enchantments.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Enchantments.cpp b/src/Enchantments.cpp index 64f89815b..bfcde9dac 100644 --- a/src/Enchantments.cpp +++ b/src/Enchantments.cpp @@ -83,6 +83,15 @@ void cEnchantments::AddFromString(const AString & a_StringSpec) +int cEnchantments::Size(void) +{ + return (int)m_Enchantments.size(); +} + + + + + AString cEnchantments::ToString(void) const { // Serialize all the enchantments into a string |