void CPlayer::Reset(unsigned int nUserUID, unsigned int nSessionID ) { m_bIsWaitingAsyncRequest = false ; m_nDisconnectTime = 0 ; m_nSessionID = nSessionID ; m_nUserUID = nUserUID ; m_eSate = ePlayerState_Online ; // inform components; for ( int i = ePlayerComponent_None; i < ePlayerComponent_Max ; ++i ) { IPlayerComponent* p = m_vAllComponents[i] ; if ( p ) { p->Reset(); } } m_tTimerSave.reset(); m_tTimerSave.start() ; }
void CPlayer::Reset(unsigned int nUserUID, unsigned int nSessionID ) { m_nDisconnectTime = 0 ; m_nSessionID = nSessionID ; m_nUserUID = nUserUID ; m_nTaxasRoomID = 0 ; m_eSate = ePlayerState_Online ; // inform components; for ( int i = ePlayerComponent_None; i < ePlayerComponent_Max ; ++i ) { IPlayerComponent* p = m_vAllComponents[i] ; if ( p ) { p->Reset(); } } if ( m_pTimerSave ) { m_pTimerSave->Reset(); m_pTimerSave->Start(); } }