Ejemplo n.º 1
0
 /// <summary>
 /// Failed logging in.
 /// </summary>
 /// <param name="e">error</param>
 private void FailLogIn(PlayerIOError e)
 {
     if (OnFailConnect != null)
     {
         OnFailConnect(this, e.Message);
     }
 }
Ejemplo n.º 2
0
 public virtual void OnAuthenticateFail(PlayerIOError error)
 {
     // Debug.Log("OnAuthenticateFail: " + error.ToString());
     NetworkManager.Instance.notificationTextObject.text.text = "Error: " + error.ToString();
     NetworkManager.Instance.StartCoroutine(NetworkManager.Instance.notificationTextObject.DisplayRoutine());
     // Connect ();
 }
Ejemplo n.º 3
0
        public bool Login(string email, string password, string server)
        {
            PlayerIOError error = null;

            PlayerIO.QuickConnect.SimpleConnect(
                server,
                email,
                password,
                delegate(Client tempClient)
            {
                client   = tempClient;
                loggedIn = true;
            },
                delegate(PlayerIOError tempError)
            {
                error = tempError;
            });
            while (!loggedIn && error == null)
            {
            }
            if (loggedIn)
            {
                return(true);
            }
            else
            {
                MessageBox.Show("Could not login: " + error);
                return(false);
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 private void FailCreate(PlayerIOError e)
 {
     if (OnFailCreateWorld != null)
     {
         OnFailCreateWorld(this, e.Message);
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 private void FailJoin(PlayerIOError e)
 {
     if (OnFailJoinWorld != null)
     {
         OnFailJoinWorld(this, e.Message);
     }
 }
Ejemplo n.º 6
0
 public bool Connect(string worldId, string roomType, string code = "")
 {
     if (loggedIn)
     {
         PlayerIOError error = null;
         client.Multiplayer.CreateJoinRoom(
             worldId,
             roomType,
             true,
             null,
             null,
             delegate(Connection tempConnection)
         {
             connection = tempConnection;
             connection.OnDisconnect += this.OnDisconnect;
             connection.OnMessage    += this.OnMessage;
             connection.Send("init");
             connection.Send("init2");
         },
             delegate(PlayerIOError tempError)
         {
             error = tempError;
         });
         while (!connected && error == null)
         {
         }
         if (connection.Connected)
         {
             //connection.Send("access", form..Text);
             return(true);
         }
         else
         {
             MessageBox.Show("Could not connect: " + error);
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 7
0
 public virtual void OnNewAccountDBObjectSaveFail(PlayerIOError error)
 {
     NetworkManager.Instance.notificationTextObject.text.text = "Error: " + error.ToString();
     NetworkManager.Instance.StartCoroutine(NetworkManager.Instance.notificationTextObject.DisplayRoutine());
     VirtualKeyboard.Instance.EnableInput();
 }
Ejemplo n.º 8
0
 public virtual void OnDeleteAccountDBObjectFail(PlayerIOError error)
 {
     NetworkManager.Instance.notificationTextObject.text.text = "Error: " + error.ToString();
     NetworkManager.Instance.StartCoroutine(NetworkManager.Instance.notificationTextObject.DisplayRoutine());
 }
Ejemplo n.º 9
0
 public void onStatLoadError(PlayerIOError error)
 {
     mCtx.PlayerIO.ErrorLog.WriteError("Unable to save server stats. " + error.Message);
 }
Ejemplo n.º 10
0
 public virtual void OnAuthenticateFail(PlayerIOError error)
 {
     Debug.Log("OnAuthenticateFail: " + error.ToString());
     // Connect ();
 }
Ejemplo n.º 11
0
 // ReSharper disable once InconsistentNaming
 private static void PrintPlayerIOError(PlayerIOError error)
 {
     Console.WriteLine("ERROR: [{0}] {1}", error.Source, error.Message);
 }
Ejemplo n.º 12
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="e"></param>
 private void FailCreate(PlayerIOError e)
 {
     if (OnFailCreateWorld != null) OnFailCreateWorld(this, e.Message);
 }
Ejemplo n.º 13
0
 void FailCreateLevelData(PlayerIOError _error)
 {
     Debug.Log(_error.Message);
 }
Ejemplo n.º 14
0
 void OnRegisterFail(PlayerIOError _client)
 {
     Debug.Log(_client.ErrorCode.ToString());
     cbFunctionFailure(_client.ErrorCode.ToString());
 }
    private void OnErrorConnecting(PlayerIOError error)
    {
        connecting = false;

        AddDebugLine("Error connecting: " + error);

        errorRetryCountdown.Reset();
    }
Ejemplo n.º 16
0
 // ReSharper disable once InconsistentNaming
 private static void PrintPlayerIOError(PlayerIOError error)
 {
     Console.WriteLine("ERROR: [{0}] {1}", error.Source, error.Message);
 }
Ejemplo n.º 17
0
 private void onLoadingError(PlayerIOError err)
 {
     Console.WriteLine(err);
     gamelink.PlayerIO.ErrorLog.WriteError(err.Message, err.ErrorCode.ToString(), err.StackTrace, null);
     createPreviewObjects(); //go insert then
 }
Ejemplo n.º 18
0
 private void savingPOFailed(PlayerIOError error)
 {
     playerObjectDirty = false;
     PlayerObject.Save(savingPOFinished, savingPOFailed);
 }
Ejemplo n.º 19
0
 private void ErrorCallback(PlayerIOError value)
 {
     Debug.Log("Error connect");
 }
    private void OnErrorJoiningRoom(PlayerIOError error)
    {
        AddDebugLine("Error Joining Room: " + error);

        errorRetryCountdown.Reset();
    }
Ejemplo n.º 21
0
 private void Fail(PlayerIOError _error, string _name)
 {
     Debug.Log("Erreur" + _name);
 }
Ejemplo n.º 22
0
 void OnConnectFailure(PlayerIOError _client)
 {
     Debug.Log(_client.ErrorCode.ToString());
     cbFunctionFailure(_client.ErrorCode.ToString());
 }
Ejemplo n.º 23
0
 private void handleError(PlayerIOError value)
 {
     throw new Exception(value.Message, value);
 }
Ejemplo n.º 24
0
 private void ConnectionFailed(PlayerIOError error)
 {
     Debug.LogError("Server ConnectionFailed:\n" + error.Message);
 }
Ejemplo n.º 25
0
 public virtual void OnCreateJoinRoomFail(PlayerIOError error)
 {
     // Debug.Log("OnCreateJoinRoomFail: " + error.ToString());
     CreateJoinRoom();
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Failed logging in.
 /// </summary>
 /// <param name="e">error</param>
 private void FailLogIn(PlayerIOError e)
 {
     if (OnFailConnect != null) OnFailConnect(this, e.Message);
 }
Ejemplo n.º 27
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="e"></param>
 private void FailJoin(PlayerIOError e)
 {
     if (OnFailJoinWorld != null) OnFailJoinWorld(this, e.Message);
 }
Ejemplo n.º 28
0
 private static void LogError(PlayerIOError error)
 {
     Debug.Log(error);
 }
Ejemplo n.º 29
0
 private void failLogin(PlayerIOError error)
 {
     MessageBox.Show(error.Message, "Login error", MessageBoxButtons.OK, MessageBoxIcon.Error);
 }