From: Daniel Karbach Date: Sat, 15 Sep 2012 17:01:05 +0000 (+0200) Subject: made fields of type descriptions accessible X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=cddc8a96cce6117dac14248455ac70d332a4a9f8;p=l2e.git made fields of type descriptions accessible --- diff --git a/src/loader/TypeDescription.h b/src/loader/TypeDescription.h index 8f2f46c..b7f4ba9 100644 --- a/src/loader/TypeDescription.h +++ b/src/loader/TypeDescription.h @@ -54,6 +54,10 @@ public: void SetSize(int s) { size = s; } int Size() const { return size; } + typedef std::map::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);