Unstable 1.1.14.0

This commit is contained in:
Markus Isberg
2023-10-02 16:43:54 +03:00
parent 94f5a93a0c
commit cf8f0de659
606 changed files with 21906 additions and 11456 deletions
@@ -8,17 +8,20 @@ using Steamworks.Data;
namespace Steamworks
{
/// <summary>
/// Functions for clients to access matchmaking services, favorites, and to operate on game lobbies
/// Methods for clients to access matchmaking services, favorites, and to operate on game lobbies
/// </summary>
public class SteamMatchmaking : SteamClientClass<SteamMatchmaking>
{
internal static ISteamMatchmaking? Internal => Interface as ISteamMatchmaking;
internal override void InitializeInterface( bool server )
internal override bool InitializeInterface( bool server )
{
SetInterface( server, new ISteamMatchmaking( server ) );
if ( Interface is null || Interface.Self == IntPtr.Zero ) return false;
InstallEvents();
return true;
}
/// <summary>
@@ -101,69 +104,69 @@ namespace Steamworks
}
/// <summary>
/// Someone invited you to a lobby
/// Invoked when the current user is invited to a lobby.
/// </summary>
public static event Action<Friend, Lobby>? OnLobbyInvite;
/// <summary>
/// You joined a lobby
/// Invoked when the current user joins a lobby.
/// </summary>
public static event Action<Lobby>? OnLobbyEntered;
/// <summary>
/// You created a lobby
/// Invoked when the current user creates a lobby.
/// </summary>
public static event Action<Result, Lobby>? OnLobbyCreated;
/// <summary>
/// A game server has been associated with the lobby
/// Invoked when a game server has been associated with a lobby.
/// </summary>
public static event Action<Lobby, uint, ushort, SteamId>? OnLobbyGameCreated;
/// <summary>
/// The lobby metadata has changed
/// Invoked when a lobby's metadata is modified.
/// </summary>
public static event Action<Lobby>? OnLobbyDataChanged;
/// <summary>
/// The lobby member metadata has changed
/// Invoked when a member in a lobby's metadata is modified.
/// </summary>
public static event Action<Lobby, Friend>? OnLobbyMemberDataChanged;
/// <summary>
/// The lobby member joined
/// Invoked when a member joins a lobby.
/// </summary>
public static event Action<Lobby, Friend>? OnLobbyMemberJoined;
/// <summary>
/// The lobby member left the room
/// Invoked when a lobby member leaves the lobby.
/// </summary>
public static event Action<Lobby, Friend>? OnLobbyMemberLeave;
/// <summary>
/// The lobby member left the room
/// Invoked when a lobby member leaves the lobby.
/// </summary>
public static event Action<Lobby, Friend>? OnLobbyMemberDisconnected;
/// <summary>
/// The lobby member was kicked. The 3rd param is the user that kicked them.
/// Invoked when a lobby member is kicked from a lobby. The 3rd param is the user that kicked them.
/// </summary>
public static event Action<Lobby, Friend, Friend>? OnLobbyMemberKicked;
/// <summary>
/// The lobby member was banned. The 3rd param is the user that banned them.
/// Invoked when a lobby member is kicked from a lobby. The 3rd param is the user that kicked them.
/// </summary>
public static event Action<Lobby, Friend, Friend>? OnLobbyMemberBanned;
/// <summary>
/// A chat message was recieved from a member of a lobby
/// Invoked when a chat message is received from a member of the lobby.
/// </summary>
public static event Action<Lobby, Friend, string>? OnChatMessage;
public static LobbyQuery CreateLobbyQuery() { return new LobbyQuery(); }
/// <summary>
/// Creates a new invisible lobby. Call lobby.SetPublic to take it online.
/// Creates a new invisible lobby. Call <see cref="Lobby.SetPublic"/> to take it online.
/// </summary>
public static async Task<Lobby?> CreateLobbyAsync( int maxMembers = 100 )
{
@@ -176,7 +179,7 @@ namespace Steamworks
}
/// <summary>
/// Attempts to directly join the specified lobby
/// Attempts to directly join the specified lobby.
/// </summary>
public static async Task<Lobby?> JoinLobbyAsync( SteamId lobbyId )
{
@@ -189,7 +192,7 @@ namespace Steamworks
}
/// <summary>
/// Get a list of servers that are on your favorites list
/// Get a list of servers that are on the current user's favorites list.
/// </summary>
public static IEnumerable<ServerInfo> GetFavoriteServers()
{
@@ -215,7 +218,7 @@ namespace Steamworks
}
/// <summary>
/// Get a list of servers that you have added to your play history
/// Get a list of servers that the current user has added to their history.
/// </summary>
public static IEnumerable<ServerInfo> GetHistoryServers()
{
@@ -241,4 +244,4 @@ namespace Steamworks
}
}
}
}