This commit is contained in:
William Wallace 2019-03-27 18:21:10 +00:00
parent ac44bb2293
commit 3a46e5764d
3 changed files with 8 additions and 6 deletions

View File

@ -7,11 +7,9 @@ internal class ClientAuth : Auth
{
private Client _client;
public ClientAuth( Client client )
public ClientAuth( Client client ) : base( client )
{
_client = client;
_client.RegisterCallback<SteamNative.ValidateAuthTicketResponse_t>( OnAuthTicketValidate );
_client.RegisterCallback<SteamNative.GetAuthSessionTicketResponse_t>( OnGetAuthSessionTicketResponseThing );
}
public unsafe override Ticket GetAuthSessionTicket()

View File

@ -33,6 +33,12 @@ public enum AuthStatus : int
PublisherIssuedBan = SteamNative.AuthSessionResponse.PublisherIssuedBan
}
public Auth( BaseSteamworks instance )
{
instance.RegisterCallback<SteamNative.ValidateAuthTicketResponse_t>( OnAuthTicketValidate );
instance.RegisterCallback<SteamNative.GetAuthSessionTicketResponse_t>( OnGetAuthSessionTicketResponseThing );
}
/// <summary>
/// This is ran whenever the status of an ongoing session changes
/// SteamId, OwnerSteamId, Status

View File

@ -7,11 +7,9 @@ internal class ServerAuth : Auth
{
private Server _server;
public ServerAuth( Server server )
public ServerAuth( Server server ) : base( server )
{
_server = server;
_server.RegisterCallback<SteamNative.ValidateAuthTicketResponse_t>( OnAuthTicketValidate );
_server.RegisterCallback<SteamNative.GetAuthSessionTicketResponse_t>( OnGetAuthSessionTicketResponseThing );
}
public unsafe override Ticket GetAuthSessionTicket()