Bool HsPlayer::OnPlayerLogout() { //在线状态即退出 if (IsOnline()) OnPlayerLeave(); return true; }
Bool HsPlayer::OnException(Int32 iCode) { //ÔÚÏß״̬¼´Í˳ö if (IsOnline()) OnPlayerLeave(); return true; }