Esempio n. 1
0
 protected virtual void XmppClient_OnAuthError(object sender, FailureCondition e)
 {
     //Log.Debug("Failure");
     //RunOnUiThread(() =>
     //			  showMsg("Ops! Error in your Username or Password.")
     //			 );
     this.App.Xmpp = null;
 }
Esempio n. 2
0
    public void Fail(FailureCondition failCon)
    {
        switch (failCon)
        {
        case FailureCondition.NoCastSlot:
            Debug.Log("FAIL: NO AVAILABLE CASTING SLOT.");
            break;

        case FailureCondition.NoTarget:
            Debug.Log("FAIL: INVALID TARGET FOR SPELL.");
            break;

        default:
            Debug.Log("FAIL: UNKNOWN REASON");
            break;
        }
        PREFS.I.cameraShaker.ShakeCamera(2f, 0.018f);
    }
Esempio n. 3
0
 public Failure(FailureCondition cond) : this()
 {
     Condition = cond;
 }
Esempio n. 4
0
 public Failure(FailureCondition cond)
     : this()
 {
     Condition = cond;
 }
Esempio n. 5
0
 public JabberSaslException(FailureCondition error)
     : base(StreamErrorCondition.NotAuthorized)
 {
     this.error = error;
 }
Esempio n. 6
0
 protected XmppHandlerResult Error(XmppSession session, FailureCondition error)
 {
     return(Error(session, new JabberSaslException(error)));
 }