Exemple #1
0
 /// //----callabck----------
 internal static void OnGameRet(string json)
 {
     MSDKLog.Log("OnGameRet  json= " + json);
     if (GameBaseRetEvent != null)
     {
         var ret = new MSDKBaseRet(json);
         try {
             GameBaseRetEvent(ret);
         } catch (Exception e) {
             MSDKLog.LogError(e.StackTrace);
         }
     }
     else
     {
         MSDKLog.LogError("No callback for GameBaseRetEvent !");
     }
 }
Exemple #2
0
 ///-------callback-----------
 internal static void OnFriendMessage(string json)
 {
     MSDKLog.Log("OnFriendMessage json= " + json);
     if (FriendRetEvent != null)
     {
         var ret = new MSDKBaseRet(json);
         try{
             FriendRetEvent(ret);
         }
         catch (Exception e)
         {
             MSDKLog.LogError(e.StackTrace);
         }
     }
     else
     {
         MSDKLog.LogError("No callback for FriendRetEvent !");
     }
 }
Exemple #3
0
 internal static string OnCrashCallbackData(string json)
 {
     MSDKLog.Log("OnCrashCallbackData  json= " + json);
     if (CrashBaseRetEvent != null)
     {
         var ret = new MSDKBaseRet(json);
         try
         {
             return(CrashBaseRetEvent(ret));
         }
         catch (Exception e)
         {
             MSDKLog.LogError(e.StackTrace);
         }
     }
     else
     {
         MSDKLog.LogError("No callback for OnCrashCallbackData !");
     }
     return("");
 }
Exemple #4
0
 public virtual void onLoginBaseRetEvent(MSDKBaseRet ret)
 {
     LoginBaseRetEvent(ret);
 }