public void Recv_Integrated_Indun_Gogogo(body_SC_INTEGRATED_INDUN_GOGOGO data)
	{
		_RequestDimpleLog_Indun( 160401);

		if( 0 == data.nIndunTableIndex)
		{
//			_IndunGoIntoEnd();
			return;
		}

		StartCoroutine( Integrated_Indun_Gogogo( data));
	}
	private IEnumerator Integrated_Indun_Gogogo(body_SC_INTEGRATED_INDUN_GOGOGO data)
	{
		if( true == data.bReconnect)
		{
			AsEventNotifyMgr.Instance.CenterNotify.AddGMMessage( AsTableManager.Instance.GetTbl_String( 2818));
			yield return new WaitForSeconds( 3.0f);
		}
		
		// connect integrated server
		AsNetworkIntegratedManager.Instance.ConnectToServer( data.szIpAddress, data.nPort);
		if( false == AsNetworkIntegratedManager.Instance.IsConnected())
		{
			Debug.LogError( "AsNetworkIntegratedManager.Instance.ConnectToServer(): Failed");
			Debug.Log( "ip: " + data.szIpAddress + ", port: " + data.nPort + ", id: " + data.nIndunTableIndex + ", did: " + data.nIndunDuplicationIndex);
//			_IndunGoIntoEnd();
			yield break;
		}

		AsNetworkManager.Instance.Start_SendAlive_GameServer();
		
		_RequestDimpleLog_Indun( 160402);
		
		// login possible
		body_CG_LOGIN_POSSIBLE possible = new body_CG_LOGIN_POSSIBLE();
		byte[] possibleData = possible.ClassToPacketBytes();
		AsNetworkMessageHandler.Instance.Send( possibleData);
		
		// indun login
		uint uiUserUniqKey = AsUserInfo.Instance.LoginUserUniqueKey;
		body_CS_INTEGRATED_INDUN_LOGIN data2 = new body_CS_INTEGRATED_INDUN_LOGIN( uiUserUniqKey, data.nIndunTableIndex, data.nIndunDuplicationIndex, data.bReconnect);
		byte[] sendData = data2.ClassToPacketBytes();
		AsNetworkMessageHandler.Instance.Send( sendData);
		
		_RequestDimpleLog_Indun( 160403);
		
		// remove matching room
		isMatching = false;
		m_bStartOnce = false;
		
		m_nIndunTableIndex = data.nIndunTableIndex;
		
		if( true == data.bReconnect)
			m_nIndunBranchTableIndex = data.nReconnectBranchTableIdx;
		
		Debug.Log( "ip: " + data.szIpAddress + ", port: " + data.nPort + ", id: " + data.nIndunTableIndex + ", did: " + data.nIndunDuplicationIndex);
	}
Esempio n. 3
0
	void Receive_Integrated_Indun_Gogogo( byte[] _packet)
	{
		body_SC_INTEGRATED_INDUN_GOGOGO result = new body_SC_INTEGRATED_INDUN_GOGOGO();
		result.PacketBytesToClass( _packet);
		
		AsInstanceDungeonManager.Instance.Recv_Integrated_Indun_Gogogo( result);
	}