mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 14:15:47 +03:00
cleanup
This commit is contained in:
parent
ac44bb2293
commit
3a46e5764d
@ -7,11 +7,9 @@ internal class ClientAuth : Auth
|
|||||||
{
|
{
|
||||||
private Client _client;
|
private Client _client;
|
||||||
|
|
||||||
public ClientAuth( Client client )
|
public ClientAuth( Client client ) : base( client )
|
||||||
{
|
{
|
||||||
_client = client;
|
_client = client;
|
||||||
_client.RegisterCallback<SteamNative.ValidateAuthTicketResponse_t>( OnAuthTicketValidate );
|
|
||||||
_client.RegisterCallback<SteamNative.GetAuthSessionTicketResponse_t>( OnGetAuthSessionTicketResponseThing );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe override Ticket GetAuthSessionTicket()
|
public unsafe override Ticket GetAuthSessionTicket()
|
||||||
|
@ -33,6 +33,12 @@ public enum AuthStatus : int
|
|||||||
PublisherIssuedBan = SteamNative.AuthSessionResponse.PublisherIssuedBan
|
PublisherIssuedBan = SteamNative.AuthSessionResponse.PublisherIssuedBan
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Auth( BaseSteamworks instance )
|
||||||
|
{
|
||||||
|
instance.RegisterCallback<SteamNative.ValidateAuthTicketResponse_t>( OnAuthTicketValidate );
|
||||||
|
instance.RegisterCallback<SteamNative.GetAuthSessionTicketResponse_t>( OnGetAuthSessionTicketResponseThing );
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is ran whenever the status of an ongoing session changes
|
/// This is ran whenever the status of an ongoing session changes
|
||||||
/// SteamId, OwnerSteamId, Status
|
/// SteamId, OwnerSteamId, Status
|
||||||
|
@ -7,11 +7,9 @@ internal class ServerAuth : Auth
|
|||||||
{
|
{
|
||||||
private Server _server;
|
private Server _server;
|
||||||
|
|
||||||
public ServerAuth( Server server )
|
public ServerAuth( Server server ) : base( server )
|
||||||
{
|
{
|
||||||
_server = server;
|
_server = server;
|
||||||
_server.RegisterCallback<SteamNative.ValidateAuthTicketResponse_t>( OnAuthTicketValidate );
|
|
||||||
_server.RegisterCallback<SteamNative.GetAuthSessionTicketResponse_t>( OnGetAuthSessionTicketResponseThing );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe override Ticket GetAuthSessionTicket()
|
public unsafe override Ticket GetAuthSessionTicket()
|
||||||
|
Loading…
Reference in New Issue
Block a user