EzAcc/DemoProject/Input Combos/Motor2D/ctApp.cpp
// Call modules before each loop iteration
Call modules before each loop iteration
Call modules before each loop iteration
bool ctApp::PreUpdate()
{
	bool ret = true;
	ctModule* pModule = NULL;
	for (std::list<ctModule*>::iterator it = modules.begin(); it != modules.end() && ret == true; it++)
	{
		pModule = (*it);
		if (pModule->active == false) {
			continue;
		}
		ret = (*it)->PreUpdate();
	}
	return ret;
}
bool ctApp :: PreUpdate ( ) { bool ret = true ; ctModule * pModule = NULL ; for ( std :: list < ctModule * > :: iterator it = modules . begin ( ) ; it != modules . end ( ) && ret == true ; it ++ ) { pModule = ( * it ) ; if ( pModule -> active == false ) { continue ; } ret = ( * it ) -> PreUpdate ( ) ; } return ret ; }
Call modules before each loop iteration
Call modules before each loop iteration