Пример #1
0
 public static extern SCResult scCreateMatchlessSession
 (
     IntPtr theInterface,                                   //SCInterfacePtr
     ref gamespyAuth.GSLoginCertificate certificate,        // GSLoginCertificate *
     ref gamespyAuth.GSLoginCertificatePrivate privateData, //GSLoginPrivateData *
     SCCreateSessionCallback callback,
     Int32 timeoutMs,
     IntPtr userData
 );
Пример #2
0
 public static extern SCResult scCheckBanList
 (
     IntPtr theInterface,                                   //SCInterfacePtr
     ref gamespyAuth.GSLoginCertificate certificate,        // GSLoginCertificate *
     ref gamespyAuth.GSLoginCertificatePrivate privateData, //GSLoginPrivateData *
     UInt32 hostProfileId,
     SCPlatform hostPlatform,
     SCCheckBanListCallback callback,
     Int32 timeoutMs,
     IntPtr userData);
Пример #3
0
 public static extern SCResult scRunTeamStatsQuery
 (
     IntPtr theInterface,                                   //SCInterfacePtr
     ref gamespyAuth.GSLoginCertificate certificate,        // GSLoginCertificate *
     ref gamespyAuth.GSLoginCertificatePrivate privateData, //GSLoginPrivateData *
     int ruleSetVersion,
     byte[]  queryId,
     IntPtr queryParameters,          //SCQueryParameterListPtr
     SCTeamStatsQueryCallback callback,
     IntPtr userData
 );
Пример #4
0
 public static extern SCResult scSubmitReport
 (
     IntPtr theInterface,                                   //const SCInterfacePtr
     IntPtr theReport,                                      // SCReportPtr
     bool isAuthoritative,
     ref gamespyAuth.GSLoginCertificate certificate,        // GSLoginCertificate *
     ref gamespyAuth.GSLoginCertificatePrivate privateData, //GSLoginPrivateData *
     SCSubmitReportCallback callback,
     Int32 timeoutMs,
     IntPtr userData
 );
Пример #5
0
 public static extern SCResult scSetReportIntention
 (
     IntPtr theInterface,  //const SCInterfacePtr
     byte[]  theConnectionId,
     bool isAuthoritative,
     ref gamespyAuth.GSLoginCertificate certificate,                 // GSLoginCertificate *
     ref gamespyAuth.GSLoginCertificatePrivate privateData,          //GSLoginPrivateData *
     SCSetReportIntentionCallback callback,
     Int32 timeoutMs,
     IntPtr userData
 );
Пример #6
0
        public static void loginCallback(GHTTPResult httpResult, IntPtr theResponse, IntPtr userData)
        {
            respReceived = true;

            if (httpResult != GHTTPResult.GHTTPSuccess)
            {
                Console.WriteLine("Failed on player login, HTTP error: {0}", httpResult);
                return;
            }

            gamespyAuth.WSLoginResponse resp = (gamespyAuth.WSLoginResponse)Marshal.PtrToStructure(theResponse, typeof(gamespyAuth.WSLoginResponse));

            if (resp.mLoginResult != WSLoginValue.WSLogin_Success)
            {
                Console.WriteLine("Failed on player login, Login result: {0}", resp.mLoginResult);
            }
            else
            {
                Console.WriteLine("Player {0} with profile Id {1} logged in.", resp.mCertificate.mUniqueNick, resp.mCertificate.mProfileId);
                gameCertificate = resp.mCertificate;
                gamePrivateData = resp.mPrivateData;
            }
        }
Пример #7
0
 public static extern void sakeSetProfile
 (
     IntPtr sake,
     Int32 profileId,
     ref gamespyAuth.GSLoginCertificate certificate,
     ref gamespyAuth.GSLoginCertificatePrivate privateData);