259 ComponentTypeT::typeId = typeHash;
260 ComponentTypeT::typeName = _type;
263 auto runtimeName =
typeid(ComponentTypeT).name();
264 auto runtimeNameIt = this->runtimeNamesById.find(typeHash);
265 if (runtimeNameIt != this->runtimeNamesById.end())
270 if (runtimeNameIt->second != runtimeName)
273 <<
"Registered components of different types with same name: type ["
274 << runtimeNameIt->second <<
"] and type [" << runtimeName
275 <<
"] with name [" << _type <<
"]. Second type will not work."
286 if (debugEnv ==
"true")
288 std::cout <<
"Registering [" << ComponentTypeT::typeName <<
"]"
293 this->compsById[ComponentTypeT::typeId].Add(_regObjId, _compDesc);
294 namesById[ComponentTypeT::typeId] = ComponentTypeT::typeName;
295 runtimeNamesById[ComponentTypeT::typeId] = runtimeName;