turn flecs::import into a function
@@ -1124,9 +1124,7 @@ public:
////////////////////////////////////////////////////////////////////////////////
template <typename T>
-class import {
-public:
- import(world& world, int flags) {
+void import(world& world, int flags = 0) {
if (!component_base<T>::s_name) {
// Allocate module, so the this ptr will remain stable
T *module_data = new T(world, flags);
@@ -1136,8 +1134,6 @@ public:
s.set<T>(*module_data);
}
}
-};
-
////////////////////////////////////////////////////////////////////////////////
//// A filter is used to match subsets of tables
