Beispiel #1
0
 public static SteamAPICall_t CreateBeacon(uint unOpenSlots, ref SteamPartyBeaconLocation_t pBeaconLocation, string pchConnectString, string pchMetadata)
 {
     InteropHelp.TestIfAvailableClient();
     using InteropHelp.UTF8StringHandle pchConnectString2 = new InteropHelp.UTF8StringHandle(pchConnectString);
     using InteropHelp.UTF8StringHandle pchMetadata2      = new InteropHelp.UTF8StringHandle(pchMetadata);
     return((SteamAPICall_t)NativeMethods.ISteamParties_CreateBeacon(CSteamAPIContext.GetSteamParties(), unOpenSlots, ref pBeaconLocation, pchConnectString2, pchMetadata2));
 }
Beispiel #2
0
        public static bool GetBeaconLocationData(SteamPartyBeaconLocation_t BeaconLocation, ESteamPartyBeaconLocationData eData, out string pchDataStringOut, int cchDataStringOut)
        {
            InteropHelp.TestIfAvailableClient();
            IntPtr intPtr = Marshal.AllocHGlobal(cchDataStringOut);
            bool   flag   = NativeMethods.ISteamParties_GetBeaconLocationData(CSteamAPIContext.GetSteamParties(), BeaconLocation, eData, intPtr, cchDataStringOut);

            pchDataStringOut = (flag ? InteropHelp.PtrToStringUTF8(intPtr) : null);
            Marshal.FreeHGlobal(intPtr);
            return(flag);
        }
Beispiel #3
0
        public static bool GetBeaconDetails(PartyBeaconID_t ulBeaconID, out CSteamID pSteamIDBeaconOwner, out SteamPartyBeaconLocation_t pLocation, out string pchMetadata, int cchMetadata)
        {
            InteropHelp.TestIfAvailableClient();
            IntPtr intPtr = Marshal.AllocHGlobal(cchMetadata);
            bool   flag   = NativeMethods.ISteamParties_GetBeaconDetails(CSteamAPIContext.GetSteamParties(), ulBeaconID, out pSteamIDBeaconOwner, out pLocation, intPtr, cchMetadata);

            pchMetadata = (flag ? InteropHelp.PtrToStringUTF8(intPtr) : null);
            Marshal.FreeHGlobal(intPtr);
            return(flag);
        }
Beispiel #4
0
 public static bool DestroyBeacon(PartyBeaconID_t ulBeacon)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamParties_DestroyBeacon(CSteamAPIContext.GetSteamParties(), ulBeacon));
 }
Beispiel #5
0
 public static uint GetNumActiveBeacons()
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamParties_GetNumActiveBeacons(CSteamAPIContext.GetSteamParties()));
 }
Beispiel #6
0
 public static SteamAPICall_t ChangeNumOpenSlots(PartyBeaconID_t ulBeacon, uint unOpenSlots)
 {
     InteropHelp.TestIfAvailableClient();
     return((SteamAPICall_t)NativeMethods.ISteamParties_ChangeNumOpenSlots(CSteamAPIContext.GetSteamParties(), ulBeacon, unOpenSlots));
 }
Beispiel #7
0
 public static void CancelReservation(PartyBeaconID_t ulBeacon, CSteamID steamIDUser)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamParties_CancelReservation(CSteamAPIContext.GetSteamParties(), ulBeacon, steamIDUser);
 }
Beispiel #8
0
 public static bool GetAvailableBeaconLocations(SteamPartyBeaconLocation_t[] pLocationList, uint uMaxNumLocations)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamParties_GetAvailableBeaconLocations(CSteamAPIContext.GetSteamParties(), pLocationList, uMaxNumLocations));
 }
Beispiel #9
0
 public static bool GetNumAvailableBeaconLocations(out uint puNumLocations)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamParties_GetNumAvailableBeaconLocations(CSteamAPIContext.GetSteamParties(), out puNumLocations));
 }
Beispiel #10
0
 public static SteamAPICall_t JoinParty(PartyBeaconID_t ulBeaconID)
 {
     InteropHelp.TestIfAvailableClient();
     return((SteamAPICall_t)NativeMethods.ISteamParties_JoinParty(CSteamAPIContext.GetSteamParties(), ulBeaconID));
 }
Beispiel #11
0
 public static PartyBeaconID_t GetBeaconByIndex(uint unIndex)
 {
     InteropHelp.TestIfAvailableClient();
     return((PartyBeaconID_t)NativeMethods.ISteamParties_GetBeaconByIndex(CSteamAPIContext.GetSteamParties(), unIndex));
 }