return ranges::any_of(other.bases, [this](const ClassBase *b){ return is_base_of(*b); });
}
+
+ClassBase *Reflector::find_class(const type_index &type) const
+{
+ auto i = lower_bound(type);
+ return (i!=classes.end() && (*i)->get_type()==type ? i->get() : nullptr);
+}
+
} // namespace Reflection
} // namespace Msp::Game