Exemplo n.º 1
0
    ModelPair LocationModelManager::makeKey(ModelId mid0, ModelId mid1)
    {
//         return mid0 <= mid1 ? ModelPair(mid0, mid1) : ModelPair(mid1, mid0);
        return ModelPair(mid0, mid1);
    }
Exemplo n.º 2
0
//-------------------------------------------------------------------------
// @brief 
//-------------------------------------------------------------------------
void GameObjectManager::addGameObject( GameObject* model )
{
    m_gameObjects.insert( ModelPair(hashString(model->getName()), model) );
}