Ejemplo n.º 1
0
        public static void ShowAnnouncement(LuaFunction callback = null)
        {
            LT_URL_NOTIFICATION_DELEGATE fnUrl = null;

            if (callback != null)
            {
                fnUrl = (url) =>
                {
                    callback.Call(url);
                    callback.Release();
                };
            }
            LT_Instance.ShowAnnouncement(fnUrl);
        }
Ejemplo n.º 2
0
        public static void ShowInAppWeb(string url, LuaFunction callback = null)
        {
            LT_URL_NOTIFICATION_DELEGATE fnUrl = null;

            if (callback != null)
            {
                fnUrl = (deepLinkUrl) =>
                {
                    callback.Call(deepLinkUrl);
                    callback.Release();
                };
            }
            LT_Instance.ShowInAppWeb(url, fnUrl);
        }
Ejemplo n.º 3
0
        public static void Unregister(LuaFunction callback = null)
        {
            LT_RESULT_NOTIFICATION_DELEGATE fnResult = null;

            if (callback != null)
            {
                fnResult = (isSuccessful) =>
                {
                    callback.Call(isSuccessful);
                    callback.Release();
                };
            }
            LT_Instance.Unregister(fnResult);
        }
Ejemplo n.º 4
0
        public static void EnablePush(bool enable, int type, LuaFunction callback = null)
        {
            LT_RESULT_NOTIFICATION_DELEGATE fnResult = null;

            if (callback != null)
            {
                fnResult = (isSuccessful) =>
                {
                    callback.Call(isSuccessful);
                    callback.Release();
                };
            }
            LT_Instance.EnablePush(enable, type, fnResult);
        }
Ejemplo n.º 5
0
        public static void OnApplicationStateChange(bool pauseStatus)
        {
            if (!IsUsePlatform)
            {
                return;
            }

            if (pauseStatus)
            {
                LT_Instance.Pause();
            }
            else
            {
                LT_Instance.Resume();
            }
        }
Ejemplo n.º 6
0
        public static void UploadRoleInfo(int sendType, int playerId, string roleName, int roleLevel, int vipLevel, int serverId, string serverName, string laborUnion, double roleCreateTime, double roleLevelMTime)
        {
            var roleInfo = new ROLE_INFO(sendType, playerId, roleName, roleLevel, vipLevel, serverId, serverName, laborUnion, roleCreateTime, roleLevelMTime);

            LT_Instance.UploadRoleInfo(roleInfo);
        }
Ejemplo n.º 7
0
 public static string GetLoginJson()
 {
     return(LT_Instance.GetLoginJson());
 }
Ejemplo n.º 8
0
 public static void SetGoogleAchievementCompletionLevel(string id, int level)
 {
     LT_Instance.SetGoogleAchievementCompletionLevel(id, level);
 }
Ejemplo n.º 9
0
 public static void CompleteGoogleAchievement(string id)
 {
     LT_Instance.CompleteGoogleAchievement(id);
 }
Ejemplo n.º 10
0
 public static void ShowGoogleAchievementView()
 {
     LT_Instance.ShowGoogleAchievementView();
 }
Ejemplo n.º 11
0
 public static void CheckLoginStatus()
 {
     LT_Instance.CheckLoginStatus();
 }
Ejemplo n.º 12
0
 public static bool IsPlatformExitGame()
 {
     return(LT_Instance.IsPlatformExitGame());
 }
Ejemplo n.º 13
0
 public static bool GetPushStatus(int type)
 {
     return(LT_Instance.GetPushStatus(type));
 }
Ejemplo n.º 14
0
 public static void LogoutDirectly()
 {
     LT_Instance.LogoutDirectly();
 }
Ejemplo n.º 15
0
 public static void Logout()
 {
     LT_Instance.Logout();
 }
Ejemplo n.º 16
0
 public static void CheckAutoLogin()
 {
     LT_Instance.CheckAutoLogin();
 }
Ejemplo n.º 17
0
        public static void SetBreakPoint(int type)
        {
            var state = (POINT_STATE)type;

            LT_Instance.SetBreakPoint(state);
        }
Ejemplo n.º 18
0
 public static void Login()
 {
     LT_Instance.Login();
 }
Ejemplo n.º 19
0
 public static void SetBreakPoint(string strPoint)
 {
     LT_Instance.SetBreakPoint(strPoint);
 }
Ejemplo n.º 20
0
 public static void Login(int type)
 {
     LT_Instance.Login(type);
 }
Ejemplo n.º 21
0
 public static void ExitGame()
 {
     LT_Instance.Exit();
 }
Ejemplo n.º 22
0
 public static PLATFORM_TYPE GetPlatformType()
 {
     return(LT_Instance.GetPlatformType());
 }