Exemplo n.º 1
0
// instantiate group-instances that should be create in the specified scene
// for that check all groups from all scenes which will only instantiate valid ones
void gkGroupManager::createGameObjectInstances(gkScene* scene)
{
	GroupAttachements::Iterator it = m_attachements.iterator();
	while (it.hasMoreElements())
	{
		Groups::Iterator sceneGroups = it.getNext().second;
		while (sceneGroups.hasMoreElements())
			sceneGroups.getNext()->createGameObjectInstances(scene);
	}
}
Exemplo n.º 2
0
void gkGroupManager::createGameObjectInstances(gkScene* scene)
{
    UTsize pos;
    if ((pos = m_attachements.find(scene)) != UT_NPOS)
    {
        Groups::Iterator it = m_attachements.at(pos).iterator();
        while (it.hasMoreElements())
            it.getNext()->createGameObjectInstances(scene);
    }
}
Exemplo n.º 3
0
void gkGroupManager::destroyStaticBatches(gkScene* scene)
{
	UTsize pos;
	if ((pos = m_attachements.find(scene)) != UT_NPOS)
	{
		Groups::Iterator it = m_attachements.at(pos).iterator();
		while (it.hasMoreElements())
			it.getNext()->destroyStaticBatches(scene);
	}

}