]> git.localhorst.tv Git - l2e.git/commitdiff
made fields of type descriptions accessible
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 15 Sep 2012 17:01:05 +0000 (19:01 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 15 Sep 2012 19:44:36 +0000 (21:44 +0200)
src/loader/TypeDescription.h

index 8f2f46c8b698bebf622c7615442ce5e5c46e571b..b7f4ba9e05bd08daaf7aa16b888b8cdbad5a3541 100644 (file)
@@ -54,6 +54,10 @@ public:
        void SetSize(int s) { size = s; }
        int Size() const { return size; }
 
+       typedef std::map<std::string, FieldDescription>::const_iterator FieldIterator;
+       FieldIterator FieldsBegin() const { return fields.begin(); }
+       FieldIterator FieldsEnd() const { return fields.end(); }
+
        static TypeDescription &CreateOrGet(const std::string &name);
        static int GetTypeId(const std::string &);
        static const TypeDescription &Get(int id);