+ for(PartSeq::const_iterator i=parts.begin(); i!=parts.end(); ++i)
+ if(i->get_name()==name)
+ return &*i;
+
+ return 0;
+}
+
+
+Style::Loader::Loader(Style &s, Resources &r):
+ DataFile::CollectionObjectLoader<Style, Resources>(s, &r)
+{
+ if(!obj.font)
+ {
+ obj.font = &get_collection().get_default_font();
+ obj.font_size = obj.font->get_native_size();
+ }
+
+ add("font", &Loader::font);