Ejemplo n.º 1
0
 public static EGameSearchErrorCode_t AddGameSearchParams(string pchKeyToFind, string pchValuesToFind)
 {
     InteropHelp.TestIfAvailableClient();
     using InteropHelp.UTF8StringHandle pchKeyToFind2    = new InteropHelp.UTF8StringHandle(pchKeyToFind);
     using InteropHelp.UTF8StringHandle pchValuesToFind2 = new InteropHelp.UTF8StringHandle(pchValuesToFind);
     return(NativeMethods.ISteamGameSearch_AddGameSearchParams(CSteamAPIContext.GetSteamGameSearch(), pchKeyToFind2, pchValuesToFind2));
 }
Ejemplo n.º 2
0
 public static EGameSearchErrorCode_t SetGameHostParams(string pchKey, string pchValue)
 {
     InteropHelp.TestIfAvailableClient();
     using InteropHelp.UTF8StringHandle pchKey2   = new InteropHelp.UTF8StringHandle(pchKey);
     using InteropHelp.UTF8StringHandle pchValue2 = new InteropHelp.UTF8StringHandle(pchValue);
     return(NativeMethods.ISteamGameSearch_SetGameHostParams(CSteamAPIContext.GetSteamGameSearch(), pchKey2, pchValue2));
 }
Ejemplo n.º 3
0
 public static EGameSearchErrorCode_t EndGame(ulong ullUniqueGameID)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamGameSearch_EndGame(CSteamAPIContext.GetSteamGameSearch(), ullUniqueGameID));
 }
Ejemplo n.º 4
0
 public static EGameSearchErrorCode_t SubmitPlayerResult(ulong ullUniqueGameID, CSteamID steamIDPlayer, EPlayerResult_t EPlayerResult)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamGameSearch_SubmitPlayerResult(CSteamAPIContext.GetSteamGameSearch(), ullUniqueGameID, steamIDPlayer, EPlayerResult));
 }
Ejemplo n.º 5
0
 public static EGameSearchErrorCode_t CancelRequestPlayersForGame()
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamGameSearch_CancelRequestPlayersForGame(CSteamAPIContext.GetSteamGameSearch()));
 }
Ejemplo n.º 6
0
 public static EGameSearchErrorCode_t RequestPlayersForGame(int nPlayerMin, int nPlayerMax, int nMaxTeamSize)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamGameSearch_RequestPlayersForGame(CSteamAPIContext.GetSteamGameSearch(), nPlayerMin, nPlayerMax, nMaxTeamSize));
 }
Ejemplo n.º 7
0
 public static EGameSearchErrorCode_t SetConnectionDetails(string pchConnectionDetails, int cubConnectionDetails)
 {
     InteropHelp.TestIfAvailableClient();
     using InteropHelp.UTF8StringHandle pchConnectionDetails2 = new InteropHelp.UTF8StringHandle(pchConnectionDetails);
     return(NativeMethods.ISteamGameSearch_SetConnectionDetails(CSteamAPIContext.GetSteamGameSearch(), pchConnectionDetails2, cubConnectionDetails));
 }
Ejemplo n.º 8
0
        public static EGameSearchErrorCode_t RetrieveConnectionDetails(CSteamID steamIDHost, out string pchConnectionDetails, int cubConnectionDetails)
        {
            InteropHelp.TestIfAvailableClient();
            IntPtr intPtr = Marshal.AllocHGlobal(cubConnectionDetails);
            EGameSearchErrorCode_t eGameSearchErrorCode_t = NativeMethods.ISteamGameSearch_RetrieveConnectionDetails(CSteamAPIContext.GetSteamGameSearch(), steamIDHost, intPtr, cubConnectionDetails);

            pchConnectionDetails = ((eGameSearchErrorCode_t != 0) ? InteropHelp.PtrToStringUTF8(intPtr) : null);
            Marshal.FreeHGlobal(intPtr);
            return(eGameSearchErrorCode_t);
        }
Ejemplo n.º 9
0
 public static EGameSearchErrorCode_t DeclineGame()
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamGameSearch_DeclineGame(CSteamAPIContext.GetSteamGameSearch()));
 }
Ejemplo n.º 10
0
 public static EGameSearchErrorCode_t SearchForGameSolo(int nPlayerMin, int nPlayerMax)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamGameSearch_SearchForGameSolo(CSteamAPIContext.GetSteamGameSearch(), nPlayerMin, nPlayerMax));
 }