ISteamParties
Note
This documentation is auto-generated. Methods marked with 🤖 are automatically generated bindings. Methods marked with ✍️ are manually implemented and methods marked with ✋ are currently not implemented.
List of Functions
List of Callbacks
Function Reference
- Parties.CancelReservation(ulBeacon, steamIDUser)
🤖 Auto-generated binding
- Parameters:
ulBeacon (uint64 - PartyBeaconID_t) –
steamIDUser (uint64 - CSteamID) –
- SteamWorks:
Example:
-- Called by beacon owner when a reserved player cancels
Steam.Parties.CancelReservation(beaconHandle, playerSteamID)
- Parties.ChangeNumOpenSlots(ulBeacon, unOpenSlots, callback)
🤖 Auto-generated binding
- Parameters:
ulBeacon (uint64 - PartyBeaconID_t) –
unOpenSlots (int) –
callback (function) – CallResult callback receiving struct
ChangeNumOpenSlotsCallback_tand a boolean
- Returns:
(uint64)
SteamAPICall_thandle for this async call. The result is delivered via thecallbackparameter whenSteam.RunCallbacks()is called.- SteamWorks:
- Parties.CreateBeacon(unOpenSlots, pBeaconLocation, pchConnectString, pchMetadata, callback)
🤖 Auto-generated binding
- Parameters:
unOpenSlots (int) –
pBeaconLocation – (SteamPartyBeaconLocation_t)
pchConnectString (str?) –
pchMetadata (str?) –
callback (function) – CallResult callback receiving struct
CreateBeaconCallback_tand a boolean
- Returns:
(uint64)
SteamAPICall_thandle for this async call. The result is delivered via thecallbackparameter whenSteam.RunCallbacks()is called.- SteamWorks:
- Parties.DestroyBeacon(ulBeacon)
🤖 Auto-generated binding
- Parameters:
ulBeacon (uint64 - PartyBeaconID_t) –
- Returns:
(bool) Return value
- SteamWorks:
- Parties.GetAvailableBeaconLocations(uMaxNumLocations)
🤖 Auto-generated binding
- Parameters:
uMaxNumLocations (int?) – size of the buffer to allocate for
pLocationList. Ifnilthen the buffer will beNULL.- Returns:
(bool) Return value
- Returns:
(SteamPartyBeaconLocation_t[])
pLocationList- SteamWorks:
Signature differences from C++ API:
Parameter
pLocationListis not a parameter in Lua — it is an output-only pointer in C++ and is returned as an additional return value.
- Parties.GetBeaconByIndex(unIndex)
🤖 Auto-generated binding
- Parameters:
unIndex (int) –
- Returns:
(uint64 - PartyBeaconID_t) Return value
- SteamWorks:
Notes:
See
Parties.GetNumActiveBeacons()’s example.
- Parties.GetBeaconDetails(ulBeaconID, cchMetadata)
🤖 Auto-generated binding
- Parameters:
ulBeaconID (uint64 - PartyBeaconID_t) –
cchMetadata (int?) – size of the buffer to allocate for
pchMetadata. Ifnilthen the buffer will beNULL.
- Returns:
(bool) Return value
- Returns:
(uint64)
pSteamIDBeaconOwner- Returns:
(SteamPartyBeaconLocation_t)
pLocation- Returns:
(str)
pchMetadata- SteamWorks:
Signature differences from C++ API:
Parameter
pSteamIDBeaconOwneris not a parameter in Lua — it is an output-only pointer in C++ and is returned as an additional return value.Parameter
pLocationis not a parameter in Lua — it is an output-only pointer in C++ and is returned as an additional return value.Parameter
pchMetadatais not a parameter in Lua — it is an output-only pointer in C++ and is returned as an additional return value.
Notes:
See
Parties.GetNumActiveBeacons()’s example.
- Parties.GetBeaconLocationData(BeaconLocation, eData, cchDataStringOut)
🤖 Auto-generated binding
- Parameters:
BeaconLocation – (SteamPartyBeaconLocation_t)
eData (int - ESteamPartyBeaconLocationData) –
cchDataStringOut (int?) – size of the buffer to allocate for
pchDataStringOut. Ifnilthen the buffer will beNULL.
- Returns:
(bool) Return value
- Returns:
(str)
pchDataStringOut- SteamWorks:
Signature differences from C++ API:
Parameter
pchDataStringOutis not a parameter in Lua — it is an output-only pointer in C++ and is returned as an additional return value.
- Parties.GetNumActiveBeacons()
🤖 Auto-generated binding
- Returns:
(int) Return value
- SteamWorks:
Example:
local count = Steam.Parties.GetNumActiveBeacons()
for i = 0, count - 1 do
local beaconID = Steam.Parties.GetBeaconByIndex(i)
local ok, ownerID, loc, meta = Steam.Parties.GetBeaconDetails(beaconID, 256)
if ok then
print('Beacon owner:', Steam.Friends.GetFriendPersonaName(ownerID))
end
end
- Parties.GetNumAvailableBeaconLocations()
🤖 Auto-generated binding
- Returns:
(bool) Return value
- Returns:
(int)
puNumLocations- SteamWorks:
Signature differences from C++ API:
Parameter
puNumLocationsis not a parameter in Lua — it is an output-only pointer in C++ and is returned as an additional return value.
Example:
local count = Steam.Parties.GetNumAvailableBeaconLocations()
local locations = Steam.Parties.GetAvailableBeaconLocations(count)
for _, loc in ipairs(locations) do
print('Beacon location type:', loc.m_eType)
end
- Parties.JoinParty(ulBeaconID, callback)
🤖 Auto-generated binding
- Parameters:
ulBeaconID (uint64 - PartyBeaconID_t) –
callback (function) – CallResult callback receiving struct
JoinPartyCallback_tand a boolean
- Returns:
(uint64)
SteamAPICall_thandle for this async call. The result is delivered via thecallbackparameter whenSteam.RunCallbacks()is called.- SteamWorks:
Example:
Steam.Parties.JoinParty(beaconID, function(data, err)
if not err and data.m_eResult == Steam.k_EResultOK then
print('Joined party, connect string:', data.m_rgchConnectString)
connectToGame(data.m_rgchConnectString)
end
end)
- Parties.OnReservationCompleted(ulBeacon, steamIDUser)
🤖 Auto-generated binding
- Parameters:
ulBeacon (uint64 - PartyBeaconID_t) –
steamIDUser (uint64 - CSteamID) –
- SteamWorks:
Callbacks
- Parties.OnJoinPartyCallback()
Callback for JoinPartyCallback_t
callback(data) receives:
data.m_eResult (int - EResult)
data.m_ulBeaconID (uint64 - PartyBeaconID_t)
data.m_SteamIDBeaconOwner (uint64 - CSteamID)
data.m_rgchConnectString (string)
Example:
function Steam.Parties.OnJoinPartyCallback(data)
if data.m_eResult == Steam.k_EResultOK then
connectToGame(data.m_rgchConnectString)
end
end
- Parties.OnCreateBeaconCallback()
Callback for CreateBeaconCallback_t
callback(data) receives:
data.m_eResult (int - EResult)
data.m_ulBeaconID (uint64 - PartyBeaconID_t)
- Parties.OnReservationNotificationCallback()
Callback for ReservationNotificationCallback_t
callback(data) receives:
data.m_ulBeaconID (uint64 - PartyBeaconID_t)
data.m_steamIDJoiner (uint64 - CSteamID)
- Parties.OnChangeNumOpenSlotsCallback()
Callback for ChangeNumOpenSlotsCallback_t
callback(data) receives:
data.m_eResult (int - EResult)
- Parties.OnAvailableBeaconLocationsUpdated()
Callback for AvailableBeaconLocationsUpdated_t
callback(data) receives no fields (notification only).
- Parties.OnActiveBeaconsUpdated()
Callback for ActiveBeaconsUpdated_t
callback(data) receives no fields (notification only).
Example:
function Steam.Parties.OnActiveBeaconsUpdated()
local count = Steam.Parties.GetNumActiveBeacons()
print('Active beacons updated, count:', count)
end