Rise
The Vieneo Province
Loading...
Searching...
No Matches
isteammatchmaking.h
Go to the documentation of this file.
1//====== Copyright © 1996-2008, Valve Corporation, All rights reserved. =======
2//
3// Purpose: interface to steam managing game server/client match making
4//
5//=============================================================================
6
7#ifndef ISTEAMMATCHMAKING
8#define ISTEAMMATCHMAKING
9#ifdef _WIN32
10#pragma once
11#endif
12
13#include "steam_api_common.h"
14#include "matchmakingtypes.h"
15#include "isteamfriends.h"
16
17// lobby type description
19{
20 k_ELobbyTypePrivate = 0, // only way to join the lobby is to invite to someone else
21 k_ELobbyTypeFriendsOnly = 1, // shows for friends or invitees, but not in public lobby list, allows those who join to invite their own friends
22 k_ELobbyTypePublic = 2, // visible for friends and in lobby list
23 k_ELobbyTypeInvisible = 3, // returned by search, but not visible to other friends
24 // useful if you want a user in two lobbies, for example matching groups together
25 // a user can be in only one regular lobby, and up to two invisible lobbies
26 k_ELobbyTypePrivateUnique = 4, // private, unique and does not delete when empty - only one of these may exist per unique keypair set
27 // can only create from webapi
28};
29
30// lobby search filter tools
40
41// lobby search distance. Lobby results are sorted from closest to farthest.
43{
44 k_ELobbyDistanceFilterClose, // only lobbies in the same immediate region will be returned
45 k_ELobbyDistanceFilterDefault, // only lobbies in the same region or near by regions
46 k_ELobbyDistanceFilterFar, // for games that don't have many latency requirements, will return lobbies about half-way around the globe
47 k_ELobbyDistanceFilterWorldwide, // no filtering, will match lobbies as far as India to NY (not recommended, expect multiple seconds of latency between the clients)
48};
49
50// maximum number of characters a lobby metadata key can be
51#define k_nMaxLobbyKeyLength 255
52
53//-----------------------------------------------------------------------------
54// Purpose: Functions for match making services for clients to get to favorites
55// and to operate on game lobbies.
56//-----------------------------------------------------------------------------
58{
59public:
60 // game server favorites storage
61 // saves basic details about a multiplayer game server locally
62
63 // returns the number of favorites servers the user has stored
64 virtual int GetFavoriteGameCount() = 0;
65
66 // returns the details of the game server
67 // iGame is of range [0,GetFavoriteGameCount())
68 // *pnIP, *pnConnPort are filled in the with IP:port of the game server
69 // *punFlags specify whether the game server was stored as an explicit favorite or in the history of connections
70 // *pRTime32LastPlayedOnServer is filled in the with the Unix time the favorite was added
71 virtual bool GetFavoriteGame( int iGame, AppId_t *pnAppID, uint32 *pnIP, uint16 *pnConnPort, uint16 *pnQueryPort, uint32 *punFlags, uint32 *pRTime32LastPlayedOnServer ) = 0;
72
73 // adds the game server to the local list; updates the time played of the server if it already exists in the list
74 virtual int AddFavoriteGame( AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags, uint32 rTime32LastPlayedOnServer ) = 0;
75
76 // removes the game server from the local storage; returns true if one was removed
77 virtual bool RemoveFavoriteGame( AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags ) = 0;
78
80 // Game lobby functions
81
82 // Get a list of relevant lobbies
83 // this is an asynchronous request
84 // results will be returned by LobbyMatchList_t callback & call result, with the number of lobbies found
85 // this will never return lobbies that are full
86 // to add more filter, the filter calls below need to be call before each and every RequestLobbyList() call
87 // use the CCallResult<> object in steam_api.h to match the SteamAPICall_t call result to a function in an object, e.g.
88 /*
89 class CMyLobbyListManager
90 {
91 CCallResult<CMyLobbyListManager, LobbyMatchList_t> m_CallResultLobbyMatchList;
92 void FindLobbies()
93 {
94 // SteamMatchmaking()->AddRequestLobbyListFilter*() functions would be called here, before RequestLobbyList()
95 SteamAPICall_t hSteamAPICall = SteamMatchmaking()->RequestLobbyList();
96 m_CallResultLobbyMatchList.Set( hSteamAPICall, this, &CMyLobbyListManager::OnLobbyMatchList );
97 }
98
99 void OnLobbyMatchList( LobbyMatchList_t *pLobbyMatchList, bool bIOFailure )
100 {
101 // lobby list has be retrieved from Steam back-end, use results
102 }
103 }
104 */
105 //
108 // filters for lobbies
109 // this needs to be called before RequestLobbyList() to take effect
110 // these are cleared on each call to RequestLobbyList()
111 virtual void AddRequestLobbyListStringFilter( const char *pchKeyToMatch, const char *pchValueToMatch, ELobbyComparison eComparisonType ) = 0;
112 // numerical comparison
113 virtual void AddRequestLobbyListNumericalFilter( const char *pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType ) = 0;
114 // returns results closest to the specified value. Multiple near filters can be added, with early filters taking precedence
115 virtual void AddRequestLobbyListNearValueFilter( const char *pchKeyToMatch, int nValueToBeCloseTo ) = 0;
116 // returns only lobbies with the specified number of slots available
117 virtual void AddRequestLobbyListFilterSlotsAvailable( int nSlotsAvailable ) = 0;
118 // sets the distance for which we should search for lobbies (based on users IP address to location map on the Steam backed)
119 virtual void AddRequestLobbyListDistanceFilter( ELobbyDistanceFilter eLobbyDistanceFilter ) = 0;
120 // sets how many results to return, the lower the count the faster it is to download the lobby results & details to the client
121 virtual void AddRequestLobbyListResultCountFilter( int cMaxResults ) = 0;
122
123 virtual void AddRequestLobbyListCompatibleMembersFilter( CSteamID steamIDLobby ) = 0;
124
125 // returns the CSteamID of a lobby, as retrieved by a RequestLobbyList call
126 // should only be called after a LobbyMatchList_t callback is received
127 // iLobby is of the range [0, LobbyMatchList_t::m_nLobbiesMatching)
128 // the returned CSteamID::IsValid() will be false if iLobby is out of range
129 virtual CSteamID GetLobbyByIndex( int iLobby ) = 0;
130
131 // Create a lobby on the Steam servers.
132 // If private, then the lobby will not be returned by any RequestLobbyList() call; the CSteamID
133 // of the lobby will need to be communicated via game channels or via InviteUserToLobby()
134 // this is an asynchronous request
135 // results will be returned by LobbyCreated_t callback and call result; lobby is joined & ready to use at this point
136 // a LobbyEnter_t callback will also be received (since the local user is joining their own lobby)
138 virtual SteamAPICall_t CreateLobby( ELobbyType eLobbyType, int cMaxMembers ) = 0;
139
140 // Joins an existing lobby
141 // this is an asynchronous request
142 // results will be returned by LobbyEnter_t callback & call result, check m_EChatRoomEnterResponse to see if was successful
143 // lobby metadata is available to use immediately on this call completing
145 virtual SteamAPICall_t JoinLobby( CSteamID steamIDLobby ) = 0;
146
147 // Leave a lobby; this will take effect immediately on the client side
148 // other users in the lobby will be notified by a LobbyChatUpdate_t callback
149 virtual void LeaveLobby( CSteamID steamIDLobby ) = 0;
150
151 // Invite another user to the lobby
152 // the target user will receive a LobbyInvite_t callback
153 // will return true if the invite is successfully sent, whether or not the target responds
154 // returns false if the local user is not connected to the Steam servers
155 // if the other user clicks the join link, a GameLobbyJoinRequested_t will be posted if the user is in-game,
156 // or if the game isn't running yet the game will be launched with the parameter +connect_lobby <64-bit lobby id>
157 virtual bool InviteUserToLobby( CSteamID steamIDLobby, CSteamID steamIDInvitee ) = 0;
158
159 // Lobby iteration, for viewing details of users in a lobby
160 // only accessible if the lobby user is a member of the specified lobby
161 // persona information for other lobby members (name, avatar, etc.) will be asynchronously received
162 // and accessible via ISteamFriends interface
163
164 // returns the number of users in the specified lobby
165 virtual int GetNumLobbyMembers( CSteamID steamIDLobby ) = 0;
166 // returns the CSteamID of a user in the lobby
167 // iMember is of range [0,GetNumLobbyMembers())
168 // note that the current user must be in a lobby to retrieve CSteamIDs of other users in that lobby
169 virtual CSteamID GetLobbyMemberByIndex( CSteamID steamIDLobby, int iMember ) = 0;
170
171 // Get data associated with this lobby
172 // takes a simple key, and returns the string associated with it
173 // "" will be returned if no value is set, or if steamIDLobby is invalid
174 virtual const char *GetLobbyData( CSteamID steamIDLobby, const char *pchKey ) = 0;
175 // Sets a key/value pair in the lobby metadata
176 // each user in the lobby will be broadcast this new value, and any new users joining will receive any existing data
177 // this can be used to set lobby names, map, etc.
178 // to reset a key, just set it to ""
179 // other users in the lobby will receive notification of the lobby data change via a LobbyDataUpdate_t callback
180 virtual bool SetLobbyData( CSteamID steamIDLobby, const char *pchKey, const char *pchValue ) = 0;
181
182 // returns the number of metadata keys set on the specified lobby
183 virtual int GetLobbyDataCount( CSteamID steamIDLobby ) = 0;
184
185 // returns a lobby metadata key/values pair by index, of range [0, GetLobbyDataCount())
186 virtual bool GetLobbyDataByIndex( CSteamID steamIDLobby, int iLobbyData, char *pchKey, int cchKeyBufferSize, char *pchValue, int cchValueBufferSize ) = 0;
187
188 // removes a metadata key from the lobby
189 virtual bool DeleteLobbyData( CSteamID steamIDLobby, const char *pchKey ) = 0;
190
191 // Gets per-user metadata for someone in this lobby
192 virtual const char *GetLobbyMemberData( CSteamID steamIDLobby, CSteamID steamIDUser, const char *pchKey ) = 0;
193 // Sets per-user metadata (for the local user implicitly)
194 virtual void SetLobbyMemberData( CSteamID steamIDLobby, const char *pchKey, const char *pchValue ) = 0;
195
196 // Broadcasts a chat message to the all the users in the lobby
197 // users in the lobby (including the local user) will receive a LobbyChatMsg_t callback
198 // returns true if the message is successfully sent
199 // pvMsgBody can be binary or text data, up to 4k
200 // if pvMsgBody is text, cubMsgBody should be strlen( text ) + 1, to include the null terminator
201 virtual bool SendLobbyChatMsg( CSteamID steamIDLobby, const void *pvMsgBody, int cubMsgBody ) = 0;
202 // Get a chat message as specified in a LobbyChatMsg_t callback
203 // iChatID is the LobbyChatMsg_t::m_iChatID value in the callback
204 // *pSteamIDUser is filled in with the CSteamID of the member
205 // *pvData is filled in with the message itself
206 // return value is the number of bytes written into the buffer
207 virtual int GetLobbyChatEntry( CSteamID steamIDLobby, int iChatID, STEAM_OUT_STRUCT() CSteamID *pSteamIDUser, void *pvData, int cubData, EChatEntryType *peChatEntryType ) = 0;
208
209 // Refreshes metadata for a lobby you're not necessarily in right now
210 // you never do this for lobbies you're a member of, only if your
211 // this will send down all the metadata associated with a lobby
212 // this is an asynchronous call
213 // returns false if the local user is not connected to the Steam servers
214 // results will be returned by a LobbyDataUpdate_t callback
215 // if the specified lobby doesn't exist, LobbyDataUpdate_t::m_bSuccess will be set to false
216 virtual bool RequestLobbyData( CSteamID steamIDLobby ) = 0;
217
218 // sets the game server associated with the lobby
219 // usually at this point, the users will join the specified game server
220 // either the IP/Port or the steamID of the game server has to be valid, depending on how you want the clients to be able to connect
221 virtual void SetLobbyGameServer( CSteamID steamIDLobby, uint32 unGameServerIP, uint16 unGameServerPort, CSteamID steamIDGameServer ) = 0;
222 // returns the details of a game server set in a lobby - returns false if there is no game server set, or that lobby doesn't exist
223 virtual bool GetLobbyGameServer( CSteamID steamIDLobby, uint32 *punGameServerIP, uint16 *punGameServerPort, STEAM_OUT_STRUCT() CSteamID *psteamIDGameServer ) = 0;
224
225 // set the limit on the # of users who can join the lobby
226 virtual bool SetLobbyMemberLimit( CSteamID steamIDLobby, int cMaxMembers ) = 0;
227 // returns the current limit on the # of users who can join the lobby; returns 0 if no limit is defined
228 virtual int GetLobbyMemberLimit( CSteamID steamIDLobby ) = 0;
229
230 // updates which type of lobby it is
231 // only lobbies that are k_ELobbyTypePublic or k_ELobbyTypeInvisible, and are set to joinable, will be returned by RequestLobbyList() calls
232 virtual bool SetLobbyType( CSteamID steamIDLobby, ELobbyType eLobbyType ) = 0;
233
234 // sets whether or not a lobby is joinable - defaults to true for a new lobby
235 // if set to false, no user can join, even if they are a friend or have been invited
236 virtual bool SetLobbyJoinable( CSteamID steamIDLobby, bool bLobbyJoinable ) = 0;
237
238 // returns the current lobby owner
239 // you must be a member of the lobby to access this
240 // there always one lobby owner - if the current owner leaves, another user will become the owner
241 // it is possible (bur rare) to join a lobby just as the owner is leaving, thus entering a lobby with self as the owner
242 virtual CSteamID GetLobbyOwner( CSteamID steamIDLobby ) = 0;
243
244 // changes who the lobby owner is
245 // you must be the lobby owner for this to succeed, and steamIDNewOwner must be in the lobby
246 // after completion, the local user will no longer be the owner
247 virtual bool SetLobbyOwner( CSteamID steamIDLobby, CSteamID steamIDNewOwner ) = 0;
248
249 // link two lobbies for the purposes of checking player compatibility
250 // you must be the lobby owner of both lobbies
251 virtual bool SetLinkedLobby( CSteamID steamIDLobby, CSteamID steamIDLobbyDependent ) = 0;
252};
253#define STEAMMATCHMAKING_INTERFACE_VERSION "SteamMatchMaking009"
254
255// Global interface accessor
258
259//-----------------------------------------------------------------------------
260// Callback interfaces for server list functions (see ISteamMatchmakingServers below)
261//
262// The idea here is that your game code implements objects that implement these
263// interfaces to receive callback notifications after calling asynchronous functions
264// inside the ISteamMatchmakingServers() interface below.
265//
266// This is different than normal Steam callback handling due to the potentially
267// large size of server lists.
268//-----------------------------------------------------------------------------
269
270//-----------------------------------------------------------------------------
271// Typedef for handle type you will receive when requesting server list.
272//-----------------------------------------------------------------------------
273typedef void* HServerListRequest;
274
275//-----------------------------------------------------------------------------
276// Purpose: Callback interface for receiving responses after a server list refresh
277// or an individual server update.
278//
279// Since you get these callbacks after requesting full list refreshes you will
280// usually implement this interface inside an object like CServerBrowser. If that
281// object is getting destructed you should use ISteamMatchMakingServers()->CancelQuery()
282// to cancel any in-progress queries so you don't get a callback into the destructed
283// object and crash.
284//-----------------------------------------------------------------------------
286{
287public:
288 // Server has responded ok with updated data
289 virtual void ServerResponded( HServerListRequest hRequest, int iServer ) = 0;
290
291 // Server has failed to respond
292 virtual void ServerFailedToRespond( HServerListRequest hRequest, int iServer ) = 0;
293
294 // A list refresh you had initiated is now 100% completed
295 virtual void RefreshComplete( HServerListRequest hRequest, EMatchMakingServerResponse response ) = 0;
296};
297
298
299//-----------------------------------------------------------------------------
300// Purpose: Callback interface for receiving responses after pinging an individual server
301//
302// These callbacks all occur in response to querying an individual server
303// via the ISteamMatchmakingServers()->PingServer() call below. If you are
304// destructing an object that implements this interface then you should call
305// ISteamMatchmakingServers()->CancelServerQuery() passing in the handle to the query
306// which is in progress. Failure to cancel in progress queries when destructing
307// a callback handler may result in a crash when a callback later occurs.
308//-----------------------------------------------------------------------------
310{
311public:
312 // Server has responded successfully and has updated data
313 virtual void ServerResponded( gameserveritem_t &server ) = 0;
314
315 // Server failed to respond to the ping request
316 virtual void ServerFailedToRespond() = 0;
317};
318
319
320//-----------------------------------------------------------------------------
321// Purpose: Callback interface for receiving responses after requesting details on
322// who is playing on a particular server.
323//
324// These callbacks all occur in response to querying an individual server
325// via the ISteamMatchmakingServers()->PlayerDetails() call below. If you are
326// destructing an object that implements this interface then you should call
327// ISteamMatchmakingServers()->CancelServerQuery() passing in the handle to the query
328// which is in progress. Failure to cancel in progress queries when destructing
329// a callback handler may result in a crash when a callback later occurs.
330//-----------------------------------------------------------------------------
332{
333public:
334 // Got data on a new player on the server -- you'll get this callback once per player
335 // on the server which you have requested player data on.
336 virtual void AddPlayerToList( const char *pchName, int nScore, float flTimePlayed ) = 0;
337
338 // The server failed to respond to the request for player details
339 virtual void PlayersFailedToRespond() = 0;
340
341 // The server has finished responding to the player details request
342 // (ie, you won't get anymore AddPlayerToList callbacks)
343 virtual void PlayersRefreshComplete() = 0;
344};
345
346
347//-----------------------------------------------------------------------------
348// Purpose: Callback interface for receiving responses after requesting rules
349// details on a particular server.
350//
351// These callbacks all occur in response to querying an individual server
352// via the ISteamMatchmakingServers()->ServerRules() call below. If you are
353// destructing an object that implements this interface then you should call
354// ISteamMatchmakingServers()->CancelServerQuery() passing in the handle to the query
355// which is in progress. Failure to cancel in progress queries when destructing
356// a callback handler may result in a crash when a callback later occurs.
357//-----------------------------------------------------------------------------
359{
360public:
361 // Got data on a rule on the server -- you'll get one of these per rule defined on
362 // the server you are querying
363 virtual void RulesResponded( const char *pchRule, const char *pchValue ) = 0;
364
365 // The server failed to respond to the request for rule details
366 virtual void RulesFailedToRespond() = 0;
367
368 // The server has finished responding to the rule details request
369 // (ie, you won't get anymore RulesResponded callbacks)
370 virtual void RulesRefreshComplete() = 0;
371};
372
373
374//-----------------------------------------------------------------------------
375// Purpose: Callback interface for receiving responses after requesting details on
376// friends who have played on this server.
377//
378// These callbacks all occur in response to querying an individual server
379// via the ISteamMatchmakingServers()->ServerFriends() call below. If you are
380// destructing an object that implements this interface then you should call
381// ISteamMatchmakingServers()->CancelServerQuery() passing in the handle to the query
382// which is in progress. Failure to cancel in progress queries when destructing
383// a callback handler may result in a crash when a callback later occurs.
384//-----------------------------------------------------------------------------
386{
387public:
388 // Got data on a friend who has played on the server -- you'll get this callback once per player
389 // on the server which you have requested player data on.
390 virtual void AddFriendToList( CSteamID steamID, const char *pchName, bool bCurrentlyConnected ) = 0;
391
392 // The server failed to respond to the request for player details
393 virtual void FriendsFailedToRespond() = 0;
394
395 // The server has finished responding to the player details request
396 // (ie, you won't get anymore AddPlayerToList callbacks)
397 virtual void FriendsRefreshComplete() = 0;
398};
399
400
401//-----------------------------------------------------------------------------
402// Typedef for handle type you will receive when querying details on an individual server.
403//-----------------------------------------------------------------------------
404typedef int HServerQuery;
405const int HSERVERQUERY_INVALID = 0xffffffff;
406
407//-----------------------------------------------------------------------------
408// Purpose: Functions for match making services for clients to get to game lists and details
409//-----------------------------------------------------------------------------
411{
412public:
413 // Request a new list of servers of a particular type. These calls each correspond to one of the EMatchMakingType values.
414 // Each call allocates a new asynchronous request object.
415 // Request object must be released by calling ReleaseRequest( hServerListRequest )
422
423 // Releases the asynchronous request object and cancels any pending query on it if there's a pending query in progress.
424 // RefreshComplete callback is not posted when request is released.
425 virtual void ReleaseRequest( HServerListRequest hServerListRequest ) = 0;
426
427 /* the filter operation codes that go in the key part of MatchMakingKeyValuePair_t should be one of these:
428
429 "map"
430 - Server passes the filter if the server is playing the specified map.
431 "gamedataand"
432 - Server passes the filter if the server's game data (ISteamGameServer::SetGameData) contains all of the
433 specified strings. The value field is a comma-delimited list of strings to match.
434 "gamedataor"
435 - Server passes the filter if the server's game data (ISteamGameServer::SetGameData) contains at least one of the
436 specified strings. The value field is a comma-delimited list of strings to match.
437 "gamedatanor"
438 - Server passes the filter if the server's game data (ISteamGameServer::SetGameData) does not contain any
439 of the specified strings. The value field is a comma-delimited list of strings to check.
440 "gametagsand"
441 - Server passes the filter if the server's game tags (ISteamGameServer::SetGameTags) contains all
442 of the specified strings. The value field is a comma-delimited list of strings to check.
443 "gametagsnor"
444 - Server passes the filter if the server's game tags (ISteamGameServer::SetGameTags) does not contain any
445 of the specified strings. The value field is a comma-delimited list of strings to check.
446 "and" (x1 && x2 && ... && xn)
447 "or" (x1 || x2 || ... || xn)
448 "nand" !(x1 && x2 && ... && xn)
449 "nor" !(x1 || x2 || ... || xn)
450 - Performs Boolean operation on the following filters. The operand to this filter specifies
451 the "size" of the Boolean inputs to the operation, in Key/value pairs. (The keyvalue
452 pairs must immediately follow, i.e. this is a prefix logical operator notation.)
453 In the simplest case where Boolean expressions are not nested, this is simply
454 the number of operands.
455
456 For example, to match servers on a particular map or with a particular tag, would would
457 use these filters.
458
459 ( server.map == "cp_dustbowl" || server.gametags.contains("payload") )
460 "or", "2"
461 "map", "cp_dustbowl"
462 "gametagsand", "payload"
463
464 If logical inputs are nested, then the operand specifies the size of the entire
465 "length" of its operands, not the number of immediate children.
466
467 ( server.map == "cp_dustbowl" || ( server.gametags.contains("payload") && !server.gametags.contains("payloadrace") ) )
468 "or", "4"
469 "map", "cp_dustbowl"
470 "and", "2"
471 "gametagsand", "payload"
472 "gametagsnor", "payloadrace"
473
474 Unary NOT can be achieved using either "nand" or "nor" with a single operand.
475
476 "addr"
477 - Server passes the filter if the server's query address matches the specified IP or IP:port.
478 "gameaddr"
479 - Server passes the filter if the server's game address matches the specified IP or IP:port.
480
481 The following filter operations ignore the "value" part of MatchMakingKeyValuePair_t
482
483 "dedicated"
484 - Server passes the filter if it passed true to SetDedicatedServer.
485 "secure"
486 - Server passes the filter if the server is VAC-enabled.
487 "notfull"
488 - Server passes the filter if the player count is less than the reported max player count.
489 "hasplayers"
490 - Server passes the filter if the player count is greater than zero.
491 "noplayers"
492 - Server passes the filter if it doesn't have any players.
493 "linux"
494 - Server passes the filter if it's a linux server
495 "popularamongfriends"
496 - Server passes the filter it is popular among friends whose profiles are not private, the game is not private and friends state is not offline/invisible during play
497 - server must not also have set the tag "nofriendshare"
498 - and the game must not be opted out of saving/showing coplay data
499 */
500
501 // Get details on a given server in the list, you can get the valid range of index
502 // values by calling GetServerCount(). You will also receive index values in
503 // ISteamMatchmakingServerListResponse::ServerResponded() callbacks
504 virtual gameserveritem_t *GetServerDetails( HServerListRequest hRequest, int iServer ) = 0;
505
506 // Cancel an request which is operation on the given list type. You should call this to cancel
507 // any in-progress requests before destructing a callback object that may have been passed
508 // to one of the above list request calls. Not doing so may result in a crash when a callback
509 // occurs on the destructed object.
510 // Canceling a query does not release the allocated request handle.
511 // The request handle must be released using ReleaseRequest( hRequest )
512 virtual void CancelQuery( HServerListRequest hRequest ) = 0;
513
514 // Ping every server in your list again but don't update the list of servers
515 // Query callback installed when the server list was requested will be used
516 // again to post notifications and RefreshComplete, so the callback must remain
517 // valid until another RefreshComplete is called on it or the request
518 // is released with ReleaseRequest( hRequest )
519 virtual void RefreshQuery( HServerListRequest hRequest ) = 0;
520
521 // Returns true if the list is currently refreshing its server list
522 virtual bool IsRefreshing( HServerListRequest hRequest ) = 0;
523
524 // How many servers in the given list, GetServerDetails above takes 0... GetServerCount() - 1
525 virtual int GetServerCount( HServerListRequest hRequest ) = 0;
526
527 // Refresh a single server inside of a query (rather than all the servers )
528 virtual void RefreshServer( HServerListRequest hRequest, int iServer ) = 0;
529
530
531 //-----------------------------------------------------------------------------
532 // Queries to individual servers directly via IP/Port
533 //-----------------------------------------------------------------------------
534
535 // Request updated ping time and other details from a single server
536 virtual HServerQuery PingServer( uint32 unIP, uint16 usPort, ISteamMatchmakingPingResponse *pRequestServersResponse ) = 0;
537
538 // Request the list of players currently playing on a server
539 virtual HServerQuery PlayerDetails( uint32 unIP, uint16 usPort, ISteamMatchmakingPlayersResponse *pRequestServersResponse ) = 0;
540
541 // Request the list of rules that the server is running (See ISteamGameServer::SetKeyValue() to set the rules server side)
542 virtual HServerQuery ServerRules( uint32 unIP, uint16 usPort, ISteamMatchmakingRulesResponse *pRequestServersResponse ) = 0;
543
544 // Request the list of friends that have played on this server
545 virtual HServerQuery ServerFriends( uint32 unIP, uint16 usPort, ISteamMatchmakingServerFriendsResponse *pRequestServersResponse ) = 0;
546
547 // Cancel an outstanding Ping/Players/Rules query from above. You should call this to cancel
548 // any in-progress requests before destructing a callback object that may have been passed
549 // to one of the above calls to avoid crashing when callbacks occur.
550 virtual void CancelServerQuery( HServerQuery hServerQuery ) = 0;
551};
552#define STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION "SteamMatchMakingServers003"
553
554// Global interface accessor
557
558// game server flags
560const uint32 k_unFavoriteFlagFavorite = 0x01; // this game favorite entry is for the favorites list
561const uint32 k_unFavoriteFlagHistory = 0x02; // this game favorite entry is for the history list
562
563
564//-----------------------------------------------------------------------------
565// Purpose: Used in ChatInfo messages - fields specific to a chat member - must fit in a uint32
566//-----------------------------------------------------------------------------
568{
569 // Specific to joining / leaving the chatroom
570 k_EChatMemberStateChangeEntered = 0x0001, // This user has joined or is joining the chat room
571 k_EChatMemberStateChangeLeft = 0x0002, // This user has left or is leaving the chat room
572 k_EChatMemberStateChangeDisconnected = 0x0004, // User disconnected without leaving the chat first
573 k_EChatMemberStateChangeKicked = 0x0008, // User kicked
574 k_EChatMemberStateChangeBanned = 0x0010, // User kicked and banned
575};
576
577// returns true of the flags indicate that a user has been removed from the chat
578#define BChatMemberStateChangeRemoved( rgfChatMemberStateChangeFlags ) ( rgfChatMemberStateChangeFlags & ( k_EChatMemberStateChangeDisconnected | k_EChatMemberStateChangeLeft | k_EChatMemberStateChangeKicked | k_EChatMemberStateChangeBanned ) )
579
580
581
582//-----------------------------------------------------------------------------
583// Purpose: Functions for quickly creating a Party with friends or acquaintances,
584// EG from chat rooms.
585//-----------------------------------------------------------------------------
593
594
595#if defined( VALVE_CALLBACK_PACK_SMALL )
596#pragma pack( push, 4 )
597#elif defined( VALVE_CALLBACK_PACK_LARGE )
598#pragma pack( push, 8 )
599#else
600#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
601#endif
602
603
609
618
620{
621public:
622
623 // =============================================================================================
624 // Party Client APIs
625
626 // Enumerate any active beacons for parties you may wish to join
629 virtual bool GetBeaconDetails( PartyBeaconID_t ulBeaconID, CSteamID *pSteamIDBeaconOwner, STEAM_OUT_STRUCT() SteamPartyBeaconLocation_t *pLocation, STEAM_OUT_STRING_COUNT(cchMetadata) char *pchMetadata, int cchMetadata ) = 0;
630
631 // Join an open party. Steam will reserve one beacon slot for your SteamID,
632 // and return the necessary JoinGame string for you to use to connect
634 virtual SteamAPICall_t JoinParty( PartyBeaconID_t ulBeaconID ) = 0;
635
636 // =============================================================================================
637 // Party Host APIs
638
639 // Get a list of possible beacon locations
640 virtual bool GetNumAvailableBeaconLocations( uint32 *puNumLocations ) = 0;
641 virtual bool GetAvailableBeaconLocations( SteamPartyBeaconLocation_t *pLocationList, uint32 uMaxNumLocations ) = 0;
642
643 // Create a new party beacon and activate it in the selected location.
644 // unOpenSlots is the maximum number of users that Steam will send to you.
645 // When people begin responding to your beacon, Steam will send you
646 // PartyReservationCallback_t callbacks to let you know who is on the way.
648 virtual SteamAPICall_t CreateBeacon( uint32 unOpenSlots, SteamPartyBeaconLocation_t *pBeaconLocation, const char *pchConnectString, const char *pchMetadata ) = 0;
649
650 // Call this function when a user that had a reservation (see callback below)
651 // has successfully joined your party.
652 // Steam will manage the remaining open slots automatically.
653 virtual void OnReservationCompleted( PartyBeaconID_t ulBeacon, CSteamID steamIDUser ) = 0;
654
655 // To cancel a reservation (due to timeout or user input), call this.
656 // Steam will open a new reservation slot.
657 // Note: The user may already be in-flight to your game, so it's possible they will still connect and try to join your party.
658 virtual void CancelReservation( PartyBeaconID_t ulBeacon, CSteamID steamIDUser ) = 0;
659
660 // Change the number of open beacon reservation slots.
661 // Call this if, for example, someone without a reservation joins your party (eg a friend, or via your own matchmaking system).
663 virtual SteamAPICall_t ChangeNumOpenSlots( PartyBeaconID_t ulBeacon, uint32 unOpenSlots ) = 0;
664
665 // Turn off the beacon.
666 virtual bool DestroyBeacon( PartyBeaconID_t ulBeacon ) = 0;
667
668 // Utils
669 virtual bool GetBeaconLocationData( SteamPartyBeaconLocation_t BeaconLocation, ESteamPartyBeaconLocationData eData, STEAM_OUT_STRING_COUNT(cchDataStringOut) char *pchDataStringOut, int cchDataStringOut ) = 0;
670
671};
672#define STEAMPARTIES_INTERFACE_VERSION "SteamParties002"
673
674// Global interface accessor
677
678
679//-----------------------------------------------------------------------------
680// Callbacks for ISteamMatchmaking (which go through the regular Steam callback registration system)
681
682//-----------------------------------------------------------------------------
683// Purpose: a server was added/removed from the favorites list, you should refresh now
684//-----------------------------------------------------------------------------
686{
688 uint32 m_nIP; // an IP of 0 means reload the whole list, any other value means just one server
693 bool m_bAdd; // true if this is adding the entry, otherwise it is a remove
695};
696
697
698//-----------------------------------------------------------------------------
699// Purpose: Someone has invited you to join a Lobby
700// normally you don't need to do anything with this, since
701// the Steam UI will also display a '<user> has invited you to the lobby, join?' dialog
702//
703// if the user outside a game chooses to join, your game will be launched with the parameter "+connect_lobby <64-bit lobby id>",
704// or with the callback GameLobbyJoinRequested_t if they're already in-game
705//-----------------------------------------------------------------------------
707{
709
710 uint64 m_ulSteamIDUser; // Steam ID of the person making the invite
711 uint64 m_ulSteamIDLobby; // Steam ID of the Lobby
712 uint64 m_ulGameID; // GameID of the Lobby
713};
714
715
716//-----------------------------------------------------------------------------
717// Purpose: Sent on entering a lobby, or on failing to enter
718// m_EChatRoomEnterResponse will be set to k_EChatRoomEnterResponseSuccess on success,
719// or a higher value on failure (see enum EChatRoomEnterResponse)
720//-----------------------------------------------------------------------------
722{
724
725 uint64 m_ulSteamIDLobby; // SteamID of the Lobby you have entered
726 uint32 m_rgfChatPermissions; // Permissions of the current user
727 bool m_bLocked; // If true, then only invited users may join
728 uint32 m_EChatRoomEnterResponse; // EChatRoomEnterResponse
729};
730
731
732//-----------------------------------------------------------------------------
733// Purpose: The lobby metadata has changed
734// if m_ulSteamIDMember is the steamID of a lobby member, use GetLobbyMemberData() to access per-user details
735// if m_ulSteamIDMember == m_ulSteamIDLobby, use GetLobbyData() to access lobby metadata
736//-----------------------------------------------------------------------------
738{
740
741 uint64 m_ulSteamIDLobby; // steamID of the Lobby
742 uint64 m_ulSteamIDMember; // steamID of the member whose data changed, or the room itself
743 uint8 m_bSuccess; // true if we lobby data was successfully changed;
744 // will only be false if RequestLobbyData() was called on a lobby that no longer exists
745};
746
747
748//-----------------------------------------------------------------------------
749// Purpose: The lobby chat room state has changed
750// this is usually sent when a user has joined or left the lobby
751//-----------------------------------------------------------------------------
753{
755
757 uint64 m_ulSteamIDUserChanged; // user who's status in the lobby just changed - can be recipient
758 uint64 m_ulSteamIDMakingChange; // Chat member who made the change (different from SteamIDUserChange if kicking, muting, etc.)
759 // for example, if one user kicks another from the lobby, this will be set to the id of the user who initiated the kick
760 uint32 m_rgfChatMemberStateChange; // bitfield of EChatMemberStateChange values
761};
762
763
764//-----------------------------------------------------------------------------
765// Purpose: A chat message for this lobby has been sent
766// use GetLobbyChatEntry( m_iChatID ) to retrieve the contents of this message
767//-----------------------------------------------------------------------------
769{
771
772 uint64 m_ulSteamIDLobby; // the lobby id this is in
773 uint64 m_ulSteamIDUser; // steamID of the user who has sent this message
774 uint8 m_eChatEntryType; // type of message
775 uint32 m_iChatID; // index of the chat entry to lookup
776};
777
778
779//-----------------------------------------------------------------------------
780// Purpose: A game created a game for all the members of the lobby to join,
781// as triggered by a SetLobbyGameServer()
782// it's up to the individual clients to take action on this; the usual
783// game behavior is to leave the lobby and connect to the specified game server
784//-----------------------------------------------------------------------------
786{
788
789 uint64 m_ulSteamIDLobby; // the lobby we were in
790 uint64 m_ulSteamIDGameServer; // the new game server that has been created or found for the lobby members
791 uint32 m_unIP; // IP & Port of the game server (if any)
793};
794
795
796//-----------------------------------------------------------------------------
797// Purpose: Number of matching lobbies found
798// iterate the returned lobbies with GetLobbyByIndex(), from values 0 to m_nLobbiesMatching-1
799//-----------------------------------------------------------------------------
801{
803 uint32 m_nLobbiesMatching; // Number of lobbies that matched search criteria and we have SteamIDs for
804};
805
806
807//-----------------------------------------------------------------------------
808// Purpose: posted if a user is forcefully removed from a lobby
809// can occur if a user loses connection to Steam
810//-----------------------------------------------------------------------------
812{
815 uint64 m_ulSteamIDAdmin; // User who kicked you - possibly the ID of the lobby itself
816 uint8 m_bKickedDueToDisconnect; // true if you were kicked from the lobby due to the user losing connection to Steam (currently always true)
817};
818
819
820//-----------------------------------------------------------------------------
821// Purpose: Result of our request to create a Lobby
822// m_eResult == k_EResultOK on success
823// at this point, the lobby has been joined and is ready for use
824// a LobbyEnter_t callback will also be received (since the local user is joining their own lobby)
825//-----------------------------------------------------------------------------
827{
829
830 EResult m_eResult; // k_EResultOK - the lobby was successfully created
831 // k_EResultNoConnection - your Steam client doesn't have a connection to the back-end
832 // k_EResultTimeout - you the message to the Steam servers, but it didn't respond
833 // k_EResultFail - the server responded, but with an unknown internal error
834 // k_EResultAccessDenied - your game isn't set to allow lobbies, or your client does haven't rights to play the game
835 // k_EResultLimitExceeded - your game client has created too many lobbies
836
837 uint64 m_ulSteamIDLobby; // chat room, zero if failed
838};
839
840// used by now obsolete RequestFriendsLobbiesResponse_t
841// enum { k_iCallback = k_iSteamMatchmakingCallbacks + 14 };
842
843// used by now obsolete PSNGameBootInviteResult_t
844// enum { k_iCallback = k_iSteamMatchmakingCallbacks + 15 };
845
846//-----------------------------------------------------------------------------
847// Purpose: Result of our request to create a Lobby
848// m_eResult == k_EResultOK on success
849// at this point, the lobby has been joined and is ready for use
850// a LobbyEnter_t callback will also be received (since the local user is joining their own lobby)
851//-----------------------------------------------------------------------------
858
859
860
861
862// Steam has responded to the user request to join a party via the given Beacon ID.
863// If successful, the connect string contains game-specific instructions to connect
864// to the game with that party.
874
875// Response to CreateBeacon request. If successful, the beacon ID is provided.
883
884// Someone has used the beacon to join your party - they are in-flight now
885// and we've reserved one of the open slots for them.
886// You should confirm when they join your party by calling OnReservationCompleted().
887// Otherwise, Steam may timeout their reservation eventually.
895
896// Response to ChangeNumOpenSlots call
903
904// The list of possible Party beacon locations has changed
909
910// The list of active beacons may have changed
915
916
917#pragma pack( pop )
918
919
920#endif // ISTEAMMATCHMAKING
virtual bool GetLobbyDataByIndex(CSteamID steamIDLobby, int iLobbyData, char *pchKey, int cchKeyBufferSize, char *pchValue, int cchValueBufferSize)=0
virtual bool InviteUserToLobby(CSteamID steamIDLobby, CSteamID steamIDInvitee)=0
virtual bool SetLinkedLobby(CSteamID steamIDLobby, CSteamID steamIDLobbyDependent)=0
virtual bool SetLobbyJoinable(CSteamID steamIDLobby, bool bLobbyJoinable)=0
virtual int GetLobbyChatEntry(CSteamID steamIDLobby, int iChatID, STEAM_OUT_STRUCT() CSteamID *pSteamIDUser, void *pvData, int cubData, EChatEntryType *peChatEntryType)=0
virtual bool DeleteLobbyData(CSteamID steamIDLobby, const char *pchKey)=0
virtual bool SendLobbyChatMsg(CSteamID steamIDLobby, const void *pvMsgBody, int cubMsgBody)=0
virtual CSteamID GetLobbyOwner(CSteamID steamIDLobby)=0
virtual void LeaveLobby(CSteamID steamIDLobby)=0
virtual SteamAPICall_t CreateLobby(ELobbyType eLobbyType, int cMaxMembers)=0
virtual void AddRequestLobbyListDistanceFilter(ELobbyDistanceFilter eLobbyDistanceFilter)=0
virtual int GetLobbyMemberLimit(CSteamID steamIDLobby)=0
virtual bool SetLobbyOwner(CSteamID steamIDLobby, CSteamID steamIDNewOwner)=0
virtual const char * GetLobbyMemberData(CSteamID steamIDLobby, CSteamID steamIDUser, const char *pchKey)=0
virtual bool RemoveFavoriteGame(AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags)=0
virtual void SetLobbyGameServer(CSteamID steamIDLobby, uint32 unGameServerIP, uint16 unGameServerPort, CSteamID steamIDGameServer)=0
virtual void AddRequestLobbyListNearValueFilter(const char *pchKeyToMatch, int nValueToBeCloseTo)=0
virtual int GetFavoriteGameCount()=0
virtual bool SetLobbyData(CSteamID steamIDLobby, const char *pchKey, const char *pchValue)=0
virtual bool GetLobbyGameServer(CSteamID steamIDLobby, uint32 *punGameServerIP, uint16 *punGameServerPort, STEAM_OUT_STRUCT() CSteamID *psteamIDGameServer)=0
virtual void AddRequestLobbyListResultCountFilter(int cMaxResults)=0
virtual bool GetFavoriteGame(int iGame, AppId_t *pnAppID, uint32 *pnIP, uint16 *pnConnPort, uint16 *pnQueryPort, uint32 *punFlags, uint32 *pRTime32LastPlayedOnServer)=0
virtual const char * GetLobbyData(CSteamID steamIDLobby, const char *pchKey)=0
virtual SteamAPICall_t JoinLobby(CSteamID steamIDLobby)=0
virtual bool SetLobbyMemberLimit(CSteamID steamIDLobby, int cMaxMembers)=0
virtual void AddRequestLobbyListFilterSlotsAvailable(int nSlotsAvailable)=0
virtual void AddRequestLobbyListNumericalFilter(const char *pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType)=0
virtual bool SetLobbyType(CSteamID steamIDLobby, ELobbyType eLobbyType)=0
virtual void AddRequestLobbyListStringFilter(const char *pchKeyToMatch, const char *pchValueToMatch, ELobbyComparison eComparisonType)=0
virtual void AddRequestLobbyListCompatibleMembersFilter(CSteamID steamIDLobby)=0
virtual int GetNumLobbyMembers(CSteamID steamIDLobby)=0
virtual SteamAPICall_t RequestLobbyList()=0
virtual int GetLobbyDataCount(CSteamID steamIDLobby)=0
virtual bool RequestLobbyData(CSteamID steamIDLobby)=0
virtual void SetLobbyMemberData(CSteamID steamIDLobby, const char *pchKey, const char *pchValue)=0
virtual CSteamID GetLobbyByIndex(int iLobby)=0
virtual int AddFavoriteGame(AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags, uint32 rTime32LastPlayedOnServer)=0
virtual CSteamID GetLobbyMemberByIndex(CSteamID steamIDLobby, int iMember)=0
virtual void ServerFailedToRespond()=0
virtual void ServerResponded(gameserveritem_t &server)=0
virtual void PlayersRefreshComplete()=0
virtual void PlayersFailedToRespond()=0
virtual void AddPlayerToList(const char *pchName, int nScore, float flTimePlayed)=0
virtual void RulesResponded(const char *pchRule, const char *pchValue)=0
virtual void RulesRefreshComplete()=0
virtual void RulesFailedToRespond()=0
virtual void AddFriendToList(CSteamID steamID, const char *pchName, bool bCurrentlyConnected)=0
virtual void RefreshComplete(HServerListRequest hRequest, EMatchMakingServerResponse response)=0
virtual void ServerResponded(HServerListRequest hRequest, int iServer)=0
virtual void ServerFailedToRespond(HServerListRequest hRequest, int iServer)=0
virtual HServerListRequest RequestFavoritesServerList(AppId_t iApp, STEAM_ARRAY_COUNT(nFilters) MatchMakingKeyValuePair_t **ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse *pRequestServersResponse)=0
virtual HServerListRequest RequestLANServerList(AppId_t iApp, ISteamMatchmakingServerListResponse *pRequestServersResponse)=0
virtual void CancelQuery(HServerListRequest hRequest)=0
virtual HServerListRequest RequestInternetServerList(AppId_t iApp, STEAM_ARRAY_COUNT(nFilters) MatchMakingKeyValuePair_t **ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse *pRequestServersResponse)=0
virtual int GetServerCount(HServerListRequest hRequest)=0
virtual HServerListRequest RequestFriendsServerList(AppId_t iApp, STEAM_ARRAY_COUNT(nFilters) MatchMakingKeyValuePair_t **ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse *pRequestServersResponse)=0
virtual HServerQuery ServerFriends(uint32 unIP, uint16 usPort, ISteamMatchmakingServerFriendsResponse *pRequestServersResponse)=0
virtual void RefreshQuery(HServerListRequest hRequest)=0
virtual HServerQuery PingServer(uint32 unIP, uint16 usPort, ISteamMatchmakingPingResponse *pRequestServersResponse)=0
virtual HServerQuery ServerRules(uint32 unIP, uint16 usPort, ISteamMatchmakingRulesResponse *pRequestServersResponse)=0
virtual HServerQuery PlayerDetails(uint32 unIP, uint16 usPort, ISteamMatchmakingPlayersResponse *pRequestServersResponse)=0
virtual void CancelServerQuery(HServerQuery hServerQuery)=0
virtual bool IsRefreshing(HServerListRequest hRequest)=0
virtual HServerListRequest RequestHistoryServerList(AppId_t iApp, STEAM_ARRAY_COUNT(nFilters) MatchMakingKeyValuePair_t **ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse *pRequestServersResponse)=0
virtual gameserveritem_t * GetServerDetails(HServerListRequest hRequest, int iServer)=0
virtual void ReleaseRequest(HServerListRequest hServerListRequest)=0
virtual HServerListRequest RequestSpectatorServerList(AppId_t iApp, STEAM_ARRAY_COUNT(nFilters) MatchMakingKeyValuePair_t **ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse *pRequestServersResponse)=0
virtual void RefreshServer(HServerListRequest hRequest, int iServer)=0
virtual void OnReservationCompleted(PartyBeaconID_t ulBeacon, CSteamID steamIDUser)=0
virtual SteamAPICall_t JoinParty(PartyBeaconID_t ulBeaconID)=0
virtual uint32 GetNumActiveBeacons()=0
virtual bool GetAvailableBeaconLocations(SteamPartyBeaconLocation_t *pLocationList, uint32 uMaxNumLocations)=0
virtual bool GetBeaconDetails(PartyBeaconID_t ulBeaconID, CSteamID *pSteamIDBeaconOwner, STEAM_OUT_STRUCT() SteamPartyBeaconLocation_t *pLocation, STEAM_OUT_STRING_COUNT(cchMetadata) char *pchMetadata, int cchMetadata)=0
virtual bool GetNumAvailableBeaconLocations(uint32 *puNumLocations)=0
virtual PartyBeaconID_t GetBeaconByIndex(uint32 unIndex)=0
virtual bool GetBeaconLocationData(SteamPartyBeaconLocation_t BeaconLocation, ESteamPartyBeaconLocationData eData, STEAM_OUT_STRING_COUNT(cchDataStringOut) char *pchDataStringOut, int cchDataStringOut)=0
virtual SteamAPICall_t ChangeNumOpenSlots(PartyBeaconID_t ulBeacon, uint32 unOpenSlots)=0
virtual SteamAPICall_t CreateBeacon(uint32 unOpenSlots, SteamPartyBeaconLocation_t *pBeaconLocation, const char *pchConnectString, const char *pchMetadata)=0
virtual void CancelReservation(PartyBeaconID_t ulBeacon, CSteamID steamIDUser)=0
virtual bool DestroyBeacon(PartyBeaconID_t ulBeacon)=0
ESteamPartyBeaconLocationData
@ k_ESteamPartyBeaconLocationDataIconURLSmall
@ k_ESteamPartyBeaconLocationDataInvalid
@ k_ESteamPartyBeaconLocationDataName
@ k_ESteamPartyBeaconLocationDataIconURLMedium
@ k_ESteamPartyBeaconLocationDataIconURLLarge
const uint32 k_unFavoriteFlagHistory
const uint32 k_unFavoriteFlagFavorite
const uint32 k_unFavoriteFlagNone
#define STEAMMATCHMAKINGSERVERS_INTERFACE_VERSION
@ k_ELobbyTypePublic
@ k_ELobbyTypePrivate
@ k_ELobbyTypePrivateUnique
@ k_ELobbyTypeFriendsOnly
@ k_ELobbyTypeInvisible
const int HSERVERQUERY_INVALID
#define STEAMMATCHMAKING_INTERFACE_VERSION
int HServerQuery
void * HServerListRequest
ELobbyDistanceFilter
@ k_ELobbyDistanceFilterWorldwide
@ k_ELobbyDistanceFilterClose
@ k_ELobbyDistanceFilterDefault
@ k_ELobbyDistanceFilterFar
ISteamMatchmaking * SteamMatchmaking()
ISteamMatchmakingServers * SteamMatchmakingServers()
ESteamPartyBeaconLocationType
@ k_ESteamPartyBeaconLocationType_Invalid
@ k_ESteamPartyBeaconLocationType_ChatGroup
@ k_ESteamPartyBeaconLocationType_Max
ELobbyComparison
@ k_ELobbyComparisonNotEqual
@ k_ELobbyComparisonLessThan
@ k_ELobbyComparisonGreaterThan
@ k_ELobbyComparisonEqualToOrLessThan
@ k_ELobbyComparisonEqual
@ k_ELobbyComparisonEqualToOrGreaterThan
ISteamParties * SteamParties()
EChatMemberStateChange
@ k_EChatMemberStateChangeKicked
@ k_EChatMemberStateChangeDisconnected
@ k_EChatMemberStateChangeEntered
@ k_EChatMemberStateChangeBanned
@ k_EChatMemberStateChangeLeft
#define STEAMPARTIES_INTERFACE_VERSION
EMatchMakingServerResponse
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
#define STEAM_DEFINE_USER_INTERFACE_ACCESSOR(type, name, version)
#define STEAM_ARRAY_COUNT(COUNTER)
#define STEAM_CALL_RESULT(RESULT_TYPE)
@ k_iSteamMatchmakingCallbacks
#define STEAM_OUT_STRING_COUNT(COUNTER)
@ k_iSteamPartiesCallbacks
#define STEAM_OUT_STRUCT()
EChatEntryType
uint32 AppId_t
Definition steamtypes.h:81
unsigned short uint16
Definition steamtypes.h:56
unsigned long long uint64
Definition steamtypes.h:60
uint64 SteamAPICall_t
Definition steamtypes.h:93
uint32 AccountID_t
Definition steamtypes.h:96
unsigned char uint8
Definition steamtypes.h:11
uint64 PartyBeaconID_t
Definition steamtypes.h:100
PartyBeaconID_t m_ulBeaconID
uint32 m_EChatRoomEnterResponse
uint32 m_rgfChatPermissions
ESteamPartyBeaconLocationType m_eType