Steamworks.SteamMatchmaking.SetLobbyData C# (CSharp) Méthode

SetLobbyData() public static méthode

Sets a key/value pair in the lobby metadata

each user in the lobby will be broadcast this new value, and any new users joining will receive any existing data

this can be used to set lobby names, map, etc.

to reset a key, just set it to ""

other users in the lobby will receive notification of the lobby data change via a LobbyDataUpdate_t callback

public static SetLobbyData ( CSteamID steamIDLobby, string pchKey, string pchValue ) : bool
steamIDLobby CSteamID
pchKey string
pchValue string
Résultat bool
		public static bool SetLobbyData(CSteamID steamIDLobby, string pchKey, string pchValue) {
			InteropHelp.TestIfAvailableClient();
			using (var pchKey2 = new InteropHelp.UTF8StringHandle(pchKey))
			using (var pchValue2 = new InteropHelp.UTF8StringHandle(pchValue)) {
				return NativeMethods.ISteamMatchmaking_SetLobbyData(steamIDLobby, pchKey2, pchValue2);
			}
		}