(a00338777) v0.9.2.1

This commit is contained in:
Joonas Rikkonen
2019-08-26 19:58:19 +03:00
parent 0f63da27b2
commit 80698b58b0
311 changed files with 11763 additions and 4507 deletions
+14 -6
View File
@@ -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;
}
}