Build 1.1.4.0

This commit is contained in:
Markus Isberg
2023-03-31 18:40:44 +03:00
parent efba17e0ff
commit 9470edead3
483 changed files with 17487 additions and 8548 deletions
@@ -4,7 +4,7 @@ namespace Steamworks
{
public class AuthTicket : IDisposable
{
public byte[] Data;
public byte[]? Data;
public uint Handle;
public bool Canceled { get; private set; }
@@ -17,7 +17,7 @@ namespace Steamworks
{
if (Handle != 0)
{
SteamUser.Internal.CancelAuthTicket(Handle);
SteamUser.Internal?.CancelAuthTicket(Handle);
}
Handle = 0;
@@ -26,7 +26,7 @@ namespace Steamworks
/// Params are : [Callback Type] [Callback Contents] [server]
///
/// </summary>
public static Action<CallbackType, string, bool> OnDebugCallback;
public static Action<CallbackType, string, bool>? OnDebugCallback;
/// <summary>
/// Called if an exception happens during a callback/callresult.
@@ -34,7 +34,7 @@ namespace Steamworks
/// async.. and can fail silently. With this hooked you won't be stuck wondering
/// what happened.
/// </summary>
public static Action<Exception> OnException;
public static Action<Exception>? OnException;
#region interop
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ManualDispatch_Init", CallingConvention = CallingConvention.Cdecl )]
@@ -288,7 +288,7 @@ namespace Steamworks
/// <summary>
/// Install a global callback. The passed function will get called if it's all good.
/// </summary>
internal static void Install<T>( Action<T> p, bool server = false ) where T : ICallbackData
internal static void Install<T>( Action<T> p, bool server = false ) where T : struct, ICallbackData
{
var t = default( T );
var type = t.CallbackType;