| 158 | */ |
| 159 | template<typename T> |
| 160 | void RemoveComponent(Ref<T> component) { |
| 161 | components[std::type_index(typeid(T))].remove(component); |
| 162 | |
| 163 | //add redundant types |
| 164 | for (const auto& alt : component->getAltTypes()) { |
| 165 | componentsRedundant[alt].remove(component); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | Copy components from one componentstore into this one |