Exemplo n.º 1
0
Arquivo: Entity.cpp Projeto: A-K/naali
 void Entity::RemoveComponentRaw(QObject* comp)
 {
     IComponent* compPtr = dynamic_cast<IComponent*>(comp);
     if (compPtr)
     {
         ComponentPtr ptr = GetComponent(compPtr->TypeName(), compPtr->Name()); //the shared_ptr to this component
         RemoveComponent(ptr);
     }
 }
Exemplo n.º 2
0
void Entity::RemoveComponentRaw(QObject* comp)
{
    LogWarning("Entity::RemoveComponentRaw: This function is deprecated and will be removed. Use RemoveComponent or RemoveComponentById instead.");
    IComponent* compPtr = dynamic_cast<IComponent*>(comp);
    if (compPtr)
    {
        ComponentPtr ptr = Component(compPtr->TypeName(), compPtr->Name()); //the shared_ptr to this component
        RemoveComponent(ptr);
    }
}