mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 04:28:00 +03:00
Fixed ValidateAuthTicketResponse layout
This commit is contained in:
parent
5fa72a0275
commit
778db29a68
@ -44,6 +44,7 @@ namespace Facepunch.Steamworks.Test
|
||||
Authed = status == ServerAuth.Status.OK;
|
||||
|
||||
Assert.AreEqual( steamid, client.SteamId );
|
||||
Assert.AreEqual( steamid, ownerid );
|
||||
|
||||
Console.WriteLine( "steamid: {0}", steamid );
|
||||
Console.WriteLine( "ownerid: {0}", ownerid );
|
||||
|
@ -6,8 +6,8 @@ using System.Text;
|
||||
|
||||
namespace Facepunch.Steamworks.Callbacks.User
|
||||
{
|
||||
[StructLayout( LayoutKind.Sequential )]
|
||||
internal class ValidateAuthTicketResponse
|
||||
[StructLayout( LayoutKind.Explicit )]
|
||||
internal struct ValidateAuthTicketResponse
|
||||
{
|
||||
public enum Response : int
|
||||
{
|
||||
@ -23,8 +23,11 @@ namespace Facepunch.Steamworks.Callbacks.User
|
||||
PublisherIssuedBan = 9, // The user is banned for this game. The ban came via the web api and not VAC
|
||||
};
|
||||
|
||||
[FieldOffset(0)]
|
||||
public ulong SteamID;
|
||||
[FieldOffset(8)]
|
||||
public Response AuthResponse;
|
||||
[FieldOffset(12)]
|
||||
public ulong OwnerSteamID;
|
||||
|
||||
public const int CallbackId = Index.User + 43;
|
||||
|
Loading…
x
Reference in New Issue
Block a user