diff --git a/Facepunch.Steamworks/SteamNative/SteamNative.Structs.cs b/Facepunch.Steamworks/SteamNative/SteamNative.Structs.cs
index e9b4598..4a3af07 100644
--- a/Facepunch.Steamworks/SteamNative/SteamNative.Structs.cs
+++ b/Facepunch.Steamworks/SteamNative/SteamNative.Structs.cs
@@ -10,7 +10,14 @@ namespace SteamNative
public int Callback; // m_iCallback int
public IntPtr ParamPtr; // m_pubParam uint8 *
public int ParamCount; // m_cubParam int
- public static CallbackMsg_t FromPointer( IntPtr p ) { return (CallbackMsg_t) Marshal.PtrToStructure( p, typeof(CallbackMsg_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static CallbackMsg_t FromPointer( IntPtr p )
+ {
+ return (CallbackMsg_t) Marshal.PtrToStructure( p, typeof(CallbackMsg_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -20,6 +27,9 @@ namespace SteamNative
public IntPtr ParamPtr; // m_pubParam uint8 *
public int ParamCount; // m_cubParam int
+ //
+ // Easily convert from PackSmall to CallbackMsg_t
+ //
public static implicit operator CallbackMsg_t ( CallbackMsg_t.PackSmall d )
{
return new CallbackMsg_t()
@@ -30,6 +40,14 @@ namespace SteamNative
ParamCount = d.ParamCount,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -39,7 +57,14 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
[MarshalAs(UnmanagedType.I1)]
public bool StillRetrying; // m_bStillRetrying _Bool
- public static SteamServerConnectFailure_t FromPointer( IntPtr p ) { return (SteamServerConnectFailure_t) Marshal.PtrToStructure( p, typeof(SteamServerConnectFailure_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamServerConnectFailure_t FromPointer( IntPtr p )
+ {
+ return (SteamServerConnectFailure_t) Marshal.PtrToStructure( p, typeof(SteamServerConnectFailure_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -48,6 +73,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool StillRetrying; // m_bStillRetrying _Bool
+ //
+ // Easily convert from PackSmall to SteamServerConnectFailure_t
+ //
public static implicit operator SteamServerConnectFailure_t ( SteamServerConnectFailure_t.PackSmall d )
{
return new SteamServerConnectFailure_t()
@@ -56,6 +84,14 @@ namespace SteamNative
StillRetrying = d.StillRetrying,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -63,13 +99,23 @@ namespace SteamNative
public struct SteamServersDisconnected_t
{
public Result Result; // m_eResult enum EResult
- public static SteamServersDisconnected_t FromPointer( IntPtr p ) { return (SteamServersDisconnected_t) Marshal.PtrToStructure( p, typeof(SteamServersDisconnected_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamServersDisconnected_t FromPointer( IntPtr p )
+ {
+ return (SteamServersDisconnected_t) Marshal.PtrToStructure( p, typeof(SteamServersDisconnected_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to SteamServersDisconnected_t
+ //
public static implicit operator SteamServersDisconnected_t ( SteamServersDisconnected_t.PackSmall d )
{
return new SteamServersDisconnected_t()
@@ -77,6 +123,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -88,7 +142,14 @@ namespace SteamNative
public ushort GameServerPort; // m_usGameServerPort uint16
public ushort Secure; // m_bSecure uint16
public uint Reason; // m_uReason uint32
- public static ClientGameServerDeny_t FromPointer( IntPtr p ) { return (ClientGameServerDeny_t) Marshal.PtrToStructure( p, typeof(ClientGameServerDeny_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static ClientGameServerDeny_t FromPointer( IntPtr p )
+ {
+ return (ClientGameServerDeny_t) Marshal.PtrToStructure( p, typeof(ClientGameServerDeny_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -99,6 +160,9 @@ namespace SteamNative
public ushort Secure; // m_bSecure uint16
public uint Reason; // m_uReason uint32
+ //
+ // Easily convert from PackSmall to ClientGameServerDeny_t
+ //
public static implicit operator ClientGameServerDeny_t ( ClientGameServerDeny_t.PackSmall d )
{
return new ClientGameServerDeny_t()
@@ -110,6 +174,14 @@ namespace SteamNative
Reason = d.Reason,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -119,7 +191,14 @@ namespace SteamNative
public ulong SteamID; // m_SteamID class CSteamID
public AuthSessionResponse AuthSessionResponse; // m_eAuthSessionResponse enum EAuthSessionResponse
public ulong OwnerSteamID; // m_OwnerSteamID class CSteamID
- public static ValidateAuthTicketResponse_t FromPointer( IntPtr p ) { return (ValidateAuthTicketResponse_t) Marshal.PtrToStructure( p, typeof(ValidateAuthTicketResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static ValidateAuthTicketResponse_t FromPointer( IntPtr p )
+ {
+ return (ValidateAuthTicketResponse_t) Marshal.PtrToStructure( p, typeof(ValidateAuthTicketResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -128,6 +207,9 @@ namespace SteamNative
public AuthSessionResponse AuthSessionResponse; // m_eAuthSessionResponse enum EAuthSessionResponse
public ulong OwnerSteamID; // m_OwnerSteamID class CSteamID
+ //
+ // Easily convert from PackSmall to ValidateAuthTicketResponse_t
+ //
public static implicit operator ValidateAuthTicketResponse_t ( ValidateAuthTicketResponse_t.PackSmall d )
{
return new ValidateAuthTicketResponse_t()
@@ -137,6 +219,14 @@ namespace SteamNative
OwnerSteamID = d.OwnerSteamID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -146,7 +236,14 @@ namespace SteamNative
public uint AppID; // m_unAppID uint32
public ulong OrderID; // m_ulOrderID uint64
public byte Authorized; // m_bAuthorized uint8
- public static MicroTxnAuthorizationResponse_t FromPointer( IntPtr p ) { return (MicroTxnAuthorizationResponse_t) Marshal.PtrToStructure( p, typeof(MicroTxnAuthorizationResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static MicroTxnAuthorizationResponse_t FromPointer( IntPtr p )
+ {
+ return (MicroTxnAuthorizationResponse_t) Marshal.PtrToStructure( p, typeof(MicroTxnAuthorizationResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -155,6 +252,9 @@ namespace SteamNative
public ulong OrderID; // m_ulOrderID uint64
public byte Authorized; // m_bAuthorized uint8
+ //
+ // Easily convert from PackSmall to MicroTxnAuthorizationResponse_t
+ //
public static implicit operator MicroTxnAuthorizationResponse_t ( MicroTxnAuthorizationResponse_t.PackSmall d )
{
return new MicroTxnAuthorizationResponse_t()
@@ -164,6 +264,14 @@ namespace SteamNative
Authorized = d.Authorized,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -171,13 +279,23 @@ namespace SteamNative
public struct EncryptedAppTicketResponse_t
{
public Result Result; // m_eResult enum EResult
- public static EncryptedAppTicketResponse_t FromPointer( IntPtr p ) { return (EncryptedAppTicketResponse_t) Marshal.PtrToStructure( p, typeof(EncryptedAppTicketResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static EncryptedAppTicketResponse_t FromPointer( IntPtr p )
+ {
+ return (EncryptedAppTicketResponse_t) Marshal.PtrToStructure( p, typeof(EncryptedAppTicketResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to EncryptedAppTicketResponse_t
+ //
public static implicit operator EncryptedAppTicketResponse_t ( EncryptedAppTicketResponse_t.PackSmall d )
{
return new EncryptedAppTicketResponse_t()
@@ -185,6 +303,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -193,7 +319,14 @@ namespace SteamNative
{
public uint AuthTicket; // m_hAuthTicket HAuthTicket
public Result Result; // m_eResult enum EResult
- public static GetAuthSessionTicketResponse_t FromPointer( IntPtr p ) { return (GetAuthSessionTicketResponse_t) Marshal.PtrToStructure( p, typeof(GetAuthSessionTicketResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GetAuthSessionTicketResponse_t FromPointer( IntPtr p )
+ {
+ return (GetAuthSessionTicketResponse_t) Marshal.PtrToStructure( p, typeof(GetAuthSessionTicketResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -201,6 +334,9 @@ namespace SteamNative
public uint AuthTicket; // m_hAuthTicket HAuthTicket
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to GetAuthSessionTicketResponse_t
+ //
public static implicit operator GetAuthSessionTicketResponse_t ( GetAuthSessionTicketResponse_t.PackSmall d )
{
return new GetAuthSessionTicketResponse_t()
@@ -209,6 +345,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -217,7 +361,14 @@ namespace SteamNative
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string URL; // m_szURL char [256]
- public static GameWebCallback_t FromPointer( IntPtr p ) { return (GameWebCallback_t) Marshal.PtrToStructure( p, typeof(GameWebCallback_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameWebCallback_t FromPointer( IntPtr p )
+ {
+ return (GameWebCallback_t) Marshal.PtrToStructure( p, typeof(GameWebCallback_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -225,6 +376,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string URL; // m_szURL char [256]
+ //
+ // Easily convert from PackSmall to GameWebCallback_t
+ //
public static implicit operator GameWebCallback_t ( GameWebCallback_t.PackSmall d )
{
return new GameWebCallback_t()
@@ -232,6 +386,14 @@ namespace SteamNative
URL = d.URL,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -240,7 +402,14 @@ namespace SteamNative
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)]
public string URL; // m_szURL char [512]
- public static StoreAuthURLResponse_t FromPointer( IntPtr p ) { return (StoreAuthURLResponse_t) Marshal.PtrToStructure( p, typeof(StoreAuthURLResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static StoreAuthURLResponse_t FromPointer( IntPtr p )
+ {
+ return (StoreAuthURLResponse_t) Marshal.PtrToStructure( p, typeof(StoreAuthURLResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -248,6 +417,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 512)]
public string URL; // m_szURL char [512]
+ //
+ // Easily convert from PackSmall to StoreAuthURLResponse_t
+ //
public static implicit operator StoreAuthURLResponse_t ( StoreAuthURLResponse_t.PackSmall d )
{
return new StoreAuthURLResponse_t()
@@ -255,6 +427,14 @@ namespace SteamNative
URL = d.URL,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -266,7 +446,14 @@ namespace SteamNative
public ushort GamePort; // m_usGamePort uint16
public ushort QueryPort; // m_usQueryPort uint16
public ulong SteamIDLobby; // m_steamIDLobby class CSteamID
- public static FriendGameInfo_t FromPointer( IntPtr p ) { return (FriendGameInfo_t) Marshal.PtrToStructure( p, typeof(FriendGameInfo_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FriendGameInfo_t FromPointer( IntPtr p )
+ {
+ return (FriendGameInfo_t) Marshal.PtrToStructure( p, typeof(FriendGameInfo_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -277,6 +464,9 @@ namespace SteamNative
public ushort QueryPort; // m_usQueryPort uint16
public ulong SteamIDLobby; // m_steamIDLobby class CSteamID
+ //
+ // Easily convert from PackSmall to FriendGameInfo_t
+ //
public static implicit operator FriendGameInfo_t ( FriendGameInfo_t.PackSmall d )
{
return new FriendGameInfo_t()
@@ -288,6 +478,14 @@ namespace SteamNative
SteamIDLobby = d.SteamIDLobby,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -296,7 +494,14 @@ namespace SteamNative
{
public uint IOnlineSessionInstances; // m_uiOnlineSessionInstances uint32
public byte IPublishedToFriendsSessionInstance; // m_uiPublishedToFriendsSessionInstance uint8
- public static FriendSessionStateInfo_t FromPointer( IntPtr p ) { return (FriendSessionStateInfo_t) Marshal.PtrToStructure( p, typeof(FriendSessionStateInfo_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FriendSessionStateInfo_t FromPointer( IntPtr p )
+ {
+ return (FriendSessionStateInfo_t) Marshal.PtrToStructure( p, typeof(FriendSessionStateInfo_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -304,6 +509,9 @@ namespace SteamNative
public uint IOnlineSessionInstances; // m_uiOnlineSessionInstances uint32
public byte IPublishedToFriendsSessionInstance; // m_uiPublishedToFriendsSessionInstance uint8
+ //
+ // Easily convert from PackSmall to FriendSessionStateInfo_t
+ //
public static implicit operator FriendSessionStateInfo_t ( FriendSessionStateInfo_t.PackSmall d )
{
return new FriendSessionStateInfo_t()
@@ -312,6 +520,14 @@ namespace SteamNative
IPublishedToFriendsSessionInstance = d.IPublishedToFriendsSessionInstance,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -320,7 +536,14 @@ namespace SteamNative
{
public ulong SteamID; // m_ulSteamID uint64
public int ChangeFlags; // m_nChangeFlags int
- public static PersonaStateChange_t FromPointer( IntPtr p ) { return (PersonaStateChange_t) Marshal.PtrToStructure( p, typeof(PersonaStateChange_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PersonaStateChange_t FromPointer( IntPtr p )
+ {
+ return (PersonaStateChange_t) Marshal.PtrToStructure( p, typeof(PersonaStateChange_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -328,6 +551,9 @@ namespace SteamNative
public ulong SteamID; // m_ulSteamID uint64
public int ChangeFlags; // m_nChangeFlags int
+ //
+ // Easily convert from PackSmall to PersonaStateChange_t
+ //
public static implicit operator PersonaStateChange_t ( PersonaStateChange_t.PackSmall d )
{
return new PersonaStateChange_t()
@@ -336,6 +562,14 @@ namespace SteamNative
ChangeFlags = d.ChangeFlags,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -343,13 +577,23 @@ namespace SteamNative
public struct GameOverlayActivated_t
{
public byte Active; // m_bActive uint8
- public static GameOverlayActivated_t FromPointer( IntPtr p ) { return (GameOverlayActivated_t) Marshal.PtrToStructure( p, typeof(GameOverlayActivated_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameOverlayActivated_t FromPointer( IntPtr p )
+ {
+ return (GameOverlayActivated_t) Marshal.PtrToStructure( p, typeof(GameOverlayActivated_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public byte Active; // m_bActive uint8
+ //
+ // Easily convert from PackSmall to GameOverlayActivated_t
+ //
public static implicit operator GameOverlayActivated_t ( GameOverlayActivated_t.PackSmall d )
{
return new GameOverlayActivated_t()
@@ -357,6 +601,14 @@ namespace SteamNative
Active = d.Active,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -367,7 +619,14 @@ namespace SteamNative
public string Server; // m_rgchServer char [64]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
public string Password; // m_rgchPassword char [64]
- public static GameServerChangeRequested_t FromPointer( IntPtr p ) { return (GameServerChangeRequested_t) Marshal.PtrToStructure( p, typeof(GameServerChangeRequested_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameServerChangeRequested_t FromPointer( IntPtr p )
+ {
+ return (GameServerChangeRequested_t) Marshal.PtrToStructure( p, typeof(GameServerChangeRequested_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -377,6 +636,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
public string Password; // m_rgchPassword char [64]
+ //
+ // Easily convert from PackSmall to GameServerChangeRequested_t
+ //
public static implicit operator GameServerChangeRequested_t ( GameServerChangeRequested_t.PackSmall d )
{
return new GameServerChangeRequested_t()
@@ -385,6 +647,14 @@ namespace SteamNative
Password = d.Password,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -393,7 +663,14 @@ namespace SteamNative
{
public ulong SteamIDLobby; // m_steamIDLobby class CSteamID
public ulong SteamIDFriend; // m_steamIDFriend class CSteamID
- public static GameLobbyJoinRequested_t FromPointer( IntPtr p ) { return (GameLobbyJoinRequested_t) Marshal.PtrToStructure( p, typeof(GameLobbyJoinRequested_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameLobbyJoinRequested_t FromPointer( IntPtr p )
+ {
+ return (GameLobbyJoinRequested_t) Marshal.PtrToStructure( p, typeof(GameLobbyJoinRequested_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -401,6 +678,9 @@ namespace SteamNative
public ulong SteamIDLobby; // m_steamIDLobby class CSteamID
public ulong SteamIDFriend; // m_steamIDFriend class CSteamID
+ //
+ // Easily convert from PackSmall to GameLobbyJoinRequested_t
+ //
public static implicit operator GameLobbyJoinRequested_t ( GameLobbyJoinRequested_t.PackSmall d )
{
return new GameLobbyJoinRequested_t()
@@ -409,6 +689,14 @@ namespace SteamNative
SteamIDFriend = d.SteamIDFriend,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -419,7 +707,14 @@ namespace SteamNative
public int Image; // m_iImage int
public int Wide; // m_iWide int
public int Tall; // m_iTall int
- public static AvatarImageLoaded_t FromPointer( IntPtr p ) { return (AvatarImageLoaded_t) Marshal.PtrToStructure( p, typeof(AvatarImageLoaded_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static AvatarImageLoaded_t FromPointer( IntPtr p )
+ {
+ return (AvatarImageLoaded_t) Marshal.PtrToStructure( p, typeof(AvatarImageLoaded_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -429,6 +724,9 @@ namespace SteamNative
public int Wide; // m_iWide int
public int Tall; // m_iTall int
+ //
+ // Easily convert from PackSmall to AvatarImageLoaded_t
+ //
public static implicit operator AvatarImageLoaded_t ( AvatarImageLoaded_t.PackSmall d )
{
return new AvatarImageLoaded_t()
@@ -439,6 +737,14 @@ namespace SteamNative
Tall = d.Tall,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -448,7 +754,14 @@ namespace SteamNative
public ulong SteamIDClan; // m_steamIDClan class CSteamID
public int COfficers; // m_cOfficers int
public byte Success; // m_bSuccess uint8
- public static ClanOfficerListResponse_t FromPointer( IntPtr p ) { return (ClanOfficerListResponse_t) Marshal.PtrToStructure( p, typeof(ClanOfficerListResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static ClanOfficerListResponse_t FromPointer( IntPtr p )
+ {
+ return (ClanOfficerListResponse_t) Marshal.PtrToStructure( p, typeof(ClanOfficerListResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -457,6 +770,9 @@ namespace SteamNative
public int COfficers; // m_cOfficers int
public byte Success; // m_bSuccess uint8
+ //
+ // Easily convert from PackSmall to ClanOfficerListResponse_t
+ //
public static implicit operator ClanOfficerListResponse_t ( ClanOfficerListResponse_t.PackSmall d )
{
return new ClanOfficerListResponse_t()
@@ -466,6 +782,14 @@ namespace SteamNative
Success = d.Success,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -474,7 +798,14 @@ namespace SteamNative
{
public ulong SteamIDFriend; // m_steamIDFriend class CSteamID
public uint AppID; // m_nAppID AppId_t
- public static FriendRichPresenceUpdate_t FromPointer( IntPtr p ) { return (FriendRichPresenceUpdate_t) Marshal.PtrToStructure( p, typeof(FriendRichPresenceUpdate_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FriendRichPresenceUpdate_t FromPointer( IntPtr p )
+ {
+ return (FriendRichPresenceUpdate_t) Marshal.PtrToStructure( p, typeof(FriendRichPresenceUpdate_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -482,6 +813,9 @@ namespace SteamNative
public ulong SteamIDFriend; // m_steamIDFriend class CSteamID
public uint AppID; // m_nAppID AppId_t
+ //
+ // Easily convert from PackSmall to FriendRichPresenceUpdate_t
+ //
public static implicit operator FriendRichPresenceUpdate_t ( FriendRichPresenceUpdate_t.PackSmall d )
{
return new FriendRichPresenceUpdate_t()
@@ -490,6 +824,14 @@ namespace SteamNative
AppID = d.AppID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -499,7 +841,14 @@ namespace SteamNative
public ulong SteamIDFriend; // m_steamIDFriend class CSteamID
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string Connect; // m_rgchConnect char [256]
- public static GameRichPresenceJoinRequested_t FromPointer( IntPtr p ) { return (GameRichPresenceJoinRequested_t) Marshal.PtrToStructure( p, typeof(GameRichPresenceJoinRequested_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameRichPresenceJoinRequested_t FromPointer( IntPtr p )
+ {
+ return (GameRichPresenceJoinRequested_t) Marshal.PtrToStructure( p, typeof(GameRichPresenceJoinRequested_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -508,6 +857,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string Connect; // m_rgchConnect char [256]
+ //
+ // Easily convert from PackSmall to GameRichPresenceJoinRequested_t
+ //
public static implicit operator GameRichPresenceJoinRequested_t ( GameRichPresenceJoinRequested_t.PackSmall d )
{
return new GameRichPresenceJoinRequested_t()
@@ -516,6 +868,14 @@ namespace SteamNative
Connect = d.Connect,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -525,7 +885,14 @@ namespace SteamNative
public ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID
public ulong SteamIDUser; // m_steamIDUser class CSteamID
public int MessageID; // m_iMessageID int
- public static GameConnectedClanChatMsg_t FromPointer( IntPtr p ) { return (GameConnectedClanChatMsg_t) Marshal.PtrToStructure( p, typeof(GameConnectedClanChatMsg_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameConnectedClanChatMsg_t FromPointer( IntPtr p )
+ {
+ return (GameConnectedClanChatMsg_t) Marshal.PtrToStructure( p, typeof(GameConnectedClanChatMsg_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -534,6 +901,9 @@ namespace SteamNative
public ulong SteamIDUser; // m_steamIDUser class CSteamID
public int MessageID; // m_iMessageID int
+ //
+ // Easily convert from PackSmall to GameConnectedClanChatMsg_t
+ //
public static implicit operator GameConnectedClanChatMsg_t ( GameConnectedClanChatMsg_t.PackSmall d )
{
return new GameConnectedClanChatMsg_t()
@@ -543,6 +913,14 @@ namespace SteamNative
MessageID = d.MessageID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -551,7 +929,14 @@ namespace SteamNative
{
public ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID
public ulong SteamIDUser; // m_steamIDUser class CSteamID
- public static GameConnectedChatJoin_t FromPointer( IntPtr p ) { return (GameConnectedChatJoin_t) Marshal.PtrToStructure( p, typeof(GameConnectedChatJoin_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameConnectedChatJoin_t FromPointer( IntPtr p )
+ {
+ return (GameConnectedChatJoin_t) Marshal.PtrToStructure( p, typeof(GameConnectedChatJoin_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -559,6 +944,9 @@ namespace SteamNative
public ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID
public ulong SteamIDUser; // m_steamIDUser class CSteamID
+ //
+ // Easily convert from PackSmall to GameConnectedChatJoin_t
+ //
public static implicit operator GameConnectedChatJoin_t ( GameConnectedChatJoin_t.PackSmall d )
{
return new GameConnectedChatJoin_t()
@@ -567,6 +955,14 @@ namespace SteamNative
SteamIDUser = d.SteamIDUser,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -579,7 +975,14 @@ namespace SteamNative
public bool Kicked; // m_bKicked _Bool
[MarshalAs(UnmanagedType.I1)]
public bool Dropped; // m_bDropped _Bool
- public static GameConnectedChatLeave_t FromPointer( IntPtr p ) { return (GameConnectedChatLeave_t) Marshal.PtrToStructure( p, typeof(GameConnectedChatLeave_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameConnectedChatLeave_t FromPointer( IntPtr p )
+ {
+ return (GameConnectedChatLeave_t) Marshal.PtrToStructure( p, typeof(GameConnectedChatLeave_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -591,6 +994,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Dropped; // m_bDropped _Bool
+ //
+ // Easily convert from PackSmall to GameConnectedChatLeave_t
+ //
public static implicit operator GameConnectedChatLeave_t ( GameConnectedChatLeave_t.PackSmall d )
{
return new GameConnectedChatLeave_t()
@@ -601,6 +1007,14 @@ namespace SteamNative
Dropped = d.Dropped,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -609,7 +1023,14 @@ namespace SteamNative
{
[MarshalAs(UnmanagedType.I1)]
public bool Success; // m_bSuccess _Bool
- public static DownloadClanActivityCountsResult_t FromPointer( IntPtr p ) { return (DownloadClanActivityCountsResult_t) Marshal.PtrToStructure( p, typeof(DownloadClanActivityCountsResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static DownloadClanActivityCountsResult_t FromPointer( IntPtr p )
+ {
+ return (DownloadClanActivityCountsResult_t) Marshal.PtrToStructure( p, typeof(DownloadClanActivityCountsResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -617,6 +1038,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Success; // m_bSuccess _Bool
+ //
+ // Easily convert from PackSmall to DownloadClanActivityCountsResult_t
+ //
public static implicit operator DownloadClanActivityCountsResult_t ( DownloadClanActivityCountsResult_t.PackSmall d )
{
return new DownloadClanActivityCountsResult_t()
@@ -624,6 +1048,14 @@ namespace SteamNative
Success = d.Success,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -632,7 +1064,14 @@ namespace SteamNative
{
public ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID
public ChatRoomEnterResponse ChatRoomEnterResponse; // m_eChatRoomEnterResponse enum EChatRoomEnterResponse
- public static JoinClanChatRoomCompletionResult_t FromPointer( IntPtr p ) { return (JoinClanChatRoomCompletionResult_t) Marshal.PtrToStructure( p, typeof(JoinClanChatRoomCompletionResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static JoinClanChatRoomCompletionResult_t FromPointer( IntPtr p )
+ {
+ return (JoinClanChatRoomCompletionResult_t) Marshal.PtrToStructure( p, typeof(JoinClanChatRoomCompletionResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -640,6 +1079,9 @@ namespace SteamNative
public ulong SteamIDClanChat; // m_steamIDClanChat class CSteamID
public ChatRoomEnterResponse ChatRoomEnterResponse; // m_eChatRoomEnterResponse enum EChatRoomEnterResponse
+ //
+ // Easily convert from PackSmall to JoinClanChatRoomCompletionResult_t
+ //
public static implicit operator JoinClanChatRoomCompletionResult_t ( JoinClanChatRoomCompletionResult_t.PackSmall d )
{
return new JoinClanChatRoomCompletionResult_t()
@@ -648,6 +1090,14 @@ namespace SteamNative
ChatRoomEnterResponse = d.ChatRoomEnterResponse,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -656,7 +1106,14 @@ namespace SteamNative
{
public ulong SteamIDUser; // m_steamIDUser class CSteamID
public int MessageID; // m_iMessageID int
- public static GameConnectedFriendChatMsg_t FromPointer( IntPtr p ) { return (GameConnectedFriendChatMsg_t) Marshal.PtrToStructure( p, typeof(GameConnectedFriendChatMsg_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GameConnectedFriendChatMsg_t FromPointer( IntPtr p )
+ {
+ return (GameConnectedFriendChatMsg_t) Marshal.PtrToStructure( p, typeof(GameConnectedFriendChatMsg_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -664,6 +1121,9 @@ namespace SteamNative
public ulong SteamIDUser; // m_steamIDUser class CSteamID
public int MessageID; // m_iMessageID int
+ //
+ // Easily convert from PackSmall to GameConnectedFriendChatMsg_t
+ //
public static implicit operator GameConnectedFriendChatMsg_t ( GameConnectedFriendChatMsg_t.PackSmall d )
{
return new GameConnectedFriendChatMsg_t()
@@ -672,6 +1132,14 @@ namespace SteamNative
MessageID = d.MessageID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -681,7 +1149,14 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong SteamID; // m_steamID class CSteamID
public int Count; // m_nCount int
- public static FriendsGetFollowerCount_t FromPointer( IntPtr p ) { return (FriendsGetFollowerCount_t) Marshal.PtrToStructure( p, typeof(FriendsGetFollowerCount_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FriendsGetFollowerCount_t FromPointer( IntPtr p )
+ {
+ return (FriendsGetFollowerCount_t) Marshal.PtrToStructure( p, typeof(FriendsGetFollowerCount_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -690,6 +1165,9 @@ namespace SteamNative
public ulong SteamID; // m_steamID class CSteamID
public int Count; // m_nCount int
+ //
+ // Easily convert from PackSmall to FriendsGetFollowerCount_t
+ //
public static implicit operator FriendsGetFollowerCount_t ( FriendsGetFollowerCount_t.PackSmall d )
{
return new FriendsGetFollowerCount_t()
@@ -699,6 +1177,14 @@ namespace SteamNative
Count = d.Count,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -709,7 +1195,14 @@ namespace SteamNative
public ulong SteamID; // m_steamID class CSteamID
[MarshalAs(UnmanagedType.I1)]
public bool IsFollowing; // m_bIsFollowing _Bool
- public static FriendsIsFollowing_t FromPointer( IntPtr p ) { return (FriendsIsFollowing_t) Marshal.PtrToStructure( p, typeof(FriendsIsFollowing_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FriendsIsFollowing_t FromPointer( IntPtr p )
+ {
+ return (FriendsIsFollowing_t) Marshal.PtrToStructure( p, typeof(FriendsIsFollowing_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -719,6 +1212,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool IsFollowing; // m_bIsFollowing _Bool
+ //
+ // Easily convert from PackSmall to FriendsIsFollowing_t
+ //
public static implicit operator FriendsIsFollowing_t ( FriendsIsFollowing_t.PackSmall d )
{
return new FriendsIsFollowing_t()
@@ -728,6 +1224,14 @@ namespace SteamNative
IsFollowing = d.IsFollowing,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -739,7 +1243,14 @@ namespace SteamNative
public ulong[] GSteamID; // m_rgSteamID class CSteamID [50]
public int ResultsReturned; // m_nResultsReturned int32
public int TotalResultCount; // m_nTotalResultCount int32
- public static FriendsEnumerateFollowingList_t FromPointer( IntPtr p ) { return (FriendsEnumerateFollowingList_t) Marshal.PtrToStructure( p, typeof(FriendsEnumerateFollowingList_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FriendsEnumerateFollowingList_t FromPointer( IntPtr p )
+ {
+ return (FriendsEnumerateFollowingList_t) Marshal.PtrToStructure( p, typeof(FriendsEnumerateFollowingList_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -750,6 +1261,9 @@ namespace SteamNative
public int ResultsReturned; // m_nResultsReturned int32
public int TotalResultCount; // m_nTotalResultCount int32
+ //
+ // Easily convert from PackSmall to FriendsEnumerateFollowingList_t
+ //
public static implicit operator FriendsEnumerateFollowingList_t ( FriendsEnumerateFollowingList_t.PackSmall d )
{
return new FriendsEnumerateFollowingList_t()
@@ -760,6 +1274,14 @@ namespace SteamNative
TotalResultCount = d.TotalResultCount,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -771,7 +1293,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool LocalSuccess; // m_bLocalSuccess _Bool
public Result Esult; // m_result enum EResult
- public static SetPersonaNameResponse_t FromPointer( IntPtr p ) { return (SetPersonaNameResponse_t) Marshal.PtrToStructure( p, typeof(SetPersonaNameResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SetPersonaNameResponse_t FromPointer( IntPtr p )
+ {
+ return (SetPersonaNameResponse_t) Marshal.PtrToStructure( p, typeof(SetPersonaNameResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -782,6 +1311,9 @@ namespace SteamNative
public bool LocalSuccess; // m_bLocalSuccess _Bool
public Result Esult; // m_result enum EResult
+ //
+ // Easily convert from PackSmall to SetPersonaNameResponse_t
+ //
public static implicit operator SetPersonaNameResponse_t ( SetPersonaNameResponse_t.PackSmall d )
{
return new SetPersonaNameResponse_t()
@@ -791,6 +1323,14 @@ namespace SteamNative
Esult = d.Esult,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -798,13 +1338,23 @@ namespace SteamNative
public struct LowBatteryPower_t
{
public byte MinutesBatteryLeft; // m_nMinutesBatteryLeft uint8
- public static LowBatteryPower_t FromPointer( IntPtr p ) { return (LowBatteryPower_t) Marshal.PtrToStructure( p, typeof(LowBatteryPower_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LowBatteryPower_t FromPointer( IntPtr p )
+ {
+ return (LowBatteryPower_t) Marshal.PtrToStructure( p, typeof(LowBatteryPower_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public byte MinutesBatteryLeft; // m_nMinutesBatteryLeft uint8
+ //
+ // Easily convert from PackSmall to LowBatteryPower_t
+ //
public static implicit operator LowBatteryPower_t ( LowBatteryPower_t.PackSmall d )
{
return new LowBatteryPower_t()
@@ -812,6 +1362,14 @@ namespace SteamNative
MinutesBatteryLeft = d.MinutesBatteryLeft,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -821,7 +1379,14 @@ namespace SteamNative
public ulong AsyncCall; // m_hAsyncCall SteamAPICall_t
public int Callback; // m_iCallback int
public uint ParamCount; // m_cubParam uint32
- public static SteamAPICallCompleted_t FromPointer( IntPtr p ) { return (SteamAPICallCompleted_t) Marshal.PtrToStructure( p, typeof(SteamAPICallCompleted_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamAPICallCompleted_t FromPointer( IntPtr p )
+ {
+ return (SteamAPICallCompleted_t) Marshal.PtrToStructure( p, typeof(SteamAPICallCompleted_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -830,6 +1395,9 @@ namespace SteamNative
public int Callback; // m_iCallback int
public uint ParamCount; // m_cubParam uint32
+ //
+ // Easily convert from PackSmall to SteamAPICallCompleted_t
+ //
public static implicit operator SteamAPICallCompleted_t ( SteamAPICallCompleted_t.PackSmall d )
{
return new SteamAPICallCompleted_t()
@@ -839,6 +1407,14 @@ namespace SteamNative
ParamCount = d.ParamCount,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -846,13 +1422,23 @@ namespace SteamNative
public struct CheckFileSignature_t
{
public CheckFileSignature CheckFileSignature; // m_eCheckFileSignature enum ECheckFileSignature
- public static CheckFileSignature_t FromPointer( IntPtr p ) { return (CheckFileSignature_t) Marshal.PtrToStructure( p, typeof(CheckFileSignature_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static CheckFileSignature_t FromPointer( IntPtr p )
+ {
+ return (CheckFileSignature_t) Marshal.PtrToStructure( p, typeof(CheckFileSignature_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public CheckFileSignature CheckFileSignature; // m_eCheckFileSignature enum ECheckFileSignature
+ //
+ // Easily convert from PackSmall to CheckFileSignature_t
+ //
public static implicit operator CheckFileSignature_t ( CheckFileSignature_t.PackSmall d )
{
return new CheckFileSignature_t()
@@ -860,6 +1446,14 @@ namespace SteamNative
CheckFileSignature = d.CheckFileSignature,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -869,7 +1463,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Submitted; // m_bSubmitted _Bool
public uint SubmittedText; // m_unSubmittedText uint32
- public static GamepadTextInputDismissed_t FromPointer( IntPtr p ) { return (GamepadTextInputDismissed_t) Marshal.PtrToStructure( p, typeof(GamepadTextInputDismissed_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GamepadTextInputDismissed_t FromPointer( IntPtr p )
+ {
+ return (GamepadTextInputDismissed_t) Marshal.PtrToStructure( p, typeof(GamepadTextInputDismissed_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -878,6 +1479,9 @@ namespace SteamNative
public bool Submitted; // m_bSubmitted _Bool
public uint SubmittedText; // m_unSubmittedText uint32
+ //
+ // Easily convert from PackSmall to GamepadTextInputDismissed_t
+ //
public static implicit operator GamepadTextInputDismissed_t ( GamepadTextInputDismissed_t.PackSmall d )
{
return new GamepadTextInputDismissed_t()
@@ -886,6 +1490,14 @@ namespace SteamNative
SubmittedText = d.SubmittedText,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -896,7 +1508,14 @@ namespace SteamNative
public string Key; // m_szKey char [256]
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string Value; // m_szValue char [256]
- public static MatchMakingKeyValuePair_t FromPointer( IntPtr p ) { return (MatchMakingKeyValuePair_t) Marshal.PtrToStructure( p, typeof(MatchMakingKeyValuePair_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static MatchMakingKeyValuePair_t FromPointer( IntPtr p )
+ {
+ return (MatchMakingKeyValuePair_t) Marshal.PtrToStructure( p, typeof(MatchMakingKeyValuePair_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -906,6 +1525,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string Value; // m_szValue char [256]
+ //
+ // Easily convert from PackSmall to MatchMakingKeyValuePair_t
+ //
public static implicit operator MatchMakingKeyValuePair_t ( MatchMakingKeyValuePair_t.PackSmall d )
{
return new MatchMakingKeyValuePair_t()
@@ -914,6 +1536,14 @@ namespace SteamNative
Value = d.Value,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -923,7 +1553,14 @@ namespace SteamNative
public ushort ConnectionPort; // m_usConnectionPort uint16
public ushort QueryPort; // m_usQueryPort uint16
public uint IP; // m_unIP uint32
- public static servernetadr_t FromPointer( IntPtr p ) { return (servernetadr_t) Marshal.PtrToStructure( p, typeof(servernetadr_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static servernetadr_t FromPointer( IntPtr p )
+ {
+ return (servernetadr_t) Marshal.PtrToStructure( p, typeof(servernetadr_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -932,6 +1569,9 @@ namespace SteamNative
public ushort QueryPort; // m_usQueryPort uint16
public uint IP; // m_unIP uint32
+ //
+ // Easily convert from PackSmall to servernetadr_t
+ //
public static implicit operator servernetadr_t ( servernetadr_t.PackSmall d )
{
return new servernetadr_t()
@@ -941,6 +1581,14 @@ namespace SteamNative
IP = d.IP,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -974,7 +1622,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
public string GameTags; // m_szGameTags char [128]
public ulong SteamID; // m_steamID class CSteamID
- public static gameserveritem_t FromPointer( IntPtr p ) { return (gameserveritem_t) Marshal.PtrToStructure( p, typeof(gameserveritem_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static gameserveritem_t FromPointer( IntPtr p )
+ {
+ return (gameserveritem_t) Marshal.PtrToStructure( p, typeof(gameserveritem_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1007,6 +1662,9 @@ namespace SteamNative
public string GameTags; // m_szGameTags char [128]
public ulong SteamID; // m_steamID class CSteamID
+ //
+ // Easily convert from PackSmall to gameserveritem_t
+ //
public static implicit operator gameserveritem_t ( gameserveritem_t.PackSmall d )
{
return new gameserveritem_t()
@@ -1031,6 +1689,14 @@ namespace SteamNative
SteamID = d.SteamID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1045,7 +1711,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Add; // m_bAdd _Bool
public uint AccountId; // m_unAccountId AccountID_t
- public static FavoritesListChanged_t FromPointer( IntPtr p ) { return (FavoritesListChanged_t) Marshal.PtrToStructure( p, typeof(FavoritesListChanged_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FavoritesListChanged_t FromPointer( IntPtr p )
+ {
+ return (FavoritesListChanged_t) Marshal.PtrToStructure( p, typeof(FavoritesListChanged_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1059,6 +1732,9 @@ namespace SteamNative
public bool Add; // m_bAdd _Bool
public uint AccountId; // m_unAccountId AccountID_t
+ //
+ // Easily convert from PackSmall to FavoritesListChanged_t
+ //
public static implicit operator FavoritesListChanged_t ( FavoritesListChanged_t.PackSmall d )
{
return new FavoritesListChanged_t()
@@ -1072,6 +1748,14 @@ namespace SteamNative
AccountId = d.AccountId,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1081,7 +1765,14 @@ namespace SteamNative
public ulong SteamIDUser; // m_ulSteamIDUser uint64
public ulong SteamIDLobby; // m_ulSteamIDLobby uint64
public ulong GameID; // m_ulGameID uint64
- public static LobbyInvite_t FromPointer( IntPtr p ) { return (LobbyInvite_t) Marshal.PtrToStructure( p, typeof(LobbyInvite_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyInvite_t FromPointer( IntPtr p )
+ {
+ return (LobbyInvite_t) Marshal.PtrToStructure( p, typeof(LobbyInvite_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1090,6 +1781,9 @@ namespace SteamNative
public ulong SteamIDLobby; // m_ulSteamIDLobby uint64
public ulong GameID; // m_ulGameID uint64
+ //
+ // Easily convert from PackSmall to LobbyInvite_t
+ //
public static implicit operator LobbyInvite_t ( LobbyInvite_t.PackSmall d )
{
return new LobbyInvite_t()
@@ -1099,6 +1793,14 @@ namespace SteamNative
GameID = d.GameID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1110,7 +1812,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Locked; // m_bLocked _Bool
public uint EChatRoomEnterResponse; // m_EChatRoomEnterResponse uint32
- public static LobbyEnter_t FromPointer( IntPtr p ) { return (LobbyEnter_t) Marshal.PtrToStructure( p, typeof(LobbyEnter_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyEnter_t FromPointer( IntPtr p )
+ {
+ return (LobbyEnter_t) Marshal.PtrToStructure( p, typeof(LobbyEnter_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1121,6 +1830,9 @@ namespace SteamNative
public bool Locked; // m_bLocked _Bool
public uint EChatRoomEnterResponse; // m_EChatRoomEnterResponse uint32
+ //
+ // Easily convert from PackSmall to LobbyEnter_t
+ //
public static implicit operator LobbyEnter_t ( LobbyEnter_t.PackSmall d )
{
return new LobbyEnter_t()
@@ -1131,6 +1843,14 @@ namespace SteamNative
EChatRoomEnterResponse = d.EChatRoomEnterResponse,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1140,7 +1860,14 @@ namespace SteamNative
public ulong SteamIDLobby; // m_ulSteamIDLobby uint64
public ulong SteamIDMember; // m_ulSteamIDMember uint64
public byte Success; // m_bSuccess uint8
- public static LobbyDataUpdate_t FromPointer( IntPtr p ) { return (LobbyDataUpdate_t) Marshal.PtrToStructure( p, typeof(LobbyDataUpdate_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyDataUpdate_t FromPointer( IntPtr p )
+ {
+ return (LobbyDataUpdate_t) Marshal.PtrToStructure( p, typeof(LobbyDataUpdate_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1149,6 +1876,9 @@ namespace SteamNative
public ulong SteamIDMember; // m_ulSteamIDMember uint64
public byte Success; // m_bSuccess uint8
+ //
+ // Easily convert from PackSmall to LobbyDataUpdate_t
+ //
public static implicit operator LobbyDataUpdate_t ( LobbyDataUpdate_t.PackSmall d )
{
return new LobbyDataUpdate_t()
@@ -1158,6 +1888,14 @@ namespace SteamNative
Success = d.Success,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1168,7 +1906,14 @@ namespace SteamNative
public ulong SteamIDUserChanged; // m_ulSteamIDUserChanged uint64
public ulong SteamIDMakingChange; // m_ulSteamIDMakingChange uint64
public uint GfChatMemberStateChange; // m_rgfChatMemberStateChange uint32
- public static LobbyChatUpdate_t FromPointer( IntPtr p ) { return (LobbyChatUpdate_t) Marshal.PtrToStructure( p, typeof(LobbyChatUpdate_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyChatUpdate_t FromPointer( IntPtr p )
+ {
+ return (LobbyChatUpdate_t) Marshal.PtrToStructure( p, typeof(LobbyChatUpdate_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1178,6 +1923,9 @@ namespace SteamNative
public ulong SteamIDMakingChange; // m_ulSteamIDMakingChange uint64
public uint GfChatMemberStateChange; // m_rgfChatMemberStateChange uint32
+ //
+ // Easily convert from PackSmall to LobbyChatUpdate_t
+ //
public static implicit operator LobbyChatUpdate_t ( LobbyChatUpdate_t.PackSmall d )
{
return new LobbyChatUpdate_t()
@@ -1188,6 +1936,14 @@ namespace SteamNative
GfChatMemberStateChange = d.GfChatMemberStateChange,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1198,7 +1954,14 @@ namespace SteamNative
public ulong SteamIDUser; // m_ulSteamIDUser uint64
public byte ChatEntryType; // m_eChatEntryType uint8
public uint ChatID; // m_iChatID uint32
- public static LobbyChatMsg_t FromPointer( IntPtr p ) { return (LobbyChatMsg_t) Marshal.PtrToStructure( p, typeof(LobbyChatMsg_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyChatMsg_t FromPointer( IntPtr p )
+ {
+ return (LobbyChatMsg_t) Marshal.PtrToStructure( p, typeof(LobbyChatMsg_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1208,6 +1971,9 @@ namespace SteamNative
public byte ChatEntryType; // m_eChatEntryType uint8
public uint ChatID; // m_iChatID uint32
+ //
+ // Easily convert from PackSmall to LobbyChatMsg_t
+ //
public static implicit operator LobbyChatMsg_t ( LobbyChatMsg_t.PackSmall d )
{
return new LobbyChatMsg_t()
@@ -1218,6 +1984,14 @@ namespace SteamNative
ChatID = d.ChatID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1228,7 +2002,14 @@ namespace SteamNative
public ulong SteamIDGameServer; // m_ulSteamIDGameServer uint64
public uint IP; // m_unIP uint32
public ushort Port; // m_usPort uint16
- public static LobbyGameCreated_t FromPointer( IntPtr p ) { return (LobbyGameCreated_t) Marshal.PtrToStructure( p, typeof(LobbyGameCreated_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyGameCreated_t FromPointer( IntPtr p )
+ {
+ return (LobbyGameCreated_t) Marshal.PtrToStructure( p, typeof(LobbyGameCreated_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1238,6 +2019,9 @@ namespace SteamNative
public uint IP; // m_unIP uint32
public ushort Port; // m_usPort uint16
+ //
+ // Easily convert from PackSmall to LobbyGameCreated_t
+ //
public static implicit operator LobbyGameCreated_t ( LobbyGameCreated_t.PackSmall d )
{
return new LobbyGameCreated_t()
@@ -1248,6 +2032,14 @@ namespace SteamNative
Port = d.Port,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1255,13 +2047,23 @@ namespace SteamNative
public struct LobbyMatchList_t
{
public uint LobbiesMatching; // m_nLobbiesMatching uint32
- public static LobbyMatchList_t FromPointer( IntPtr p ) { return (LobbyMatchList_t) Marshal.PtrToStructure( p, typeof(LobbyMatchList_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyMatchList_t FromPointer( IntPtr p )
+ {
+ return (LobbyMatchList_t) Marshal.PtrToStructure( p, typeof(LobbyMatchList_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public uint LobbiesMatching; // m_nLobbiesMatching uint32
+ //
+ // Easily convert from PackSmall to LobbyMatchList_t
+ //
public static implicit operator LobbyMatchList_t ( LobbyMatchList_t.PackSmall d )
{
return new LobbyMatchList_t()
@@ -1269,6 +2071,14 @@ namespace SteamNative
LobbiesMatching = d.LobbiesMatching,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1278,7 +2088,14 @@ namespace SteamNative
public ulong SteamIDLobby; // m_ulSteamIDLobby uint64
public ulong SteamIDAdmin; // m_ulSteamIDAdmin uint64
public byte KickedDueToDisconnect; // m_bKickedDueToDisconnect uint8
- public static LobbyKicked_t FromPointer( IntPtr p ) { return (LobbyKicked_t) Marshal.PtrToStructure( p, typeof(LobbyKicked_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyKicked_t FromPointer( IntPtr p )
+ {
+ return (LobbyKicked_t) Marshal.PtrToStructure( p, typeof(LobbyKicked_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1287,6 +2104,9 @@ namespace SteamNative
public ulong SteamIDAdmin; // m_ulSteamIDAdmin uint64
public byte KickedDueToDisconnect; // m_bKickedDueToDisconnect uint8
+ //
+ // Easily convert from PackSmall to LobbyKicked_t
+ //
public static implicit operator LobbyKicked_t ( LobbyKicked_t.PackSmall d )
{
return new LobbyKicked_t()
@@ -1296,6 +2116,14 @@ namespace SteamNative
KickedDueToDisconnect = d.KickedDueToDisconnect,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1304,7 +2132,14 @@ namespace SteamNative
{
public Result Result; // m_eResult enum EResult
public ulong SteamIDLobby; // m_ulSteamIDLobby uint64
- public static LobbyCreated_t FromPointer( IntPtr p ) { return (LobbyCreated_t) Marshal.PtrToStructure( p, typeof(LobbyCreated_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LobbyCreated_t FromPointer( IntPtr p )
+ {
+ return (LobbyCreated_t) Marshal.PtrToStructure( p, typeof(LobbyCreated_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1312,6 +2147,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong SteamIDLobby; // m_ulSteamIDLobby uint64
+ //
+ // Easily convert from PackSmall to LobbyCreated_t
+ //
public static implicit operator LobbyCreated_t ( LobbyCreated_t.PackSmall d )
{
return new LobbyCreated_t()
@@ -1320,6 +2158,14 @@ namespace SteamNative
SteamIDLobby = d.SteamIDLobby,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1329,7 +2175,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool GameBootInviteExists; // m_bGameBootInviteExists _Bool
public ulong SteamIDLobby; // m_steamIDLobby class CSteamID
- public static PSNGameBootInviteResult_t FromPointer( IntPtr p ) { return (PSNGameBootInviteResult_t) Marshal.PtrToStructure( p, typeof(PSNGameBootInviteResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PSNGameBootInviteResult_t FromPointer( IntPtr p )
+ {
+ return (PSNGameBootInviteResult_t) Marshal.PtrToStructure( p, typeof(PSNGameBootInviteResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1338,6 +2191,9 @@ namespace SteamNative
public bool GameBootInviteExists; // m_bGameBootInviteExists _Bool
public ulong SteamIDLobby; // m_steamIDLobby class CSteamID
+ //
+ // Easily convert from PackSmall to PSNGameBootInviteResult_t
+ //
public static implicit operator PSNGameBootInviteResult_t ( PSNGameBootInviteResult_t.PackSmall d )
{
return new PSNGameBootInviteResult_t()
@@ -1346,6 +2202,14 @@ namespace SteamNative
SteamIDLobby = d.SteamIDLobby,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1353,13 +2217,23 @@ namespace SteamNative
public struct FavoritesListAccountsUpdated_t
{
public Result Result; // m_eResult enum EResult
- public static FavoritesListAccountsUpdated_t FromPointer( IntPtr p ) { return (FavoritesListAccountsUpdated_t) Marshal.PtrToStructure( p, typeof(FavoritesListAccountsUpdated_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FavoritesListAccountsUpdated_t FromPointer( IntPtr p )
+ {
+ return (FavoritesListAccountsUpdated_t) Marshal.PtrToStructure( p, typeof(FavoritesListAccountsUpdated_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to FavoritesListAccountsUpdated_t
+ //
public static implicit operator FavoritesListAccountsUpdated_t ( FavoritesListAccountsUpdated_t.PackSmall d )
{
return new FavoritesListAccountsUpdated_t()
@@ -1367,6 +2241,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1375,7 +2257,14 @@ namespace SteamNative
{
public IntPtr Strings; // m_ppStrings const char **
public int NumStrings; // m_nNumStrings int32
- public static SteamParamStringArray_t FromPointer( IntPtr p ) { return (SteamParamStringArray_t) Marshal.PtrToStructure( p, typeof(SteamParamStringArray_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamParamStringArray_t FromPointer( IntPtr p )
+ {
+ return (SteamParamStringArray_t) Marshal.PtrToStructure( p, typeof(SteamParamStringArray_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1383,6 +2272,9 @@ namespace SteamNative
public IntPtr Strings; // m_ppStrings const char **
public int NumStrings; // m_nNumStrings int32
+ //
+ // Easily convert from PackSmall to SteamParamStringArray_t
+ //
public static implicit operator SteamParamStringArray_t ( SteamParamStringArray_t.PackSmall d )
{
return new SteamParamStringArray_t()
@@ -1391,6 +2283,14 @@ namespace SteamNative
NumStrings = d.NumStrings,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1400,7 +2300,14 @@ namespace SteamNative
public uint AppID; // m_nAppID AppId_t
public Result Result; // m_eResult enum EResult
public int NumDownloads; // m_unNumDownloads int
- public static RemoteStorageAppSyncedClient_t FromPointer( IntPtr p ) { return (RemoteStorageAppSyncedClient_t) Marshal.PtrToStructure( p, typeof(RemoteStorageAppSyncedClient_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageAppSyncedClient_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageAppSyncedClient_t) Marshal.PtrToStructure( p, typeof(RemoteStorageAppSyncedClient_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1409,6 +2316,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public int NumDownloads; // m_unNumDownloads int
+ //
+ // Easily convert from PackSmall to RemoteStorageAppSyncedClient_t
+ //
public static implicit operator RemoteStorageAppSyncedClient_t ( RemoteStorageAppSyncedClient_t.PackSmall d )
{
return new RemoteStorageAppSyncedClient_t()
@@ -1418,6 +2328,14 @@ namespace SteamNative
NumDownloads = d.NumDownloads,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1427,7 +2345,14 @@ namespace SteamNative
public uint AppID; // m_nAppID AppId_t
public Result Result; // m_eResult enum EResult
public int NumUploads; // m_unNumUploads int
- public static RemoteStorageAppSyncedServer_t FromPointer( IntPtr p ) { return (RemoteStorageAppSyncedServer_t) Marshal.PtrToStructure( p, typeof(RemoteStorageAppSyncedServer_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageAppSyncedServer_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageAppSyncedServer_t) Marshal.PtrToStructure( p, typeof(RemoteStorageAppSyncedServer_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1436,6 +2361,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public int NumUploads; // m_unNumUploads int
+ //
+ // Easily convert from PackSmall to RemoteStorageAppSyncedServer_t
+ //
public static implicit operator RemoteStorageAppSyncedServer_t ( RemoteStorageAppSyncedServer_t.PackSmall d )
{
return new RemoteStorageAppSyncedServer_t()
@@ -1445,6 +2373,14 @@ namespace SteamNative
NumUploads = d.NumUploads,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1458,7 +2394,14 @@ namespace SteamNative
public double DAppPercentComplete; // m_dAppPercentComplete double
[MarshalAs(UnmanagedType.I1)]
public bool Uploading; // m_bUploading _Bool
- public static RemoteStorageAppSyncProgress_t FromPointer( IntPtr p ) { return (RemoteStorageAppSyncProgress_t) Marshal.PtrToStructure( p, typeof(RemoteStorageAppSyncProgress_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageAppSyncProgress_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageAppSyncProgress_t) Marshal.PtrToStructure( p, typeof(RemoteStorageAppSyncProgress_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1471,6 +2414,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Uploading; // m_bUploading _Bool
+ //
+ // Easily convert from PackSmall to RemoteStorageAppSyncProgress_t
+ //
public static implicit operator RemoteStorageAppSyncProgress_t ( RemoteStorageAppSyncProgress_t.PackSmall d )
{
return new RemoteStorageAppSyncProgress_t()
@@ -1482,6 +2428,14 @@ namespace SteamNative
Uploading = d.Uploading,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1490,7 +2444,14 @@ namespace SteamNative
{
public uint AppID; // m_nAppID AppId_t
public Result Result; // m_eResult enum EResult
- public static RemoteStorageAppSyncStatusCheck_t FromPointer( IntPtr p ) { return (RemoteStorageAppSyncStatusCheck_t) Marshal.PtrToStructure( p, typeof(RemoteStorageAppSyncStatusCheck_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageAppSyncStatusCheck_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageAppSyncStatusCheck_t) Marshal.PtrToStructure( p, typeof(RemoteStorageAppSyncStatusCheck_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1498,6 +2459,9 @@ namespace SteamNative
public uint AppID; // m_nAppID AppId_t
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to RemoteStorageAppSyncStatusCheck_t
+ //
public static implicit operator RemoteStorageAppSyncStatusCheck_t ( RemoteStorageAppSyncStatusCheck_t.PackSmall d )
{
return new RemoteStorageAppSyncStatusCheck_t()
@@ -1506,6 +2470,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1516,7 +2488,14 @@ namespace SteamNative
public ulong File; // m_hFile UGCHandle_t
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
public string Filename; // m_rgchFilename char [260]
- public static RemoteStorageFileShareResult_t FromPointer( IntPtr p ) { return (RemoteStorageFileShareResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageFileShareResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageFileShareResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageFileShareResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageFileShareResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1526,6 +2505,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
public string Filename; // m_rgchFilename char [260]
+ //
+ // Easily convert from PackSmall to RemoteStorageFileShareResult_t
+ //
public static implicit operator RemoteStorageFileShareResult_t ( RemoteStorageFileShareResult_t.PackSmall d )
{
return new RemoteStorageFileShareResult_t()
@@ -1535,6 +2517,14 @@ namespace SteamNative
Filename = d.Filename,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1545,7 +2535,14 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
[MarshalAs(UnmanagedType.I1)]
public bool UserNeedsToAcceptWorkshopLegalAgreement; // m_bUserNeedsToAcceptWorkshopLegalAgreement _Bool
- public static RemoteStoragePublishFileResult_t FromPointer( IntPtr p ) { return (RemoteStoragePublishFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishFileResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStoragePublishFileResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStoragePublishFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishFileResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1555,6 +2552,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool UserNeedsToAcceptWorkshopLegalAgreement; // m_bUserNeedsToAcceptWorkshopLegalAgreement _Bool
+ //
+ // Easily convert from PackSmall to RemoteStoragePublishFileResult_t
+ //
public static implicit operator RemoteStoragePublishFileResult_t ( RemoteStoragePublishFileResult_t.PackSmall d )
{
return new RemoteStoragePublishFileResult_t()
@@ -1564,6 +2564,14 @@ namespace SteamNative
UserNeedsToAcceptWorkshopLegalAgreement = d.UserNeedsToAcceptWorkshopLegalAgreement,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1572,7 +2580,14 @@ namespace SteamNative
{
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
- public static RemoteStorageDeletePublishedFileResult_t FromPointer( IntPtr p ) { return (RemoteStorageDeletePublishedFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageDeletePublishedFileResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageDeletePublishedFileResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageDeletePublishedFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageDeletePublishedFileResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1580,6 +2595,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
+ //
+ // Easily convert from PackSmall to RemoteStorageDeletePublishedFileResult_t
+ //
public static implicit operator RemoteStorageDeletePublishedFileResult_t ( RemoteStorageDeletePublishedFileResult_t.PackSmall d )
{
return new RemoteStorageDeletePublishedFileResult_t()
@@ -1588,6 +2606,14 @@ namespace SteamNative
PublishedFileId = d.PublishedFileId,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1599,7 +2625,14 @@ namespace SteamNative
public int TotalResultCount; // m_nTotalResultCount int32
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
public ulong[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
- public static RemoteStorageEnumerateUserPublishedFilesResult_t FromPointer( IntPtr p ) { return (RemoteStorageEnumerateUserPublishedFilesResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumerateUserPublishedFilesResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageEnumerateUserPublishedFilesResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageEnumerateUserPublishedFilesResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumerateUserPublishedFilesResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1610,6 +2643,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
public ulong[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
+ //
+ // Easily convert from PackSmall to RemoteStorageEnumerateUserPublishedFilesResult_t
+ //
public static implicit operator RemoteStorageEnumerateUserPublishedFilesResult_t ( RemoteStorageEnumerateUserPublishedFilesResult_t.PackSmall d )
{
return new RemoteStorageEnumerateUserPublishedFilesResult_t()
@@ -1620,6 +2656,14 @@ namespace SteamNative
GPublishedFileId = d.GPublishedFileId,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1628,7 +2672,14 @@ namespace SteamNative
{
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
- public static RemoteStorageSubscribePublishedFileResult_t FromPointer( IntPtr p ) { return (RemoteStorageSubscribePublishedFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageSubscribePublishedFileResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageSubscribePublishedFileResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageSubscribePublishedFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageSubscribePublishedFileResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1636,6 +2687,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
+ //
+ // Easily convert from PackSmall to RemoteStorageSubscribePublishedFileResult_t
+ //
public static implicit operator RemoteStorageSubscribePublishedFileResult_t ( RemoteStorageSubscribePublishedFileResult_t.PackSmall d )
{
return new RemoteStorageSubscribePublishedFileResult_t()
@@ -1644,6 +2698,14 @@ namespace SteamNative
PublishedFileId = d.PublishedFileId,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1657,7 +2719,14 @@ namespace SteamNative
public ulong[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
public uint[] GRTimeSubscribed; // m_rgRTimeSubscribed uint32 [50]
- public static RemoteStorageEnumerateUserSubscribedFilesResult_t FromPointer( IntPtr p ) { return (RemoteStorageEnumerateUserSubscribedFilesResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumerateUserSubscribedFilesResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageEnumerateUserSubscribedFilesResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageEnumerateUserSubscribedFilesResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumerateUserSubscribedFilesResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1670,6 +2739,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
public uint[] GRTimeSubscribed; // m_rgRTimeSubscribed uint32 [50]
+ //
+ // Easily convert from PackSmall to RemoteStorageEnumerateUserSubscribedFilesResult_t
+ //
public static implicit operator RemoteStorageEnumerateUserSubscribedFilesResult_t ( RemoteStorageEnumerateUserSubscribedFilesResult_t.PackSmall d )
{
return new RemoteStorageEnumerateUserSubscribedFilesResult_t()
@@ -1681,6 +2753,14 @@ namespace SteamNative
GRTimeSubscribed = d.GRTimeSubscribed,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1689,7 +2769,14 @@ namespace SteamNative
{
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
- public static RemoteStorageUnsubscribePublishedFileResult_t FromPointer( IntPtr p ) { return (RemoteStorageUnsubscribePublishedFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageUnsubscribePublishedFileResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageUnsubscribePublishedFileResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageUnsubscribePublishedFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageUnsubscribePublishedFileResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1697,6 +2784,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
+ //
+ // Easily convert from PackSmall to RemoteStorageUnsubscribePublishedFileResult_t
+ //
public static implicit operator RemoteStorageUnsubscribePublishedFileResult_t ( RemoteStorageUnsubscribePublishedFileResult_t.PackSmall d )
{
return new RemoteStorageUnsubscribePublishedFileResult_t()
@@ -1705,6 +2795,14 @@ namespace SteamNative
PublishedFileId = d.PublishedFileId,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1715,7 +2813,14 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
[MarshalAs(UnmanagedType.I1)]
public bool UserNeedsToAcceptWorkshopLegalAgreement; // m_bUserNeedsToAcceptWorkshopLegalAgreement _Bool
- public static RemoteStorageUpdatePublishedFileResult_t FromPointer( IntPtr p ) { return (RemoteStorageUpdatePublishedFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageUpdatePublishedFileResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageUpdatePublishedFileResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageUpdatePublishedFileResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageUpdatePublishedFileResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1725,6 +2830,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool UserNeedsToAcceptWorkshopLegalAgreement; // m_bUserNeedsToAcceptWorkshopLegalAgreement _Bool
+ //
+ // Easily convert from PackSmall to RemoteStorageUpdatePublishedFileResult_t
+ //
public static implicit operator RemoteStorageUpdatePublishedFileResult_t ( RemoteStorageUpdatePublishedFileResult_t.PackSmall d )
{
return new RemoteStorageUpdatePublishedFileResult_t()
@@ -1734,6 +2842,14 @@ namespace SteamNative
UserNeedsToAcceptWorkshopLegalAgreement = d.UserNeedsToAcceptWorkshopLegalAgreement,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1747,7 +2863,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
public string PchFileName; // m_pchFileName char [260]
public ulong SteamIDOwner; // m_ulSteamIDOwner uint64
- public static RemoteStorageDownloadUGCResult_t FromPointer( IntPtr p ) { return (RemoteStorageDownloadUGCResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageDownloadUGCResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageDownloadUGCResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageDownloadUGCResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageDownloadUGCResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1760,6 +2883,9 @@ namespace SteamNative
public string PchFileName; // m_pchFileName char [260]
public ulong SteamIDOwner; // m_ulSteamIDOwner uint64
+ //
+ // Easily convert from PackSmall to RemoteStorageDownloadUGCResult_t
+ //
public static implicit operator RemoteStorageDownloadUGCResult_t ( RemoteStorageDownloadUGCResult_t.PackSmall d )
{
return new RemoteStorageDownloadUGCResult_t()
@@ -1772,6 +2898,14 @@ namespace SteamNative
SteamIDOwner = d.SteamIDOwner,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1807,7 +2941,14 @@ namespace SteamNative
public WorkshopFileType FileType; // m_eFileType enum EWorkshopFileType
[MarshalAs(UnmanagedType.I1)]
public bool AcceptedForUse; // m_bAcceptedForUse _Bool
- public static RemoteStorageGetPublishedFileDetailsResult_t FromPointer( IntPtr p ) { return (RemoteStorageGetPublishedFileDetailsResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageGetPublishedFileDetailsResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageGetPublishedFileDetailsResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageGetPublishedFileDetailsResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageGetPublishedFileDetailsResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1842,6 +2983,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool AcceptedForUse; // m_bAcceptedForUse _Bool
+ //
+ // Easily convert from PackSmall to RemoteStorageGetPublishedFileDetailsResult_t
+ //
public static implicit operator RemoteStorageGetPublishedFileDetailsResult_t ( RemoteStorageGetPublishedFileDetailsResult_t.PackSmall d )
{
return new RemoteStorageGetPublishedFileDetailsResult_t()
@@ -1869,6 +3013,14 @@ namespace SteamNative
AcceptedForUse = d.AcceptedForUse,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1884,7 +3036,14 @@ namespace SteamNative
public float[] GScore; // m_rgScore float [50]
public uint AppId; // m_nAppId AppId_t
public uint StartIndex; // m_unStartIndex uint32
- public static RemoteStorageEnumerateWorkshopFilesResult_t FromPointer( IntPtr p ) { return (RemoteStorageEnumerateWorkshopFilesResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumerateWorkshopFilesResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageEnumerateWorkshopFilesResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageEnumerateWorkshopFilesResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumerateWorkshopFilesResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1899,6 +3058,9 @@ namespace SteamNative
public uint AppId; // m_nAppId AppId_t
public uint StartIndex; // m_unStartIndex uint32
+ //
+ // Easily convert from PackSmall to RemoteStorageEnumerateWorkshopFilesResult_t
+ //
public static implicit operator RemoteStorageEnumerateWorkshopFilesResult_t ( RemoteStorageEnumerateWorkshopFilesResult_t.PackSmall d )
{
return new RemoteStorageEnumerateWorkshopFilesResult_t()
@@ -1912,6 +3074,14 @@ namespace SteamNative
StartIndex = d.StartIndex,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1924,7 +3094,14 @@ namespace SteamNative
public int VotesAgainst; // m_nVotesAgainst int32
public int Reports; // m_nReports int32
public float FScore; // m_fScore float
- public static RemoteStorageGetPublishedItemVoteDetailsResult_t FromPointer( IntPtr p ) { return (RemoteStorageGetPublishedItemVoteDetailsResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageGetPublishedItemVoteDetailsResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageGetPublishedItemVoteDetailsResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageGetPublishedItemVoteDetailsResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageGetPublishedItemVoteDetailsResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1936,6 +3113,9 @@ namespace SteamNative
public int Reports; // m_nReports int32
public float FScore; // m_fScore float
+ //
+ // Easily convert from PackSmall to RemoteStorageGetPublishedItemVoteDetailsResult_t
+ //
public static implicit operator RemoteStorageGetPublishedItemVoteDetailsResult_t ( RemoteStorageGetPublishedItemVoteDetailsResult_t.PackSmall d )
{
return new RemoteStorageGetPublishedItemVoteDetailsResult_t()
@@ -1948,6 +3128,14 @@ namespace SteamNative
FScore = d.FScore,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1956,7 +3144,14 @@ namespace SteamNative
{
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public uint AppID; // m_nAppID AppId_t
- public static RemoteStoragePublishedFileSubscribed_t FromPointer( IntPtr p ) { return (RemoteStoragePublishedFileSubscribed_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishedFileSubscribed_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStoragePublishedFileSubscribed_t FromPointer( IntPtr p )
+ {
+ return (RemoteStoragePublishedFileSubscribed_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishedFileSubscribed_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1964,6 +3159,9 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public uint AppID; // m_nAppID AppId_t
+ //
+ // Easily convert from PackSmall to RemoteStoragePublishedFileSubscribed_t
+ //
public static implicit operator RemoteStoragePublishedFileSubscribed_t ( RemoteStoragePublishedFileSubscribed_t.PackSmall d )
{
return new RemoteStoragePublishedFileSubscribed_t()
@@ -1972,6 +3170,14 @@ namespace SteamNative
AppID = d.AppID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -1980,7 +3186,14 @@ namespace SteamNative
{
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public uint AppID; // m_nAppID AppId_t
- public static RemoteStoragePublishedFileUnsubscribed_t FromPointer( IntPtr p ) { return (RemoteStoragePublishedFileUnsubscribed_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishedFileUnsubscribed_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStoragePublishedFileUnsubscribed_t FromPointer( IntPtr p )
+ {
+ return (RemoteStoragePublishedFileUnsubscribed_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishedFileUnsubscribed_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -1988,6 +3201,9 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public uint AppID; // m_nAppID AppId_t
+ //
+ // Easily convert from PackSmall to RemoteStoragePublishedFileUnsubscribed_t
+ //
public static implicit operator RemoteStoragePublishedFileUnsubscribed_t ( RemoteStoragePublishedFileUnsubscribed_t.PackSmall d )
{
return new RemoteStoragePublishedFileUnsubscribed_t()
@@ -1996,6 +3212,14 @@ namespace SteamNative
AppID = d.AppID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2004,7 +3228,14 @@ namespace SteamNative
{
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public uint AppID; // m_nAppID AppId_t
- public static RemoteStoragePublishedFileDeleted_t FromPointer( IntPtr p ) { return (RemoteStoragePublishedFileDeleted_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishedFileDeleted_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStoragePublishedFileDeleted_t FromPointer( IntPtr p )
+ {
+ return (RemoteStoragePublishedFileDeleted_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishedFileDeleted_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2012,6 +3243,9 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public uint AppID; // m_nAppID AppId_t
+ //
+ // Easily convert from PackSmall to RemoteStoragePublishedFileDeleted_t
+ //
public static implicit operator RemoteStoragePublishedFileDeleted_t ( RemoteStoragePublishedFileDeleted_t.PackSmall d )
{
return new RemoteStoragePublishedFileDeleted_t()
@@ -2020,6 +3254,14 @@ namespace SteamNative
AppID = d.AppID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2028,7 +3270,14 @@ namespace SteamNative
{
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
- public static RemoteStorageUpdateUserPublishedItemVoteResult_t FromPointer( IntPtr p ) { return (RemoteStorageUpdateUserPublishedItemVoteResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageUpdateUserPublishedItemVoteResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageUpdateUserPublishedItemVoteResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageUpdateUserPublishedItemVoteResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageUpdateUserPublishedItemVoteResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2036,6 +3285,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
+ //
+ // Easily convert from PackSmall to RemoteStorageUpdateUserPublishedItemVoteResult_t
+ //
public static implicit operator RemoteStorageUpdateUserPublishedItemVoteResult_t ( RemoteStorageUpdateUserPublishedItemVoteResult_t.PackSmall d )
{
return new RemoteStorageUpdateUserPublishedItemVoteResult_t()
@@ -2044,6 +3296,14 @@ namespace SteamNative
PublishedFileId = d.PublishedFileId,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2053,7 +3313,14 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public WorkshopVote Vote; // m_eVote enum EWorkshopVote
- public static RemoteStorageUserVoteDetails_t FromPointer( IntPtr p ) { return (RemoteStorageUserVoteDetails_t) Marshal.PtrToStructure( p, typeof(RemoteStorageUserVoteDetails_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageUserVoteDetails_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageUserVoteDetails_t) Marshal.PtrToStructure( p, typeof(RemoteStorageUserVoteDetails_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2062,6 +3329,9 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public WorkshopVote Vote; // m_eVote enum EWorkshopVote
+ //
+ // Easily convert from PackSmall to RemoteStorageUserVoteDetails_t
+ //
public static implicit operator RemoteStorageUserVoteDetails_t ( RemoteStorageUserVoteDetails_t.PackSmall d )
{
return new RemoteStorageUserVoteDetails_t()
@@ -2071,6 +3341,14 @@ namespace SteamNative
Vote = d.Vote,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2082,7 +3360,14 @@ namespace SteamNative
public int TotalResultCount; // m_nTotalResultCount int32
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
public ulong[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
- public static RemoteStorageEnumerateUserSharedWorkshopFilesResult_t FromPointer( IntPtr p ) { return (RemoteStorageEnumerateUserSharedWorkshopFilesResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumerateUserSharedWorkshopFilesResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageEnumerateUserSharedWorkshopFilesResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageEnumerateUserSharedWorkshopFilesResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumerateUserSharedWorkshopFilesResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2093,6 +3378,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
public ulong[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
+ //
+ // Easily convert from PackSmall to RemoteStorageEnumerateUserSharedWorkshopFilesResult_t
+ //
public static implicit operator RemoteStorageEnumerateUserSharedWorkshopFilesResult_t ( RemoteStorageEnumerateUserSharedWorkshopFilesResult_t.PackSmall d )
{
return new RemoteStorageEnumerateUserSharedWorkshopFilesResult_t()
@@ -2103,6 +3391,14 @@ namespace SteamNative
GPublishedFileId = d.GPublishedFileId,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2112,7 +3408,14 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public WorkshopFileAction Action; // m_eAction enum EWorkshopFileAction
- public static RemoteStorageSetUserPublishedFileActionResult_t FromPointer( IntPtr p ) { return (RemoteStorageSetUserPublishedFileActionResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageSetUserPublishedFileActionResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageSetUserPublishedFileActionResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageSetUserPublishedFileActionResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageSetUserPublishedFileActionResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2121,6 +3424,9 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public WorkshopFileAction Action; // m_eAction enum EWorkshopFileAction
+ //
+ // Easily convert from PackSmall to RemoteStorageSetUserPublishedFileActionResult_t
+ //
public static implicit operator RemoteStorageSetUserPublishedFileActionResult_t ( RemoteStorageSetUserPublishedFileActionResult_t.PackSmall d )
{
return new RemoteStorageSetUserPublishedFileActionResult_t()
@@ -2130,6 +3436,14 @@ namespace SteamNative
Action = d.Action,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2144,7 +3458,14 @@ namespace SteamNative
public ulong[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
public uint[] GRTimeUpdated; // m_rgRTimeUpdated uint32 [50]
- public static RemoteStorageEnumeratePublishedFilesByUserActionResult_t FromPointer( IntPtr p ) { return (RemoteStorageEnumeratePublishedFilesByUserActionResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumeratePublishedFilesByUserActionResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageEnumeratePublishedFilesByUserActionResult_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageEnumeratePublishedFilesByUserActionResult_t) Marshal.PtrToStructure( p, typeof(RemoteStorageEnumeratePublishedFilesByUserActionResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2158,6 +3479,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
public uint[] GRTimeUpdated; // m_rgRTimeUpdated uint32 [50]
+ //
+ // Easily convert from PackSmall to RemoteStorageEnumeratePublishedFilesByUserActionResult_t
+ //
public static implicit operator RemoteStorageEnumeratePublishedFilesByUserActionResult_t ( RemoteStorageEnumeratePublishedFilesByUserActionResult_t.PackSmall d )
{
return new RemoteStorageEnumeratePublishedFilesByUserActionResult_t()
@@ -2170,6 +3494,14 @@ namespace SteamNative
GRTimeUpdated = d.GRTimeUpdated,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2179,7 +3511,14 @@ namespace SteamNative
public double DPercentFile; // m_dPercentFile double
[MarshalAs(UnmanagedType.I1)]
public bool Preview; // m_bPreview _Bool
- public static RemoteStoragePublishFileProgress_t FromPointer( IntPtr p ) { return (RemoteStoragePublishFileProgress_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishFileProgress_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStoragePublishFileProgress_t FromPointer( IntPtr p )
+ {
+ return (RemoteStoragePublishFileProgress_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishFileProgress_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2188,6 +3527,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Preview; // m_bPreview _Bool
+ //
+ // Easily convert from PackSmall to RemoteStoragePublishFileProgress_t
+ //
public static implicit operator RemoteStoragePublishFileProgress_t ( RemoteStoragePublishFileProgress_t.PackSmall d )
{
return new RemoteStoragePublishFileProgress_t()
@@ -2196,6 +3538,14 @@ namespace SteamNative
Preview = d.Preview,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2205,7 +3555,14 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public uint AppID; // m_nAppID AppId_t
public ulong Unused; // m_ulUnused uint64
- public static RemoteStoragePublishedFileUpdated_t FromPointer( IntPtr p ) { return (RemoteStoragePublishedFileUpdated_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishedFileUpdated_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStoragePublishedFileUpdated_t FromPointer( IntPtr p )
+ {
+ return (RemoteStoragePublishedFileUpdated_t) Marshal.PtrToStructure( p, typeof(RemoteStoragePublishedFileUpdated_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2214,6 +3571,9 @@ namespace SteamNative
public uint AppID; // m_nAppID AppId_t
public ulong Unused; // m_ulUnused uint64
+ //
+ // Easily convert from PackSmall to RemoteStoragePublishedFileUpdated_t
+ //
public static implicit operator RemoteStoragePublishedFileUpdated_t ( RemoteStoragePublishedFileUpdated_t.PackSmall d )
{
return new RemoteStoragePublishedFileUpdated_t()
@@ -2223,6 +3583,14 @@ namespace SteamNative
Unused = d.Unused,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2230,13 +3598,23 @@ namespace SteamNative
public struct RemoteStorageFileWriteAsyncComplete_t
{
public Result Result; // m_eResult enum EResult
- public static RemoteStorageFileWriteAsyncComplete_t FromPointer( IntPtr p ) { return (RemoteStorageFileWriteAsyncComplete_t) Marshal.PtrToStructure( p, typeof(RemoteStorageFileWriteAsyncComplete_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageFileWriteAsyncComplete_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageFileWriteAsyncComplete_t) Marshal.PtrToStructure( p, typeof(RemoteStorageFileWriteAsyncComplete_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to RemoteStorageFileWriteAsyncComplete_t
+ //
public static implicit operator RemoteStorageFileWriteAsyncComplete_t ( RemoteStorageFileWriteAsyncComplete_t.PackSmall d )
{
return new RemoteStorageFileWriteAsyncComplete_t()
@@ -2244,6 +3622,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2254,7 +3640,14 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public uint Offset; // m_nOffset uint32
public uint Read; // m_cubRead uint32
- public static RemoteStorageFileReadAsyncComplete_t FromPointer( IntPtr p ) { return (RemoteStorageFileReadAsyncComplete_t) Marshal.PtrToStructure( p, typeof(RemoteStorageFileReadAsyncComplete_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RemoteStorageFileReadAsyncComplete_t FromPointer( IntPtr p )
+ {
+ return (RemoteStorageFileReadAsyncComplete_t) Marshal.PtrToStructure( p, typeof(RemoteStorageFileReadAsyncComplete_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2264,6 +3657,9 @@ namespace SteamNative
public uint Offset; // m_nOffset uint32
public uint Read; // m_cubRead uint32
+ //
+ // Easily convert from PackSmall to RemoteStorageFileReadAsyncComplete_t
+ //
public static implicit operator RemoteStorageFileReadAsyncComplete_t ( RemoteStorageFileReadAsyncComplete_t.PackSmall d )
{
return new RemoteStorageFileReadAsyncComplete_t()
@@ -2274,6 +3670,14 @@ namespace SteamNative
Read = d.Read,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2285,7 +3689,14 @@ namespace SteamNative
public int Score; // m_nScore int32
public int CDetails; // m_cDetails int32
public ulong UGC; // m_hUGC UGCHandle_t
- public static LeaderboardEntry_t FromPointer( IntPtr p ) { return (LeaderboardEntry_t) Marshal.PtrToStructure( p, typeof(LeaderboardEntry_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LeaderboardEntry_t FromPointer( IntPtr p )
+ {
+ return (LeaderboardEntry_t) Marshal.PtrToStructure( p, typeof(LeaderboardEntry_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2296,6 +3707,9 @@ namespace SteamNative
public int CDetails; // m_cDetails int32
public ulong UGC; // m_hUGC UGCHandle_t
+ //
+ // Easily convert from PackSmall to LeaderboardEntry_t
+ //
public static implicit operator LeaderboardEntry_t ( LeaderboardEntry_t.PackSmall d )
{
return new LeaderboardEntry_t()
@@ -2307,6 +3721,14 @@ namespace SteamNative
UGC = d.UGC,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2316,7 +3738,14 @@ namespace SteamNative
public ulong GameID; // m_nGameID uint64
public Result Result; // m_eResult enum EResult
public ulong SteamIDUser; // m_steamIDUser class CSteamID
- public static UserStatsReceived_t FromPointer( IntPtr p ) { return (UserStatsReceived_t) Marshal.PtrToStructure( p, typeof(UserStatsReceived_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static UserStatsReceived_t FromPointer( IntPtr p )
+ {
+ return (UserStatsReceived_t) Marshal.PtrToStructure( p, typeof(UserStatsReceived_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2325,6 +3754,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong SteamIDUser; // m_steamIDUser class CSteamID
+ //
+ // Easily convert from PackSmall to UserStatsReceived_t
+ //
public static implicit operator UserStatsReceived_t ( UserStatsReceived_t.PackSmall d )
{
return new UserStatsReceived_t()
@@ -2334,6 +3766,14 @@ namespace SteamNative
SteamIDUser = d.SteamIDUser,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2342,7 +3782,14 @@ namespace SteamNative
{
public ulong GameID; // m_nGameID uint64
public Result Result; // m_eResult enum EResult
- public static UserStatsStored_t FromPointer( IntPtr p ) { return (UserStatsStored_t) Marshal.PtrToStructure( p, typeof(UserStatsStored_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static UserStatsStored_t FromPointer( IntPtr p )
+ {
+ return (UserStatsStored_t) Marshal.PtrToStructure( p, typeof(UserStatsStored_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2350,6 +3797,9 @@ namespace SteamNative
public ulong GameID; // m_nGameID uint64
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to UserStatsStored_t
+ //
public static implicit operator UserStatsStored_t ( UserStatsStored_t.PackSmall d )
{
return new UserStatsStored_t()
@@ -2358,6 +3808,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2371,7 +3829,14 @@ namespace SteamNative
public string AchievementName; // m_rgchAchievementName char [128]
public uint CurProgress; // m_nCurProgress uint32
public uint MaxProgress; // m_nMaxProgress uint32
- public static UserAchievementStored_t FromPointer( IntPtr p ) { return (UserAchievementStored_t) Marshal.PtrToStructure( p, typeof(UserAchievementStored_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static UserAchievementStored_t FromPointer( IntPtr p )
+ {
+ return (UserAchievementStored_t) Marshal.PtrToStructure( p, typeof(UserAchievementStored_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2384,6 +3849,9 @@ namespace SteamNative
public uint CurProgress; // m_nCurProgress uint32
public uint MaxProgress; // m_nMaxProgress uint32
+ //
+ // Easily convert from PackSmall to UserAchievementStored_t
+ //
public static implicit operator UserAchievementStored_t ( UserAchievementStored_t.PackSmall d )
{
return new UserAchievementStored_t()
@@ -2395,6 +3863,14 @@ namespace SteamNative
MaxProgress = d.MaxProgress,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2403,7 +3879,14 @@ namespace SteamNative
{
public ulong SteamLeaderboard; // m_hSteamLeaderboard SteamLeaderboard_t
public byte LeaderboardFound; // m_bLeaderboardFound uint8
- public static LeaderboardFindResult_t FromPointer( IntPtr p ) { return (LeaderboardFindResult_t) Marshal.PtrToStructure( p, typeof(LeaderboardFindResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LeaderboardFindResult_t FromPointer( IntPtr p )
+ {
+ return (LeaderboardFindResult_t) Marshal.PtrToStructure( p, typeof(LeaderboardFindResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2411,6 +3894,9 @@ namespace SteamNative
public ulong SteamLeaderboard; // m_hSteamLeaderboard SteamLeaderboard_t
public byte LeaderboardFound; // m_bLeaderboardFound uint8
+ //
+ // Easily convert from PackSmall to LeaderboardFindResult_t
+ //
public static implicit operator LeaderboardFindResult_t ( LeaderboardFindResult_t.PackSmall d )
{
return new LeaderboardFindResult_t()
@@ -2419,6 +3905,14 @@ namespace SteamNative
LeaderboardFound = d.LeaderboardFound,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2428,7 +3922,14 @@ namespace SteamNative
public ulong SteamLeaderboard; // m_hSteamLeaderboard SteamLeaderboard_t
public ulong SteamLeaderboardEntries; // m_hSteamLeaderboardEntries SteamLeaderboardEntries_t
public int CEntryCount; // m_cEntryCount int
- public static LeaderboardScoresDownloaded_t FromPointer( IntPtr p ) { return (LeaderboardScoresDownloaded_t) Marshal.PtrToStructure( p, typeof(LeaderboardScoresDownloaded_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LeaderboardScoresDownloaded_t FromPointer( IntPtr p )
+ {
+ return (LeaderboardScoresDownloaded_t) Marshal.PtrToStructure( p, typeof(LeaderboardScoresDownloaded_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2437,6 +3938,9 @@ namespace SteamNative
public ulong SteamLeaderboardEntries; // m_hSteamLeaderboardEntries SteamLeaderboardEntries_t
public int CEntryCount; // m_cEntryCount int
+ //
+ // Easily convert from PackSmall to LeaderboardScoresDownloaded_t
+ //
public static implicit operator LeaderboardScoresDownloaded_t ( LeaderboardScoresDownloaded_t.PackSmall d )
{
return new LeaderboardScoresDownloaded_t()
@@ -2446,6 +3950,14 @@ namespace SteamNative
CEntryCount = d.CEntryCount,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2458,7 +3970,14 @@ namespace SteamNative
public byte ScoreChanged; // m_bScoreChanged uint8
public int GlobalRankNew; // m_nGlobalRankNew int
public int GlobalRankPrevious; // m_nGlobalRankPrevious int
- public static LeaderboardScoreUploaded_t FromPointer( IntPtr p ) { return (LeaderboardScoreUploaded_t) Marshal.PtrToStructure( p, typeof(LeaderboardScoreUploaded_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LeaderboardScoreUploaded_t FromPointer( IntPtr p )
+ {
+ return (LeaderboardScoreUploaded_t) Marshal.PtrToStructure( p, typeof(LeaderboardScoreUploaded_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2470,6 +3989,9 @@ namespace SteamNative
public int GlobalRankNew; // m_nGlobalRankNew int
public int GlobalRankPrevious; // m_nGlobalRankPrevious int
+ //
+ // Easily convert from PackSmall to LeaderboardScoreUploaded_t
+ //
public static implicit operator LeaderboardScoreUploaded_t ( LeaderboardScoreUploaded_t.PackSmall d )
{
return new LeaderboardScoreUploaded_t()
@@ -2482,6 +4004,14 @@ namespace SteamNative
GlobalRankPrevious = d.GlobalRankPrevious,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2490,7 +4020,14 @@ namespace SteamNative
{
public byte Success; // m_bSuccess uint8
public int CPlayers; // m_cPlayers int32
- public static NumberOfCurrentPlayers_t FromPointer( IntPtr p ) { return (NumberOfCurrentPlayers_t) Marshal.PtrToStructure( p, typeof(NumberOfCurrentPlayers_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static NumberOfCurrentPlayers_t FromPointer( IntPtr p )
+ {
+ return (NumberOfCurrentPlayers_t) Marshal.PtrToStructure( p, typeof(NumberOfCurrentPlayers_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2498,6 +4035,9 @@ namespace SteamNative
public byte Success; // m_bSuccess uint8
public int CPlayers; // m_cPlayers int32
+ //
+ // Easily convert from PackSmall to NumberOfCurrentPlayers_t
+ //
public static implicit operator NumberOfCurrentPlayers_t ( NumberOfCurrentPlayers_t.PackSmall d )
{
return new NumberOfCurrentPlayers_t()
@@ -2506,6 +4046,14 @@ namespace SteamNative
CPlayers = d.CPlayers,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2513,13 +4061,23 @@ namespace SteamNative
public struct UserStatsUnloaded_t
{
public ulong SteamIDUser; // m_steamIDUser class CSteamID
- public static UserStatsUnloaded_t FromPointer( IntPtr p ) { return (UserStatsUnloaded_t) Marshal.PtrToStructure( p, typeof(UserStatsUnloaded_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static UserStatsUnloaded_t FromPointer( IntPtr p )
+ {
+ return (UserStatsUnloaded_t) Marshal.PtrToStructure( p, typeof(UserStatsUnloaded_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public ulong SteamIDUser; // m_steamIDUser class CSteamID
+ //
+ // Easily convert from PackSmall to UserStatsUnloaded_t
+ //
public static implicit operator UserStatsUnloaded_t ( UserStatsUnloaded_t.PackSmall d )
{
return new UserStatsUnloaded_t()
@@ -2527,6 +4085,14 @@ namespace SteamNative
SteamIDUser = d.SteamIDUser,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2539,7 +4105,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Achieved; // m_bAchieved _Bool
public int IconHandle; // m_nIconHandle int
- public static UserAchievementIconFetched_t FromPointer( IntPtr p ) { return (UserAchievementIconFetched_t) Marshal.PtrToStructure( p, typeof(UserAchievementIconFetched_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static UserAchievementIconFetched_t FromPointer( IntPtr p )
+ {
+ return (UserAchievementIconFetched_t) Marshal.PtrToStructure( p, typeof(UserAchievementIconFetched_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2551,6 +4124,9 @@ namespace SteamNative
public bool Achieved; // m_bAchieved _Bool
public int IconHandle; // m_nIconHandle int
+ //
+ // Easily convert from PackSmall to UserAchievementIconFetched_t
+ //
public static implicit operator UserAchievementIconFetched_t ( UserAchievementIconFetched_t.PackSmall d )
{
return new UserAchievementIconFetched_t()
@@ -2561,6 +4137,14 @@ namespace SteamNative
IconHandle = d.IconHandle,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2569,7 +4153,14 @@ namespace SteamNative
{
public ulong GameID; // m_nGameID uint64
public Result Result; // m_eResult enum EResult
- public static GlobalAchievementPercentagesReady_t FromPointer( IntPtr p ) { return (GlobalAchievementPercentagesReady_t) Marshal.PtrToStructure( p, typeof(GlobalAchievementPercentagesReady_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GlobalAchievementPercentagesReady_t FromPointer( IntPtr p )
+ {
+ return (GlobalAchievementPercentagesReady_t) Marshal.PtrToStructure( p, typeof(GlobalAchievementPercentagesReady_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2577,6 +4168,9 @@ namespace SteamNative
public ulong GameID; // m_nGameID uint64
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to GlobalAchievementPercentagesReady_t
+ //
public static implicit operator GlobalAchievementPercentagesReady_t ( GlobalAchievementPercentagesReady_t.PackSmall d )
{
return new GlobalAchievementPercentagesReady_t()
@@ -2585,6 +4179,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2593,7 +4195,14 @@ namespace SteamNative
{
public Result Result; // m_eResult enum EResult
public ulong SteamLeaderboard; // m_hSteamLeaderboard SteamLeaderboard_t
- public static LeaderboardUGCSet_t FromPointer( IntPtr p ) { return (LeaderboardUGCSet_t) Marshal.PtrToStructure( p, typeof(LeaderboardUGCSet_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static LeaderboardUGCSet_t FromPointer( IntPtr p )
+ {
+ return (LeaderboardUGCSet_t) Marshal.PtrToStructure( p, typeof(LeaderboardUGCSet_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2601,6 +4210,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong SteamLeaderboard; // m_hSteamLeaderboard SteamLeaderboard_t
+ //
+ // Easily convert from PackSmall to LeaderboardUGCSet_t
+ //
public static implicit operator LeaderboardUGCSet_t ( LeaderboardUGCSet_t.PackSmall d )
{
return new LeaderboardUGCSet_t()
@@ -2609,6 +4221,14 @@ namespace SteamNative
SteamLeaderboard = d.SteamLeaderboard,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2618,7 +4238,14 @@ namespace SteamNative
public ulong GameID; // m_nGameID uint64
public Result Result; // m_eResult enum EResult
public ulong RequiredDiskSpace; // m_ulRequiredDiskSpace uint64
- public static PS3TrophiesInstalled_t FromPointer( IntPtr p ) { return (PS3TrophiesInstalled_t) Marshal.PtrToStructure( p, typeof(PS3TrophiesInstalled_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PS3TrophiesInstalled_t FromPointer( IntPtr p )
+ {
+ return (PS3TrophiesInstalled_t) Marshal.PtrToStructure( p, typeof(PS3TrophiesInstalled_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2627,6 +4254,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong RequiredDiskSpace; // m_ulRequiredDiskSpace uint64
+ //
+ // Easily convert from PackSmall to PS3TrophiesInstalled_t
+ //
public static implicit operator PS3TrophiesInstalled_t ( PS3TrophiesInstalled_t.PackSmall d )
{
return new PS3TrophiesInstalled_t()
@@ -2636,6 +4266,14 @@ namespace SteamNative
RequiredDiskSpace = d.RequiredDiskSpace,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2644,7 +4282,14 @@ namespace SteamNative
{
public ulong GameID; // m_nGameID uint64
public Result Result; // m_eResult enum EResult
- public static GlobalStatsReceived_t FromPointer( IntPtr p ) { return (GlobalStatsReceived_t) Marshal.PtrToStructure( p, typeof(GlobalStatsReceived_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GlobalStatsReceived_t FromPointer( IntPtr p )
+ {
+ return (GlobalStatsReceived_t) Marshal.PtrToStructure( p, typeof(GlobalStatsReceived_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2652,6 +4297,9 @@ namespace SteamNative
public ulong GameID; // m_nGameID uint64
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to GlobalStatsReceived_t
+ //
public static implicit operator GlobalStatsReceived_t ( GlobalStatsReceived_t.PackSmall d )
{
return new GlobalStatsReceived_t()
@@ -2660,6 +4308,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2667,13 +4323,23 @@ namespace SteamNative
public struct DlcInstalled_t
{
public uint AppID; // m_nAppID AppId_t
- public static DlcInstalled_t FromPointer( IntPtr p ) { return (DlcInstalled_t) Marshal.PtrToStructure( p, typeof(DlcInstalled_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static DlcInstalled_t FromPointer( IntPtr p )
+ {
+ return (DlcInstalled_t) Marshal.PtrToStructure( p, typeof(DlcInstalled_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public uint AppID; // m_nAppID AppId_t
+ //
+ // Easily convert from PackSmall to DlcInstalled_t
+ //
public static implicit operator DlcInstalled_t ( DlcInstalled_t.PackSmall d )
{
return new DlcInstalled_t()
@@ -2681,6 +4347,14 @@ namespace SteamNative
AppID = d.AppID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2689,7 +4363,14 @@ namespace SteamNative
{
public RegisterActivationCodeResult Result; // m_eResult enum ERegisterActivationCodeResult
public uint PackageRegistered; // m_unPackageRegistered uint32
- public static RegisterActivationCodeResponse_t FromPointer( IntPtr p ) { return (RegisterActivationCodeResponse_t) Marshal.PtrToStructure( p, typeof(RegisterActivationCodeResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static RegisterActivationCodeResponse_t FromPointer( IntPtr p )
+ {
+ return (RegisterActivationCodeResponse_t) Marshal.PtrToStructure( p, typeof(RegisterActivationCodeResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2697,6 +4378,9 @@ namespace SteamNative
public RegisterActivationCodeResult Result; // m_eResult enum ERegisterActivationCodeResult
public uint PackageRegistered; // m_unPackageRegistered uint32
+ //
+ // Easily convert from PackSmall to RegisterActivationCodeResponse_t
+ //
public static implicit operator RegisterActivationCodeResponse_t ( RegisterActivationCodeResponse_t.PackSmall d )
{
return new RegisterActivationCodeResponse_t()
@@ -2705,6 +4389,14 @@ namespace SteamNative
PackageRegistered = d.PackageRegistered,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2716,7 +4408,14 @@ namespace SteamNative
public uint CchKeyLength; // m_cchKeyLength uint32
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 240)]
public string Key; // m_rgchKey char [240]
- public static AppProofOfPurchaseKeyResponse_t FromPointer( IntPtr p ) { return (AppProofOfPurchaseKeyResponse_t) Marshal.PtrToStructure( p, typeof(AppProofOfPurchaseKeyResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static AppProofOfPurchaseKeyResponse_t FromPointer( IntPtr p )
+ {
+ return (AppProofOfPurchaseKeyResponse_t) Marshal.PtrToStructure( p, typeof(AppProofOfPurchaseKeyResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2727,6 +4426,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 240)]
public string Key; // m_rgchKey char [240]
+ //
+ // Easily convert from PackSmall to AppProofOfPurchaseKeyResponse_t
+ //
public static implicit operator AppProofOfPurchaseKeyResponse_t ( AppProofOfPurchaseKeyResponse_t.PackSmall d )
{
return new AppProofOfPurchaseKeyResponse_t()
@@ -2737,6 +4439,14 @@ namespace SteamNative
Key = d.Key,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2748,7 +4458,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
public char FileSHA; // m_FileSHA uint8 [20]
public uint Flags; // m_unFlags uint32
- public static FileDetailsResult_t FromPointer( IntPtr p ) { return (FileDetailsResult_t) Marshal.PtrToStructure( p, typeof(FileDetailsResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static FileDetailsResult_t FromPointer( IntPtr p )
+ {
+ return (FileDetailsResult_t) Marshal.PtrToStructure( p, typeof(FileDetailsResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2759,6 +4476,9 @@ namespace SteamNative
public char FileSHA; // m_FileSHA uint8 [20]
public uint Flags; // m_unFlags uint32
+ //
+ // Easily convert from PackSmall to FileDetailsResult_t
+ //
public static implicit operator FileDetailsResult_t ( FileDetailsResult_t.PackSmall d )
{
return new FileDetailsResult_t()
@@ -2769,6 +4489,14 @@ namespace SteamNative
Flags = d.Flags,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2783,7 +4511,14 @@ namespace SteamNative
public int PacketsQueuedForSend; // m_nPacketsQueuedForSend int32
public uint RemoteIP; // m_nRemoteIP uint32
public ushort RemotePort; // m_nRemotePort uint16
- public static P2PSessionState_t FromPointer( IntPtr p ) { return (P2PSessionState_t) Marshal.PtrToStructure( p, typeof(P2PSessionState_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static P2PSessionState_t FromPointer( IntPtr p )
+ {
+ return (P2PSessionState_t) Marshal.PtrToStructure( p, typeof(P2PSessionState_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2797,6 +4532,9 @@ namespace SteamNative
public uint RemoteIP; // m_nRemoteIP uint32
public ushort RemotePort; // m_nRemotePort uint16
+ //
+ // Easily convert from PackSmall to P2PSessionState_t
+ //
public static implicit operator P2PSessionState_t ( P2PSessionState_t.PackSmall d )
{
return new P2PSessionState_t()
@@ -2811,6 +4549,14 @@ namespace SteamNative
RemotePort = d.RemotePort,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2818,13 +4564,23 @@ namespace SteamNative
public struct P2PSessionRequest_t
{
public ulong SteamIDRemote; // m_steamIDRemote class CSteamID
- public static P2PSessionRequest_t FromPointer( IntPtr p ) { return (P2PSessionRequest_t) Marshal.PtrToStructure( p, typeof(P2PSessionRequest_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static P2PSessionRequest_t FromPointer( IntPtr p )
+ {
+ return (P2PSessionRequest_t) Marshal.PtrToStructure( p, typeof(P2PSessionRequest_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public ulong SteamIDRemote; // m_steamIDRemote class CSteamID
+ //
+ // Easily convert from PackSmall to P2PSessionRequest_t
+ //
public static implicit operator P2PSessionRequest_t ( P2PSessionRequest_t.PackSmall d )
{
return new P2PSessionRequest_t()
@@ -2832,6 +4588,14 @@ namespace SteamNative
SteamIDRemote = d.SteamIDRemote,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2840,7 +4604,14 @@ namespace SteamNative
{
public ulong SteamIDRemote; // m_steamIDRemote class CSteamID
public byte P2PSessionError; // m_eP2PSessionError uint8
- public static P2PSessionConnectFail_t FromPointer( IntPtr p ) { return (P2PSessionConnectFail_t) Marshal.PtrToStructure( p, typeof(P2PSessionConnectFail_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static P2PSessionConnectFail_t FromPointer( IntPtr p )
+ {
+ return (P2PSessionConnectFail_t) Marshal.PtrToStructure( p, typeof(P2PSessionConnectFail_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2848,6 +4619,9 @@ namespace SteamNative
public ulong SteamIDRemote; // m_steamIDRemote class CSteamID
public byte P2PSessionError; // m_eP2PSessionError uint8
+ //
+ // Easily convert from PackSmall to P2PSessionConnectFail_t
+ //
public static implicit operator P2PSessionConnectFail_t ( P2PSessionConnectFail_t.PackSmall d )
{
return new P2PSessionConnectFail_t()
@@ -2856,6 +4630,14 @@ namespace SteamNative
P2PSessionError = d.P2PSessionError,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2866,7 +4648,14 @@ namespace SteamNative
public uint ListenSocket; // m_hListenSocket SNetListenSocket_t
public ulong SteamIDRemote; // m_steamIDRemote class CSteamID
public int SNetSocketState; // m_eSNetSocketState int
- public static SocketStatusCallback_t FromPointer( IntPtr p ) { return (SocketStatusCallback_t) Marshal.PtrToStructure( p, typeof(SocketStatusCallback_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SocketStatusCallback_t FromPointer( IntPtr p )
+ {
+ return (SocketStatusCallback_t) Marshal.PtrToStructure( p, typeof(SocketStatusCallback_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2876,6 +4665,9 @@ namespace SteamNative
public ulong SteamIDRemote; // m_steamIDRemote class CSteamID
public int SNetSocketState; // m_eSNetSocketState int
+ //
+ // Easily convert from PackSmall to SocketStatusCallback_t
+ //
public static implicit operator SocketStatusCallback_t ( SocketStatusCallback_t.PackSmall d )
{
return new SocketStatusCallback_t()
@@ -2886,6 +4678,14 @@ namespace SteamNative
SNetSocketState = d.SNetSocketState,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2894,7 +4694,14 @@ namespace SteamNative
{
public uint Local; // m_hLocal ScreenshotHandle
public Result Result; // m_eResult enum EResult
- public static ScreenshotReady_t FromPointer( IntPtr p ) { return (ScreenshotReady_t) Marshal.PtrToStructure( p, typeof(ScreenshotReady_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static ScreenshotReady_t FromPointer( IntPtr p )
+ {
+ return (ScreenshotReady_t) Marshal.PtrToStructure( p, typeof(ScreenshotReady_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2902,6 +4709,9 @@ namespace SteamNative
public uint Local; // m_hLocal ScreenshotHandle
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to ScreenshotReady_t
+ //
public static implicit operator ScreenshotReady_t ( ScreenshotReady_t.PackSmall d )
{
return new ScreenshotReady_t()
@@ -2910,6 +4720,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2917,13 +4735,23 @@ namespace SteamNative
public struct VolumeHasChanged_t
{
public float NewVolume; // m_flNewVolume float
- public static VolumeHasChanged_t FromPointer( IntPtr p ) { return (VolumeHasChanged_t) Marshal.PtrToStructure( p, typeof(VolumeHasChanged_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static VolumeHasChanged_t FromPointer( IntPtr p )
+ {
+ return (VolumeHasChanged_t) Marshal.PtrToStructure( p, typeof(VolumeHasChanged_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public float NewVolume; // m_flNewVolume float
+ //
+ // Easily convert from PackSmall to VolumeHasChanged_t
+ //
public static implicit operator VolumeHasChanged_t ( VolumeHasChanged_t.PackSmall d )
{
return new VolumeHasChanged_t()
@@ -2931,6 +4759,14 @@ namespace SteamNative
NewVolume = d.NewVolume,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2939,7 +4775,14 @@ namespace SteamNative
{
[MarshalAs(UnmanagedType.I1)]
public bool Shuffled; // m_bShuffled _Bool
- public static MusicPlayerWantsShuffled_t FromPointer( IntPtr p ) { return (MusicPlayerWantsShuffled_t) Marshal.PtrToStructure( p, typeof(MusicPlayerWantsShuffled_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static MusicPlayerWantsShuffled_t FromPointer( IntPtr p )
+ {
+ return (MusicPlayerWantsShuffled_t) Marshal.PtrToStructure( p, typeof(MusicPlayerWantsShuffled_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2947,6 +4790,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Shuffled; // m_bShuffled _Bool
+ //
+ // Easily convert from PackSmall to MusicPlayerWantsShuffled_t
+ //
public static implicit operator MusicPlayerWantsShuffled_t ( MusicPlayerWantsShuffled_t.PackSmall d )
{
return new MusicPlayerWantsShuffled_t()
@@ -2954,6 +4800,14 @@ namespace SteamNative
Shuffled = d.Shuffled,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2962,7 +4816,14 @@ namespace SteamNative
{
[MarshalAs(UnmanagedType.I1)]
public bool Looped; // m_bLooped _Bool
- public static MusicPlayerWantsLooped_t FromPointer( IntPtr p ) { return (MusicPlayerWantsLooped_t) Marshal.PtrToStructure( p, typeof(MusicPlayerWantsLooped_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static MusicPlayerWantsLooped_t FromPointer( IntPtr p )
+ {
+ return (MusicPlayerWantsLooped_t) Marshal.PtrToStructure( p, typeof(MusicPlayerWantsLooped_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -2970,6 +4831,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Looped; // m_bLooped _Bool
+ //
+ // Easily convert from PackSmall to MusicPlayerWantsLooped_t
+ //
public static implicit operator MusicPlayerWantsLooped_t ( MusicPlayerWantsLooped_t.PackSmall d )
{
return new MusicPlayerWantsLooped_t()
@@ -2977,6 +4841,14 @@ namespace SteamNative
Looped = d.Looped,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -2984,13 +4856,23 @@ namespace SteamNative
public struct MusicPlayerWantsVolume_t
{
public float NewVolume; // m_flNewVolume float
- public static MusicPlayerWantsVolume_t FromPointer( IntPtr p ) { return (MusicPlayerWantsVolume_t) Marshal.PtrToStructure( p, typeof(MusicPlayerWantsVolume_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static MusicPlayerWantsVolume_t FromPointer( IntPtr p )
+ {
+ return (MusicPlayerWantsVolume_t) Marshal.PtrToStructure( p, typeof(MusicPlayerWantsVolume_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public float NewVolume; // m_flNewVolume float
+ //
+ // Easily convert from PackSmall to MusicPlayerWantsVolume_t
+ //
public static implicit operator MusicPlayerWantsVolume_t ( MusicPlayerWantsVolume_t.PackSmall d )
{
return new MusicPlayerWantsVolume_t()
@@ -2998,6 +4880,14 @@ namespace SteamNative
NewVolume = d.NewVolume,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3005,13 +4895,23 @@ namespace SteamNative
public struct MusicPlayerSelectsQueueEntry_t
{
public int NID; // nID int
- public static MusicPlayerSelectsQueueEntry_t FromPointer( IntPtr p ) { return (MusicPlayerSelectsQueueEntry_t) Marshal.PtrToStructure( p, typeof(MusicPlayerSelectsQueueEntry_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static MusicPlayerSelectsQueueEntry_t FromPointer( IntPtr p )
+ {
+ return (MusicPlayerSelectsQueueEntry_t) Marshal.PtrToStructure( p, typeof(MusicPlayerSelectsQueueEntry_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public int NID; // nID int
+ //
+ // Easily convert from PackSmall to MusicPlayerSelectsQueueEntry_t
+ //
public static implicit operator MusicPlayerSelectsQueueEntry_t ( MusicPlayerSelectsQueueEntry_t.PackSmall d )
{
return new MusicPlayerSelectsQueueEntry_t()
@@ -3019,6 +4919,14 @@ namespace SteamNative
NID = d.NID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3026,13 +4934,23 @@ namespace SteamNative
public struct MusicPlayerSelectsPlaylistEntry_t
{
public int NID; // nID int
- public static MusicPlayerSelectsPlaylistEntry_t FromPointer( IntPtr p ) { return (MusicPlayerSelectsPlaylistEntry_t) Marshal.PtrToStructure( p, typeof(MusicPlayerSelectsPlaylistEntry_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static MusicPlayerSelectsPlaylistEntry_t FromPointer( IntPtr p )
+ {
+ return (MusicPlayerSelectsPlaylistEntry_t) Marshal.PtrToStructure( p, typeof(MusicPlayerSelectsPlaylistEntry_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public int NID; // nID int
+ //
+ // Easily convert from PackSmall to MusicPlayerSelectsPlaylistEntry_t
+ //
public static implicit operator MusicPlayerSelectsPlaylistEntry_t ( MusicPlayerSelectsPlaylistEntry_t.PackSmall d )
{
return new MusicPlayerSelectsPlaylistEntry_t()
@@ -3040,6 +4958,14 @@ namespace SteamNative
NID = d.NID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3047,13 +4973,23 @@ namespace SteamNative
public struct MusicPlayerWantsPlayingRepeatStatus_t
{
public int PlayingRepeatStatus; // m_nPlayingRepeatStatus int
- public static MusicPlayerWantsPlayingRepeatStatus_t FromPointer( IntPtr p ) { return (MusicPlayerWantsPlayingRepeatStatus_t) Marshal.PtrToStructure( p, typeof(MusicPlayerWantsPlayingRepeatStatus_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static MusicPlayerWantsPlayingRepeatStatus_t FromPointer( IntPtr p )
+ {
+ return (MusicPlayerWantsPlayingRepeatStatus_t) Marshal.PtrToStructure( p, typeof(MusicPlayerWantsPlayingRepeatStatus_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public int PlayingRepeatStatus; // m_nPlayingRepeatStatus int
+ //
+ // Easily convert from PackSmall to MusicPlayerWantsPlayingRepeatStatus_t
+ //
public static implicit operator MusicPlayerWantsPlayingRepeatStatus_t ( MusicPlayerWantsPlayingRepeatStatus_t.PackSmall d )
{
return new MusicPlayerWantsPlayingRepeatStatus_t()
@@ -3061,6 +4997,14 @@ namespace SteamNative
PlayingRepeatStatus = d.PlayingRepeatStatus,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3073,7 +5017,14 @@ namespace SteamNative
public bool RequestSuccessful; // m_bRequestSuccessful _Bool
public HTTPStatusCode StatusCode; // m_eStatusCode enum EHTTPStatusCode
public uint BodySize; // m_unBodySize uint32
- public static HTTPRequestCompleted_t FromPointer( IntPtr p ) { return (HTTPRequestCompleted_t) Marshal.PtrToStructure( p, typeof(HTTPRequestCompleted_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTTPRequestCompleted_t FromPointer( IntPtr p )
+ {
+ return (HTTPRequestCompleted_t) Marshal.PtrToStructure( p, typeof(HTTPRequestCompleted_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3085,6 +5036,9 @@ namespace SteamNative
public HTTPStatusCode StatusCode; // m_eStatusCode enum EHTTPStatusCode
public uint BodySize; // m_unBodySize uint32
+ //
+ // Easily convert from PackSmall to HTTPRequestCompleted_t
+ //
public static implicit operator HTTPRequestCompleted_t ( HTTPRequestCompleted_t.PackSmall d )
{
return new HTTPRequestCompleted_t()
@@ -3096,6 +5050,14 @@ namespace SteamNative
BodySize = d.BodySize,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3104,7 +5066,14 @@ namespace SteamNative
{
public uint Request; // m_hRequest HTTPRequestHandle
public ulong ContextValue; // m_ulContextValue uint64
- public static HTTPRequestHeadersReceived_t FromPointer( IntPtr p ) { return (HTTPRequestHeadersReceived_t) Marshal.PtrToStructure( p, typeof(HTTPRequestHeadersReceived_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTTPRequestHeadersReceived_t FromPointer( IntPtr p )
+ {
+ return (HTTPRequestHeadersReceived_t) Marshal.PtrToStructure( p, typeof(HTTPRequestHeadersReceived_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3112,6 +5081,9 @@ namespace SteamNative
public uint Request; // m_hRequest HTTPRequestHandle
public ulong ContextValue; // m_ulContextValue uint64
+ //
+ // Easily convert from PackSmall to HTTPRequestHeadersReceived_t
+ //
public static implicit operator HTTPRequestHeadersReceived_t ( HTTPRequestHeadersReceived_t.PackSmall d )
{
return new HTTPRequestHeadersReceived_t()
@@ -3120,6 +5092,14 @@ namespace SteamNative
ContextValue = d.ContextValue,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3130,7 +5110,14 @@ namespace SteamNative
public ulong ContextValue; // m_ulContextValue uint64
public uint COffset; // m_cOffset uint32
public uint CBytesReceived; // m_cBytesReceived uint32
- public static HTTPRequestDataReceived_t FromPointer( IntPtr p ) { return (HTTPRequestDataReceived_t) Marshal.PtrToStructure( p, typeof(HTTPRequestDataReceived_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTTPRequestDataReceived_t FromPointer( IntPtr p )
+ {
+ return (HTTPRequestDataReceived_t) Marshal.PtrToStructure( p, typeof(HTTPRequestDataReceived_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3140,6 +5127,9 @@ namespace SteamNative
public uint COffset; // m_cOffset uint32
public uint CBytesReceived; // m_cBytesReceived uint32
+ //
+ // Easily convert from PackSmall to HTTPRequestDataReceived_t
+ //
public static implicit operator HTTPRequestDataReceived_t ( HTTPRequestDataReceived_t.PackSmall d )
{
return new HTTPRequestDataReceived_t()
@@ -3150,6 +5140,14 @@ namespace SteamNative
CBytesReceived = d.CBytesReceived,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3160,7 +5158,14 @@ namespace SteamNative
public ulong Context; // m_unContext uint64
public Result Result; // m_eResult enum EResult
public uint ResponseSize; // m_unResponseSize uint32
- public static SteamUnifiedMessagesSendMethodResult_t FromPointer( IntPtr p ) { return (SteamUnifiedMessagesSendMethodResult_t) Marshal.PtrToStructure( p, typeof(SteamUnifiedMessagesSendMethodResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamUnifiedMessagesSendMethodResult_t FromPointer( IntPtr p )
+ {
+ return (SteamUnifiedMessagesSendMethodResult_t) Marshal.PtrToStructure( p, typeof(SteamUnifiedMessagesSendMethodResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3170,6 +5175,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public uint ResponseSize; // m_unResponseSize uint32
+ //
+ // Easily convert from PackSmall to SteamUnifiedMessagesSendMethodResult_t
+ //
public static implicit operator SteamUnifiedMessagesSendMethodResult_t ( SteamUnifiedMessagesSendMethodResult_t.PackSmall d )
{
return new SteamUnifiedMessagesSendMethodResult_t()
@@ -3180,6 +5188,14 @@ namespace SteamNative
ResponseSize = d.ResponseSize,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3191,7 +5207,14 @@ namespace SteamNative
public float Y; // y float
[MarshalAs(UnmanagedType.I1)]
public bool BActive; // bActive _Bool
- public static ControllerAnalogActionData_t FromPointer( IntPtr p ) { return (ControllerAnalogActionData_t) Marshal.PtrToStructure( p, typeof(ControllerAnalogActionData_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static ControllerAnalogActionData_t FromPointer( IntPtr p )
+ {
+ return (ControllerAnalogActionData_t) Marshal.PtrToStructure( p, typeof(ControllerAnalogActionData_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3202,6 +5225,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool BActive; // bActive _Bool
+ //
+ // Easily convert from PackSmall to ControllerAnalogActionData_t
+ //
public static implicit operator ControllerAnalogActionData_t ( ControllerAnalogActionData_t.PackSmall d )
{
return new ControllerAnalogActionData_t()
@@ -3212,6 +5238,14 @@ namespace SteamNative
BActive = d.BActive,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3222,7 +5256,14 @@ namespace SteamNative
public bool BState; // bState _Bool
[MarshalAs(UnmanagedType.I1)]
public bool BActive; // bActive _Bool
- public static ControllerDigitalActionData_t FromPointer( IntPtr p ) { return (ControllerDigitalActionData_t) Marshal.PtrToStructure( p, typeof(ControllerDigitalActionData_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static ControllerDigitalActionData_t FromPointer( IntPtr p )
+ {
+ return (ControllerDigitalActionData_t) Marshal.PtrToStructure( p, typeof(ControllerDigitalActionData_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3232,6 +5273,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool BActive; // bActive _Bool
+ //
+ // Easily convert from PackSmall to ControllerDigitalActionData_t
+ //
public static implicit operator ControllerDigitalActionData_t ( ControllerDigitalActionData_t.PackSmall d )
{
return new ControllerDigitalActionData_t()
@@ -3240,6 +5284,14 @@ namespace SteamNative
BActive = d.BActive,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3256,7 +5308,14 @@ namespace SteamNative
public float RotVelX; // rotVelX float
public float RotVelY; // rotVelY float
public float RotVelZ; // rotVelZ float
- public static ControllerMotionData_t FromPointer( IntPtr p ) { return (ControllerMotionData_t) Marshal.PtrToStructure( p, typeof(ControllerMotionData_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static ControllerMotionData_t FromPointer( IntPtr p )
+ {
+ return (ControllerMotionData_t) Marshal.PtrToStructure( p, typeof(ControllerMotionData_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3272,6 +5331,9 @@ namespace SteamNative
public float RotVelY; // rotVelY float
public float RotVelZ; // rotVelZ float
+ //
+ // Easily convert from PackSmall to ControllerMotionData_t
+ //
public static implicit operator ControllerMotionData_t ( ControllerMotionData_t.PackSmall d )
{
return new ControllerMotionData_t()
@@ -3288,6 +5350,14 @@ namespace SteamNative
RotVelZ = d.RotVelZ,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3328,7 +5398,14 @@ namespace SteamNative
public uint VotesDown; // m_unVotesDown uint32
public float Score; // m_flScore float
public uint NumChildren; // m_unNumChildren uint32
- public static SteamUGCDetails_t FromPointer( IntPtr p ) { return (SteamUGCDetails_t) Marshal.PtrToStructure( p, typeof(SteamUGCDetails_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamUGCDetails_t FromPointer( IntPtr p )
+ {
+ return (SteamUGCDetails_t) Marshal.PtrToStructure( p, typeof(SteamUGCDetails_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3368,6 +5445,9 @@ namespace SteamNative
public float Score; // m_flScore float
public uint NumChildren; // m_unNumChildren uint32
+ //
+ // Easily convert from PackSmall to SteamUGCDetails_t
+ //
public static implicit operator SteamUGCDetails_t ( SteamUGCDetails_t.PackSmall d )
{
return new SteamUGCDetails_t()
@@ -3400,6 +5480,14 @@ namespace SteamNative
NumChildren = d.NumChildren,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3412,7 +5500,14 @@ namespace SteamNative
public uint TotalMatchingResults; // m_unTotalMatchingResults uint32
[MarshalAs(UnmanagedType.I1)]
public bool CachedData; // m_bCachedData _Bool
- public static SteamUGCQueryCompleted_t FromPointer( IntPtr p ) { return (SteamUGCQueryCompleted_t) Marshal.PtrToStructure( p, typeof(SteamUGCQueryCompleted_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamUGCQueryCompleted_t FromPointer( IntPtr p )
+ {
+ return (SteamUGCQueryCompleted_t) Marshal.PtrToStructure( p, typeof(SteamUGCQueryCompleted_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3424,6 +5519,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool CachedData; // m_bCachedData _Bool
+ //
+ // Easily convert from PackSmall to SteamUGCQueryCompleted_t
+ //
public static implicit operator SteamUGCQueryCompleted_t ( SteamUGCQueryCompleted_t.PackSmall d )
{
return new SteamUGCQueryCompleted_t()
@@ -3435,6 +5533,14 @@ namespace SteamNative
CachedData = d.CachedData,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3444,7 +5550,14 @@ namespace SteamNative
public SteamUGCDetails_t Details; // m_details struct SteamUGCDetails_t
[MarshalAs(UnmanagedType.I1)]
public bool CachedData; // m_bCachedData _Bool
- public static SteamUGCRequestUGCDetailsResult_t FromPointer( IntPtr p ) { return (SteamUGCRequestUGCDetailsResult_t) Marshal.PtrToStructure( p, typeof(SteamUGCRequestUGCDetailsResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamUGCRequestUGCDetailsResult_t FromPointer( IntPtr p )
+ {
+ return (SteamUGCRequestUGCDetailsResult_t) Marshal.PtrToStructure( p, typeof(SteamUGCRequestUGCDetailsResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3453,6 +5566,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool CachedData; // m_bCachedData _Bool
+ //
+ // Easily convert from PackSmall to SteamUGCRequestUGCDetailsResult_t
+ //
public static implicit operator SteamUGCRequestUGCDetailsResult_t ( SteamUGCRequestUGCDetailsResult_t.PackSmall d )
{
return new SteamUGCRequestUGCDetailsResult_t()
@@ -3461,6 +5577,14 @@ namespace SteamNative
CachedData = d.CachedData,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3471,7 +5595,14 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
[MarshalAs(UnmanagedType.I1)]
public bool UserNeedsToAcceptWorkshopLegalAgreement; // m_bUserNeedsToAcceptWorkshopLegalAgreement _Bool
- public static CreateItemResult_t FromPointer( IntPtr p ) { return (CreateItemResult_t) Marshal.PtrToStructure( p, typeof(CreateItemResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static CreateItemResult_t FromPointer( IntPtr p )
+ {
+ return (CreateItemResult_t) Marshal.PtrToStructure( p, typeof(CreateItemResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3481,6 +5612,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool UserNeedsToAcceptWorkshopLegalAgreement; // m_bUserNeedsToAcceptWorkshopLegalAgreement _Bool
+ //
+ // Easily convert from PackSmall to CreateItemResult_t
+ //
public static implicit operator CreateItemResult_t ( CreateItemResult_t.PackSmall d )
{
return new CreateItemResult_t()
@@ -3490,6 +5624,14 @@ namespace SteamNative
UserNeedsToAcceptWorkshopLegalAgreement = d.UserNeedsToAcceptWorkshopLegalAgreement,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3499,7 +5641,14 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
[MarshalAs(UnmanagedType.I1)]
public bool UserNeedsToAcceptWorkshopLegalAgreement; // m_bUserNeedsToAcceptWorkshopLegalAgreement _Bool
- public static SubmitItemUpdateResult_t FromPointer( IntPtr p ) { return (SubmitItemUpdateResult_t) Marshal.PtrToStructure( p, typeof(SubmitItemUpdateResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SubmitItemUpdateResult_t FromPointer( IntPtr p )
+ {
+ return (SubmitItemUpdateResult_t) Marshal.PtrToStructure( p, typeof(SubmitItemUpdateResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3508,6 +5657,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool UserNeedsToAcceptWorkshopLegalAgreement; // m_bUserNeedsToAcceptWorkshopLegalAgreement _Bool
+ //
+ // Easily convert from PackSmall to SubmitItemUpdateResult_t
+ //
public static implicit operator SubmitItemUpdateResult_t ( SubmitItemUpdateResult_t.PackSmall d )
{
return new SubmitItemUpdateResult_t()
@@ -3516,6 +5668,14 @@ namespace SteamNative
UserNeedsToAcceptWorkshopLegalAgreement = d.UserNeedsToAcceptWorkshopLegalAgreement,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3525,7 +5685,14 @@ namespace SteamNative
public uint AppID; // m_unAppID AppId_t
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public Result Result; // m_eResult enum EResult
- public static DownloadItemResult_t FromPointer( IntPtr p ) { return (DownloadItemResult_t) Marshal.PtrToStructure( p, typeof(DownloadItemResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static DownloadItemResult_t FromPointer( IntPtr p )
+ {
+ return (DownloadItemResult_t) Marshal.PtrToStructure( p, typeof(DownloadItemResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3534,6 +5701,9 @@ namespace SteamNative
public ulong PublishedFileId; // m_nPublishedFileId PublishedFileId_t
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to DownloadItemResult_t
+ //
public static implicit operator DownloadItemResult_t ( DownloadItemResult_t.PackSmall d )
{
return new DownloadItemResult_t()
@@ -3543,6 +5713,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3553,7 +5731,14 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
[MarshalAs(UnmanagedType.I1)]
public bool WasAddRequest; // m_bWasAddRequest _Bool
- public static UserFavoriteItemsListChanged_t FromPointer( IntPtr p ) { return (UserFavoriteItemsListChanged_t) Marshal.PtrToStructure( p, typeof(UserFavoriteItemsListChanged_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static UserFavoriteItemsListChanged_t FromPointer( IntPtr p )
+ {
+ return (UserFavoriteItemsListChanged_t) Marshal.PtrToStructure( p, typeof(UserFavoriteItemsListChanged_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3563,6 +5748,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool WasAddRequest; // m_bWasAddRequest _Bool
+ //
+ // Easily convert from PackSmall to UserFavoriteItemsListChanged_t
+ //
public static implicit operator UserFavoriteItemsListChanged_t ( UserFavoriteItemsListChanged_t.PackSmall d )
{
return new UserFavoriteItemsListChanged_t()
@@ -3572,6 +5760,14 @@ namespace SteamNative
WasAddRequest = d.WasAddRequest,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3582,7 +5778,14 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
[MarshalAs(UnmanagedType.I1)]
public bool VoteUp; // m_bVoteUp _Bool
- public static SetUserItemVoteResult_t FromPointer( IntPtr p ) { return (SetUserItemVoteResult_t) Marshal.PtrToStructure( p, typeof(SetUserItemVoteResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SetUserItemVoteResult_t FromPointer( IntPtr p )
+ {
+ return (SetUserItemVoteResult_t) Marshal.PtrToStructure( p, typeof(SetUserItemVoteResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3592,6 +5795,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool VoteUp; // m_bVoteUp _Bool
+ //
+ // Easily convert from PackSmall to SetUserItemVoteResult_t
+ //
public static implicit operator SetUserItemVoteResult_t ( SetUserItemVoteResult_t.PackSmall d )
{
return new SetUserItemVoteResult_t()
@@ -3601,6 +5807,14 @@ namespace SteamNative
VoteUp = d.VoteUp,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3615,7 +5829,14 @@ namespace SteamNative
public bool VotedDown; // m_bVotedDown _Bool
[MarshalAs(UnmanagedType.I1)]
public bool VoteSkipped; // m_bVoteSkipped _Bool
- public static GetUserItemVoteResult_t FromPointer( IntPtr p ) { return (GetUserItemVoteResult_t) Marshal.PtrToStructure( p, typeof(GetUserItemVoteResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GetUserItemVoteResult_t FromPointer( IntPtr p )
+ {
+ return (GetUserItemVoteResult_t) Marshal.PtrToStructure( p, typeof(GetUserItemVoteResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3629,6 +5850,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool VoteSkipped; // m_bVoteSkipped _Bool
+ //
+ // Easily convert from PackSmall to GetUserItemVoteResult_t
+ //
public static implicit operator GetUserItemVoteResult_t ( GetUserItemVoteResult_t.PackSmall d )
{
return new GetUserItemVoteResult_t()
@@ -3640,6 +5864,14 @@ namespace SteamNative
VoteSkipped = d.VoteSkipped,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3647,13 +5879,23 @@ namespace SteamNative
public struct StartPlaytimeTrackingResult_t
{
public Result Result; // m_eResult enum EResult
- public static StartPlaytimeTrackingResult_t FromPointer( IntPtr p ) { return (StartPlaytimeTrackingResult_t) Marshal.PtrToStructure( p, typeof(StartPlaytimeTrackingResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static StartPlaytimeTrackingResult_t FromPointer( IntPtr p )
+ {
+ return (StartPlaytimeTrackingResult_t) Marshal.PtrToStructure( p, typeof(StartPlaytimeTrackingResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to StartPlaytimeTrackingResult_t
+ //
public static implicit operator StartPlaytimeTrackingResult_t ( StartPlaytimeTrackingResult_t.PackSmall d )
{
return new StartPlaytimeTrackingResult_t()
@@ -3661,6 +5903,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3668,13 +5918,23 @@ namespace SteamNative
public struct StopPlaytimeTrackingResult_t
{
public Result Result; // m_eResult enum EResult
- public static StopPlaytimeTrackingResult_t FromPointer( IntPtr p ) { return (StopPlaytimeTrackingResult_t) Marshal.PtrToStructure( p, typeof(StopPlaytimeTrackingResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static StopPlaytimeTrackingResult_t FromPointer( IntPtr p )
+ {
+ return (StopPlaytimeTrackingResult_t) Marshal.PtrToStructure( p, typeof(StopPlaytimeTrackingResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to StopPlaytimeTrackingResult_t
+ //
public static implicit operator StopPlaytimeTrackingResult_t ( StopPlaytimeTrackingResult_t.PackSmall d )
{
return new StopPlaytimeTrackingResult_t()
@@ -3682,6 +5942,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3689,13 +5957,23 @@ namespace SteamNative
public struct SteamAppInstalled_t
{
public uint AppID; // m_nAppID AppId_t
- public static SteamAppInstalled_t FromPointer( IntPtr p ) { return (SteamAppInstalled_t) Marshal.PtrToStructure( p, typeof(SteamAppInstalled_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamAppInstalled_t FromPointer( IntPtr p )
+ {
+ return (SteamAppInstalled_t) Marshal.PtrToStructure( p, typeof(SteamAppInstalled_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public uint AppID; // m_nAppID AppId_t
+ //
+ // Easily convert from PackSmall to SteamAppInstalled_t
+ //
public static implicit operator SteamAppInstalled_t ( SteamAppInstalled_t.PackSmall d )
{
return new SteamAppInstalled_t()
@@ -3703,6 +5981,14 @@ namespace SteamNative
AppID = d.AppID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3710,13 +5996,23 @@ namespace SteamNative
public struct SteamAppUninstalled_t
{
public uint AppID; // m_nAppID AppId_t
- public static SteamAppUninstalled_t FromPointer( IntPtr p ) { return (SteamAppUninstalled_t) Marshal.PtrToStructure( p, typeof(SteamAppUninstalled_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamAppUninstalled_t FromPointer( IntPtr p )
+ {
+ return (SteamAppUninstalled_t) Marshal.PtrToStructure( p, typeof(SteamAppUninstalled_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public uint AppID; // m_nAppID AppId_t
+ //
+ // Easily convert from PackSmall to SteamAppUninstalled_t
+ //
public static implicit operator SteamAppUninstalled_t ( SteamAppUninstalled_t.PackSmall d )
{
return new SteamAppUninstalled_t()
@@ -3724,6 +6020,14 @@ namespace SteamNative
AppID = d.AppID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3731,13 +6035,23 @@ namespace SteamNative
public struct HTML_BrowserReady_t
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
- public static HTML_BrowserReady_t FromPointer( IntPtr p ) { return (HTML_BrowserReady_t) Marshal.PtrToStructure( p, typeof(HTML_BrowserReady_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_BrowserReady_t FromPointer( IntPtr p )
+ {
+ return (HTML_BrowserReady_t) Marshal.PtrToStructure( p, typeof(HTML_BrowserReady_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
+ //
+ // Easily convert from PackSmall to HTML_BrowserReady_t
+ //
public static implicit operator HTML_BrowserReady_t ( HTML_BrowserReady_t.PackSmall d )
{
return new HTML_BrowserReady_t()
@@ -3745,6 +6059,14 @@ namespace SteamNative
UnBrowserHandle = d.UnBrowserHandle,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3763,7 +6085,14 @@ namespace SteamNative
public uint UnScrollY; // unScrollY uint32
public float FlPageScale; // flPageScale float
public uint UnPageSerial; // unPageSerial uint32
- public static HTML_NeedsPaint_t FromPointer( IntPtr p ) { return (HTML_NeedsPaint_t) Marshal.PtrToStructure( p, typeof(HTML_NeedsPaint_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_NeedsPaint_t FromPointer( IntPtr p )
+ {
+ return (HTML_NeedsPaint_t) Marshal.PtrToStructure( p, typeof(HTML_NeedsPaint_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3781,6 +6110,9 @@ namespace SteamNative
public float FlPageScale; // flPageScale float
public uint UnPageSerial; // unPageSerial uint32
+ //
+ // Easily convert from PackSmall to HTML_NeedsPaint_t
+ //
public static implicit operator HTML_NeedsPaint_t ( HTML_NeedsPaint_t.PackSmall d )
{
return new HTML_NeedsPaint_t()
@@ -3799,6 +6131,14 @@ namespace SteamNative
UnPageSerial = d.UnPageSerial,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3811,7 +6151,14 @@ namespace SteamNative
public string PchPostData; // pchPostData const char *
[MarshalAs(UnmanagedType.I1)]
public bool BIsRedirect; // bIsRedirect _Bool
- public static HTML_StartRequest_t FromPointer( IntPtr p ) { return (HTML_StartRequest_t) Marshal.PtrToStructure( p, typeof(HTML_StartRequest_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_StartRequest_t FromPointer( IntPtr p )
+ {
+ return (HTML_StartRequest_t) Marshal.PtrToStructure( p, typeof(HTML_StartRequest_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3823,6 +6170,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool BIsRedirect; // bIsRedirect _Bool
+ //
+ // Easily convert from PackSmall to HTML_StartRequest_t
+ //
public static implicit operator HTML_StartRequest_t ( HTML_StartRequest_t.PackSmall d )
{
return new HTML_StartRequest_t()
@@ -3834,6 +6184,14 @@ namespace SteamNative
BIsRedirect = d.BIsRedirect,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3841,13 +6199,23 @@ namespace SteamNative
public struct HTML_CloseBrowser_t
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
- public static HTML_CloseBrowser_t FromPointer( IntPtr p ) { return (HTML_CloseBrowser_t) Marshal.PtrToStructure( p, typeof(HTML_CloseBrowser_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_CloseBrowser_t FromPointer( IntPtr p )
+ {
+ return (HTML_CloseBrowser_t) Marshal.PtrToStructure( p, typeof(HTML_CloseBrowser_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
+ //
+ // Easily convert from PackSmall to HTML_CloseBrowser_t
+ //
public static implicit operator HTML_CloseBrowser_t ( HTML_CloseBrowser_t.PackSmall d )
{
return new HTML_CloseBrowser_t()
@@ -3855,6 +6223,14 @@ namespace SteamNative
UnBrowserHandle = d.UnBrowserHandle,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3869,7 +6245,14 @@ namespace SteamNative
public string PchPageTitle; // pchPageTitle const char *
[MarshalAs(UnmanagedType.I1)]
public bool BNewNavigation; // bNewNavigation _Bool
- public static HTML_URLChanged_t FromPointer( IntPtr p ) { return (HTML_URLChanged_t) Marshal.PtrToStructure( p, typeof(HTML_URLChanged_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_URLChanged_t FromPointer( IntPtr p )
+ {
+ return (HTML_URLChanged_t) Marshal.PtrToStructure( p, typeof(HTML_URLChanged_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3883,6 +6266,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool BNewNavigation; // bNewNavigation _Bool
+ //
+ // Easily convert from PackSmall to HTML_URLChanged_t
+ //
public static implicit operator HTML_URLChanged_t ( HTML_URLChanged_t.PackSmall d )
{
return new HTML_URLChanged_t()
@@ -3895,6 +6281,14 @@ namespace SteamNative
BNewNavigation = d.BNewNavigation,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3904,7 +6298,14 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchURL; // pchURL const char *
public string PchPageTitle; // pchPageTitle const char *
- public static HTML_FinishedRequest_t FromPointer( IntPtr p ) { return (HTML_FinishedRequest_t) Marshal.PtrToStructure( p, typeof(HTML_FinishedRequest_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_FinishedRequest_t FromPointer( IntPtr p )
+ {
+ return (HTML_FinishedRequest_t) Marshal.PtrToStructure( p, typeof(HTML_FinishedRequest_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3913,6 +6314,9 @@ namespace SteamNative
public string PchURL; // pchURL const char *
public string PchPageTitle; // pchPageTitle const char *
+ //
+ // Easily convert from PackSmall to HTML_FinishedRequest_t
+ //
public static implicit operator HTML_FinishedRequest_t ( HTML_FinishedRequest_t.PackSmall d )
{
return new HTML_FinishedRequest_t()
@@ -3922,6 +6326,14 @@ namespace SteamNative
PchPageTitle = d.PchPageTitle,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3930,7 +6342,14 @@ namespace SteamNative
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchURL; // pchURL const char *
- public static HTML_OpenLinkInNewTab_t FromPointer( IntPtr p ) { return (HTML_OpenLinkInNewTab_t) Marshal.PtrToStructure( p, typeof(HTML_OpenLinkInNewTab_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_OpenLinkInNewTab_t FromPointer( IntPtr p )
+ {
+ return (HTML_OpenLinkInNewTab_t) Marshal.PtrToStructure( p, typeof(HTML_OpenLinkInNewTab_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3938,6 +6357,9 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchURL; // pchURL const char *
+ //
+ // Easily convert from PackSmall to HTML_OpenLinkInNewTab_t
+ //
public static implicit operator HTML_OpenLinkInNewTab_t ( HTML_OpenLinkInNewTab_t.PackSmall d )
{
return new HTML_OpenLinkInNewTab_t()
@@ -3946,6 +6368,14 @@ namespace SteamNative
PchURL = d.PchURL,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3954,7 +6384,14 @@ namespace SteamNative
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchTitle; // pchTitle const char *
- public static HTML_ChangedTitle_t FromPointer( IntPtr p ) { return (HTML_ChangedTitle_t) Marshal.PtrToStructure( p, typeof(HTML_ChangedTitle_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_ChangedTitle_t FromPointer( IntPtr p )
+ {
+ return (HTML_ChangedTitle_t) Marshal.PtrToStructure( p, typeof(HTML_ChangedTitle_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3962,6 +6399,9 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchTitle; // pchTitle const char *
+ //
+ // Easily convert from PackSmall to HTML_ChangedTitle_t
+ //
public static implicit operator HTML_ChangedTitle_t ( HTML_ChangedTitle_t.PackSmall d )
{
return new HTML_ChangedTitle_t()
@@ -3970,6 +6410,14 @@ namespace SteamNative
PchTitle = d.PchTitle,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -3979,7 +6427,14 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public uint UnResults; // unResults uint32
public uint UnCurrentMatch; // unCurrentMatch uint32
- public static HTML_SearchResults_t FromPointer( IntPtr p ) { return (HTML_SearchResults_t) Marshal.PtrToStructure( p, typeof(HTML_SearchResults_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_SearchResults_t FromPointer( IntPtr p )
+ {
+ return (HTML_SearchResults_t) Marshal.PtrToStructure( p, typeof(HTML_SearchResults_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -3988,6 +6443,9 @@ namespace SteamNative
public uint UnResults; // unResults uint32
public uint UnCurrentMatch; // unCurrentMatch uint32
+ //
+ // Easily convert from PackSmall to HTML_SearchResults_t
+ //
public static implicit operator HTML_SearchResults_t ( HTML_SearchResults_t.PackSmall d )
{
return new HTML_SearchResults_t()
@@ -3997,6 +6455,14 @@ namespace SteamNative
UnCurrentMatch = d.UnCurrentMatch,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4008,7 +6474,14 @@ namespace SteamNative
public bool BCanGoBack; // bCanGoBack _Bool
[MarshalAs(UnmanagedType.I1)]
public bool BCanGoForward; // bCanGoForward _Bool
- public static HTML_CanGoBackAndForward_t FromPointer( IntPtr p ) { return (HTML_CanGoBackAndForward_t) Marshal.PtrToStructure( p, typeof(HTML_CanGoBackAndForward_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_CanGoBackAndForward_t FromPointer( IntPtr p )
+ {
+ return (HTML_CanGoBackAndForward_t) Marshal.PtrToStructure( p, typeof(HTML_CanGoBackAndForward_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4019,6 +6492,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool BCanGoForward; // bCanGoForward _Bool
+ //
+ // Easily convert from PackSmall to HTML_CanGoBackAndForward_t
+ //
public static implicit operator HTML_CanGoBackAndForward_t ( HTML_CanGoBackAndForward_t.PackSmall d )
{
return new HTML_CanGoBackAndForward_t()
@@ -4028,6 +6504,14 @@ namespace SteamNative
BCanGoForward = d.BCanGoForward,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4041,7 +6525,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool BVisible; // bVisible _Bool
public uint UnPageSize; // unPageSize uint32
- public static HTML_HorizontalScroll_t FromPointer( IntPtr p ) { return (HTML_HorizontalScroll_t) Marshal.PtrToStructure( p, typeof(HTML_HorizontalScroll_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_HorizontalScroll_t FromPointer( IntPtr p )
+ {
+ return (HTML_HorizontalScroll_t) Marshal.PtrToStructure( p, typeof(HTML_HorizontalScroll_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4054,6 +6545,9 @@ namespace SteamNative
public bool BVisible; // bVisible _Bool
public uint UnPageSize; // unPageSize uint32
+ //
+ // Easily convert from PackSmall to HTML_HorizontalScroll_t
+ //
public static implicit operator HTML_HorizontalScroll_t ( HTML_HorizontalScroll_t.PackSmall d )
{
return new HTML_HorizontalScroll_t()
@@ -4066,6 +6560,14 @@ namespace SteamNative
UnPageSize = d.UnPageSize,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4079,7 +6581,14 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool BVisible; // bVisible _Bool
public uint UnPageSize; // unPageSize uint32
- public static HTML_VerticalScroll_t FromPointer( IntPtr p ) { return (HTML_VerticalScroll_t) Marshal.PtrToStructure( p, typeof(HTML_VerticalScroll_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_VerticalScroll_t FromPointer( IntPtr p )
+ {
+ return (HTML_VerticalScroll_t) Marshal.PtrToStructure( p, typeof(HTML_VerticalScroll_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4092,6 +6601,9 @@ namespace SteamNative
public bool BVisible; // bVisible _Bool
public uint UnPageSize; // unPageSize uint32
+ //
+ // Easily convert from PackSmall to HTML_VerticalScroll_t
+ //
public static implicit operator HTML_VerticalScroll_t ( HTML_VerticalScroll_t.PackSmall d )
{
return new HTML_VerticalScroll_t()
@@ -4104,6 +6616,14 @@ namespace SteamNative
UnPageSize = d.UnPageSize,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4118,7 +6638,14 @@ namespace SteamNative
public bool BInput; // bInput _Bool
[MarshalAs(UnmanagedType.I1)]
public bool BLiveLink; // bLiveLink _Bool
- public static HTML_LinkAtPosition_t FromPointer( IntPtr p ) { return (HTML_LinkAtPosition_t) Marshal.PtrToStructure( p, typeof(HTML_LinkAtPosition_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_LinkAtPosition_t FromPointer( IntPtr p )
+ {
+ return (HTML_LinkAtPosition_t) Marshal.PtrToStructure( p, typeof(HTML_LinkAtPosition_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4132,6 +6659,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool BLiveLink; // bLiveLink _Bool
+ //
+ // Easily convert from PackSmall to HTML_LinkAtPosition_t
+ //
public static implicit operator HTML_LinkAtPosition_t ( HTML_LinkAtPosition_t.PackSmall d )
{
return new HTML_LinkAtPosition_t()
@@ -4144,6 +6674,14 @@ namespace SteamNative
BLiveLink = d.BLiveLink,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4152,7 +6690,14 @@ namespace SteamNative
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMessage; // pchMessage const char *
- public static HTML_JSAlert_t FromPointer( IntPtr p ) { return (HTML_JSAlert_t) Marshal.PtrToStructure( p, typeof(HTML_JSAlert_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_JSAlert_t FromPointer( IntPtr p )
+ {
+ return (HTML_JSAlert_t) Marshal.PtrToStructure( p, typeof(HTML_JSAlert_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4160,6 +6705,9 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMessage; // pchMessage const char *
+ //
+ // Easily convert from PackSmall to HTML_JSAlert_t
+ //
public static implicit operator HTML_JSAlert_t ( HTML_JSAlert_t.PackSmall d )
{
return new HTML_JSAlert_t()
@@ -4168,6 +6716,14 @@ namespace SteamNative
PchMessage = d.PchMessage,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4176,7 +6732,14 @@ namespace SteamNative
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMessage; // pchMessage const char *
- public static HTML_JSConfirm_t FromPointer( IntPtr p ) { return (HTML_JSConfirm_t) Marshal.PtrToStructure( p, typeof(HTML_JSConfirm_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_JSConfirm_t FromPointer( IntPtr p )
+ {
+ return (HTML_JSConfirm_t) Marshal.PtrToStructure( p, typeof(HTML_JSConfirm_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4184,6 +6747,9 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMessage; // pchMessage const char *
+ //
+ // Easily convert from PackSmall to HTML_JSConfirm_t
+ //
public static implicit operator HTML_JSConfirm_t ( HTML_JSConfirm_t.PackSmall d )
{
return new HTML_JSConfirm_t()
@@ -4192,6 +6758,14 @@ namespace SteamNative
PchMessage = d.PchMessage,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4201,7 +6775,14 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchTitle; // pchTitle const char *
public string PchInitialFile; // pchInitialFile const char *
- public static HTML_FileOpenDialog_t FromPointer( IntPtr p ) { return (HTML_FileOpenDialog_t) Marshal.PtrToStructure( p, typeof(HTML_FileOpenDialog_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_FileOpenDialog_t FromPointer( IntPtr p )
+ {
+ return (HTML_FileOpenDialog_t) Marshal.PtrToStructure( p, typeof(HTML_FileOpenDialog_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4210,6 +6791,9 @@ namespace SteamNative
public string PchTitle; // pchTitle const char *
public string PchInitialFile; // pchInitialFile const char *
+ //
+ // Easily convert from PackSmall to HTML_FileOpenDialog_t
+ //
public static implicit operator HTML_FileOpenDialog_t ( HTML_FileOpenDialog_t.PackSmall d )
{
return new HTML_FileOpenDialog_t()
@@ -4219,6 +6803,14 @@ namespace SteamNative
PchInitialFile = d.PchInitialFile,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4232,7 +6824,14 @@ namespace SteamNative
public uint UnWide; // unWide uint32
public uint UnTall; // unTall uint32
public uint UnNewWindow_BrowserHandle; // unNewWindow_BrowserHandle HHTMLBrowser
- public static HTML_NewWindow_t FromPointer( IntPtr p ) { return (HTML_NewWindow_t) Marshal.PtrToStructure( p, typeof(HTML_NewWindow_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_NewWindow_t FromPointer( IntPtr p )
+ {
+ return (HTML_NewWindow_t) Marshal.PtrToStructure( p, typeof(HTML_NewWindow_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4245,6 +6844,9 @@ namespace SteamNative
public uint UnTall; // unTall uint32
public uint UnNewWindow_BrowserHandle; // unNewWindow_BrowserHandle HHTMLBrowser
+ //
+ // Easily convert from PackSmall to HTML_NewWindow_t
+ //
public static implicit operator HTML_NewWindow_t ( HTML_NewWindow_t.PackSmall d )
{
return new HTML_NewWindow_t()
@@ -4258,6 +6860,14 @@ namespace SteamNative
UnNewWindow_BrowserHandle = d.UnNewWindow_BrowserHandle,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4266,7 +6876,14 @@ namespace SteamNative
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public uint EMouseCursor; // eMouseCursor uint32
- public static HTML_SetCursor_t FromPointer( IntPtr p ) { return (HTML_SetCursor_t) Marshal.PtrToStructure( p, typeof(HTML_SetCursor_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_SetCursor_t FromPointer( IntPtr p )
+ {
+ return (HTML_SetCursor_t) Marshal.PtrToStructure( p, typeof(HTML_SetCursor_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4274,6 +6891,9 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public uint EMouseCursor; // eMouseCursor uint32
+ //
+ // Easily convert from PackSmall to HTML_SetCursor_t
+ //
public static implicit operator HTML_SetCursor_t ( HTML_SetCursor_t.PackSmall d )
{
return new HTML_SetCursor_t()
@@ -4282,6 +6902,14 @@ namespace SteamNative
EMouseCursor = d.EMouseCursor,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4290,7 +6918,14 @@ namespace SteamNative
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMsg; // pchMsg const char *
- public static HTML_StatusText_t FromPointer( IntPtr p ) { return (HTML_StatusText_t) Marshal.PtrToStructure( p, typeof(HTML_StatusText_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_StatusText_t FromPointer( IntPtr p )
+ {
+ return (HTML_StatusText_t) Marshal.PtrToStructure( p, typeof(HTML_StatusText_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4298,6 +6933,9 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMsg; // pchMsg const char *
+ //
+ // Easily convert from PackSmall to HTML_StatusText_t
+ //
public static implicit operator HTML_StatusText_t ( HTML_StatusText_t.PackSmall d )
{
return new HTML_StatusText_t()
@@ -4306,6 +6944,14 @@ namespace SteamNative
PchMsg = d.PchMsg,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4314,7 +6960,14 @@ namespace SteamNative
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMsg; // pchMsg const char *
- public static HTML_ShowToolTip_t FromPointer( IntPtr p ) { return (HTML_ShowToolTip_t) Marshal.PtrToStructure( p, typeof(HTML_ShowToolTip_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_ShowToolTip_t FromPointer( IntPtr p )
+ {
+ return (HTML_ShowToolTip_t) Marshal.PtrToStructure( p, typeof(HTML_ShowToolTip_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4322,6 +6975,9 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMsg; // pchMsg const char *
+ //
+ // Easily convert from PackSmall to HTML_ShowToolTip_t
+ //
public static implicit operator HTML_ShowToolTip_t ( HTML_ShowToolTip_t.PackSmall d )
{
return new HTML_ShowToolTip_t()
@@ -4330,6 +6986,14 @@ namespace SteamNative
PchMsg = d.PchMsg,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4338,7 +7002,14 @@ namespace SteamNative
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMsg; // pchMsg const char *
- public static HTML_UpdateToolTip_t FromPointer( IntPtr p ) { return (HTML_UpdateToolTip_t) Marshal.PtrToStructure( p, typeof(HTML_UpdateToolTip_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_UpdateToolTip_t FromPointer( IntPtr p )
+ {
+ return (HTML_UpdateToolTip_t) Marshal.PtrToStructure( p, typeof(HTML_UpdateToolTip_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4346,6 +7017,9 @@ namespace SteamNative
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
public string PchMsg; // pchMsg const char *
+ //
+ // Easily convert from PackSmall to HTML_UpdateToolTip_t
+ //
public static implicit operator HTML_UpdateToolTip_t ( HTML_UpdateToolTip_t.PackSmall d )
{
return new HTML_UpdateToolTip_t()
@@ -4354,6 +7028,14 @@ namespace SteamNative
PchMsg = d.PchMsg,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4361,13 +7043,23 @@ namespace SteamNative
public struct HTML_HideToolTip_t
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
- public static HTML_HideToolTip_t FromPointer( IntPtr p ) { return (HTML_HideToolTip_t) Marshal.PtrToStructure( p, typeof(HTML_HideToolTip_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static HTML_HideToolTip_t FromPointer( IntPtr p )
+ {
+ return (HTML_HideToolTip_t) Marshal.PtrToStructure( p, typeof(HTML_HideToolTip_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public uint UnBrowserHandle; // unBrowserHandle HHTMLBrowser
+ //
+ // Easily convert from PackSmall to HTML_HideToolTip_t
+ //
public static implicit operator HTML_HideToolTip_t ( HTML_HideToolTip_t.PackSmall d )
{
return new HTML_HideToolTip_t()
@@ -4375,6 +7067,14 @@ namespace SteamNative
UnBrowserHandle = d.UnBrowserHandle,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4385,7 +7085,14 @@ namespace SteamNative
public int Definition; // m_iDefinition SteamItemDef_t
public ushort Quantity; // m_unQuantity uint16
public ushort Flags; // m_unFlags uint16
- public static SteamItemDetails_t FromPointer( IntPtr p ) { return (SteamItemDetails_t) Marshal.PtrToStructure( p, typeof(SteamItemDetails_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamItemDetails_t FromPointer( IntPtr p )
+ {
+ return (SteamItemDetails_t) Marshal.PtrToStructure( p, typeof(SteamItemDetails_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4395,6 +7102,9 @@ namespace SteamNative
public ushort Quantity; // m_unQuantity uint16
public ushort Flags; // m_unFlags uint16
+ //
+ // Easily convert from PackSmall to SteamItemDetails_t
+ //
public static implicit operator SteamItemDetails_t ( SteamItemDetails_t.PackSmall d )
{
return new SteamItemDetails_t()
@@ -4405,6 +7115,14 @@ namespace SteamNative
Flags = d.Flags,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4413,7 +7131,14 @@ namespace SteamNative
{
public int Andle; // m_handle SteamInventoryResult_t
public Result Esult; // m_result enum EResult
- public static SteamInventoryResultReady_t FromPointer( IntPtr p ) { return (SteamInventoryResultReady_t) Marshal.PtrToStructure( p, typeof(SteamInventoryResultReady_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamInventoryResultReady_t FromPointer( IntPtr p )
+ {
+ return (SteamInventoryResultReady_t) Marshal.PtrToStructure( p, typeof(SteamInventoryResultReady_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4421,6 +7146,9 @@ namespace SteamNative
public int Andle; // m_handle SteamInventoryResult_t
public Result Esult; // m_result enum EResult
+ //
+ // Easily convert from PackSmall to SteamInventoryResultReady_t
+ //
public static implicit operator SteamInventoryResultReady_t ( SteamInventoryResultReady_t.PackSmall d )
{
return new SteamInventoryResultReady_t()
@@ -4429,6 +7157,14 @@ namespace SteamNative
Esult = d.Esult,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4436,13 +7172,23 @@ namespace SteamNative
public struct SteamInventoryFullUpdate_t
{
public int Andle; // m_handle SteamInventoryResult_t
- public static SteamInventoryFullUpdate_t FromPointer( IntPtr p ) { return (SteamInventoryFullUpdate_t) Marshal.PtrToStructure( p, typeof(SteamInventoryFullUpdate_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static SteamInventoryFullUpdate_t FromPointer( IntPtr p )
+ {
+ return (SteamInventoryFullUpdate_t) Marshal.PtrToStructure( p, typeof(SteamInventoryFullUpdate_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public int Andle; // m_handle SteamInventoryResult_t
+ //
+ // Easily convert from PackSmall to SteamInventoryFullUpdate_t
+ //
public static implicit operator SteamInventoryFullUpdate_t ( SteamInventoryFullUpdate_t.PackSmall d )
{
return new SteamInventoryFullUpdate_t()
@@ -4450,6 +7196,14 @@ namespace SteamNative
Andle = d.Andle,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4457,13 +7211,23 @@ namespace SteamNative
public struct BroadcastUploadStop_t
{
public BroadcastUploadResult Result; // m_eResult enum EBroadcastUploadResult
- public static BroadcastUploadStop_t FromPointer( IntPtr p ) { return (BroadcastUploadStop_t) Marshal.PtrToStructure( p, typeof(BroadcastUploadStop_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static BroadcastUploadStop_t FromPointer( IntPtr p )
+ {
+ return (BroadcastUploadStop_t) Marshal.PtrToStructure( p, typeof(BroadcastUploadStop_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public BroadcastUploadResult Result; // m_eResult enum EBroadcastUploadResult
+ //
+ // Easily convert from PackSmall to BroadcastUploadStop_t
+ //
public static implicit operator BroadcastUploadStop_t ( BroadcastUploadStop_t.PackSmall d )
{
return new BroadcastUploadStop_t()
@@ -4471,6 +7235,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4481,7 +7253,14 @@ namespace SteamNative
public uint VideoAppID; // m_unVideoAppID AppId_t
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string URL; // m_rgchURL char [256]
- public static GetVideoURLResult_t FromPointer( IntPtr p ) { return (GetVideoURLResult_t) Marshal.PtrToStructure( p, typeof(GetVideoURLResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GetVideoURLResult_t FromPointer( IntPtr p )
+ {
+ return (GetVideoURLResult_t) Marshal.PtrToStructure( p, typeof(GetVideoURLResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4491,6 +7270,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string URL; // m_rgchURL char [256]
+ //
+ // Easily convert from PackSmall to GetVideoURLResult_t
+ //
public static implicit operator GetVideoURLResult_t ( GetVideoURLResult_t.PackSmall d )
{
return new GetVideoURLResult_t()
@@ -4500,6 +7282,14 @@ namespace SteamNative
URL = d.URL,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4508,7 +7298,14 @@ namespace SteamNative
{
public byte CallbackFlags; // m_nCallbackFlags uint8
public int Callback; // m_iCallback int
- public static CCallbackBase FromPointer( IntPtr p ) { return (CCallbackBase) Marshal.PtrToStructure( p, typeof(CCallbackBase) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static CCallbackBase FromPointer( IntPtr p )
+ {
+ return (CCallbackBase) Marshal.PtrToStructure( p, typeof(CCallbackBase) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4516,6 +7313,9 @@ namespace SteamNative
public byte CallbackFlags; // m_nCallbackFlags uint8
public int Callback; // m_iCallback int
+ //
+ // Easily convert from PackSmall to CCallbackBase
+ //
public static implicit operator CCallbackBase ( CCallbackBase.PackSmall d )
{
return new CCallbackBase()
@@ -4524,6 +7324,14 @@ namespace SteamNative
Callback = d.Callback,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4532,7 +7340,14 @@ namespace SteamNative
{
public ulong SteamID; // m_SteamID class CSteamID
public ulong OwnerSteamID; // m_OwnerSteamID class CSteamID
- public static GSClientApprove_t FromPointer( IntPtr p ) { return (GSClientApprove_t) Marshal.PtrToStructure( p, typeof(GSClientApprove_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSClientApprove_t FromPointer( IntPtr p )
+ {
+ return (GSClientApprove_t) Marshal.PtrToStructure( p, typeof(GSClientApprove_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4540,6 +7355,9 @@ namespace SteamNative
public ulong SteamID; // m_SteamID class CSteamID
public ulong OwnerSteamID; // m_OwnerSteamID class CSteamID
+ //
+ // Easily convert from PackSmall to GSClientApprove_t
+ //
public static implicit operator GSClientApprove_t ( GSClientApprove_t.PackSmall d )
{
return new GSClientApprove_t()
@@ -4548,6 +7366,14 @@ namespace SteamNative
OwnerSteamID = d.OwnerSteamID,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4558,7 +7384,14 @@ namespace SteamNative
public DenyReason DenyReason; // m_eDenyReason enum EDenyReason
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
public string OptionalText; // m_rgchOptionalText char [128]
- public static GSClientDeny_t FromPointer( IntPtr p ) { return (GSClientDeny_t) Marshal.PtrToStructure( p, typeof(GSClientDeny_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSClientDeny_t FromPointer( IntPtr p )
+ {
+ return (GSClientDeny_t) Marshal.PtrToStructure( p, typeof(GSClientDeny_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4568,6 +7401,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
public string OptionalText; // m_rgchOptionalText char [128]
+ //
+ // Easily convert from PackSmall to GSClientDeny_t
+ //
public static implicit operator GSClientDeny_t ( GSClientDeny_t.PackSmall d )
{
return new GSClientDeny_t()
@@ -4577,6 +7413,14 @@ namespace SteamNative
OptionalText = d.OptionalText,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4585,7 +7429,14 @@ namespace SteamNative
{
public ulong SteamID; // m_SteamID class CSteamID
public DenyReason DenyReason; // m_eDenyReason enum EDenyReason
- public static GSClientKick_t FromPointer( IntPtr p ) { return (GSClientKick_t) Marshal.PtrToStructure( p, typeof(GSClientKick_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSClientKick_t FromPointer( IntPtr p )
+ {
+ return (GSClientKick_t) Marshal.PtrToStructure( p, typeof(GSClientKick_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4593,6 +7444,9 @@ namespace SteamNative
public ulong SteamID; // m_SteamID class CSteamID
public DenyReason DenyReason; // m_eDenyReason enum EDenyReason
+ //
+ // Easily convert from PackSmall to GSClientKick_t
+ //
public static implicit operator GSClientKick_t ( GSClientKick_t.PackSmall d )
{
return new GSClientKick_t()
@@ -4601,6 +7455,14 @@ namespace SteamNative
DenyReason = d.DenyReason,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4612,7 +7474,14 @@ namespace SteamNative
public string PchAchievement; // m_pchAchievement char [128]
[MarshalAs(UnmanagedType.I1)]
public bool Unlocked; // m_bUnlocked _Bool
- public static GSClientAchievementStatus_t FromPointer( IntPtr p ) { return (GSClientAchievementStatus_t) Marshal.PtrToStructure( p, typeof(GSClientAchievementStatus_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSClientAchievementStatus_t FromPointer( IntPtr p )
+ {
+ return (GSClientAchievementStatus_t) Marshal.PtrToStructure( p, typeof(GSClientAchievementStatus_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4623,6 +7492,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Unlocked; // m_bUnlocked _Bool
+ //
+ // Easily convert from PackSmall to GSClientAchievementStatus_t
+ //
public static implicit operator GSClientAchievementStatus_t ( GSClientAchievementStatus_t.PackSmall d )
{
return new GSClientAchievementStatus_t()
@@ -4632,6 +7504,14 @@ namespace SteamNative
Unlocked = d.Unlocked,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4639,13 +7519,23 @@ namespace SteamNative
public struct GSPolicyResponse_t
{
public byte Secure; // m_bSecure uint8
- public static GSPolicyResponse_t FromPointer( IntPtr p ) { return (GSPolicyResponse_t) Marshal.PtrToStructure( p, typeof(GSPolicyResponse_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSPolicyResponse_t FromPointer( IntPtr p )
+ {
+ return (GSPolicyResponse_t) Marshal.PtrToStructure( p, typeof(GSPolicyResponse_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public byte Secure; // m_bSecure uint8
+ //
+ // Easily convert from PackSmall to GSPolicyResponse_t
+ //
public static implicit operator GSPolicyResponse_t ( GSPolicyResponse_t.PackSmall d )
{
return new GSPolicyResponse_t()
@@ -4653,6 +7543,14 @@ namespace SteamNative
Secure = d.Secure,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4663,7 +7561,14 @@ namespace SteamNative
public int Rank; // m_nRank int32
public uint TotalConnects; // m_unTotalConnects uint32
public uint TotalMinutesPlayed; // m_unTotalMinutesPlayed uint32
- public static GSGameplayStats_t FromPointer( IntPtr p ) { return (GSGameplayStats_t) Marshal.PtrToStructure( p, typeof(GSGameplayStats_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSGameplayStats_t FromPointer( IntPtr p )
+ {
+ return (GSGameplayStats_t) Marshal.PtrToStructure( p, typeof(GSGameplayStats_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4673,6 +7578,9 @@ namespace SteamNative
public uint TotalConnects; // m_unTotalConnects uint32
public uint TotalMinutesPlayed; // m_unTotalMinutesPlayed uint32
+ //
+ // Easily convert from PackSmall to GSGameplayStats_t
+ //
public static implicit operator GSGameplayStats_t ( GSGameplayStats_t.PackSmall d )
{
return new GSGameplayStats_t()
@@ -4683,6 +7591,14 @@ namespace SteamNative
TotalMinutesPlayed = d.TotalMinutesPlayed,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4695,7 +7611,14 @@ namespace SteamNative
public bool Member; // m_bMember _Bool
[MarshalAs(UnmanagedType.I1)]
public bool Officer; // m_bOfficer _Bool
- public static GSClientGroupStatus_t FromPointer( IntPtr p ) { return (GSClientGroupStatus_t) Marshal.PtrToStructure( p, typeof(GSClientGroupStatus_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSClientGroupStatus_t FromPointer( IntPtr p )
+ {
+ return (GSClientGroupStatus_t) Marshal.PtrToStructure( p, typeof(GSClientGroupStatus_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4707,6 +7630,9 @@ namespace SteamNative
[MarshalAs(UnmanagedType.I1)]
public bool Officer; // m_bOfficer _Bool
+ //
+ // Easily convert from PackSmall to GSClientGroupStatus_t
+ //
public static implicit operator GSClientGroupStatus_t ( GSClientGroupStatus_t.PackSmall d )
{
return new GSClientGroupStatus_t()
@@ -4717,6 +7643,14 @@ namespace SteamNative
Officer = d.Officer,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4731,7 +7665,14 @@ namespace SteamNative
public ushort BannedPort; // m_usBannedPort uint16
public ulong BannedGameID; // m_ulBannedGameID uint64
public uint BanExpires; // m_unBanExpires uint32
- public static GSReputation_t FromPointer( IntPtr p ) { return (GSReputation_t) Marshal.PtrToStructure( p, typeof(GSReputation_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSReputation_t FromPointer( IntPtr p )
+ {
+ return (GSReputation_t) Marshal.PtrToStructure( p, typeof(GSReputation_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4745,6 +7686,9 @@ namespace SteamNative
public ulong BannedGameID; // m_ulBannedGameID uint64
public uint BanExpires; // m_unBanExpires uint32
+ //
+ // Easily convert from PackSmall to GSReputation_t
+ //
public static implicit operator GSReputation_t ( GSReputation_t.PackSmall d )
{
return new GSReputation_t()
@@ -4758,6 +7702,14 @@ namespace SteamNative
BanExpires = d.BanExpires,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4765,13 +7717,23 @@ namespace SteamNative
public struct AssociateWithClanResult_t
{
public Result Result; // m_eResult enum EResult
- public static AssociateWithClanResult_t FromPointer( IntPtr p ) { return (AssociateWithClanResult_t) Marshal.PtrToStructure( p, typeof(AssociateWithClanResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static AssociateWithClanResult_t FromPointer( IntPtr p )
+ {
+ return (AssociateWithClanResult_t) Marshal.PtrToStructure( p, typeof(AssociateWithClanResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public Result Result; // m_eResult enum EResult
+ //
+ // Easily convert from PackSmall to AssociateWithClanResult_t
+ //
public static implicit operator AssociateWithClanResult_t ( AssociateWithClanResult_t.PackSmall d )
{
return new AssociateWithClanResult_t()
@@ -4779,6 +7741,14 @@ namespace SteamNative
Result = d.Result,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4790,7 +7760,14 @@ namespace SteamNative
public int CPlayersThatCandidateDoesntLike; // m_cPlayersThatCandidateDoesntLike int
public int CClanPlayersThatDontLikeCandidate; // m_cClanPlayersThatDontLikeCandidate int
public ulong SteamIDCandidate; // m_SteamIDCandidate class CSteamID
- public static ComputeNewPlayerCompatibilityResult_t FromPointer( IntPtr p ) { return (ComputeNewPlayerCompatibilityResult_t) Marshal.PtrToStructure( p, typeof(ComputeNewPlayerCompatibilityResult_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static ComputeNewPlayerCompatibilityResult_t FromPointer( IntPtr p )
+ {
+ return (ComputeNewPlayerCompatibilityResult_t) Marshal.PtrToStructure( p, typeof(ComputeNewPlayerCompatibilityResult_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4801,6 +7778,9 @@ namespace SteamNative
public int CClanPlayersThatDontLikeCandidate; // m_cClanPlayersThatDontLikeCandidate int
public ulong SteamIDCandidate; // m_SteamIDCandidate class CSteamID
+ //
+ // Easily convert from PackSmall to ComputeNewPlayerCompatibilityResult_t
+ //
public static implicit operator ComputeNewPlayerCompatibilityResult_t ( ComputeNewPlayerCompatibilityResult_t.PackSmall d )
{
return new ComputeNewPlayerCompatibilityResult_t()
@@ -4812,6 +7792,14 @@ namespace SteamNative
SteamIDCandidate = d.SteamIDCandidate,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4820,7 +7808,14 @@ namespace SteamNative
{
public Result Result; // m_eResult enum EResult
public ulong SteamIDUser; // m_steamIDUser class CSteamID
- public static GSStatsReceived_t FromPointer( IntPtr p ) { return (GSStatsReceived_t) Marshal.PtrToStructure( p, typeof(GSStatsReceived_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSStatsReceived_t FromPointer( IntPtr p )
+ {
+ return (GSStatsReceived_t) Marshal.PtrToStructure( p, typeof(GSStatsReceived_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4828,6 +7823,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong SteamIDUser; // m_steamIDUser class CSteamID
+ //
+ // Easily convert from PackSmall to GSStatsReceived_t
+ //
public static implicit operator GSStatsReceived_t ( GSStatsReceived_t.PackSmall d )
{
return new GSStatsReceived_t()
@@ -4836,6 +7834,14 @@ namespace SteamNative
SteamIDUser = d.SteamIDUser,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4844,7 +7850,14 @@ namespace SteamNative
{
public Result Result; // m_eResult enum EResult
public ulong SteamIDUser; // m_steamIDUser class CSteamID
- public static GSStatsStored_t FromPointer( IntPtr p ) { return (GSStatsStored_t) Marshal.PtrToStructure( p, typeof(GSStatsStored_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSStatsStored_t FromPointer( IntPtr p )
+ {
+ return (GSStatsStored_t) Marshal.PtrToStructure( p, typeof(GSStatsStored_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
@@ -4852,6 +7865,9 @@ namespace SteamNative
public Result Result; // m_eResult enum EResult
public ulong SteamIDUser; // m_steamIDUser class CSteamID
+ //
+ // Easily convert from PackSmall to GSStatsStored_t
+ //
public static implicit operator GSStatsStored_t ( GSStatsStored_t.PackSmall d )
{
return new GSStatsStored_t()
@@ -4860,6 +7876,14 @@ namespace SteamNative
SteamIDUser = d.SteamIDUser,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
@@ -4867,13 +7891,23 @@ namespace SteamNative
public struct GSStatsUnloaded_t
{
public ulong SteamIDUser; // m_steamIDUser class CSteamID
- public static GSStatsUnloaded_t FromPointer( IntPtr p ) { return (GSStatsUnloaded_t) Marshal.PtrToStructure( p, typeof(GSStatsUnloaded_t) ); }
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static GSStatsUnloaded_t FromPointer( IntPtr p )
+ {
+ return (GSStatsUnloaded_t) Marshal.PtrToStructure( p, typeof(GSStatsUnloaded_t) );
+ }
[StructLayout( LayoutKind.Sequential, Pack = 4 )]
public struct PackSmall
{
public ulong SteamIDUser; // m_steamIDUser class CSteamID
+ //
+ // Easily convert from PackSmall to GSStatsUnloaded_t
+ //
public static implicit operator GSStatsUnloaded_t ( GSStatsUnloaded_t.PackSmall d )
{
return new GSStatsUnloaded_t()
@@ -4881,6 +7915,14 @@ namespace SteamNative
SteamIDUser = d.SteamIDUser,
};
}
+
+ //
+ // Read this struct from a pointer, usually from Native
+ //
+ public static PackSmall FromPointer( IntPtr p )
+ {
+ return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );
+ }
}
}
diff --git a/Generator/CodeWriter.Struct.cs b/Generator/CodeWriter/Struct.cs
similarity index 54%
rename from Generator/CodeWriter.Struct.cs
rename to Generator/CodeWriter/Struct.cs
index 626cb69..e63fb65 100644
--- a/Generator/CodeWriter.Struct.cs
+++ b/Generator/CodeWriter/Struct.cs
@@ -8,15 +8,23 @@ namespace Generator
{
public partial class CodeWriter
{
+ //
+ // Don't give a fuck about these classes, they just cause us trouble
+ //
+ public readonly static string[] SkipStructs = new string[]
+ {
+ "CSteamID",
+ "CSteamAPIContext",
+ "CCallResult",
+ "CCallback",
+ "ValvePackingSentinel_t"
+ };
+
void Structs()
{
foreach ( var c in def.structs )
{
- if ( c.Name == "CSteamID" ||
- c.Name == "CSteamAPIContext" ||
- c.Name == "CCallResult" ||
- c.Name == "CCallback" ||
- c.Name == "ValvePackingSentinel_t" )
+ if ( SkipStructs.Contains( c.Name ) )
continue;
if ( c.Name.Contains( "::" ) )
@@ -27,39 +35,73 @@ namespace Generator
if ( c.Fields.Any( x => x.Type.Contains( "class CSteamID" ) ) )
defaultPack = 4;
+ //
+ // Main struct
+ //
WriteLine( $"[StructLayout( LayoutKind.Sequential, Pack = {defaultPack} )]" );
StartBlock( $"public struct {c.Name}" );
-
- StructFields( c.Fields );
-
- WriteLine( $"public static {c.Name} FromPointer( IntPtr p ) {{ return ({c.Name}) Marshal.PtrToStructure( p, typeof({c.Name}) ); }}" );
-
-
- if ( defaultPack == 8 )
- defaultPack = 4;
-
- WriteLine();
- WriteLine( $"[StructLayout( LayoutKind.Sequential, Pack = {defaultPack} )]" );
- StartBlock( $"public struct PackSmall" );
- StructFields( c.Fields );
-
- WriteLine();
-
- //
- // Implicit convert from PackSmall to regular
- //
- StartBlock( $"public static implicit operator {c.Name} ( {c.Name}.PackSmall d )" );
- StartBlock( $"return new {c.Name}()" );
- foreach ( var f in c.Fields )
{
- WriteLine( $"{CleanMemberName( f.Name )} = d.{CleanMemberName( f.Name )}," );
+ //
+ // The fields
+ //
+ StructFields( c.Fields );
+
+ WriteLine();
+ WriteLine( "//" );
+ WriteLine( "// Read this struct from a pointer, usually from Native" );
+ WriteLine( "//" );
+ StartBlock( $"public static {c.Name} FromPointer( IntPtr p )" );
+ {
+ WriteLine( $"return ({c.Name}) Marshal.PtrToStructure( p, typeof({c.Name}) );" );
+ }
+ EndBlock();
+
+ if ( defaultPack == 8 )
+ defaultPack = 4;
+
+ //
+ // Small packed struct (for osx, linux)
+ //
+ WriteLine();
+ WriteLine( $"[StructLayout( LayoutKind.Sequential, Pack = {defaultPack} )]" );
+ StartBlock( $"public struct PackSmall" );
+ {
+ StructFields( c.Fields );
+
+ //
+ // Implicit convert from PackSmall to regular
+ //
+ WriteLine();
+ WriteLine( "//" );
+ WriteLine( $"// Easily convert from PackSmall to {c.Name}" );
+ WriteLine( "//" );
+ StartBlock( $"public static implicit operator {c.Name} ( {c.Name}.PackSmall d )" );
+ {
+ StartBlock( $"return new {c.Name}()" );
+ {
+ foreach ( var f in c.Fields )
+ {
+ WriteLine( $"{CleanMemberName( f.Name )} = d.{CleanMemberName( f.Name )}," );
+ }
+ }
+ EndBlock( ";" );
+ }
+ EndBlock();
+
+ WriteLine();
+ WriteLine( "//" );
+ WriteLine( "// Read this struct from a pointer, usually from Native" );
+ WriteLine( "//" );
+ StartBlock( $"public static PackSmall FromPointer( IntPtr p )" );
+ {
+ WriteLine( $"return (PackSmall) Marshal.PtrToStructure( p, typeof(PackSmall) );" );
+ }
+ EndBlock();
+
+ }
+ EndBlock();
+
}
- EndBlock( ";" );
- EndBlock();
-
- EndBlock();
-
-
EndBlock();
WriteLine();
}
@@ -123,8 +165,6 @@ namespace Generator
WriteLine( $"[MarshalAs(UnmanagedType.ByValArray, SizeConst = {num}, ArraySubType = UnmanagedType.R4)]" );
}
-
-
if ( t == "const char **" )
{
t = "IntPtr";
@@ -133,34 +173,5 @@ namespace Generator
WriteLine( $"public {t} {CleanMemberName( m.Name )}; // {m.Name} {m.Type}" );
}
}
-
- string CleanMemberName( string m )
- {
- if ( m == "m_pubParam" ) return "ParamPtr";
- if ( m == "m_cubParam" ) return "ParamCount";
- if ( m == "m_itemId" ) return "ItemId";
-
-
- var cleanName = m.Replace( "m_un", "" )
- .Replace( "m_us", "" )
- .Replace( "m_sz", "" )
- .Replace( "m_h", "" )
- .Replace( "m_pp", "" )
- .Replace( "m_e", "" )
- .Replace( "m_un", "" )
- .Replace( "m_ul", "" )
- .Replace( "m_fl", "" )
- .Replace( "m_u", "" )
- .Replace( "m_b", "" )
- .Replace( "m_i", "" )
- .Replace( "m_pub", "" )
- .Replace( "m_cub", "" )
- .Replace( "m_n", "" )
- .Replace( "m_rgch", "" )
- .Replace( "m_r", "" )
- .Replace( "m_", "" );
-
- return cleanName.Substring( 0, 1 ).ToUpper() + cleanName.Substring( 1 );
- }
}
}
diff --git a/Generator/CodeWriter/Utility.cs b/Generator/CodeWriter/Utility.cs
index 692bfba..1c7419c 100644
--- a/Generator/CodeWriter/Utility.cs
+++ b/Generator/CodeWriter/Utility.cs
@@ -30,5 +30,32 @@ namespace Generator
return name;
}
+ string CleanMemberName( string m )
+ {
+ if ( m == "m_pubParam" ) return "ParamPtr";
+ if ( m == "m_cubParam" ) return "ParamCount";
+ if ( m == "m_itemId" ) return "ItemId";
+
+ var cleanName = m.Replace( "m_un", "" )
+ .Replace( "m_us", "" )
+ .Replace( "m_sz", "" )
+ .Replace( "m_h", "" )
+ .Replace( "m_pp", "" )
+ .Replace( "m_e", "" )
+ .Replace( "m_un", "" )
+ .Replace( "m_ul", "" )
+ .Replace( "m_fl", "" )
+ .Replace( "m_u", "" )
+ .Replace( "m_b", "" )
+ .Replace( "m_i", "" )
+ .Replace( "m_pub", "" )
+ .Replace( "m_cub", "" )
+ .Replace( "m_n", "" )
+ .Replace( "m_rgch", "" )
+ .Replace( "m_r", "" )
+ .Replace( "m_", "" );
+
+ return cleanName.Substring( 0, 1 ).ToUpper() + cleanName.Substring( 1 );
+ }
}
}
diff --git a/Generator/Generator.csproj b/Generator/Generator.csproj
index 3f7a520..57f1ee2 100644
--- a/Generator/Generator.csproj
+++ b/Generator/Generator.csproj
@@ -51,7 +51,7 @@
-
+