//*********************************************************************** BOOL CLGBApp::GotoSceneID( HWND hWndPreviousScene, int id, int iNextScene ) //*********************************************************************** { id = GetSceneID(id); if (id && id != m_nSceneNo) return(GotoScene(hWndPreviousScene, id, iNextScene)); else return(FALSE); }
void ComponentAnimationPlayer2D::ImportFromJSONObject(cJSON* jComponent, SceneID sceneid) { ComponentBase::ImportFromJSONObject( jComponent, sceneid ); cJSON* animfilestringobj = cJSON_GetObjectItem( jComponent, "AnimFile" ); if( animfilestringobj ) { EngineFileManager* pEngineFileManager = static_cast<EngineFileManager*>( m_pComponentSystemManager->GetEngineCore()->GetManagers()->GetFileManager() ); MyFileObject* pFile = pEngineFileManager->RequestFile( animfilestringobj->valuestring, GetSceneID() ); MyAssert( pFile ); if( pFile ) { SetAnimationFile( pFile ); pFile->Release(); // free ref added by RequestFile } } }