예제 #1
0
 private static extern bool PrxFacebookGetLastError(out ResultCode result);
예제 #2
0
 private static extern bool PrxNetInfoGetLastError(out ResultCode result);
예제 #3
0
 private static extern bool PrxNetCtlGetLastConnectionError(out ResultCode result);
예제 #4
0
        public static bool ProcessMessage(Messages.PluginMessage msg)
        {
            switch (msg.type)
            {
            case Messages.MessageType.kNPToolKit_SignedIn:
                signedIn            = true;
                System.connectionUp = true;
                if (User.OnSignedIn != null)
                {
                    User.OnSignedIn(msg);
                }
                return(true);

            case Messages.MessageType.kNPToolKit_SignedOut:
                signedIn = false;
                if (User.OnSignedOut != null)
                {
                    User.OnSignedOut(msg);
                }
                return(true);

            case Messages.MessageType.kNPToolKit_PresenceSet:
                if (User.OnPresenceSet != null)
                {
                    User.OnPresenceSet(msg);
                }
                return(true);

            case Messages.MessageType.kNPToolKit_GotUserProfile:
                if (User.OnGotUserProfile != null)
                {
                    User.OnGotUserProfile(msg);
                }
                return(true);

            case Messages.MessageType.kNPToolKit_GotRemoteUserProfile:
                if (User.OnGotRemoteUserProfile != null)
                {
                    User.OnGotRemoteUserProfile(msg);
                }
                return(true);

            case Messages.MessageType.kNPToolKit_GotRemoteUserNpID:
                if (User.OnGotRemoteUserNpID != null)
                {
                    User.OnGotRemoteUserNpID(msg);
                }
                return(true);

            case Messages.MessageType.kNPToolKit_UserProfileError:
                if (User.OnUserProfileError != null)
                {
                    User.OnUserProfileError(msg);
                }
                if (Application.platform == RuntimePlatform.PS4)
                {
                    ResultCode result = default(ResultCode);
                    GetLastUserProfileError(out result);
                    uint lastErrorSCE = (uint)result.lastErrorSCE;
                    if (lastErrorSCE == 2183135618u || lastErrorSCE == 2183135876u)
                    {
                        Debug.LogError($"bad missing NP title ID/ NP Title secret ... check your publishing settings ({result.lastErrorSCE:X})");
                    }
                }
                return(true);

            case Messages.MessageType.kNPToolKit_PresenceError:
                if (User.OnPresenceError != null)
                {
                    User.OnPresenceError(msg);
                }
                break;

            case Messages.MessageType.kNPToolKit_SignInError:
                if (User.OnSignInError != null)
                {
                    User.OnSignInError(msg);
                }
                break;
            }
            return(false);
        }
예제 #5
0
 public static bool GetLastConnectionError(out ResultCode result)
 {
     PrxNetCtlGetLastConnectionError(out result);
     return(result.lastError == ErrorCode.NP_OK);
 }
예제 #6
0
 private static extern bool PrxCommerceGetLastError(out ResultCode result);
예제 #7
0
        public static bool GetLastPresenceError(out ResultCode result)
        {
            PrxPresenceGetLastError(out result);

            return(result.lastError == ErrorCode.NP_OK);
        }
예제 #8
0
 private static extern bool PrxUserProfileGetLastError(out ResultCode result);
예제 #9
0
        public static bool GetLastUserProfileError(out ResultCode result)
        {
            PrxUserProfileGetLastError(out result);

            return(result.lastError == ErrorCode.NP_OK);
        }
예제 #10
0
 private static extern bool PrxSigninGetLastError(out ResultCode result);
예제 #11
0
 public static bool GetLastSignInError(out ResultCode result)
 {
     PrxSigninGetLastError(out result);
     return(result.lastError == ErrorCode.NP_OK);
 }
예제 #12
0
 public static bool GetLastError(out ResultCode result)
 {
     result = new ResultCode();
     return(false);
 }
예제 #13
0
 private static extern bool PrxNpDialogGetLastError(out ResultCode result);
예제 #14
0
 private static extern bool PrxRankingGetLastError(out ResultCode result);
예제 #15
0
 private static extern bool PrxTwitterGetLastError(out ResultCode result);
예제 #16
0
 private static extern bool PrxPresenceGetLastError(out ResultCode result);
예제 #17
0
        public static bool GetLastError(out ResultCode result)
        {
            PrxTwitterGetLastError(out result);

            return(result.lastError == ErrorCode.NP_OK);
        }
예제 #18
0
 private static extern bool PrxTrophyGetLastError(out ResultCode result);