X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FTypeDescription.cpp;h=19974fb52cced072a31509df6453cf84117f46d6;hb=1970312e983541d32d4ff73c81b8d90156a7bb99;hp=f7c849be71a56ae9ecb45bf0de2c078dca37bcf2;hpb=def25cbd91b3ee6222daa529818d1f35027d0df9;p=l2e.git diff --git a/src/loader/TypeDescription.cpp b/src/loader/TypeDescription.cpp index f7c849b..19974fb 100644 --- a/src/loader/TypeDescription.cpp +++ b/src/loader/TypeDescription.cpp @@ -1,10 +1,3 @@ -/* - * TypeDescription.cpp - * - * Created on: Sep 4, 2012 - * Author: holy - */ - #include "TypeDescription.h" #include @@ -114,6 +107,20 @@ const TypeDescription &TypeDescription::Get(int id) { } +int TypeDescription::GetMaxSize() { + int max = 0; + for (map::const_iterator + i(typeDescriptions.begin()), + end(typeDescriptions.end()); + i != end; ++i) { + if (i->second.Size() > max) { + max = i->second.Size(); + } + } + return max; +} + + void TypeDescription::WriteSourceWiki(std::ostream &out) { vector types; for (map::const_iterator i(typeDescriptions.begin()), end(typeDescriptions.end()); i != end; ++i) {