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
@@ -0,0 +1,38 @@
using System;
namespace Steamworks;
public class AuthTicketForWebApi : IDisposable
{
public byte[]? Data { get; private set; }
public uint Handle { get; private set; }
public bool Canceled { get; private set; }
public AuthTicketForWebApi( byte[] data, uint handle )
{
Data = data;
Handle = handle;
}
/// <summary>
/// Cancels a ticket.
/// You should cancel your ticket when you close the game or leave a server.
/// </summary>
public void Cancel()
{
if (Handle != 0)
{
SteamUser.Internal?.CancelAuthTicket(Handle);
}
Handle = 0;
Data = null;
Canceled = true;
}
public void Dispose()
{
Cancel();
}
}