]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/TypeDescription.cpp
ref and load images in l2o files
[l2e.git] / src / loader / TypeDescription.cpp
index c6e5d7e876498bf5a7c0aae6713ce148f956dfaf..19974fb52cced072a31509df6453cf84117f46d6 100644 (file)
@@ -107,6 +107,20 @@ const TypeDescription &TypeDescription::Get(int id) {
 }
 
 
+int TypeDescription::GetMaxSize() {
+       int max = 0;
+       for (map<int, TypeDescription>::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<string> types;
        for (map<int, TypeDescription>::const_iterator i(typeDescriptions.begin()), end(typeDescriptions.end()); i != end; ++i) {