mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-12 12:30:05 +03:00
30 lines
461 B
C#
30 lines
461 B
C#
using System;
|
|
|
|
namespace Steamworks
|
|
{
|
|
public class AuthTicket : IDisposable
|
|
{
|
|
public byte[] Data;
|
|
public uint 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;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Cancel();
|
|
}
|
|
}
|
|
} |