(a00338777) v0.9.2.1
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Facepunch.Steamworks
|
||||
public Action<ulong, ulong, Status> OnAuthChange;
|
||||
|
||||
/// <summary>
|
||||
/// Steam authetication statuses
|
||||
/// Steam authentication statuses
|
||||
/// </summary>
|
||||
public enum Status : int
|
||||
{
|
||||
@@ -31,6 +31,17 @@ namespace Facepunch.Steamworks
|
||||
PublisherIssuedBan = 9,
|
||||
}
|
||||
|
||||
public enum StartAuthSessionResult : int
|
||||
{
|
||||
OK = 0,
|
||||
InvalidTicket = 1,
|
||||
DuplicateRequest = 2,
|
||||
InvalidVersion = 3,
|
||||
GameMismatch = 4,
|
||||
ExpiredTicket = 5,
|
||||
ServerNotConnectedToSteam = 6,
|
||||
}
|
||||
|
||||
internal ServerAuth( Server s )
|
||||
{
|
||||
server = s;
|
||||
@@ -47,16 +58,13 @@ namespace Facepunch.Steamworks
|
||||
/// <summary>
|
||||
/// Start authorizing a ticket. This user isn't authorized yet. Wait for a call to OnAuthChange.
|
||||
/// </summary>
|
||||
public unsafe bool StartSession( byte[] data, ulong steamid )
|
||||
public unsafe StartAuthSessionResult StartSession( byte[] data, ulong steamid )
|
||||
{
|
||||
fixed ( byte* p = data )
|
||||
{
|
||||
var result = server.native.gameServer.BeginAuthSession( (IntPtr)p, data.Length, steamid );
|
||||
|
||||
if ( result == SteamNative.BeginAuthSessionResult.OK )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return (StartAuthSessionResult)result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user