MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / RemoveComponent

Method RemoveComponent

include/RavEngine/ComponentStore.hpp:160–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected