Cleaning up publics

This commit is contained in:
Garry Newman 2019-04-16 12:17:24 +01:00
parent bf6883deb9
commit 8ceecaf1b0
27 changed files with 1038 additions and 1321 deletions

View File

@ -42,7 +42,7 @@ namespace Steamworks
{ {
var stopwatch = System.Diagnostics.Stopwatch.StartNew(); var stopwatch = System.Diagnostics.Stopwatch.StartNew();
bool finished = false; bool finished = false;
AuthSessionResponse response = AuthSessionResponse.AuthTicketInvalidAlreadyUsed; AuthResponse response = AuthResponse.AuthTicketInvalidAlreadyUsed;
// //
// Clientside calls this function, gets ticket // Clientside calls this function, gets ticket
@ -90,7 +90,7 @@ namespace Steamworks
await Task.Delay( 10 ); await Task.Delay( 10 );
} }
Assert.AreEqual( response, AuthSessionResponse.OK ); Assert.AreEqual( response, AuthResponse.OK );
finished = false; finished = false;
stopwatch = System.Diagnostics.Stopwatch.StartNew(); stopwatch = System.Diagnostics.Stopwatch.StartNew();
@ -113,7 +113,7 @@ namespace Steamworks
await Task.Delay( 10 ); await Task.Delay( 10 );
} }
Assert.AreEqual( response, AuthSessionResponse.AuthTicketCanceled ); Assert.AreEqual( response, AuthResponse.AuthTicketCanceled );
} }
} }

View File

@ -69,7 +69,7 @@ namespace Steamworks
var result = User.BeginAuthSession( ticket.Data, User.SteamId ); var result = User.BeginAuthSession( ticket.Data, User.SteamId );
Console.WriteLine( $"result: { result }" ); Console.WriteLine( $"result: { result }" );
Assert.AreEqual( result, BeginAuthSessionResult.OK ); Assert.AreEqual( result, BeginAuthResult.OK );
User.EndAuthSession( User.SteamId ); User.EndAuthSession( User.SteamId );
} }

View File

@ -31,7 +31,7 @@ namespace Steamworks
internal static void InstallEvents() internal static void InstallEvents()
{ {
new Event<PersonaStateChange_t>( x => OnPersonaStateChange?.Invoke( new Friend( x.SteamID ) ) ); new Event<FriendStateChange_t>( x => OnPersonaStateChange?.Invoke( new Friend( x.SteamID ) ) );
new Event<GameRichPresenceJoinRequested_t>( x => OnGameRichPresenceJoinRequested?.Invoke( new Friend( x.SteamIDFriend), x.Connect ) ); new Event<GameRichPresenceJoinRequested_t>( x => OnGameRichPresenceJoinRequested?.Invoke( new Friend( x.SteamIDFriend), x.Connect ) );
new Event<GameConnectedFriendChatMsg_t>( OnFriendChatMessage ); new Event<GameConnectedFriendChatMsg_t>( OnFriendChatMessage );
new Event<GameOverlayActivated_t>( x => OnGameOverlayActivated?.Invoke() ); new Event<GameOverlayActivated_t>( x => OnGameOverlayActivated?.Invoke() );
@ -108,12 +108,12 @@ namespace Steamworks
/// returns the local players name - guaranteed to not be NULL. /// returns the local players name - guaranteed to not be NULL.
/// this is the same name as on the users community profile page /// this is the same name as on the users community profile page
/// </summary> /// </summary>
public static string PersonaName => Internal.GetPersonaName(); public static string Name => Internal.GetPersonaName();
/// <summary> /// <summary>
/// gets the status of the current user /// gets the status of the current user
/// </summary> /// </summary>
public static PersonaState PersonaState => Internal.GetPersonaState(); public static FriendState State => Internal.GetPersonaState();
public static IEnumerable<Friend> GetFriends() public static IEnumerable<Friend> GetFriends()
{ {

View File

@ -36,7 +36,7 @@ namespace Steamworks
/// <summary> /// <summary>
/// User has been authed or rejected /// User has been authed or rejected
/// </summary> /// </summary>
public static event Action<SteamId, SteamId, AuthSessionResponse> OnValidateAuthTicketResponse; public static event Action<SteamId, SteamId, AuthResponse> OnValidateAuthTicketResponse;
public static void Init( AppId appid, ServerInit init ) public static void Init( AppId appid, ServerInit init )
{ {
@ -307,7 +307,7 @@ namespace Steamworks
{ {
var result = Internal.BeginAuthSession( (IntPtr)p, data.Length, steamid ); var result = Internal.BeginAuthSession( (IntPtr)p, data.Length, steamid );
if ( result == BeginAuthSessionResult.OK ) if ( result == BeginAuthResult.OK )
return true; return true;
return false; return false;

View File

@ -49,11 +49,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsSubscribedDelegate( IntPtr self ); private delegate bool BIsSubscribedDelegate( IntPtr self );
private BIsSubscribedDelegate BIsSubscribedDelegatePointer; private BIsSubscribedDelegate BIsSubscribedDelegatePointer;
#endregion #endregion
public bool BIsSubscribed() internal bool BIsSubscribed()
{ {
return BIsSubscribedDelegatePointer( Self ); return BIsSubscribedDelegatePointer( Self );
} }
@ -61,11 +61,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsLowViolenceDelegate( IntPtr self ); private delegate bool BIsLowViolenceDelegate( IntPtr self );
private BIsLowViolenceDelegate BIsLowViolenceDelegatePointer; private BIsLowViolenceDelegate BIsLowViolenceDelegatePointer;
#endregion #endregion
public bool BIsLowViolence() internal bool BIsLowViolence()
{ {
return BIsLowViolenceDelegatePointer( Self ); return BIsLowViolenceDelegatePointer( Self );
} }
@ -73,11 +73,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsCybercafeDelegate( IntPtr self ); private delegate bool BIsCybercafeDelegate( IntPtr self );
private BIsCybercafeDelegate BIsCybercafeDelegatePointer; private BIsCybercafeDelegate BIsCybercafeDelegatePointer;
#endregion #endregion
public bool BIsCybercafe() internal bool BIsCybercafe()
{ {
return BIsCybercafeDelegatePointer( Self ); return BIsCybercafeDelegatePointer( Self );
} }
@ -85,33 +85,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsVACBannedDelegate( IntPtr self ); private delegate bool BIsVACBannedDelegate( IntPtr self );
private BIsVACBannedDelegate BIsVACBannedDelegatePointer; private BIsVACBannedDelegate BIsVACBannedDelegatePointer;
#endregion #endregion
public bool BIsVACBanned() internal bool BIsVACBanned()
{ {
return BIsVACBannedDelegatePointer( Self ); return BIsVACBannedDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetCurrentGameLanguageDelegate( IntPtr self ); private delegate IntPtr GetCurrentGameLanguageDelegate( IntPtr self );
private GetCurrentGameLanguageDelegate GetCurrentGameLanguageDelegatePointer; private GetCurrentGameLanguageDelegate GetCurrentGameLanguageDelegatePointer;
#endregion #endregion
public string GetCurrentGameLanguage() internal string GetCurrentGameLanguage()
{ {
return GetString( GetCurrentGameLanguageDelegatePointer( Self ) ); return GetString( GetCurrentGameLanguageDelegatePointer( Self ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetAvailableGameLanguagesDelegate( IntPtr self ); private delegate IntPtr GetAvailableGameLanguagesDelegate( IntPtr self );
private GetAvailableGameLanguagesDelegate GetAvailableGameLanguagesDelegatePointer; private GetAvailableGameLanguagesDelegate GetAvailableGameLanguagesDelegatePointer;
#endregion #endregion
public string GetAvailableGameLanguages() internal string GetAvailableGameLanguages()
{ {
return GetString( GetAvailableGameLanguagesDelegatePointer( Self ) ); return GetString( GetAvailableGameLanguagesDelegatePointer( Self ) );
} }
@ -119,11 +119,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsSubscribedAppDelegate( IntPtr self, AppId_t appID ); private delegate bool BIsSubscribedAppDelegate( IntPtr self, AppId_t appID );
private BIsSubscribedAppDelegate BIsSubscribedAppDelegatePointer; private BIsSubscribedAppDelegate BIsSubscribedAppDelegatePointer;
#endregion #endregion
public bool BIsSubscribedApp( AppId_t appID ) internal bool BIsSubscribedApp( AppId_t appID )
{ {
return BIsSubscribedAppDelegatePointer( Self, appID ); return BIsSubscribedAppDelegatePointer( Self, appID );
} }
@ -131,22 +131,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsDlcInstalledDelegate( IntPtr self, AppId_t appID ); private delegate bool BIsDlcInstalledDelegate( IntPtr self, AppId_t appID );
private BIsDlcInstalledDelegate BIsDlcInstalledDelegatePointer; private BIsDlcInstalledDelegate BIsDlcInstalledDelegatePointer;
#endregion #endregion
public bool BIsDlcInstalled( AppId_t appID ) internal bool BIsDlcInstalled( AppId_t appID )
{ {
return BIsDlcInstalledDelegatePointer( Self, appID ); return BIsDlcInstalledDelegatePointer( Self, appID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetEarliestPurchaseUnixTimeDelegate( IntPtr self, AppId_t nAppID ); private delegate uint GetEarliestPurchaseUnixTimeDelegate( IntPtr self, AppId_t nAppID );
private GetEarliestPurchaseUnixTimeDelegate GetEarliestPurchaseUnixTimeDelegatePointer; private GetEarliestPurchaseUnixTimeDelegate GetEarliestPurchaseUnixTimeDelegatePointer;
#endregion #endregion
public uint GetEarliestPurchaseUnixTime( AppId_t nAppID ) internal uint GetEarliestPurchaseUnixTime( AppId_t nAppID )
{ {
return GetEarliestPurchaseUnixTimeDelegatePointer( Self, nAppID ); return GetEarliestPurchaseUnixTimeDelegatePointer( Self, nAppID );
} }
@ -154,22 +154,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsSubscribedFromFreeWeekendDelegate( IntPtr self ); private delegate bool BIsSubscribedFromFreeWeekendDelegate( IntPtr self );
private BIsSubscribedFromFreeWeekendDelegate BIsSubscribedFromFreeWeekendDelegatePointer; private BIsSubscribedFromFreeWeekendDelegate BIsSubscribedFromFreeWeekendDelegatePointer;
#endregion #endregion
public bool BIsSubscribedFromFreeWeekend() internal bool BIsSubscribedFromFreeWeekend()
{ {
return BIsSubscribedFromFreeWeekendDelegatePointer( Self ); return BIsSubscribedFromFreeWeekendDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetDLCCountDelegate( IntPtr self ); private delegate int GetDLCCountDelegate( IntPtr self );
private GetDLCCountDelegate GetDLCCountDelegatePointer; private GetDLCCountDelegate GetDLCCountDelegatePointer;
#endregion #endregion
public int GetDLCCount() internal int GetDLCCount()
{ {
return GetDLCCountDelegatePointer( Self ); return GetDLCCountDelegatePointer( Self );
} }
@ -177,44 +177,44 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BGetDLCDataByIndexDelegate( IntPtr self, int iDLC, ref AppId_t pAppID, [MarshalAs( UnmanagedType.U1 )] ref bool pbAvailable, StringBuilder pchName, int cchNameBufferSize ); private delegate bool BGetDLCDataByIndexDelegate( IntPtr self, int iDLC, ref AppId_t pAppID, [MarshalAs( UnmanagedType.U1 )] ref bool pbAvailable, StringBuilder pchName, int cchNameBufferSize );
private BGetDLCDataByIndexDelegate BGetDLCDataByIndexDelegatePointer; private BGetDLCDataByIndexDelegate BGetDLCDataByIndexDelegatePointer;
#endregion #endregion
public bool BGetDLCDataByIndex( int iDLC, ref AppId_t pAppID, [MarshalAs( UnmanagedType.U1 )] ref bool pbAvailable, StringBuilder pchName, int cchNameBufferSize ) internal bool BGetDLCDataByIndex( int iDLC, ref AppId_t pAppID, [MarshalAs( UnmanagedType.U1 )] ref bool pbAvailable, StringBuilder pchName, int cchNameBufferSize )
{ {
return BGetDLCDataByIndexDelegatePointer( Self, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize ); return BGetDLCDataByIndexDelegatePointer( Self, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void InstallDLCDelegate( IntPtr self, AppId_t nAppID ); private delegate void InstallDLCDelegate( IntPtr self, AppId_t nAppID );
private InstallDLCDelegate InstallDLCDelegatePointer; private InstallDLCDelegate InstallDLCDelegatePointer;
#endregion #endregion
public void InstallDLC( AppId_t nAppID ) internal void InstallDLC( AppId_t nAppID )
{ {
InstallDLCDelegatePointer( Self, nAppID ); InstallDLCDelegatePointer( Self, nAppID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void UninstallDLCDelegate( IntPtr self, AppId_t nAppID ); private delegate void UninstallDLCDelegate( IntPtr self, AppId_t nAppID );
private UninstallDLCDelegate UninstallDLCDelegatePointer; private UninstallDLCDelegate UninstallDLCDelegatePointer;
#endregion #endregion
public void UninstallDLC( AppId_t nAppID ) internal void UninstallDLC( AppId_t nAppID )
{ {
UninstallDLCDelegatePointer( Self, nAppID ); UninstallDLCDelegatePointer( Self, nAppID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RequestAppProofOfPurchaseKeyDelegate( IntPtr self, AppId_t nAppID ); private delegate void RequestAppProofOfPurchaseKeyDelegate( IntPtr self, AppId_t nAppID );
private RequestAppProofOfPurchaseKeyDelegate RequestAppProofOfPurchaseKeyDelegatePointer; private RequestAppProofOfPurchaseKeyDelegate RequestAppProofOfPurchaseKeyDelegatePointer;
#endregion #endregion
public void RequestAppProofOfPurchaseKey( AppId_t nAppID ) internal void RequestAppProofOfPurchaseKey( AppId_t nAppID )
{ {
RequestAppProofOfPurchaseKeyDelegatePointer( Self, nAppID ); RequestAppProofOfPurchaseKeyDelegatePointer( Self, nAppID );
} }
@ -222,11 +222,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetCurrentBetaNameDelegate( IntPtr self, StringBuilder pchName, int cchNameBufferSize ); private delegate bool GetCurrentBetaNameDelegate( IntPtr self, StringBuilder pchName, int cchNameBufferSize );
private GetCurrentBetaNameDelegate GetCurrentBetaNameDelegatePointer; private GetCurrentBetaNameDelegate GetCurrentBetaNameDelegatePointer;
#endregion #endregion
public bool GetCurrentBetaName( StringBuilder pchName, int cchNameBufferSize ) internal bool GetCurrentBetaName( StringBuilder pchName, int cchNameBufferSize )
{ {
return GetCurrentBetaNameDelegatePointer( Self, pchName, cchNameBufferSize ); return GetCurrentBetaNameDelegatePointer( Self, pchName, cchNameBufferSize );
} }
@ -234,33 +234,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool MarkContentCorruptDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bMissingFilesOnly ); private delegate bool MarkContentCorruptDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bMissingFilesOnly );
private MarkContentCorruptDelegate MarkContentCorruptDelegatePointer; private MarkContentCorruptDelegate MarkContentCorruptDelegatePointer;
#endregion #endregion
public bool MarkContentCorrupt( [MarshalAs( UnmanagedType.U1 )] bool bMissingFilesOnly ) internal bool MarkContentCorrupt( [MarshalAs( UnmanagedType.U1 )] bool bMissingFilesOnly )
{ {
return MarkContentCorruptDelegatePointer( Self, bMissingFilesOnly ); return MarkContentCorruptDelegatePointer( Self, bMissingFilesOnly );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetInstalledDepotsDelegate( IntPtr self, AppId_t appID, [In,Out] DepotId_t[] pvecDepots, uint cMaxDepots ); private delegate uint GetInstalledDepotsDelegate( IntPtr self, AppId_t appID, [In,Out] DepotId_t[] pvecDepots, uint cMaxDepots );
private GetInstalledDepotsDelegate GetInstalledDepotsDelegatePointer; private GetInstalledDepotsDelegate GetInstalledDepotsDelegatePointer;
#endregion #endregion
public uint GetInstalledDepots( AppId_t appID, [In,Out] DepotId_t[] pvecDepots, uint cMaxDepots ) internal uint GetInstalledDepots( AppId_t appID, [In,Out] DepotId_t[] pvecDepots, uint cMaxDepots )
{ {
return GetInstalledDepotsDelegatePointer( Self, appID, pvecDepots, cMaxDepots ); return GetInstalledDepotsDelegatePointer( Self, appID, pvecDepots, cMaxDepots );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetAppInstallDirDelegate( IntPtr self, AppId_t appID, StringBuilder pchFolder, uint cchFolderBufferSize ); private delegate uint GetAppInstallDirDelegate( IntPtr self, AppId_t appID, StringBuilder pchFolder, uint cchFolderBufferSize );
private GetAppInstallDirDelegate GetAppInstallDirDelegatePointer; private GetAppInstallDirDelegate GetAppInstallDirDelegatePointer;
#endregion #endregion
public uint GetAppInstallDir( AppId_t appID, StringBuilder pchFolder, uint cchFolderBufferSize ) internal uint GetAppInstallDir( AppId_t appID, StringBuilder pchFolder, uint cchFolderBufferSize )
{ {
return GetAppInstallDirDelegatePointer( Self, appID, pchFolder, cchFolderBufferSize ); return GetAppInstallDirDelegatePointer( Self, appID, pchFolder, cchFolderBufferSize );
} }
@ -268,22 +268,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsAppInstalledDelegate( IntPtr self, AppId_t appID ); private delegate bool BIsAppInstalledDelegate( IntPtr self, AppId_t appID );
private BIsAppInstalledDelegate BIsAppInstalledDelegatePointer; private BIsAppInstalledDelegate BIsAppInstalledDelegatePointer;
#endregion #endregion
public bool BIsAppInstalled( AppId_t appID ) internal bool BIsAppInstalled( AppId_t appID )
{ {
return BIsAppInstalledDelegatePointer( Self, appID ); return BIsAppInstalledDelegatePointer( Self, appID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetAppOwnerDelegate( IntPtr self, ref SteamId retVal ); private delegate void GetAppOwnerDelegate( IntPtr self, ref SteamId retVal );
private GetAppOwnerDelegate GetAppOwnerDelegatePointer; private GetAppOwnerDelegate GetAppOwnerDelegatePointer;
#endregion #endregion
public SteamId GetAppOwner() internal SteamId GetAppOwner()
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetAppOwnerDelegatePointer( Self, ref retVal ); GetAppOwnerDelegatePointer( Self, ref retVal );
@ -292,11 +292,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetLaunchQueryParamDelegate( IntPtr self, string pchKey ); private delegate IntPtr GetLaunchQueryParamDelegate( IntPtr self, string pchKey );
private GetLaunchQueryParamDelegate GetLaunchQueryParamDelegatePointer; private GetLaunchQueryParamDelegate GetLaunchQueryParamDelegatePointer;
#endregion #endregion
public string GetLaunchQueryParam( string pchKey ) internal string GetLaunchQueryParam( string pchKey )
{ {
return GetString( GetLaunchQueryParamDelegatePointer( Self, pchKey ) ); return GetString( GetLaunchQueryParamDelegatePointer( Self, pchKey ) );
} }
@ -304,55 +304,55 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetDlcDownloadProgressDelegate( IntPtr self, AppId_t nAppID, ref ulong punBytesDownloaded, ref ulong punBytesTotal ); private delegate bool GetDlcDownloadProgressDelegate( IntPtr self, AppId_t nAppID, ref ulong punBytesDownloaded, ref ulong punBytesTotal );
private GetDlcDownloadProgressDelegate GetDlcDownloadProgressDelegatePointer; private GetDlcDownloadProgressDelegate GetDlcDownloadProgressDelegatePointer;
#endregion #endregion
public bool GetDlcDownloadProgress( AppId_t nAppID, ref ulong punBytesDownloaded, ref ulong punBytesTotal ) internal bool GetDlcDownloadProgress( AppId_t nAppID, ref ulong punBytesDownloaded, ref ulong punBytesTotal )
{ {
return GetDlcDownloadProgressDelegatePointer( Self, nAppID, ref punBytesDownloaded, ref punBytesTotal ); return GetDlcDownloadProgressDelegatePointer( Self, nAppID, ref punBytesDownloaded, ref punBytesTotal );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetAppBuildIdDelegate( IntPtr self ); private delegate int GetAppBuildIdDelegate( IntPtr self );
private GetAppBuildIdDelegate GetAppBuildIdDelegatePointer; private GetAppBuildIdDelegate GetAppBuildIdDelegatePointer;
#endregion #endregion
public int GetAppBuildId() internal int GetAppBuildId()
{ {
return GetAppBuildIdDelegatePointer( Self ); return GetAppBuildIdDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RequestAllProofOfPurchaseKeysDelegate( IntPtr self ); private delegate void RequestAllProofOfPurchaseKeysDelegate( IntPtr self );
private RequestAllProofOfPurchaseKeysDelegate RequestAllProofOfPurchaseKeysDelegatePointer; private RequestAllProofOfPurchaseKeysDelegate RequestAllProofOfPurchaseKeysDelegatePointer;
#endregion #endregion
public void RequestAllProofOfPurchaseKeys() internal void RequestAllProofOfPurchaseKeys()
{ {
RequestAllProofOfPurchaseKeysDelegatePointer( Self ); RequestAllProofOfPurchaseKeysDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t GetFileDetailsDelegate( IntPtr self, string pszFileName ); private delegate SteamAPICall_t GetFileDetailsDelegate( IntPtr self, string pszFileName );
private GetFileDetailsDelegate GetFileDetailsDelegatePointer; private GetFileDetailsDelegate GetFileDetailsDelegatePointer;
#endregion #endregion
public async Task<FileDetailsResult_t?> GetFileDetails( string pszFileName ) internal async Task<FileDetailsResult_t?> GetFileDetails( string pszFileName )
{ {
return await (new Result<FileDetailsResult_t>( GetFileDetailsDelegatePointer( Self, pszFileName ) )).GetResult(); return await (new Result<FileDetailsResult_t>( GetFileDetailsDelegatePointer( Self, pszFileName ) )).GetResult();
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetLaunchCommandLineDelegate( IntPtr self, StringBuilder pszCommandLine, int cubCommandLine ); private delegate int GetLaunchCommandLineDelegate( IntPtr self, StringBuilder pszCommandLine, int cubCommandLine );
private GetLaunchCommandLineDelegate GetLaunchCommandLineDelegatePointer; private GetLaunchCommandLineDelegate GetLaunchCommandLineDelegatePointer;
#endregion #endregion
public int GetLaunchCommandLine( StringBuilder pszCommandLine, int cubCommandLine ) internal int GetLaunchCommandLine( StringBuilder pszCommandLine, int cubCommandLine )
{ {
return GetLaunchCommandLineDelegatePointer( Self, pszCommandLine, cubCommandLine ); return GetLaunchCommandLineDelegatePointer( Self, pszCommandLine, cubCommandLine );
} }
@ -360,11 +360,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsSubscribedFromFamilySharingDelegate( IntPtr self ); private delegate bool BIsSubscribedFromFamilySharingDelegate( IntPtr self );
private BIsSubscribedFromFamilySharingDelegate BIsSubscribedFromFamilySharingDelegatePointer; private BIsSubscribedFromFamilySharingDelegate BIsSubscribedFromFamilySharingDelegatePointer;
#endregion #endregion
public bool BIsSubscribedFromFamilySharing() internal bool BIsSubscribedFromFamilySharing()
{ {
return BIsSubscribedFromFamilySharingDelegatePointer( Self ); return BIsSubscribedFromFamilySharingDelegatePointer( Self );
} }

View File

@ -93,55 +93,55 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetPersonaNameDelegate( IntPtr self ); private delegate IntPtr GetPersonaNameDelegate( IntPtr self );
private GetPersonaNameDelegate GetPersonaNameDelegatePointer; private GetPersonaNameDelegate GetPersonaNameDelegatePointer;
#endregion #endregion
public string GetPersonaName() internal string GetPersonaName()
{ {
return GetString( GetPersonaNameDelegatePointer( Self ) ); return GetString( GetPersonaNameDelegatePointer( Self ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t SetPersonaNameDelegate( IntPtr self, string pchPersonaName ); private delegate SteamAPICall_t SetPersonaNameDelegate( IntPtr self, string pchPersonaName );
private SetPersonaNameDelegate SetPersonaNameDelegatePointer; private SetPersonaNameDelegate SetPersonaNameDelegatePointer;
#endregion #endregion
public async Task<SetPersonaNameResponse_t?> SetPersonaName( string pchPersonaName ) internal async Task<SetPersonaNameResponse_t?> SetPersonaName( string pchPersonaName )
{ {
return await (new Result<SetPersonaNameResponse_t>( SetPersonaNameDelegatePointer( Self, pchPersonaName ) )).GetResult(); return await (new Result<SetPersonaNameResponse_t>( SetPersonaNameDelegatePointer( Self, pchPersonaName ) )).GetResult();
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate PersonaState GetPersonaStateDelegate( IntPtr self ); private delegate FriendState GetPersonaStateDelegate( IntPtr self );
private GetPersonaStateDelegate GetPersonaStateDelegatePointer; private GetPersonaStateDelegate GetPersonaStateDelegatePointer;
#endregion #endregion
public PersonaState GetPersonaState() internal FriendState GetPersonaState()
{ {
return GetPersonaStateDelegatePointer( Self ); return GetPersonaStateDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendCountDelegate( IntPtr self, int iFriendFlags ); private delegate int GetFriendCountDelegate( IntPtr self, int iFriendFlags );
private GetFriendCountDelegate GetFriendCountDelegatePointer; private GetFriendCountDelegate GetFriendCountDelegatePointer;
#endregion #endregion
public int GetFriendCount( int iFriendFlags ) internal int GetFriendCount( int iFriendFlags )
{ {
return GetFriendCountDelegatePointer( Self, iFriendFlags ); return GetFriendCountDelegatePointer( Self, iFriendFlags );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetFriendByIndexDelegate( IntPtr self, ref SteamId retVal, int iFriend, int iFriendFlags ); private delegate void GetFriendByIndexDelegate( IntPtr self, ref SteamId retVal, int iFriend, int iFriendFlags );
private GetFriendByIndexDelegate GetFriendByIndexDelegatePointer; private GetFriendByIndexDelegate GetFriendByIndexDelegatePointer;
#endregion #endregion
public SteamId GetFriendByIndex( int iFriend, int iFriendFlags ) internal SteamId GetFriendByIndex( int iFriend, int iFriendFlags )
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetFriendByIndexDelegatePointer( Self, ref retVal, iFriend, iFriendFlags ); GetFriendByIndexDelegatePointer( Self, ref retVal, iFriend, iFriendFlags );
@ -150,33 +150,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate FriendRelationship GetFriendRelationshipDelegate( IntPtr self, SteamId steamIDFriend ); private delegate Relationship GetFriendRelationshipDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendRelationshipDelegate GetFriendRelationshipDelegatePointer; private GetFriendRelationshipDelegate GetFriendRelationshipDelegatePointer;
#endregion #endregion
public FriendRelationship GetFriendRelationship( SteamId steamIDFriend ) internal Relationship GetFriendRelationship( SteamId steamIDFriend )
{ {
return GetFriendRelationshipDelegatePointer( Self, steamIDFriend ); return GetFriendRelationshipDelegatePointer( Self, steamIDFriend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate PersonaState GetFriendPersonaStateDelegate( IntPtr self, SteamId steamIDFriend ); private delegate FriendState GetFriendPersonaStateDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendPersonaStateDelegate GetFriendPersonaStateDelegatePointer; private GetFriendPersonaStateDelegate GetFriendPersonaStateDelegatePointer;
#endregion #endregion
public PersonaState GetFriendPersonaState( SteamId steamIDFriend ) internal FriendState GetFriendPersonaState( SteamId steamIDFriend )
{ {
return GetFriendPersonaStateDelegatePointer( Self, steamIDFriend ); return GetFriendPersonaStateDelegatePointer( Self, steamIDFriend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetFriendPersonaNameDelegate( IntPtr self, SteamId steamIDFriend ); private delegate IntPtr GetFriendPersonaNameDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendPersonaNameDelegate GetFriendPersonaNameDelegatePointer; private GetFriendPersonaNameDelegate GetFriendPersonaNameDelegatePointer;
#endregion #endregion
public string GetFriendPersonaName( SteamId steamIDFriend ) internal string GetFriendPersonaName( SteamId steamIDFriend )
{ {
return GetString( GetFriendPersonaNameDelegatePointer( Self, steamIDFriend ) ); return GetString( GetFriendPersonaNameDelegatePointer( Self, steamIDFriend ) );
} }
@ -184,99 +184,99 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetFriendGamePlayedDelegate( IntPtr self, SteamId steamIDFriend, ref FriendGameInfo_t pFriendGameInfo ); private delegate bool GetFriendGamePlayedDelegate( IntPtr self, SteamId steamIDFriend, ref FriendGameInfo_t pFriendGameInfo );
private GetFriendGamePlayedDelegate GetFriendGamePlayedDelegatePointer; private GetFriendGamePlayedDelegate GetFriendGamePlayedDelegatePointer;
#endregion #endregion
public bool GetFriendGamePlayed( SteamId steamIDFriend, ref FriendGameInfo_t pFriendGameInfo ) internal bool GetFriendGamePlayed( SteamId steamIDFriend, ref FriendGameInfo_t pFriendGameInfo )
{ {
return GetFriendGamePlayedDelegatePointer( Self, steamIDFriend, ref pFriendGameInfo ); return GetFriendGamePlayedDelegatePointer( Self, steamIDFriend, ref pFriendGameInfo );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetFriendPersonaNameHistoryDelegate( IntPtr self, SteamId steamIDFriend, int iPersonaName ); private delegate IntPtr GetFriendPersonaNameHistoryDelegate( IntPtr self, SteamId steamIDFriend, int iPersonaName );
private GetFriendPersonaNameHistoryDelegate GetFriendPersonaNameHistoryDelegatePointer; private GetFriendPersonaNameHistoryDelegate GetFriendPersonaNameHistoryDelegatePointer;
#endregion #endregion
public string GetFriendPersonaNameHistory( SteamId steamIDFriend, int iPersonaName ) internal string GetFriendPersonaNameHistory( SteamId steamIDFriend, int iPersonaName )
{ {
return GetString( GetFriendPersonaNameHistoryDelegatePointer( Self, steamIDFriend, iPersonaName ) ); return GetString( GetFriendPersonaNameHistoryDelegatePointer( Self, steamIDFriend, iPersonaName ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendSteamLevelDelegate( IntPtr self, SteamId steamIDFriend ); private delegate int GetFriendSteamLevelDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendSteamLevelDelegate GetFriendSteamLevelDelegatePointer; private GetFriendSteamLevelDelegate GetFriendSteamLevelDelegatePointer;
#endregion #endregion
public int GetFriendSteamLevel( SteamId steamIDFriend ) internal int GetFriendSteamLevel( SteamId steamIDFriend )
{ {
return GetFriendSteamLevelDelegatePointer( Self, steamIDFriend ); return GetFriendSteamLevelDelegatePointer( Self, steamIDFriend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetPlayerNicknameDelegate( IntPtr self, SteamId steamIDPlayer ); private delegate IntPtr GetPlayerNicknameDelegate( IntPtr self, SteamId steamIDPlayer );
private GetPlayerNicknameDelegate GetPlayerNicknameDelegatePointer; private GetPlayerNicknameDelegate GetPlayerNicknameDelegatePointer;
#endregion #endregion
public string GetPlayerNickname( SteamId steamIDPlayer ) internal string GetPlayerNickname( SteamId steamIDPlayer )
{ {
return GetString( GetPlayerNicknameDelegatePointer( Self, steamIDPlayer ) ); return GetString( GetPlayerNicknameDelegatePointer( Self, steamIDPlayer ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendsGroupCountDelegate( IntPtr self ); private delegate int GetFriendsGroupCountDelegate( IntPtr self );
private GetFriendsGroupCountDelegate GetFriendsGroupCountDelegatePointer; private GetFriendsGroupCountDelegate GetFriendsGroupCountDelegatePointer;
#endregion #endregion
public int GetFriendsGroupCount() internal int GetFriendsGroupCount()
{ {
return GetFriendsGroupCountDelegatePointer( Self ); return GetFriendsGroupCountDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate FriendsGroupID_t GetFriendsGroupIDByIndexDelegate( IntPtr self, int iFG ); private delegate FriendsGroupID_t GetFriendsGroupIDByIndexDelegate( IntPtr self, int iFG );
private GetFriendsGroupIDByIndexDelegate GetFriendsGroupIDByIndexDelegatePointer; private GetFriendsGroupIDByIndexDelegate GetFriendsGroupIDByIndexDelegatePointer;
#endregion #endregion
public FriendsGroupID_t GetFriendsGroupIDByIndex( int iFG ) internal FriendsGroupID_t GetFriendsGroupIDByIndex( int iFG )
{ {
return GetFriendsGroupIDByIndexDelegatePointer( Self, iFG ); return GetFriendsGroupIDByIndexDelegatePointer( Self, iFG );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetFriendsGroupNameDelegate( IntPtr self, FriendsGroupID_t friendsGroupID ); private delegate IntPtr GetFriendsGroupNameDelegate( IntPtr self, FriendsGroupID_t friendsGroupID );
private GetFriendsGroupNameDelegate GetFriendsGroupNameDelegatePointer; private GetFriendsGroupNameDelegate GetFriendsGroupNameDelegatePointer;
#endregion #endregion
public string GetFriendsGroupName( FriendsGroupID_t friendsGroupID ) internal string GetFriendsGroupName( FriendsGroupID_t friendsGroupID )
{ {
return GetString( GetFriendsGroupNameDelegatePointer( Self, friendsGroupID ) ); return GetString( GetFriendsGroupNameDelegatePointer( Self, friendsGroupID ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendsGroupMembersCountDelegate( IntPtr self, FriendsGroupID_t friendsGroupID ); private delegate int GetFriendsGroupMembersCountDelegate( IntPtr self, FriendsGroupID_t friendsGroupID );
private GetFriendsGroupMembersCountDelegate GetFriendsGroupMembersCountDelegatePointer; private GetFriendsGroupMembersCountDelegate GetFriendsGroupMembersCountDelegatePointer;
#endregion #endregion
public int GetFriendsGroupMembersCount( FriendsGroupID_t friendsGroupID ) internal int GetFriendsGroupMembersCount( FriendsGroupID_t friendsGroupID )
{ {
return GetFriendsGroupMembersCountDelegatePointer( Self, friendsGroupID ); return GetFriendsGroupMembersCountDelegatePointer( Self, friendsGroupID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetFriendsGroupMembersListDelegate( IntPtr self, FriendsGroupID_t friendsGroupID, [In,Out] SteamId[] pOutSteamIDMembers, int nMembersCount ); private delegate void GetFriendsGroupMembersListDelegate( IntPtr self, FriendsGroupID_t friendsGroupID, [In,Out] SteamId[] pOutSteamIDMembers, int nMembersCount );
private GetFriendsGroupMembersListDelegate GetFriendsGroupMembersListDelegatePointer; private GetFriendsGroupMembersListDelegate GetFriendsGroupMembersListDelegatePointer;
#endregion #endregion
public void GetFriendsGroupMembersList( FriendsGroupID_t friendsGroupID, [In,Out] SteamId[] pOutSteamIDMembers, int nMembersCount ) internal void GetFriendsGroupMembersList( FriendsGroupID_t friendsGroupID, [In,Out] SteamId[] pOutSteamIDMembers, int nMembersCount )
{ {
GetFriendsGroupMembersListDelegatePointer( Self, friendsGroupID, pOutSteamIDMembers, nMembersCount ); GetFriendsGroupMembersListDelegatePointer( Self, friendsGroupID, pOutSteamIDMembers, nMembersCount );
} }
@ -284,33 +284,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool HasFriendDelegate( IntPtr self, SteamId steamIDFriend, int iFriendFlags ); private delegate bool HasFriendDelegate( IntPtr self, SteamId steamIDFriend, int iFriendFlags );
private HasFriendDelegate HasFriendDelegatePointer; private HasFriendDelegate HasFriendDelegatePointer;
#endregion #endregion
public bool HasFriend( SteamId steamIDFriend, int iFriendFlags ) internal bool HasFriend( SteamId steamIDFriend, int iFriendFlags )
{ {
return HasFriendDelegatePointer( Self, steamIDFriend, iFriendFlags ); return HasFriendDelegatePointer( Self, steamIDFriend, iFriendFlags );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetClanCountDelegate( IntPtr self ); private delegate int GetClanCountDelegate( IntPtr self );
private GetClanCountDelegate GetClanCountDelegatePointer; private GetClanCountDelegate GetClanCountDelegatePointer;
#endregion #endregion
public int GetClanCount() internal int GetClanCount()
{ {
return GetClanCountDelegatePointer( Self ); return GetClanCountDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetClanByIndexDelegate( IntPtr self, ref SteamId retVal, int iClan ); private delegate void GetClanByIndexDelegate( IntPtr self, ref SteamId retVal, int iClan );
private GetClanByIndexDelegate GetClanByIndexDelegatePointer; private GetClanByIndexDelegate GetClanByIndexDelegatePointer;
#endregion #endregion
public SteamId GetClanByIndex( int iClan ) internal SteamId GetClanByIndex( int iClan )
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetClanByIndexDelegatePointer( Self, ref retVal, iClan ); GetClanByIndexDelegatePointer( Self, ref retVal, iClan );
@ -319,22 +319,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetClanNameDelegate( IntPtr self, SteamId steamIDClan ); private delegate IntPtr GetClanNameDelegate( IntPtr self, SteamId steamIDClan );
private GetClanNameDelegate GetClanNameDelegatePointer; private GetClanNameDelegate GetClanNameDelegatePointer;
#endregion #endregion
public string GetClanName( SteamId steamIDClan ) internal string GetClanName( SteamId steamIDClan )
{ {
return GetString( GetClanNameDelegatePointer( Self, steamIDClan ) ); return GetString( GetClanNameDelegatePointer( Self, steamIDClan ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetClanTagDelegate( IntPtr self, SteamId steamIDClan ); private delegate IntPtr GetClanTagDelegate( IntPtr self, SteamId steamIDClan );
private GetClanTagDelegate GetClanTagDelegatePointer; private GetClanTagDelegate GetClanTagDelegatePointer;
#endregion #endregion
public string GetClanTag( SteamId steamIDClan ) internal string GetClanTag( SteamId steamIDClan )
{ {
return GetString( GetClanTagDelegatePointer( Self, steamIDClan ) ); return GetString( GetClanTagDelegatePointer( Self, steamIDClan ) );
} }
@ -342,44 +342,44 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetClanActivityCountsDelegate( IntPtr self, SteamId steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting ); private delegate bool GetClanActivityCountsDelegate( IntPtr self, SteamId steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting );
private GetClanActivityCountsDelegate GetClanActivityCountsDelegatePointer; private GetClanActivityCountsDelegate GetClanActivityCountsDelegatePointer;
#endregion #endregion
public bool GetClanActivityCounts( SteamId steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting ) internal bool GetClanActivityCounts( SteamId steamIDClan, ref int pnOnline, ref int pnInGame, ref int pnChatting )
{ {
return GetClanActivityCountsDelegatePointer( Self, steamIDClan, ref pnOnline, ref pnInGame, ref pnChatting ); return GetClanActivityCountsDelegatePointer( Self, steamIDClan, ref pnOnline, ref pnInGame, ref pnChatting );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t DownloadClanActivityCountsDelegate( IntPtr self, [In,Out] SteamId[] psteamIDClans, int cClansToRequest ); private delegate SteamAPICall_t DownloadClanActivityCountsDelegate( IntPtr self, [In,Out] SteamId[] psteamIDClans, int cClansToRequest );
private DownloadClanActivityCountsDelegate DownloadClanActivityCountsDelegatePointer; private DownloadClanActivityCountsDelegate DownloadClanActivityCountsDelegatePointer;
#endregion #endregion
public async Task<DownloadClanActivityCountsResult_t?> DownloadClanActivityCounts( [In,Out] SteamId[] psteamIDClans, int cClansToRequest ) internal async Task<DownloadClanActivityCountsResult_t?> DownloadClanActivityCounts( [In,Out] SteamId[] psteamIDClans, int cClansToRequest )
{ {
return await (new Result<DownloadClanActivityCountsResult_t>( DownloadClanActivityCountsDelegatePointer( Self, psteamIDClans, cClansToRequest ) )).GetResult(); return await (new Result<DownloadClanActivityCountsResult_t>( DownloadClanActivityCountsDelegatePointer( Self, psteamIDClans, cClansToRequest ) )).GetResult();
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendCountFromSourceDelegate( IntPtr self, SteamId steamIDSource ); private delegate int GetFriendCountFromSourceDelegate( IntPtr self, SteamId steamIDSource );
private GetFriendCountFromSourceDelegate GetFriendCountFromSourceDelegatePointer; private GetFriendCountFromSourceDelegate GetFriendCountFromSourceDelegatePointer;
#endregion #endregion
public int GetFriendCountFromSource( SteamId steamIDSource ) internal int GetFriendCountFromSource( SteamId steamIDSource )
{ {
return GetFriendCountFromSourceDelegatePointer( Self, steamIDSource ); return GetFriendCountFromSourceDelegatePointer( Self, steamIDSource );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetFriendFromSourceByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDSource, int iFriend ); private delegate void GetFriendFromSourceByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDSource, int iFriend );
private GetFriendFromSourceByIndexDelegate GetFriendFromSourceByIndexDelegatePointer; private GetFriendFromSourceByIndexDelegate GetFriendFromSourceByIndexDelegatePointer;
#endregion #endregion
public SteamId GetFriendFromSourceByIndex( SteamId steamIDSource, int iFriend ) internal SteamId GetFriendFromSourceByIndex( SteamId steamIDSource, int iFriend )
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetFriendFromSourceByIndexDelegatePointer( Self, ref retVal, steamIDSource, iFriend ); GetFriendFromSourceByIndexDelegatePointer( Self, ref retVal, steamIDSource, iFriend );
@ -389,121 +389,121 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsUserInSourceDelegate( IntPtr self, SteamId steamIDUser, SteamId steamIDSource ); private delegate bool IsUserInSourceDelegate( IntPtr self, SteamId steamIDUser, SteamId steamIDSource );
private IsUserInSourceDelegate IsUserInSourceDelegatePointer; private IsUserInSourceDelegate IsUserInSourceDelegatePointer;
#endregion #endregion
public bool IsUserInSource( SteamId steamIDUser, SteamId steamIDSource ) internal bool IsUserInSource( SteamId steamIDUser, SteamId steamIDSource )
{ {
return IsUserInSourceDelegatePointer( Self, steamIDUser, steamIDSource ); return IsUserInSourceDelegatePointer( Self, steamIDUser, steamIDSource );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetInGameVoiceSpeakingDelegate( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bSpeaking ); private delegate void SetInGameVoiceSpeakingDelegate( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bSpeaking );
private SetInGameVoiceSpeakingDelegate SetInGameVoiceSpeakingDelegatePointer; private SetInGameVoiceSpeakingDelegate SetInGameVoiceSpeakingDelegatePointer;
#endregion #endregion
public void SetInGameVoiceSpeaking( SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bSpeaking ) internal void SetInGameVoiceSpeaking( SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bSpeaking )
{ {
SetInGameVoiceSpeakingDelegatePointer( Self, steamIDUser, bSpeaking ); SetInGameVoiceSpeakingDelegatePointer( Self, steamIDUser, bSpeaking );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ActivateGameOverlayDelegate( IntPtr self, string pchDialog ); private delegate void ActivateGameOverlayDelegate( IntPtr self, string pchDialog );
private ActivateGameOverlayDelegate ActivateGameOverlayDelegatePointer; private ActivateGameOverlayDelegate ActivateGameOverlayDelegatePointer;
#endregion #endregion
public void ActivateGameOverlay( string pchDialog ) internal void ActivateGameOverlay( string pchDialog )
{ {
ActivateGameOverlayDelegatePointer( Self, pchDialog ); ActivateGameOverlayDelegatePointer( Self, pchDialog );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ActivateGameOverlayToUserDelegate( IntPtr self, string pchDialog, SteamId steamID ); private delegate void ActivateGameOverlayToUserDelegate( IntPtr self, string pchDialog, SteamId steamID );
private ActivateGameOverlayToUserDelegate ActivateGameOverlayToUserDelegatePointer; private ActivateGameOverlayToUserDelegate ActivateGameOverlayToUserDelegatePointer;
#endregion #endregion
public void ActivateGameOverlayToUser( string pchDialog, SteamId steamID ) internal void ActivateGameOverlayToUser( string pchDialog, SteamId steamID )
{ {
ActivateGameOverlayToUserDelegatePointer( Self, pchDialog, steamID ); ActivateGameOverlayToUserDelegatePointer( Self, pchDialog, steamID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ActivateGameOverlayToWebPageDelegate( IntPtr self, string pchURL, ActivateGameOverlayToWebPageMode eMode ); private delegate void ActivateGameOverlayToWebPageDelegate( IntPtr self, string pchURL, ActivateGameOverlayToWebPageMode eMode );
private ActivateGameOverlayToWebPageDelegate ActivateGameOverlayToWebPageDelegatePointer; private ActivateGameOverlayToWebPageDelegate ActivateGameOverlayToWebPageDelegatePointer;
#endregion #endregion
public void ActivateGameOverlayToWebPage( string pchURL, ActivateGameOverlayToWebPageMode eMode ) internal void ActivateGameOverlayToWebPage( string pchURL, ActivateGameOverlayToWebPageMode eMode )
{ {
ActivateGameOverlayToWebPageDelegatePointer( Self, pchURL, eMode ); ActivateGameOverlayToWebPageDelegatePointer( Self, pchURL, eMode );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ActivateGameOverlayToStoreDelegate( IntPtr self, AppId_t nAppID, OverlayToStoreFlag eFlag ); private delegate void ActivateGameOverlayToStoreDelegate( IntPtr self, AppId_t nAppID, OverlayToStoreFlag eFlag );
private ActivateGameOverlayToStoreDelegate ActivateGameOverlayToStoreDelegatePointer; private ActivateGameOverlayToStoreDelegate ActivateGameOverlayToStoreDelegatePointer;
#endregion #endregion
public void ActivateGameOverlayToStore( AppId_t nAppID, OverlayToStoreFlag eFlag ) internal void ActivateGameOverlayToStore( AppId_t nAppID, OverlayToStoreFlag eFlag )
{ {
ActivateGameOverlayToStoreDelegatePointer( Self, nAppID, eFlag ); ActivateGameOverlayToStoreDelegatePointer( Self, nAppID, eFlag );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetPlayedWithDelegate( IntPtr self, SteamId steamIDUserPlayedWith ); private delegate void SetPlayedWithDelegate( IntPtr self, SteamId steamIDUserPlayedWith );
private SetPlayedWithDelegate SetPlayedWithDelegatePointer; private SetPlayedWithDelegate SetPlayedWithDelegatePointer;
#endregion #endregion
public void SetPlayedWith( SteamId steamIDUserPlayedWith ) internal void SetPlayedWith( SteamId steamIDUserPlayedWith )
{ {
SetPlayedWithDelegatePointer( Self, steamIDUserPlayedWith ); SetPlayedWithDelegatePointer( Self, steamIDUserPlayedWith );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ActivateGameOverlayInviteDialogDelegate( IntPtr self, SteamId steamIDLobby ); private delegate void ActivateGameOverlayInviteDialogDelegate( IntPtr self, SteamId steamIDLobby );
private ActivateGameOverlayInviteDialogDelegate ActivateGameOverlayInviteDialogDelegatePointer; private ActivateGameOverlayInviteDialogDelegate ActivateGameOverlayInviteDialogDelegatePointer;
#endregion #endregion
public void ActivateGameOverlayInviteDialog( SteamId steamIDLobby ) internal void ActivateGameOverlayInviteDialog( SteamId steamIDLobby )
{ {
ActivateGameOverlayInviteDialogDelegatePointer( Self, steamIDLobby ); ActivateGameOverlayInviteDialogDelegatePointer( Self, steamIDLobby );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetSmallFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend ); private delegate int GetSmallFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private GetSmallFriendAvatarDelegate GetSmallFriendAvatarDelegatePointer; private GetSmallFriendAvatarDelegate GetSmallFriendAvatarDelegatePointer;
#endregion #endregion
public int GetSmallFriendAvatar( SteamId steamIDFriend ) internal int GetSmallFriendAvatar( SteamId steamIDFriend )
{ {
return GetSmallFriendAvatarDelegatePointer( Self, steamIDFriend ); return GetSmallFriendAvatarDelegatePointer( Self, steamIDFriend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetMediumFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend ); private delegate int GetMediumFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private GetMediumFriendAvatarDelegate GetMediumFriendAvatarDelegatePointer; private GetMediumFriendAvatarDelegate GetMediumFriendAvatarDelegatePointer;
#endregion #endregion
public int GetMediumFriendAvatar( SteamId steamIDFriend ) internal int GetMediumFriendAvatar( SteamId steamIDFriend )
{ {
return GetMediumFriendAvatarDelegatePointer( Self, steamIDFriend ); return GetMediumFriendAvatarDelegatePointer( Self, steamIDFriend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetLargeFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend ); private delegate int GetLargeFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private GetLargeFriendAvatarDelegate GetLargeFriendAvatarDelegatePointer; private GetLargeFriendAvatarDelegate GetLargeFriendAvatarDelegatePointer;
#endregion #endregion
public int GetLargeFriendAvatar( SteamId steamIDFriend ) internal int GetLargeFriendAvatar( SteamId steamIDFriend )
{ {
return GetLargeFriendAvatarDelegatePointer( Self, steamIDFriend ); return GetLargeFriendAvatarDelegatePointer( Self, steamIDFriend );
} }
@ -511,33 +511,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool RequestUserInformationDelegate( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bRequireNameOnly ); private delegate bool RequestUserInformationDelegate( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bRequireNameOnly );
private RequestUserInformationDelegate RequestUserInformationDelegatePointer; private RequestUserInformationDelegate RequestUserInformationDelegatePointer;
#endregion #endregion
public bool RequestUserInformation( SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bRequireNameOnly ) internal bool RequestUserInformation( SteamId steamIDUser, [MarshalAs( UnmanagedType.U1 )] bool bRequireNameOnly )
{ {
return RequestUserInformationDelegatePointer( Self, steamIDUser, bRequireNameOnly ); return RequestUserInformationDelegatePointer( Self, steamIDUser, bRequireNameOnly );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t RequestClanOfficerListDelegate( IntPtr self, SteamId steamIDClan ); private delegate SteamAPICall_t RequestClanOfficerListDelegate( IntPtr self, SteamId steamIDClan );
private RequestClanOfficerListDelegate RequestClanOfficerListDelegatePointer; private RequestClanOfficerListDelegate RequestClanOfficerListDelegatePointer;
#endregion #endregion
public async Task<ClanOfficerListResponse_t?> RequestClanOfficerList( SteamId steamIDClan ) internal async Task<ClanOfficerListResponse_t?> RequestClanOfficerList( SteamId steamIDClan )
{ {
return await (new Result<ClanOfficerListResponse_t>( RequestClanOfficerListDelegatePointer( Self, steamIDClan ) )).GetResult(); return await (new Result<ClanOfficerListResponse_t>( RequestClanOfficerListDelegatePointer( Self, steamIDClan ) )).GetResult();
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetClanOwnerDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan ); private delegate void GetClanOwnerDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan );
private GetClanOwnerDelegate GetClanOwnerDelegatePointer; private GetClanOwnerDelegate GetClanOwnerDelegatePointer;
#endregion #endregion
public SteamId GetClanOwner( SteamId steamIDClan ) internal SteamId GetClanOwner( SteamId steamIDClan )
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetClanOwnerDelegatePointer( Self, ref retVal, steamIDClan ); GetClanOwnerDelegatePointer( Self, ref retVal, steamIDClan );
@ -546,22 +546,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetClanOfficerCountDelegate( IntPtr self, SteamId steamIDClan ); private delegate int GetClanOfficerCountDelegate( IntPtr self, SteamId steamIDClan );
private GetClanOfficerCountDelegate GetClanOfficerCountDelegatePointer; private GetClanOfficerCountDelegate GetClanOfficerCountDelegatePointer;
#endregion #endregion
public int GetClanOfficerCount( SteamId steamIDClan ) internal int GetClanOfficerCount( SteamId steamIDClan )
{ {
return GetClanOfficerCountDelegatePointer( Self, steamIDClan ); return GetClanOfficerCountDelegatePointer( Self, steamIDClan );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetClanOfficerByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan, int iOfficer ); private delegate void GetClanOfficerByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan, int iOfficer );
private GetClanOfficerByIndexDelegate GetClanOfficerByIndexDelegatePointer; private GetClanOfficerByIndexDelegate GetClanOfficerByIndexDelegatePointer;
#endregion #endregion
public SteamId GetClanOfficerByIndex( SteamId steamIDClan, int iOfficer ) internal SteamId GetClanOfficerByIndex( SteamId steamIDClan, int iOfficer )
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetClanOfficerByIndexDelegatePointer( Self, ref retVal, steamIDClan, iOfficer ); GetClanOfficerByIndexDelegatePointer( Self, ref retVal, steamIDClan, iOfficer );
@ -570,11 +570,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetUserRestrictionsDelegate( IntPtr self ); private delegate uint GetUserRestrictionsDelegate( IntPtr self );
private GetUserRestrictionsDelegate GetUserRestrictionsDelegatePointer; private GetUserRestrictionsDelegate GetUserRestrictionsDelegatePointer;
#endregion #endregion
public uint GetUserRestrictions() internal uint GetUserRestrictions()
{ {
return GetUserRestrictionsDelegatePointer( Self ); return GetUserRestrictionsDelegatePointer( Self );
} }
@ -582,66 +582,66 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool SetRichPresenceDelegate( IntPtr self, string pchKey, string pchValue ); private delegate bool SetRichPresenceDelegate( IntPtr self, string pchKey, string pchValue );
private SetRichPresenceDelegate SetRichPresenceDelegatePointer; private SetRichPresenceDelegate SetRichPresenceDelegatePointer;
#endregion #endregion
public bool SetRichPresence( string pchKey, string pchValue ) internal bool SetRichPresence( string pchKey, string pchValue )
{ {
return SetRichPresenceDelegatePointer( Self, pchKey, pchValue ); return SetRichPresenceDelegatePointer( Self, pchKey, pchValue );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ClearRichPresenceDelegate( IntPtr self ); private delegate void ClearRichPresenceDelegate( IntPtr self );
private ClearRichPresenceDelegate ClearRichPresenceDelegatePointer; private ClearRichPresenceDelegate ClearRichPresenceDelegatePointer;
#endregion #endregion
public void ClearRichPresence() internal void ClearRichPresence()
{ {
ClearRichPresenceDelegatePointer( Self ); ClearRichPresenceDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetFriendRichPresenceDelegate( IntPtr self, SteamId steamIDFriend, string pchKey ); private delegate IntPtr GetFriendRichPresenceDelegate( IntPtr self, SteamId steamIDFriend, string pchKey );
private GetFriendRichPresenceDelegate GetFriendRichPresenceDelegatePointer; private GetFriendRichPresenceDelegate GetFriendRichPresenceDelegatePointer;
#endregion #endregion
public string GetFriendRichPresence( SteamId steamIDFriend, string pchKey ) internal string GetFriendRichPresence( SteamId steamIDFriend, string pchKey )
{ {
return GetString( GetFriendRichPresenceDelegatePointer( Self, steamIDFriend, pchKey ) ); return GetString( GetFriendRichPresenceDelegatePointer( Self, steamIDFriend, pchKey ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendRichPresenceKeyCountDelegate( IntPtr self, SteamId steamIDFriend ); private delegate int GetFriendRichPresenceKeyCountDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendRichPresenceKeyCountDelegate GetFriendRichPresenceKeyCountDelegatePointer; private GetFriendRichPresenceKeyCountDelegate GetFriendRichPresenceKeyCountDelegatePointer;
#endregion #endregion
public int GetFriendRichPresenceKeyCount( SteamId steamIDFriend ) internal int GetFriendRichPresenceKeyCount( SteamId steamIDFriend )
{ {
return GetFriendRichPresenceKeyCountDelegatePointer( Self, steamIDFriend ); return GetFriendRichPresenceKeyCountDelegatePointer( Self, steamIDFriend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetFriendRichPresenceKeyByIndexDelegate( IntPtr self, SteamId steamIDFriend, int iKey ); private delegate IntPtr GetFriendRichPresenceKeyByIndexDelegate( IntPtr self, SteamId steamIDFriend, int iKey );
private GetFriendRichPresenceKeyByIndexDelegate GetFriendRichPresenceKeyByIndexDelegatePointer; private GetFriendRichPresenceKeyByIndexDelegate GetFriendRichPresenceKeyByIndexDelegatePointer;
#endregion #endregion
public string GetFriendRichPresenceKeyByIndex( SteamId steamIDFriend, int iKey ) internal string GetFriendRichPresenceKeyByIndex( SteamId steamIDFriend, int iKey )
{ {
return GetString( GetFriendRichPresenceKeyByIndexDelegatePointer( Self, steamIDFriend, iKey ) ); return GetString( GetFriendRichPresenceKeyByIndexDelegatePointer( Self, steamIDFriend, iKey ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RequestFriendRichPresenceDelegate( IntPtr self, SteamId steamIDFriend ); private delegate void RequestFriendRichPresenceDelegate( IntPtr self, SteamId steamIDFriend );
private RequestFriendRichPresenceDelegate RequestFriendRichPresenceDelegatePointer; private RequestFriendRichPresenceDelegate RequestFriendRichPresenceDelegatePointer;
#endregion #endregion
public void RequestFriendRichPresence( SteamId steamIDFriend ) internal void RequestFriendRichPresence( SteamId steamIDFriend )
{ {
RequestFriendRichPresenceDelegatePointer( Self, steamIDFriend ); RequestFriendRichPresenceDelegatePointer( Self, steamIDFriend );
} }
@ -649,33 +649,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool InviteUserToGameDelegate( IntPtr self, SteamId steamIDFriend, string pchConnectString ); private delegate bool InviteUserToGameDelegate( IntPtr self, SteamId steamIDFriend, string pchConnectString );
private InviteUserToGameDelegate InviteUserToGameDelegatePointer; private InviteUserToGameDelegate InviteUserToGameDelegatePointer;
#endregion #endregion
public bool InviteUserToGame( SteamId steamIDFriend, string pchConnectString ) internal bool InviteUserToGame( SteamId steamIDFriend, string pchConnectString )
{ {
return InviteUserToGameDelegatePointer( Self, steamIDFriend, pchConnectString ); return InviteUserToGameDelegatePointer( Self, steamIDFriend, pchConnectString );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetCoplayFriendCountDelegate( IntPtr self ); private delegate int GetCoplayFriendCountDelegate( IntPtr self );
private GetCoplayFriendCountDelegate GetCoplayFriendCountDelegatePointer; private GetCoplayFriendCountDelegate GetCoplayFriendCountDelegatePointer;
#endregion #endregion
public int GetCoplayFriendCount() internal int GetCoplayFriendCount()
{ {
return GetCoplayFriendCountDelegatePointer( Self ); return GetCoplayFriendCountDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetCoplayFriendDelegate( IntPtr self, ref SteamId retVal, int iCoplayFriend ); private delegate void GetCoplayFriendDelegate( IntPtr self, ref SteamId retVal, int iCoplayFriend );
private GetCoplayFriendDelegate GetCoplayFriendDelegatePointer; private GetCoplayFriendDelegate GetCoplayFriendDelegatePointer;
#endregion #endregion
public SteamId GetCoplayFriend( int iCoplayFriend ) internal SteamId GetCoplayFriend( int iCoplayFriend )
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetCoplayFriendDelegatePointer( Self, ref retVal, iCoplayFriend ); GetCoplayFriendDelegatePointer( Self, ref retVal, iCoplayFriend );
@ -684,33 +684,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendCoplayTimeDelegate( IntPtr self, SteamId steamIDFriend ); private delegate int GetFriendCoplayTimeDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendCoplayTimeDelegate GetFriendCoplayTimeDelegatePointer; private GetFriendCoplayTimeDelegate GetFriendCoplayTimeDelegatePointer;
#endregion #endregion
public int GetFriendCoplayTime( SteamId steamIDFriend ) internal int GetFriendCoplayTime( SteamId steamIDFriend )
{ {
return GetFriendCoplayTimeDelegatePointer( Self, steamIDFriend ); return GetFriendCoplayTimeDelegatePointer( Self, steamIDFriend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate AppId_t GetFriendCoplayGameDelegate( IntPtr self, SteamId steamIDFriend ); private delegate AppId_t GetFriendCoplayGameDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendCoplayGameDelegate GetFriendCoplayGameDelegatePointer; private GetFriendCoplayGameDelegate GetFriendCoplayGameDelegatePointer;
#endregion #endregion
public AppId_t GetFriendCoplayGame( SteamId steamIDFriend ) internal AppId_t GetFriendCoplayGame( SteamId steamIDFriend )
{ {
return GetFriendCoplayGameDelegatePointer( Self, steamIDFriend ); return GetFriendCoplayGameDelegatePointer( Self, steamIDFriend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t JoinClanChatRoomDelegate( IntPtr self, SteamId steamIDClan ); private delegate SteamAPICall_t JoinClanChatRoomDelegate( IntPtr self, SteamId steamIDClan );
private JoinClanChatRoomDelegate JoinClanChatRoomDelegatePointer; private JoinClanChatRoomDelegate JoinClanChatRoomDelegatePointer;
#endregion #endregion
public async Task<JoinClanChatRoomCompletionResult_t?> JoinClanChatRoom( SteamId steamIDClan ) internal async Task<JoinClanChatRoomCompletionResult_t?> JoinClanChatRoom( SteamId steamIDClan )
{ {
return await (new Result<JoinClanChatRoomCompletionResult_t>( JoinClanChatRoomDelegatePointer( Self, steamIDClan ) )).GetResult(); return await (new Result<JoinClanChatRoomCompletionResult_t>( JoinClanChatRoomDelegatePointer( Self, steamIDClan ) )).GetResult();
} }
@ -718,33 +718,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool LeaveClanChatRoomDelegate( IntPtr self, SteamId steamIDClan ); private delegate bool LeaveClanChatRoomDelegate( IntPtr self, SteamId steamIDClan );
private LeaveClanChatRoomDelegate LeaveClanChatRoomDelegatePointer; private LeaveClanChatRoomDelegate LeaveClanChatRoomDelegatePointer;
#endregion #endregion
public bool LeaveClanChatRoom( SteamId steamIDClan ) internal bool LeaveClanChatRoom( SteamId steamIDClan )
{ {
return LeaveClanChatRoomDelegatePointer( Self, steamIDClan ); return LeaveClanChatRoomDelegatePointer( Self, steamIDClan );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetClanChatMemberCountDelegate( IntPtr self, SteamId steamIDClan ); private delegate int GetClanChatMemberCountDelegate( IntPtr self, SteamId steamIDClan );
private GetClanChatMemberCountDelegate GetClanChatMemberCountDelegatePointer; private GetClanChatMemberCountDelegate GetClanChatMemberCountDelegatePointer;
#endregion #endregion
public int GetClanChatMemberCount( SteamId steamIDClan ) internal int GetClanChatMemberCount( SteamId steamIDClan )
{ {
return GetClanChatMemberCountDelegatePointer( Self, steamIDClan ); return GetClanChatMemberCountDelegatePointer( Self, steamIDClan );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetChatMemberByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan, int iUser ); private delegate void GetChatMemberByIndexDelegate( IntPtr self, ref SteamId retVal, SteamId steamIDClan, int iUser );
private GetChatMemberByIndexDelegate GetChatMemberByIndexDelegatePointer; private GetChatMemberByIndexDelegate GetChatMemberByIndexDelegatePointer;
#endregion #endregion
public SteamId GetChatMemberByIndex( SteamId steamIDClan, int iUser ) internal SteamId GetChatMemberByIndex( SteamId steamIDClan, int iUser )
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetChatMemberByIndexDelegatePointer( Self, ref retVal, steamIDClan, iUser ); GetChatMemberByIndexDelegatePointer( Self, ref retVal, steamIDClan, iUser );
@ -754,22 +754,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool SendClanChatMessageDelegate( IntPtr self, SteamId steamIDClanChat, string pchText ); private delegate bool SendClanChatMessageDelegate( IntPtr self, SteamId steamIDClanChat, string pchText );
private SendClanChatMessageDelegate SendClanChatMessageDelegatePointer; private SendClanChatMessageDelegate SendClanChatMessageDelegatePointer;
#endregion #endregion
public bool SendClanChatMessage( SteamId steamIDClanChat, string pchText ) internal bool SendClanChatMessage( SteamId steamIDClanChat, string pchText )
{ {
return SendClanChatMessageDelegatePointer( Self, steamIDClanChat, pchText ); return SendClanChatMessageDelegatePointer( Self, steamIDClanChat, pchText );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetClanChatMessageDelegate( IntPtr self, SteamId steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref ChatEntryType peChatEntryType, ref SteamId psteamidChatter ); private delegate int GetClanChatMessageDelegate( IntPtr self, SteamId steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref ChatEntryType peChatEntryType, ref SteamId psteamidChatter );
private GetClanChatMessageDelegate GetClanChatMessageDelegatePointer; private GetClanChatMessageDelegate GetClanChatMessageDelegatePointer;
#endregion #endregion
public int GetClanChatMessage( SteamId steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref ChatEntryType peChatEntryType, ref SteamId psteamidChatter ) internal int GetClanChatMessage( SteamId steamIDClanChat, int iMessage, IntPtr prgchText, int cchTextMax, ref ChatEntryType peChatEntryType, ref SteamId psteamidChatter )
{ {
return GetClanChatMessageDelegatePointer( Self, steamIDClanChat, iMessage, prgchText, cchTextMax, ref peChatEntryType, ref psteamidChatter ); return GetClanChatMessageDelegatePointer( Self, steamIDClanChat, iMessage, prgchText, cchTextMax, ref peChatEntryType, ref psteamidChatter );
} }
@ -777,11 +777,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsClanChatAdminDelegate( IntPtr self, SteamId steamIDClanChat, SteamId steamIDUser ); private delegate bool IsClanChatAdminDelegate( IntPtr self, SteamId steamIDClanChat, SteamId steamIDUser );
private IsClanChatAdminDelegate IsClanChatAdminDelegatePointer; private IsClanChatAdminDelegate IsClanChatAdminDelegatePointer;
#endregion #endregion
public bool IsClanChatAdmin( SteamId steamIDClanChat, SteamId steamIDUser ) internal bool IsClanChatAdmin( SteamId steamIDClanChat, SteamId steamIDUser )
{ {
return IsClanChatAdminDelegatePointer( Self, steamIDClanChat, steamIDUser ); return IsClanChatAdminDelegatePointer( Self, steamIDClanChat, steamIDUser );
} }
@ -789,11 +789,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsClanChatWindowOpenInSteamDelegate( IntPtr self, SteamId steamIDClanChat ); private delegate bool IsClanChatWindowOpenInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private IsClanChatWindowOpenInSteamDelegate IsClanChatWindowOpenInSteamDelegatePointer; private IsClanChatWindowOpenInSteamDelegate IsClanChatWindowOpenInSteamDelegatePointer;
#endregion #endregion
public bool IsClanChatWindowOpenInSteam( SteamId steamIDClanChat ) internal bool IsClanChatWindowOpenInSteam( SteamId steamIDClanChat )
{ {
return IsClanChatWindowOpenInSteamDelegatePointer( Self, steamIDClanChat ); return IsClanChatWindowOpenInSteamDelegatePointer( Self, steamIDClanChat );
} }
@ -801,11 +801,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool OpenClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat ); private delegate bool OpenClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private OpenClanChatWindowInSteamDelegate OpenClanChatWindowInSteamDelegatePointer; private OpenClanChatWindowInSteamDelegate OpenClanChatWindowInSteamDelegatePointer;
#endregion #endregion
public bool OpenClanChatWindowInSteam( SteamId steamIDClanChat ) internal bool OpenClanChatWindowInSteam( SteamId steamIDClanChat )
{ {
return OpenClanChatWindowInSteamDelegatePointer( Self, steamIDClanChat ); return OpenClanChatWindowInSteamDelegatePointer( Self, steamIDClanChat );
} }
@ -813,11 +813,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool CloseClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat ); private delegate bool CloseClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private CloseClanChatWindowInSteamDelegate CloseClanChatWindowInSteamDelegatePointer; private CloseClanChatWindowInSteamDelegate CloseClanChatWindowInSteamDelegatePointer;
#endregion #endregion
public bool CloseClanChatWindowInSteam( SteamId steamIDClanChat ) internal bool CloseClanChatWindowInSteam( SteamId steamIDClanChat )
{ {
return CloseClanChatWindowInSteamDelegatePointer( Self, steamIDClanChat ); return CloseClanChatWindowInSteamDelegatePointer( Self, steamIDClanChat );
} }
@ -825,11 +825,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool SetListenForFriendsMessagesDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bInterceptEnabled ); private delegate bool SetListenForFriendsMessagesDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bInterceptEnabled );
private SetListenForFriendsMessagesDelegate SetListenForFriendsMessagesDelegatePointer; private SetListenForFriendsMessagesDelegate SetListenForFriendsMessagesDelegatePointer;
#endregion #endregion
public bool SetListenForFriendsMessages( [MarshalAs( UnmanagedType.U1 )] bool bInterceptEnabled ) internal bool SetListenForFriendsMessages( [MarshalAs( UnmanagedType.U1 )] bool bInterceptEnabled )
{ {
return SetListenForFriendsMessagesDelegatePointer( Self, bInterceptEnabled ); return SetListenForFriendsMessagesDelegatePointer( Self, bInterceptEnabled );
} }
@ -837,55 +837,55 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool ReplyToFriendMessageDelegate( IntPtr self, SteamId steamIDFriend, string pchMsgToSend ); private delegate bool ReplyToFriendMessageDelegate( IntPtr self, SteamId steamIDFriend, string pchMsgToSend );
private ReplyToFriendMessageDelegate ReplyToFriendMessageDelegatePointer; private ReplyToFriendMessageDelegate ReplyToFriendMessageDelegatePointer;
#endregion #endregion
public bool ReplyToFriendMessage( SteamId steamIDFriend, string pchMsgToSend ) internal bool ReplyToFriendMessage( SteamId steamIDFriend, string pchMsgToSend )
{ {
return ReplyToFriendMessageDelegatePointer( Self, steamIDFriend, pchMsgToSend ); return ReplyToFriendMessageDelegatePointer( Self, steamIDFriend, pchMsgToSend );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendMessageDelegate( IntPtr self, SteamId steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref ChatEntryType peChatEntryType ); private delegate int GetFriendMessageDelegate( IntPtr self, SteamId steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref ChatEntryType peChatEntryType );
private GetFriendMessageDelegate GetFriendMessageDelegatePointer; private GetFriendMessageDelegate GetFriendMessageDelegatePointer;
#endregion #endregion
public int GetFriendMessage( SteamId steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref ChatEntryType peChatEntryType ) internal int GetFriendMessage( SteamId steamIDFriend, int iMessageID, IntPtr pvData, int cubData, ref ChatEntryType peChatEntryType )
{ {
return GetFriendMessageDelegatePointer( Self, steamIDFriend, iMessageID, pvData, cubData, ref peChatEntryType ); return GetFriendMessageDelegatePointer( Self, steamIDFriend, iMessageID, pvData, cubData, ref peChatEntryType );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t GetFollowerCountDelegate( IntPtr self, SteamId steamID ); private delegate SteamAPICall_t GetFollowerCountDelegate( IntPtr self, SteamId steamID );
private GetFollowerCountDelegate GetFollowerCountDelegatePointer; private GetFollowerCountDelegate GetFollowerCountDelegatePointer;
#endregion #endregion
public async Task<FriendsGetFollowerCount_t?> GetFollowerCount( SteamId steamID ) internal async Task<FriendsGetFollowerCount_t?> GetFollowerCount( SteamId steamID )
{ {
return await (new Result<FriendsGetFollowerCount_t>( GetFollowerCountDelegatePointer( Self, steamID ) )).GetResult(); return await (new Result<FriendsGetFollowerCount_t>( GetFollowerCountDelegatePointer( Self, steamID ) )).GetResult();
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t IsFollowingDelegate( IntPtr self, SteamId steamID ); private delegate SteamAPICall_t IsFollowingDelegate( IntPtr self, SteamId steamID );
private IsFollowingDelegate IsFollowingDelegatePointer; private IsFollowingDelegate IsFollowingDelegatePointer;
#endregion #endregion
public async Task<FriendsIsFollowing_t?> IsFollowing( SteamId steamID ) internal async Task<FriendsIsFollowing_t?> IsFollowing( SteamId steamID )
{ {
return await (new Result<FriendsIsFollowing_t>( IsFollowingDelegatePointer( Self, steamID ) )).GetResult(); return await (new Result<FriendsIsFollowing_t>( IsFollowingDelegatePointer( Self, steamID ) )).GetResult();
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t EnumerateFollowingListDelegate( IntPtr self, uint unStartIndex ); private delegate SteamAPICall_t EnumerateFollowingListDelegate( IntPtr self, uint unStartIndex );
private EnumerateFollowingListDelegate EnumerateFollowingListDelegatePointer; private EnumerateFollowingListDelegate EnumerateFollowingListDelegatePointer;
#endregion #endregion
public async Task<FriendsEnumerateFollowingList_t?> EnumerateFollowingList( uint unStartIndex ) internal async Task<FriendsEnumerateFollowingList_t?> EnumerateFollowingList( uint unStartIndex )
{ {
return await (new Result<FriendsEnumerateFollowingList_t>( EnumerateFollowingListDelegatePointer( Self, unStartIndex ) )).GetResult(); return await (new Result<FriendsEnumerateFollowingList_t>( EnumerateFollowingListDelegatePointer( Self, unStartIndex ) )).GetResult();
} }
@ -893,11 +893,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsClanPublicDelegate( IntPtr self, SteamId steamIDClan ); private delegate bool IsClanPublicDelegate( IntPtr self, SteamId steamIDClan );
private IsClanPublicDelegate IsClanPublicDelegatePointer; private IsClanPublicDelegate IsClanPublicDelegatePointer;
#endregion #endregion
public bool IsClanPublic( SteamId steamIDClan ) internal bool IsClanPublic( SteamId steamIDClan )
{ {
return IsClanPublicDelegatePointer( Self, steamIDClan ); return IsClanPublicDelegatePointer( Self, steamIDClan );
} }
@ -905,22 +905,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsClanOfficialGameGroupDelegate( IntPtr self, SteamId steamIDClan ); private delegate bool IsClanOfficialGameGroupDelegate( IntPtr self, SteamId steamIDClan );
private IsClanOfficialGameGroupDelegate IsClanOfficialGameGroupDelegatePointer; private IsClanOfficialGameGroupDelegate IsClanOfficialGameGroupDelegatePointer;
#endregion #endregion
public bool IsClanOfficialGameGroup( SteamId steamIDClan ) internal bool IsClanOfficialGameGroup( SteamId steamIDClan )
{ {
return IsClanOfficialGameGroupDelegatePointer( Self, steamIDClan ); return IsClanOfficialGameGroupDelegatePointer( Self, steamIDClan );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetNumChatsWithUnreadPriorityMessagesDelegate( IntPtr self ); private delegate int GetNumChatsWithUnreadPriorityMessagesDelegate( IntPtr self );
private GetNumChatsWithUnreadPriorityMessagesDelegate GetNumChatsWithUnreadPriorityMessagesDelegatePointer; private GetNumChatsWithUnreadPriorityMessagesDelegate GetNumChatsWithUnreadPriorityMessagesDelegatePointer;
#endregion #endregion
public int GetNumChatsWithUnreadPriorityMessages() internal int GetNumChatsWithUnreadPriorityMessages()
{ {
return GetNumChatsWithUnreadPriorityMessagesDelegatePointer( Self ); return GetNumChatsWithUnreadPriorityMessagesDelegatePointer( Self );
} }

View File

@ -65,88 +65,88 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool InitGameServerDelegate( IntPtr self, uint unIP, ushort usGamePort, ushort usQueryPort, uint unFlags, AppId_t nGameAppId, string pchVersionString ); private delegate bool InitGameServerDelegate( IntPtr self, uint unIP, ushort usGamePort, ushort usQueryPort, uint unFlags, AppId_t nGameAppId, string pchVersionString );
private InitGameServerDelegate InitGameServerDelegatePointer; private InitGameServerDelegate InitGameServerDelegatePointer;
#endregion #endregion
public bool InitGameServer( uint unIP, ushort usGamePort, ushort usQueryPort, uint unFlags, AppId_t nGameAppId, string pchVersionString ) internal bool InitGameServer( uint unIP, ushort usGamePort, ushort usQueryPort, uint unFlags, AppId_t nGameAppId, string pchVersionString )
{ {
return InitGameServerDelegatePointer( Self, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString ); return InitGameServerDelegatePointer( Self, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetProductDelegate( IntPtr self, string pszProduct ); private delegate void SetProductDelegate( IntPtr self, string pszProduct );
private SetProductDelegate SetProductDelegatePointer; private SetProductDelegate SetProductDelegatePointer;
#endregion #endregion
public void SetProduct( string pszProduct ) internal void SetProduct( string pszProduct )
{ {
SetProductDelegatePointer( Self, pszProduct ); SetProductDelegatePointer( Self, pszProduct );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetGameDescriptionDelegate( IntPtr self, string pszGameDescription ); private delegate void SetGameDescriptionDelegate( IntPtr self, string pszGameDescription );
private SetGameDescriptionDelegate SetGameDescriptionDelegatePointer; private SetGameDescriptionDelegate SetGameDescriptionDelegatePointer;
#endregion #endregion
public void SetGameDescription( string pszGameDescription ) internal void SetGameDescription( string pszGameDescription )
{ {
SetGameDescriptionDelegatePointer( Self, pszGameDescription ); SetGameDescriptionDelegatePointer( Self, pszGameDescription );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetModDirDelegate( IntPtr self, string pszModDir ); private delegate void SetModDirDelegate( IntPtr self, string pszModDir );
private SetModDirDelegate SetModDirDelegatePointer; private SetModDirDelegate SetModDirDelegatePointer;
#endregion #endregion
public void SetModDir( string pszModDir ) internal void SetModDir( string pszModDir )
{ {
SetModDirDelegatePointer( Self, pszModDir ); SetModDirDelegatePointer( Self, pszModDir );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetDedicatedServerDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bDedicated ); private delegate void SetDedicatedServerDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bDedicated );
private SetDedicatedServerDelegate SetDedicatedServerDelegatePointer; private SetDedicatedServerDelegate SetDedicatedServerDelegatePointer;
#endregion #endregion
public void SetDedicatedServer( [MarshalAs( UnmanagedType.U1 )] bool bDedicated ) internal void SetDedicatedServer( [MarshalAs( UnmanagedType.U1 )] bool bDedicated )
{ {
SetDedicatedServerDelegatePointer( Self, bDedicated ); SetDedicatedServerDelegatePointer( Self, bDedicated );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void LogOnDelegate( IntPtr self, string pszToken ); private delegate void LogOnDelegate( IntPtr self, string pszToken );
private LogOnDelegate LogOnDelegatePointer; private LogOnDelegate LogOnDelegatePointer;
#endregion #endregion
public void LogOn( string pszToken ) internal void LogOn( string pszToken )
{ {
LogOnDelegatePointer( Self, pszToken ); LogOnDelegatePointer( Self, pszToken );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void LogOnAnonymousDelegate( IntPtr self ); private delegate void LogOnAnonymousDelegate( IntPtr self );
private LogOnAnonymousDelegate LogOnAnonymousDelegatePointer; private LogOnAnonymousDelegate LogOnAnonymousDelegatePointer;
#endregion #endregion
public void LogOnAnonymous() internal void LogOnAnonymous()
{ {
LogOnAnonymousDelegatePointer( Self ); LogOnAnonymousDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void LogOffDelegate( IntPtr self ); private delegate void LogOffDelegate( IntPtr self );
private LogOffDelegate LogOffDelegatePointer; private LogOffDelegate LogOffDelegatePointer;
#endregion #endregion
public void LogOff() internal void LogOff()
{ {
LogOffDelegatePointer( Self ); LogOffDelegatePointer( Self );
} }
@ -154,11 +154,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BLoggedOnDelegate( IntPtr self ); private delegate bool BLoggedOnDelegate( IntPtr self );
private BLoggedOnDelegate BLoggedOnDelegatePointer; private BLoggedOnDelegate BLoggedOnDelegatePointer;
#endregion #endregion
public bool BLoggedOn() internal bool BLoggedOn()
{ {
return BLoggedOnDelegatePointer( Self ); return BLoggedOnDelegatePointer( Self );
} }
@ -166,22 +166,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BSecureDelegate( IntPtr self ); private delegate bool BSecureDelegate( IntPtr self );
private BSecureDelegate BSecureDelegatePointer; private BSecureDelegate BSecureDelegatePointer;
#endregion #endregion
public bool BSecure() internal bool BSecure()
{ {
return BSecureDelegatePointer( Self ); return BSecureDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal ); private delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal );
private GetSteamIDDelegate GetSteamIDDelegatePointer; private GetSteamIDDelegate GetSteamIDDelegatePointer;
#endregion #endregion
public SteamId GetSteamID() internal SteamId GetSteamID()
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetSteamIDDelegatePointer( Self, ref retVal ); GetSteamIDDelegatePointer( Self, ref retVal );
@ -191,143 +191,143 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool WasRestartRequestedDelegate( IntPtr self ); private delegate bool WasRestartRequestedDelegate( IntPtr self );
private WasRestartRequestedDelegate WasRestartRequestedDelegatePointer; private WasRestartRequestedDelegate WasRestartRequestedDelegatePointer;
#endregion #endregion
public bool WasRestartRequested() internal bool WasRestartRequested()
{ {
return WasRestartRequestedDelegatePointer( Self ); return WasRestartRequestedDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetMaxPlayerCountDelegate( IntPtr self, int cPlayersMax ); private delegate void SetMaxPlayerCountDelegate( IntPtr self, int cPlayersMax );
private SetMaxPlayerCountDelegate SetMaxPlayerCountDelegatePointer; private SetMaxPlayerCountDelegate SetMaxPlayerCountDelegatePointer;
#endregion #endregion
public void SetMaxPlayerCount( int cPlayersMax ) internal void SetMaxPlayerCount( int cPlayersMax )
{ {
SetMaxPlayerCountDelegatePointer( Self, cPlayersMax ); SetMaxPlayerCountDelegatePointer( Self, cPlayersMax );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetBotPlayerCountDelegate( IntPtr self, int cBotplayers ); private delegate void SetBotPlayerCountDelegate( IntPtr self, int cBotplayers );
private SetBotPlayerCountDelegate SetBotPlayerCountDelegatePointer; private SetBotPlayerCountDelegate SetBotPlayerCountDelegatePointer;
#endregion #endregion
public void SetBotPlayerCount( int cBotplayers ) internal void SetBotPlayerCount( int cBotplayers )
{ {
SetBotPlayerCountDelegatePointer( Self, cBotplayers ); SetBotPlayerCountDelegatePointer( Self, cBotplayers );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetServerNameDelegate( IntPtr self, string pszServerName ); private delegate void SetServerNameDelegate( IntPtr self, string pszServerName );
private SetServerNameDelegate SetServerNameDelegatePointer; private SetServerNameDelegate SetServerNameDelegatePointer;
#endregion #endregion
public void SetServerName( string pszServerName ) internal void SetServerName( string pszServerName )
{ {
SetServerNameDelegatePointer( Self, pszServerName ); SetServerNameDelegatePointer( Self, pszServerName );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetMapNameDelegate( IntPtr self, string pszMapName ); private delegate void SetMapNameDelegate( IntPtr self, string pszMapName );
private SetMapNameDelegate SetMapNameDelegatePointer; private SetMapNameDelegate SetMapNameDelegatePointer;
#endregion #endregion
public void SetMapName( string pszMapName ) internal void SetMapName( string pszMapName )
{ {
SetMapNameDelegatePointer( Self, pszMapName ); SetMapNameDelegatePointer( Self, pszMapName );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetPasswordProtectedDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bPasswordProtected ); private delegate void SetPasswordProtectedDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bPasswordProtected );
private SetPasswordProtectedDelegate SetPasswordProtectedDelegatePointer; private SetPasswordProtectedDelegate SetPasswordProtectedDelegatePointer;
#endregion #endregion
public void SetPasswordProtected( [MarshalAs( UnmanagedType.U1 )] bool bPasswordProtected ) internal void SetPasswordProtected( [MarshalAs( UnmanagedType.U1 )] bool bPasswordProtected )
{ {
SetPasswordProtectedDelegatePointer( Self, bPasswordProtected ); SetPasswordProtectedDelegatePointer( Self, bPasswordProtected );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetSpectatorPortDelegate( IntPtr self, ushort unSpectatorPort ); private delegate void SetSpectatorPortDelegate( IntPtr self, ushort unSpectatorPort );
private SetSpectatorPortDelegate SetSpectatorPortDelegatePointer; private SetSpectatorPortDelegate SetSpectatorPortDelegatePointer;
#endregion #endregion
public void SetSpectatorPort( ushort unSpectatorPort ) internal void SetSpectatorPort( ushort unSpectatorPort )
{ {
SetSpectatorPortDelegatePointer( Self, unSpectatorPort ); SetSpectatorPortDelegatePointer( Self, unSpectatorPort );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetSpectatorServerNameDelegate( IntPtr self, string pszSpectatorServerName ); private delegate void SetSpectatorServerNameDelegate( IntPtr self, string pszSpectatorServerName );
private SetSpectatorServerNameDelegate SetSpectatorServerNameDelegatePointer; private SetSpectatorServerNameDelegate SetSpectatorServerNameDelegatePointer;
#endregion #endregion
public void SetSpectatorServerName( string pszSpectatorServerName ) internal void SetSpectatorServerName( string pszSpectatorServerName )
{ {
SetSpectatorServerNameDelegatePointer( Self, pszSpectatorServerName ); SetSpectatorServerNameDelegatePointer( Self, pszSpectatorServerName );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ClearAllKeyValuesDelegate( IntPtr self ); private delegate void ClearAllKeyValuesDelegate( IntPtr self );
private ClearAllKeyValuesDelegate ClearAllKeyValuesDelegatePointer; private ClearAllKeyValuesDelegate ClearAllKeyValuesDelegatePointer;
#endregion #endregion
public void ClearAllKeyValues() internal void ClearAllKeyValues()
{ {
ClearAllKeyValuesDelegatePointer( Self ); ClearAllKeyValuesDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetKeyValueDelegate( IntPtr self, string pKey, string pValue ); private delegate void SetKeyValueDelegate( IntPtr self, string pKey, string pValue );
private SetKeyValueDelegate SetKeyValueDelegatePointer; private SetKeyValueDelegate SetKeyValueDelegatePointer;
#endregion #endregion
public void SetKeyValue( string pKey, string pValue ) internal void SetKeyValue( string pKey, string pValue )
{ {
SetKeyValueDelegatePointer( Self, pKey, pValue ); SetKeyValueDelegatePointer( Self, pKey, pValue );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetGameTagsDelegate( IntPtr self, string pchGameTags ); private delegate void SetGameTagsDelegate( IntPtr self, string pchGameTags );
private SetGameTagsDelegate SetGameTagsDelegatePointer; private SetGameTagsDelegate SetGameTagsDelegatePointer;
#endregion #endregion
public void SetGameTags( string pchGameTags ) internal void SetGameTags( string pchGameTags )
{ {
SetGameTagsDelegatePointer( Self, pchGameTags ); SetGameTagsDelegatePointer( Self, pchGameTags );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetGameDataDelegate( IntPtr self, string pchGameData ); private delegate void SetGameDataDelegate( IntPtr self, string pchGameData );
private SetGameDataDelegate SetGameDataDelegatePointer; private SetGameDataDelegate SetGameDataDelegatePointer;
#endregion #endregion
public void SetGameData( string pchGameData ) internal void SetGameData( string pchGameData )
{ {
SetGameDataDelegatePointer( Self, pchGameData ); SetGameDataDelegatePointer( Self, pchGameData );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetRegionDelegate( IntPtr self, string pszRegion ); private delegate void SetRegionDelegate( IntPtr self, string pszRegion );
private SetRegionDelegate SetRegionDelegatePointer; private SetRegionDelegate SetRegionDelegatePointer;
#endregion #endregion
public void SetRegion( string pszRegion ) internal void SetRegion( string pszRegion )
{ {
SetRegionDelegatePointer( Self, pszRegion ); SetRegionDelegatePointer( Self, pszRegion );
} }
@ -335,22 +335,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool SendUserConnectAndAuthenticateDelegate( IntPtr self, uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser ); private delegate bool SendUserConnectAndAuthenticateDelegate( IntPtr self, uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser );
private SendUserConnectAndAuthenticateDelegate SendUserConnectAndAuthenticateDelegatePointer; private SendUserConnectAndAuthenticateDelegate SendUserConnectAndAuthenticateDelegatePointer;
#endregion #endregion
public bool SendUserConnectAndAuthenticate( uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser ) internal bool SendUserConnectAndAuthenticate( uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser )
{ {
return SendUserConnectAndAuthenticateDelegatePointer( Self, unIPClient, pvAuthBlob, cubAuthBlobSize, ref pSteamIDUser ); return SendUserConnectAndAuthenticateDelegatePointer( Self, unIPClient, pvAuthBlob, cubAuthBlobSize, ref pSteamIDUser );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CreateUnauthenticatedUserConnectionDelegate( IntPtr self, ref SteamId retVal ); private delegate void CreateUnauthenticatedUserConnectionDelegate( IntPtr self, ref SteamId retVal );
private CreateUnauthenticatedUserConnectionDelegate CreateUnauthenticatedUserConnectionDelegatePointer; private CreateUnauthenticatedUserConnectionDelegate CreateUnauthenticatedUserConnectionDelegatePointer;
#endregion #endregion
public SteamId CreateUnauthenticatedUserConnection() internal SteamId CreateUnauthenticatedUserConnection()
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
CreateUnauthenticatedUserConnectionDelegatePointer( Self, ref retVal ); CreateUnauthenticatedUserConnectionDelegatePointer( Self, ref retVal );
@ -359,11 +359,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SendUserDisconnectDelegate( IntPtr self, SteamId steamIDUser ); private delegate void SendUserDisconnectDelegate( IntPtr self, SteamId steamIDUser );
private SendUserDisconnectDelegate SendUserDisconnectDelegatePointer; private SendUserDisconnectDelegate SendUserDisconnectDelegatePointer;
#endregion #endregion
public void SendUserDisconnect( SteamId steamIDUser ) internal void SendUserDisconnect( SteamId steamIDUser )
{ {
SendUserDisconnectDelegatePointer( Self, steamIDUser ); SendUserDisconnectDelegatePointer( Self, steamIDUser );
} }
@ -371,66 +371,66 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BUpdateUserDataDelegate( IntPtr self, SteamId steamIDUser, string pchPlayerName, uint uScore ); private delegate bool BUpdateUserDataDelegate( IntPtr self, SteamId steamIDUser, string pchPlayerName, uint uScore );
private BUpdateUserDataDelegate BUpdateUserDataDelegatePointer; private BUpdateUserDataDelegate BUpdateUserDataDelegatePointer;
#endregion #endregion
public bool BUpdateUserData( SteamId steamIDUser, string pchPlayerName, uint uScore ) internal bool BUpdateUserData( SteamId steamIDUser, string pchPlayerName, uint uScore )
{ {
return BUpdateUserDataDelegatePointer( Self, steamIDUser, pchPlayerName, uScore ); return BUpdateUserDataDelegatePointer( Self, steamIDUser, pchPlayerName, uScore );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HAuthTicket GetAuthSessionTicketDelegate( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket ); private delegate HAuthTicket GetAuthSessionTicketDelegate( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket );
private GetAuthSessionTicketDelegate GetAuthSessionTicketDelegatePointer; private GetAuthSessionTicketDelegate GetAuthSessionTicketDelegatePointer;
#endregion #endregion
public HAuthTicket GetAuthSessionTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket ) internal HAuthTicket GetAuthSessionTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket )
{ {
return GetAuthSessionTicketDelegatePointer( Self, pTicket, cbMaxTicket, ref pcbTicket ); return GetAuthSessionTicketDelegatePointer( Self, pTicket, cbMaxTicket, ref pcbTicket );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate BeginAuthSessionResult BeginAuthSessionDelegate( IntPtr self, IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID ); private delegate BeginAuthResult BeginAuthSessionDelegate( IntPtr self, IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID );
private BeginAuthSessionDelegate BeginAuthSessionDelegatePointer; private BeginAuthSessionDelegate BeginAuthSessionDelegatePointer;
#endregion #endregion
public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID ) internal BeginAuthResult BeginAuthSession( IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID )
{ {
return BeginAuthSessionDelegatePointer( Self, pAuthTicket, cbAuthTicket, steamID ); return BeginAuthSessionDelegatePointer( Self, pAuthTicket, cbAuthTicket, steamID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID ); private delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID );
private EndAuthSessionDelegate EndAuthSessionDelegatePointer; private EndAuthSessionDelegate EndAuthSessionDelegatePointer;
#endregion #endregion
public void EndAuthSession( SteamId steamID ) internal void EndAuthSession( SteamId steamID )
{ {
EndAuthSessionDelegatePointer( Self, steamID ); EndAuthSessionDelegatePointer( Self, steamID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CancelAuthTicketDelegate( IntPtr self, HAuthTicket hAuthTicket ); private delegate void CancelAuthTicketDelegate( IntPtr self, HAuthTicket hAuthTicket );
private CancelAuthTicketDelegate CancelAuthTicketDelegatePointer; private CancelAuthTicketDelegate CancelAuthTicketDelegatePointer;
#endregion #endregion
public void CancelAuthTicket( HAuthTicket hAuthTicket ) internal void CancelAuthTicket( HAuthTicket hAuthTicket )
{ {
CancelAuthTicketDelegatePointer( Self, hAuthTicket ); CancelAuthTicketDelegatePointer( Self, hAuthTicket );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate UserHasLicenseForAppResult UserHasLicenseForAppDelegate( IntPtr self, SteamId steamID, AppId_t appID ); private delegate UserHasLicenseForAppResult UserHasLicenseForAppDelegate( IntPtr self, SteamId steamID, AppId_t appID );
private UserHasLicenseForAppDelegate UserHasLicenseForAppDelegatePointer; private UserHasLicenseForAppDelegate UserHasLicenseForAppDelegatePointer;
#endregion #endregion
public UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID ) internal UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID )
{ {
return UserHasLicenseForAppDelegatePointer( Self, steamID, appID ); return UserHasLicenseForAppDelegatePointer( Self, steamID, appID );
} }
@ -438,44 +438,44 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool RequestUserGroupStatusDelegate( IntPtr self, SteamId steamIDUser, SteamId steamIDGroup ); private delegate bool RequestUserGroupStatusDelegate( IntPtr self, SteamId steamIDUser, SteamId steamIDGroup );
private RequestUserGroupStatusDelegate RequestUserGroupStatusDelegatePointer; private RequestUserGroupStatusDelegate RequestUserGroupStatusDelegatePointer;
#endregion #endregion
public bool RequestUserGroupStatus( SteamId steamIDUser, SteamId steamIDGroup ) internal bool RequestUserGroupStatus( SteamId steamIDUser, SteamId steamIDGroup )
{ {
return RequestUserGroupStatusDelegatePointer( Self, steamIDUser, steamIDGroup ); return RequestUserGroupStatusDelegatePointer( Self, steamIDUser, steamIDGroup );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetGameplayStatsDelegate( IntPtr self ); private delegate void GetGameplayStatsDelegate( IntPtr self );
private GetGameplayStatsDelegate GetGameplayStatsDelegatePointer; private GetGameplayStatsDelegate GetGameplayStatsDelegatePointer;
#endregion #endregion
public void GetGameplayStats() internal void GetGameplayStats()
{ {
GetGameplayStatsDelegatePointer( Self ); GetGameplayStatsDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t GetServerReputationDelegate( IntPtr self ); private delegate SteamAPICall_t GetServerReputationDelegate( IntPtr self );
private GetServerReputationDelegate GetServerReputationDelegatePointer; private GetServerReputationDelegate GetServerReputationDelegatePointer;
#endregion #endregion
public async Task<GSReputation_t?> GetServerReputation() internal async Task<GSReputation_t?> GetServerReputation()
{ {
return await (new Result<GSReputation_t>( GetServerReputationDelegatePointer( Self ) )).GetResult(); return await (new Result<GSReputation_t>( GetServerReputationDelegatePointer( Self ) )).GetResult();
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetPublicIPDelegate( IntPtr self ); private delegate uint GetPublicIPDelegate( IntPtr self );
private GetPublicIPDelegate GetPublicIPDelegatePointer; private GetPublicIPDelegate GetPublicIPDelegatePointer;
#endregion #endregion
public uint GetPublicIP() internal uint GetPublicIP()
{ {
return GetPublicIPDelegatePointer( Self ); return GetPublicIPDelegatePointer( Self );
} }
@ -483,77 +483,77 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool HandleIncomingPacketDelegate( IntPtr self, IntPtr pData, int cbData, uint srcIP, ushort srcPort ); private delegate bool HandleIncomingPacketDelegate( IntPtr self, IntPtr pData, int cbData, uint srcIP, ushort srcPort );
private HandleIncomingPacketDelegate HandleIncomingPacketDelegatePointer; private HandleIncomingPacketDelegate HandleIncomingPacketDelegatePointer;
#endregion #endregion
public bool HandleIncomingPacket( IntPtr pData, int cbData, uint srcIP, ushort srcPort ) internal bool HandleIncomingPacket( IntPtr pData, int cbData, uint srcIP, ushort srcPort )
{ {
return HandleIncomingPacketDelegatePointer( Self, pData, cbData, srcIP, srcPort ); return HandleIncomingPacketDelegatePointer( Self, pData, cbData, srcIP, srcPort );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetNextOutgoingPacketDelegate( IntPtr self, IntPtr pOut, int cbMaxOut, ref uint pNetAdr, ref ushort pPort ); private delegate int GetNextOutgoingPacketDelegate( IntPtr self, IntPtr pOut, int cbMaxOut, ref uint pNetAdr, ref ushort pPort );
private GetNextOutgoingPacketDelegate GetNextOutgoingPacketDelegatePointer; private GetNextOutgoingPacketDelegate GetNextOutgoingPacketDelegatePointer;
#endregion #endregion
public int GetNextOutgoingPacket( IntPtr pOut, int cbMaxOut, ref uint pNetAdr, ref ushort pPort ) internal int GetNextOutgoingPacket( IntPtr pOut, int cbMaxOut, ref uint pNetAdr, ref ushort pPort )
{ {
return GetNextOutgoingPacketDelegatePointer( Self, pOut, cbMaxOut, ref pNetAdr, ref pPort ); return GetNextOutgoingPacketDelegatePointer( Self, pOut, cbMaxOut, ref pNetAdr, ref pPort );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void EnableHeartbeatsDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bActive ); private delegate void EnableHeartbeatsDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bActive );
private EnableHeartbeatsDelegate EnableHeartbeatsDelegatePointer; private EnableHeartbeatsDelegate EnableHeartbeatsDelegatePointer;
#endregion #endregion
public void EnableHeartbeats( [MarshalAs( UnmanagedType.U1 )] bool bActive ) internal void EnableHeartbeats( [MarshalAs( UnmanagedType.U1 )] bool bActive )
{ {
EnableHeartbeatsDelegatePointer( Self, bActive ); EnableHeartbeatsDelegatePointer( Self, bActive );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetHeartbeatIntervalDelegate( IntPtr self, int iHeartbeatInterval ); private delegate void SetHeartbeatIntervalDelegate( IntPtr self, int iHeartbeatInterval );
private SetHeartbeatIntervalDelegate SetHeartbeatIntervalDelegatePointer; private SetHeartbeatIntervalDelegate SetHeartbeatIntervalDelegatePointer;
#endregion #endregion
public void SetHeartbeatInterval( int iHeartbeatInterval ) internal void SetHeartbeatInterval( int iHeartbeatInterval )
{ {
SetHeartbeatIntervalDelegatePointer( Self, iHeartbeatInterval ); SetHeartbeatIntervalDelegatePointer( Self, iHeartbeatInterval );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ForceHeartbeatDelegate( IntPtr self ); private delegate void ForceHeartbeatDelegate( IntPtr self );
private ForceHeartbeatDelegate ForceHeartbeatDelegatePointer; private ForceHeartbeatDelegate ForceHeartbeatDelegatePointer;
#endregion #endregion
public void ForceHeartbeat() internal void ForceHeartbeat()
{ {
ForceHeartbeatDelegatePointer( Self ); ForceHeartbeatDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t AssociateWithClanDelegate( IntPtr self, SteamId steamIDClan ); private delegate SteamAPICall_t AssociateWithClanDelegate( IntPtr self, SteamId steamIDClan );
private AssociateWithClanDelegate AssociateWithClanDelegatePointer; private AssociateWithClanDelegate AssociateWithClanDelegatePointer;
#endregion #endregion
public async Task<AssociateWithClanResult_t?> AssociateWithClan( SteamId steamIDClan ) internal async Task<AssociateWithClanResult_t?> AssociateWithClan( SteamId steamIDClan )
{ {
return await (new Result<AssociateWithClanResult_t>( AssociateWithClanDelegatePointer( Self, steamIDClan ) )).GetResult(); return await (new Result<AssociateWithClanResult_t>( AssociateWithClanDelegatePointer( Self, steamIDClan ) )).GetResult();
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t ComputeNewPlayerCompatibilityDelegate( IntPtr self, SteamId steamIDNewPlayer ); private delegate SteamAPICall_t ComputeNewPlayerCompatibilityDelegate( IntPtr self, SteamId steamIDNewPlayer );
private ComputeNewPlayerCompatibilityDelegate ComputeNewPlayerCompatibilityDelegatePointer; private ComputeNewPlayerCompatibilityDelegate ComputeNewPlayerCompatibilityDelegatePointer;
#endregion #endregion
public async Task<ComputeNewPlayerCompatibilityResult_t?> ComputeNewPlayerCompatibility( SteamId steamIDNewPlayer ) internal async Task<ComputeNewPlayerCompatibilityResult_t?> ComputeNewPlayerCompatibility( SteamId steamIDNewPlayer )
{ {
return await (new Result<ComputeNewPlayerCompatibilityResult_t>( ComputeNewPlayerCompatibilityDelegatePointer( Self, steamIDNewPlayer ) )).GetResult(); return await (new Result<ComputeNewPlayerCompatibilityResult_t>( ComputeNewPlayerCompatibilityDelegatePointer( Self, steamIDNewPlayer ) )).GetResult();
} }

View File

@ -37,110 +37,110 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerListRequest RequestInternetServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); private delegate HServerListRequest RequestInternetServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse );
private RequestInternetServerListDelegate RequestInternetServerListDelegatePointer; private RequestInternetServerListDelegate RequestInternetServerListDelegatePointer;
#endregion #endregion
public HServerListRequest RequestInternetServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ) internal HServerListRequest RequestInternetServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse )
{ {
return RequestInternetServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse ); return RequestInternetServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerListRequest RequestLANServerListDelegate( IntPtr self, AppId_t iApp, IntPtr pRequestServersResponse ); private delegate HServerListRequest RequestLANServerListDelegate( IntPtr self, AppId_t iApp, IntPtr pRequestServersResponse );
private RequestLANServerListDelegate RequestLANServerListDelegatePointer; private RequestLANServerListDelegate RequestLANServerListDelegatePointer;
#endregion #endregion
public HServerListRequest RequestLANServerList( AppId_t iApp, IntPtr pRequestServersResponse ) internal HServerListRequest RequestLANServerList( AppId_t iApp, IntPtr pRequestServersResponse )
{ {
return RequestLANServerListDelegatePointer( Self, iApp, pRequestServersResponse ); return RequestLANServerListDelegatePointer( Self, iApp, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerListRequest RequestFriendsServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); private delegate HServerListRequest RequestFriendsServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse );
private RequestFriendsServerListDelegate RequestFriendsServerListDelegatePointer; private RequestFriendsServerListDelegate RequestFriendsServerListDelegatePointer;
#endregion #endregion
public HServerListRequest RequestFriendsServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ) internal HServerListRequest RequestFriendsServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse )
{ {
return RequestFriendsServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse ); return RequestFriendsServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerListRequest RequestFavoritesServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); private delegate HServerListRequest RequestFavoritesServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse );
private RequestFavoritesServerListDelegate RequestFavoritesServerListDelegatePointer; private RequestFavoritesServerListDelegate RequestFavoritesServerListDelegatePointer;
#endregion #endregion
public HServerListRequest RequestFavoritesServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ) internal HServerListRequest RequestFavoritesServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse )
{ {
return RequestFavoritesServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse ); return RequestFavoritesServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerListRequest RequestHistoryServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); private delegate HServerListRequest RequestHistoryServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse );
private RequestHistoryServerListDelegate RequestHistoryServerListDelegatePointer; private RequestHistoryServerListDelegate RequestHistoryServerListDelegatePointer;
#endregion #endregion
public HServerListRequest RequestHistoryServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ) internal HServerListRequest RequestHistoryServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse )
{ {
return RequestHistoryServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse ); return RequestHistoryServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerListRequest RequestSpectatorServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ); private delegate HServerListRequest RequestSpectatorServerListDelegate( IntPtr self, AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse );
private RequestSpectatorServerListDelegate RequestSpectatorServerListDelegatePointer; private RequestSpectatorServerListDelegate RequestSpectatorServerListDelegatePointer;
#endregion #endregion
public HServerListRequest RequestSpectatorServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse ) internal HServerListRequest RequestSpectatorServerList( AppId_t iApp, [In,Out] ref MatchMakingKeyValuePair_t[] ppchFilters, uint nFilters, IntPtr pRequestServersResponse )
{ {
return RequestSpectatorServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse ); return RequestSpectatorServerListDelegatePointer( Self, iApp, ref ppchFilters, nFilters, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ReleaseRequestDelegate( IntPtr self, HServerListRequest hServerListRequest ); private delegate void ReleaseRequestDelegate( IntPtr self, HServerListRequest hServerListRequest );
private ReleaseRequestDelegate ReleaseRequestDelegatePointer; private ReleaseRequestDelegate ReleaseRequestDelegatePointer;
#endregion #endregion
public void ReleaseRequest( HServerListRequest hServerListRequest ) internal void ReleaseRequest( HServerListRequest hServerListRequest )
{ {
ReleaseRequestDelegatePointer( Self, hServerListRequest ); ReleaseRequestDelegatePointer( Self, hServerListRequest );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetServerDetailsDelegate( IntPtr self, HServerListRequest hRequest, int iServer ); private delegate IntPtr GetServerDetailsDelegate( IntPtr self, HServerListRequest hRequest, int iServer );
private GetServerDetailsDelegate GetServerDetailsDelegatePointer; private GetServerDetailsDelegate GetServerDetailsDelegatePointer;
#endregion #endregion
public gameserveritem_t GetServerDetails( HServerListRequest hRequest, int iServer ) internal gameserveritem_t GetServerDetails( HServerListRequest hRequest, int iServer )
{ {
return new gameserveritem_t().Fill( GetServerDetailsDelegatePointer( Self, hRequest, iServer ) ); return new gameserveritem_t().Fill( GetServerDetailsDelegatePointer( Self, hRequest, iServer ) );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CancelQueryDelegate( IntPtr self, HServerListRequest hRequest ); private delegate void CancelQueryDelegate( IntPtr self, HServerListRequest hRequest );
private CancelQueryDelegate CancelQueryDelegatePointer; private CancelQueryDelegate CancelQueryDelegatePointer;
#endregion #endregion
public void CancelQuery( HServerListRequest hRequest ) internal void CancelQuery( HServerListRequest hRequest )
{ {
CancelQueryDelegatePointer( Self, hRequest ); CancelQueryDelegatePointer( Self, hRequest );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RefreshQueryDelegate( IntPtr self, HServerListRequest hRequest ); private delegate void RefreshQueryDelegate( IntPtr self, HServerListRequest hRequest );
private RefreshQueryDelegate RefreshQueryDelegatePointer; private RefreshQueryDelegate RefreshQueryDelegatePointer;
#endregion #endregion
public void RefreshQuery( HServerListRequest hRequest ) internal void RefreshQuery( HServerListRequest hRequest )
{ {
RefreshQueryDelegatePointer( Self, hRequest ); RefreshQueryDelegatePointer( Self, hRequest );
} }
@ -148,77 +148,77 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsRefreshingDelegate( IntPtr self, HServerListRequest hRequest ); private delegate bool IsRefreshingDelegate( IntPtr self, HServerListRequest hRequest );
private IsRefreshingDelegate IsRefreshingDelegatePointer; private IsRefreshingDelegate IsRefreshingDelegatePointer;
#endregion #endregion
public bool IsRefreshing( HServerListRequest hRequest ) internal bool IsRefreshing( HServerListRequest hRequest )
{ {
return IsRefreshingDelegatePointer( Self, hRequest ); return IsRefreshingDelegatePointer( Self, hRequest );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetServerCountDelegate( IntPtr self, HServerListRequest hRequest ); private delegate int GetServerCountDelegate( IntPtr self, HServerListRequest hRequest );
private GetServerCountDelegate GetServerCountDelegatePointer; private GetServerCountDelegate GetServerCountDelegatePointer;
#endregion #endregion
public int GetServerCount( HServerListRequest hRequest ) internal int GetServerCount( HServerListRequest hRequest )
{ {
return GetServerCountDelegatePointer( Self, hRequest ); return GetServerCountDelegatePointer( Self, hRequest );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RefreshServerDelegate( IntPtr self, HServerListRequest hRequest, int iServer ); private delegate void RefreshServerDelegate( IntPtr self, HServerListRequest hRequest, int iServer );
private RefreshServerDelegate RefreshServerDelegatePointer; private RefreshServerDelegate RefreshServerDelegatePointer;
#endregion #endregion
public void RefreshServer( HServerListRequest hRequest, int iServer ) internal void RefreshServer( HServerListRequest hRequest, int iServer )
{ {
RefreshServerDelegatePointer( Self, hRequest, iServer ); RefreshServerDelegatePointer( Self, hRequest, iServer );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerQuery PingServerDelegate( IntPtr self, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); private delegate HServerQuery PingServerDelegate( IntPtr self, uint unIP, ushort usPort, IntPtr pRequestServersResponse );
private PingServerDelegate PingServerDelegatePointer; private PingServerDelegate PingServerDelegatePointer;
#endregion #endregion
public HServerQuery PingServer( uint unIP, ushort usPort, IntPtr pRequestServersResponse ) internal HServerQuery PingServer( uint unIP, ushort usPort, IntPtr pRequestServersResponse )
{ {
return PingServerDelegatePointer( Self, unIP, usPort, pRequestServersResponse ); return PingServerDelegatePointer( Self, unIP, usPort, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerQuery PlayerDetailsDelegate( IntPtr self, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); private delegate HServerQuery PlayerDetailsDelegate( IntPtr self, uint unIP, ushort usPort, IntPtr pRequestServersResponse );
private PlayerDetailsDelegate PlayerDetailsDelegatePointer; private PlayerDetailsDelegate PlayerDetailsDelegatePointer;
#endregion #endregion
public HServerQuery PlayerDetails( uint unIP, ushort usPort, IntPtr pRequestServersResponse ) internal HServerQuery PlayerDetails( uint unIP, ushort usPort, IntPtr pRequestServersResponse )
{ {
return PlayerDetailsDelegatePointer( Self, unIP, usPort, pRequestServersResponse ); return PlayerDetailsDelegatePointer( Self, unIP, usPort, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HServerQuery ServerRulesDelegate( IntPtr self, uint unIP, ushort usPort, IntPtr pRequestServersResponse ); private delegate HServerQuery ServerRulesDelegate( IntPtr self, uint unIP, ushort usPort, IntPtr pRequestServersResponse );
private ServerRulesDelegate ServerRulesDelegatePointer; private ServerRulesDelegate ServerRulesDelegatePointer;
#endregion #endregion
public HServerQuery ServerRules( uint unIP, ushort usPort, IntPtr pRequestServersResponse ) internal HServerQuery ServerRules( uint unIP, ushort usPort, IntPtr pRequestServersResponse )
{ {
return ServerRulesDelegatePointer( Self, unIP, usPort, pRequestServersResponse ); return ServerRulesDelegatePointer( Self, unIP, usPort, pRequestServersResponse );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CancelServerQueryDelegate( IntPtr self, HServerQuery hServerQuery ); private delegate void CancelServerQueryDelegate( IntPtr self, HServerQuery hServerQuery );
private CancelServerQueryDelegate CancelServerQueryDelegatePointer; private CancelServerQueryDelegate CancelServerQueryDelegatePointer;
#endregion #endregion
public void CancelServerQuery( HServerQuery hServerQuery ) internal void CancelServerQuery( HServerQuery hServerQuery )
{ {
CancelServerQueryDelegatePointer( Self, hServerQuery ); CancelServerQueryDelegatePointer( Self, hServerQuery );
} }

View File

@ -30,11 +30,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsEnabledDelegate( IntPtr self ); private delegate bool BIsEnabledDelegate( IntPtr self );
private BIsEnabledDelegate BIsEnabledDelegatePointer; private BIsEnabledDelegate BIsEnabledDelegatePointer;
#endregion #endregion
public bool BIsEnabled() internal bool BIsEnabled()
{ {
return BIsEnabledDelegatePointer( Self ); return BIsEnabledDelegatePointer( Self );
} }
@ -42,88 +42,88 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsPlayingDelegate( IntPtr self ); private delegate bool BIsPlayingDelegate( IntPtr self );
private BIsPlayingDelegate BIsPlayingDelegatePointer; private BIsPlayingDelegate BIsPlayingDelegatePointer;
#endregion #endregion
public bool BIsPlaying() internal bool BIsPlaying()
{ {
return BIsPlayingDelegatePointer( Self ); return BIsPlayingDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate AudioPlayback_Status GetPlaybackStatusDelegate( IntPtr self ); private delegate MusicStatus GetPlaybackStatusDelegate( IntPtr self );
private GetPlaybackStatusDelegate GetPlaybackStatusDelegatePointer; private GetPlaybackStatusDelegate GetPlaybackStatusDelegatePointer;
#endregion #endregion
public AudioPlayback_Status GetPlaybackStatus() internal MusicStatus GetPlaybackStatus()
{ {
return GetPlaybackStatusDelegatePointer( Self ); return GetPlaybackStatusDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void PlayDelegate( IntPtr self ); private delegate void PlayDelegate( IntPtr self );
private PlayDelegate PlayDelegatePointer; private PlayDelegate PlayDelegatePointer;
#endregion #endregion
public void Play() internal void Play()
{ {
PlayDelegatePointer( Self ); PlayDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void PauseDelegate( IntPtr self ); private delegate void PauseDelegate( IntPtr self );
private PauseDelegate PauseDelegatePointer; private PauseDelegate PauseDelegatePointer;
#endregion #endregion
public void Pause() internal void Pause()
{ {
PauseDelegatePointer( Self ); PauseDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void PlayPreviousDelegate( IntPtr self ); private delegate void PlayPreviousDelegate( IntPtr self );
private PlayPreviousDelegate PlayPreviousDelegatePointer; private PlayPreviousDelegate PlayPreviousDelegatePointer;
#endregion #endregion
public void PlayPrevious() internal void PlayPrevious()
{ {
PlayPreviousDelegatePointer( Self ); PlayPreviousDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void PlayNextDelegate( IntPtr self ); private delegate void PlayNextDelegate( IntPtr self );
private PlayNextDelegate PlayNextDelegatePointer; private PlayNextDelegate PlayNextDelegatePointer;
#endregion #endregion
public void PlayNext() internal void PlayNext()
{ {
PlayNextDelegatePointer( Self ); PlayNextDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetVolumeDelegate( IntPtr self, float flVolume ); private delegate void SetVolumeDelegate( IntPtr self, float flVolume );
private SetVolumeDelegate SetVolumeDelegatePointer; private SetVolumeDelegate SetVolumeDelegatePointer;
#endregion #endregion
public void SetVolume( float flVolume ) internal void SetVolume( float flVolume )
{ {
SetVolumeDelegatePointer( Self, flVolume ); SetVolumeDelegatePointer( Self, flVolume );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate float GetVolumeDelegate( IntPtr self ); private delegate float GetVolumeDelegate( IntPtr self );
private GetVolumeDelegate GetVolumeDelegatePointer; private GetVolumeDelegate GetVolumeDelegatePointer;
#endregion #endregion
public float GetVolume() internal float GetVolume()
{ {
return GetVolumeDelegatePointer( Self ); return GetVolumeDelegatePointer( Self );
} }

View File

@ -27,11 +27,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsParentalLockEnabledDelegate( IntPtr self ); private delegate bool BIsParentalLockEnabledDelegate( IntPtr self );
private BIsParentalLockEnabledDelegate BIsParentalLockEnabledDelegatePointer; private BIsParentalLockEnabledDelegate BIsParentalLockEnabledDelegatePointer;
#endregion #endregion
public bool BIsParentalLockEnabled() internal bool BIsParentalLockEnabled()
{ {
return BIsParentalLockEnabledDelegatePointer( Self ); return BIsParentalLockEnabledDelegatePointer( Self );
} }
@ -39,11 +39,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsParentalLockLockedDelegate( IntPtr self ); private delegate bool BIsParentalLockLockedDelegate( IntPtr self );
private BIsParentalLockLockedDelegate BIsParentalLockLockedDelegatePointer; private BIsParentalLockLockedDelegate BIsParentalLockLockedDelegatePointer;
#endregion #endregion
public bool BIsParentalLockLocked() internal bool BIsParentalLockLocked()
{ {
return BIsParentalLockLockedDelegatePointer( Self ); return BIsParentalLockLockedDelegatePointer( Self );
} }
@ -51,11 +51,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsAppBlockedDelegate( IntPtr self, AppId_t nAppID ); private delegate bool BIsAppBlockedDelegate( IntPtr self, AppId_t nAppID );
private BIsAppBlockedDelegate BIsAppBlockedDelegatePointer; private BIsAppBlockedDelegate BIsAppBlockedDelegatePointer;
#endregion #endregion
public bool BIsAppBlocked( AppId_t nAppID ) internal bool BIsAppBlocked( AppId_t nAppID )
{ {
return BIsAppBlockedDelegatePointer( Self, nAppID ); return BIsAppBlockedDelegatePointer( Self, nAppID );
} }
@ -63,11 +63,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsAppInBlockListDelegate( IntPtr self, AppId_t nAppID ); private delegate bool BIsAppInBlockListDelegate( IntPtr self, AppId_t nAppID );
private BIsAppInBlockListDelegate BIsAppInBlockListDelegatePointer; private BIsAppInBlockListDelegate BIsAppInBlockListDelegatePointer;
#endregion #endregion
public bool BIsAppInBlockList( AppId_t nAppID ) internal bool BIsAppInBlockList( AppId_t nAppID )
{ {
return BIsAppInBlockListDelegatePointer( Self, nAppID ); return BIsAppInBlockListDelegatePointer( Self, nAppID );
} }
@ -75,11 +75,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsFeatureBlockedDelegate( IntPtr self, ParentalFeature eFeature ); private delegate bool BIsFeatureBlockedDelegate( IntPtr self, ParentalFeature eFeature );
private BIsFeatureBlockedDelegate BIsFeatureBlockedDelegatePointer; private BIsFeatureBlockedDelegate BIsFeatureBlockedDelegatePointer;
#endregion #endregion
public bool BIsFeatureBlocked( ParentalFeature eFeature ) internal bool BIsFeatureBlocked( ParentalFeature eFeature )
{ {
return BIsFeatureBlockedDelegatePointer( Self, eFeature ); return BIsFeatureBlockedDelegatePointer( Self, eFeature );
} }
@ -87,11 +87,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsFeatureInBlockListDelegate( IntPtr self, ParentalFeature eFeature ); private delegate bool BIsFeatureInBlockListDelegate( IntPtr self, ParentalFeature eFeature );
private BIsFeatureInBlockListDelegate BIsFeatureInBlockListDelegatePointer; private BIsFeatureInBlockListDelegate BIsFeatureInBlockListDelegatePointer;
#endregion #endregion
public bool BIsFeatureInBlockList( ParentalFeature eFeature ) internal bool BIsFeatureInBlockList( ParentalFeature eFeature )
{ {
return BIsFeatureInBlockListDelegatePointer( Self, eFeature ); return BIsFeatureInBlockListDelegatePointer( Self, eFeature );
} }

View File

@ -50,11 +50,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HSteamUser GetHSteamUserDelegate( IntPtr self ); private delegate HSteamUser GetHSteamUserDelegate( IntPtr self );
private GetHSteamUserDelegate GetHSteamUserDelegatePointer; private GetHSteamUserDelegate GetHSteamUserDelegatePointer;
#endregion #endregion
public HSteamUser GetHSteamUser() internal HSteamUser GetHSteamUser()
{ {
return GetHSteamUserDelegatePointer( Self ); return GetHSteamUserDelegatePointer( Self );
} }
@ -62,22 +62,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BLoggedOnDelegate( IntPtr self ); private delegate bool BLoggedOnDelegate( IntPtr self );
private BLoggedOnDelegate BLoggedOnDelegatePointer; private BLoggedOnDelegate BLoggedOnDelegatePointer;
#endregion #endregion
public bool BLoggedOn() internal bool BLoggedOn()
{ {
return BLoggedOnDelegatePointer( Self ); return BLoggedOnDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal ); private delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal );
private GetSteamIDDelegate GetSteamIDDelegatePointer; private GetSteamIDDelegate GetSteamIDDelegatePointer;
#endregion #endregion
public SteamId GetSteamID() internal SteamId GetSteamID()
{ {
var retVal = default( SteamId ); var retVal = default( SteamId );
GetSteamIDDelegatePointer( Self, ref retVal ); GetSteamIDDelegatePointer( Self, ref retVal );
@ -86,33 +86,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int InitiateGameConnectionDelegate( IntPtr self, IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure ); private delegate int InitiateGameConnectionDelegate( IntPtr self, IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure );
private InitiateGameConnectionDelegate InitiateGameConnectionDelegatePointer; private InitiateGameConnectionDelegate InitiateGameConnectionDelegatePointer;
#endregion #endregion
public int InitiateGameConnection( IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure ) internal int InitiateGameConnection( IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure )
{ {
return InitiateGameConnectionDelegatePointer( Self, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure ); return InitiateGameConnectionDelegatePointer( Self, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void TerminateGameConnectionDelegate( IntPtr self, uint unIPServer, ushort usPortServer ); private delegate void TerminateGameConnectionDelegate( IntPtr self, uint unIPServer, ushort usPortServer );
private TerminateGameConnectionDelegate TerminateGameConnectionDelegatePointer; private TerminateGameConnectionDelegate TerminateGameConnectionDelegatePointer;
#endregion #endregion
public void TerminateGameConnection( uint unIPServer, ushort usPortServer ) internal void TerminateGameConnection( uint unIPServer, ushort usPortServer )
{ {
TerminateGameConnectionDelegatePointer( Self, unIPServer, usPortServer ); TerminateGameConnectionDelegatePointer( Self, unIPServer, usPortServer );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void TrackAppUsageEventDelegate( IntPtr self, GameId gameID, int eAppUsageEvent, string pchExtraInfo ); private delegate void TrackAppUsageEventDelegate( IntPtr self, GameId gameID, int eAppUsageEvent, string pchExtraInfo );
private TrackAppUsageEventDelegate TrackAppUsageEventDelegatePointer; private TrackAppUsageEventDelegate TrackAppUsageEventDelegatePointer;
#endregion #endregion
public void TrackAppUsageEvent( GameId gameID, int eAppUsageEvent, string pchExtraInfo ) internal void TrackAppUsageEvent( GameId gameID, int eAppUsageEvent, string pchExtraInfo )
{ {
TrackAppUsageEventDelegatePointer( Self, gameID, eAppUsageEvent, pchExtraInfo ); TrackAppUsageEventDelegatePointer( Self, gameID, eAppUsageEvent, pchExtraInfo );
} }
@ -120,132 +120,132 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetUserDataFolderDelegate( IntPtr self, StringBuilder pchBuffer, int cubBuffer ); private delegate bool GetUserDataFolderDelegate( IntPtr self, StringBuilder pchBuffer, int cubBuffer );
private GetUserDataFolderDelegate GetUserDataFolderDelegatePointer; private GetUserDataFolderDelegate GetUserDataFolderDelegatePointer;
#endregion #endregion
public bool GetUserDataFolder( StringBuilder pchBuffer, int cubBuffer ) internal bool GetUserDataFolder( StringBuilder pchBuffer, int cubBuffer )
{ {
return GetUserDataFolderDelegatePointer( Self, pchBuffer, cubBuffer ); return GetUserDataFolderDelegatePointer( Self, pchBuffer, cubBuffer );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void StartVoiceRecordingDelegate( IntPtr self ); private delegate void StartVoiceRecordingDelegate( IntPtr self );
private StartVoiceRecordingDelegate StartVoiceRecordingDelegatePointer; private StartVoiceRecordingDelegate StartVoiceRecordingDelegatePointer;
#endregion #endregion
public void StartVoiceRecording() internal void StartVoiceRecording()
{ {
StartVoiceRecordingDelegatePointer( Self ); StartVoiceRecordingDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void StopVoiceRecordingDelegate( IntPtr self ); private delegate void StopVoiceRecordingDelegate( IntPtr self );
private StopVoiceRecordingDelegate StopVoiceRecordingDelegatePointer; private StopVoiceRecordingDelegate StopVoiceRecordingDelegatePointer;
#endregion #endregion
public void StopVoiceRecording() internal void StopVoiceRecording()
{ {
StopVoiceRecordingDelegatePointer( Self ); StopVoiceRecordingDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate VoiceResult GetAvailableVoiceDelegate( IntPtr self, ref uint pcbCompressed, ref uint pcbUncompressed_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated ); private delegate VoiceResult GetAvailableVoiceDelegate( IntPtr self, ref uint pcbCompressed, ref uint pcbUncompressed_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated );
private GetAvailableVoiceDelegate GetAvailableVoiceDelegatePointer; private GetAvailableVoiceDelegate GetAvailableVoiceDelegatePointer;
#endregion #endregion
public VoiceResult GetAvailableVoice( ref uint pcbCompressed, ref uint pcbUncompressed_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated ) internal VoiceResult GetAvailableVoice( ref uint pcbCompressed, ref uint pcbUncompressed_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated )
{ {
return GetAvailableVoiceDelegatePointer( Self, ref pcbCompressed, ref pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated ); return GetAvailableVoiceDelegatePointer( Self, ref pcbCompressed, ref pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate VoiceResult GetVoiceDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bWantCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, [MarshalAs( UnmanagedType.U1 )] bool bWantUncompressed_Deprecated, IntPtr pUncompressedDestBuffer_Deprecated, uint cbUncompressedDestBufferSize_Deprecated, ref uint nUncompressBytesWritten_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated ); private delegate VoiceResult GetVoiceDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bWantCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, [MarshalAs( UnmanagedType.U1 )] bool bWantUncompressed_Deprecated, IntPtr pUncompressedDestBuffer_Deprecated, uint cbUncompressedDestBufferSize_Deprecated, ref uint nUncompressBytesWritten_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated );
private GetVoiceDelegate GetVoiceDelegatePointer; private GetVoiceDelegate GetVoiceDelegatePointer;
#endregion #endregion
public VoiceResult GetVoice( [MarshalAs( UnmanagedType.U1 )] bool bWantCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, [MarshalAs( UnmanagedType.U1 )] bool bWantUncompressed_Deprecated, IntPtr pUncompressedDestBuffer_Deprecated, uint cbUncompressedDestBufferSize_Deprecated, ref uint nUncompressBytesWritten_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated ) internal VoiceResult GetVoice( [MarshalAs( UnmanagedType.U1 )] bool bWantCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, [MarshalAs( UnmanagedType.U1 )] bool bWantUncompressed_Deprecated, IntPtr pUncompressedDestBuffer_Deprecated, uint cbUncompressedDestBufferSize_Deprecated, ref uint nUncompressBytesWritten_Deprecated, uint nUncompressedVoiceDesiredSampleRate_Deprecated )
{ {
return GetVoiceDelegatePointer( Self, bWantCompressed, pDestBuffer, cbDestBufferSize, ref nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, ref nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated ); return GetVoiceDelegatePointer( Self, bWantCompressed, pDestBuffer, cbDestBufferSize, ref nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, ref nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate VoiceResult DecompressVoiceDelegate( IntPtr self, IntPtr pCompressed, uint cbCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, uint nDesiredSampleRate ); private delegate VoiceResult DecompressVoiceDelegate( IntPtr self, IntPtr pCompressed, uint cbCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, uint nDesiredSampleRate );
private DecompressVoiceDelegate DecompressVoiceDelegatePointer; private DecompressVoiceDelegate DecompressVoiceDelegatePointer;
#endregion #endregion
public VoiceResult DecompressVoice( IntPtr pCompressed, uint cbCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, uint nDesiredSampleRate ) internal VoiceResult DecompressVoice( IntPtr pCompressed, uint cbCompressed, IntPtr pDestBuffer, uint cbDestBufferSize, ref uint nBytesWritten, uint nDesiredSampleRate )
{ {
return DecompressVoiceDelegatePointer( Self, pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, ref nBytesWritten, nDesiredSampleRate ); return DecompressVoiceDelegatePointer( Self, pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, ref nBytesWritten, nDesiredSampleRate );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetVoiceOptimalSampleRateDelegate( IntPtr self ); private delegate uint GetVoiceOptimalSampleRateDelegate( IntPtr self );
private GetVoiceOptimalSampleRateDelegate GetVoiceOptimalSampleRateDelegatePointer; private GetVoiceOptimalSampleRateDelegate GetVoiceOptimalSampleRateDelegatePointer;
#endregion #endregion
public uint GetVoiceOptimalSampleRate() internal uint GetVoiceOptimalSampleRate()
{ {
return GetVoiceOptimalSampleRateDelegatePointer( Self ); return GetVoiceOptimalSampleRateDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HAuthTicket GetAuthSessionTicketDelegate( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket ); private delegate HAuthTicket GetAuthSessionTicketDelegate( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket );
private GetAuthSessionTicketDelegate GetAuthSessionTicketDelegatePointer; private GetAuthSessionTicketDelegate GetAuthSessionTicketDelegatePointer;
#endregion #endregion
public HAuthTicket GetAuthSessionTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket ) internal HAuthTicket GetAuthSessionTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket )
{ {
return GetAuthSessionTicketDelegatePointer( Self, pTicket, cbMaxTicket, ref pcbTicket ); return GetAuthSessionTicketDelegatePointer( Self, pTicket, cbMaxTicket, ref pcbTicket );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate BeginAuthSessionResult BeginAuthSessionDelegate( IntPtr self, IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID ); private delegate BeginAuthResult BeginAuthSessionDelegate( IntPtr self, IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID );
private BeginAuthSessionDelegate BeginAuthSessionDelegatePointer; private BeginAuthSessionDelegate BeginAuthSessionDelegatePointer;
#endregion #endregion
public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID ) internal BeginAuthResult BeginAuthSession( IntPtr pAuthTicket, int cbAuthTicket, SteamId steamID )
{ {
return BeginAuthSessionDelegatePointer( Self, pAuthTicket, cbAuthTicket, steamID ); return BeginAuthSessionDelegatePointer( Self, pAuthTicket, cbAuthTicket, steamID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID ); private delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID );
private EndAuthSessionDelegate EndAuthSessionDelegatePointer; private EndAuthSessionDelegate EndAuthSessionDelegatePointer;
#endregion #endregion
public void EndAuthSession( SteamId steamID ) internal void EndAuthSession( SteamId steamID )
{ {
EndAuthSessionDelegatePointer( Self, steamID ); EndAuthSessionDelegatePointer( Self, steamID );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CancelAuthTicketDelegate( IntPtr self, HAuthTicket hAuthTicket ); private delegate void CancelAuthTicketDelegate( IntPtr self, HAuthTicket hAuthTicket );
private CancelAuthTicketDelegate CancelAuthTicketDelegatePointer; private CancelAuthTicketDelegate CancelAuthTicketDelegatePointer;
#endregion #endregion
public void CancelAuthTicket( HAuthTicket hAuthTicket ) internal void CancelAuthTicket( HAuthTicket hAuthTicket )
{ {
CancelAuthTicketDelegatePointer( Self, hAuthTicket ); CancelAuthTicketDelegatePointer( Self, hAuthTicket );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate UserHasLicenseForAppResult UserHasLicenseForAppDelegate( IntPtr self, SteamId steamID, AppId_t appID ); private delegate UserHasLicenseForAppResult UserHasLicenseForAppDelegate( IntPtr self, SteamId steamID, AppId_t appID );
private UserHasLicenseForAppDelegate UserHasLicenseForAppDelegatePointer; private UserHasLicenseForAppDelegate UserHasLicenseForAppDelegatePointer;
#endregion #endregion
public UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID ) internal UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID )
{ {
return UserHasLicenseForAppDelegatePointer( Self, steamID, appID ); return UserHasLicenseForAppDelegatePointer( Self, steamID, appID );
} }
@ -253,33 +253,33 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsBehindNATDelegate( IntPtr self ); private delegate bool BIsBehindNATDelegate( IntPtr self );
private BIsBehindNATDelegate BIsBehindNATDelegatePointer; private BIsBehindNATDelegate BIsBehindNATDelegatePointer;
#endregion #endregion
public bool BIsBehindNAT() internal bool BIsBehindNAT()
{ {
return BIsBehindNATDelegatePointer( Self ); return BIsBehindNATDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void AdvertiseGameDelegate( IntPtr self, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer ); private delegate void AdvertiseGameDelegate( IntPtr self, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer );
private AdvertiseGameDelegate AdvertiseGameDelegatePointer; private AdvertiseGameDelegate AdvertiseGameDelegatePointer;
#endregion #endregion
public void AdvertiseGame( SteamId steamIDGameServer, uint unIPServer, ushort usPortServer ) internal void AdvertiseGame( SteamId steamIDGameServer, uint unIPServer, ushort usPortServer )
{ {
AdvertiseGameDelegatePointer( Self, steamIDGameServer, unIPServer, usPortServer ); AdvertiseGameDelegatePointer( Self, steamIDGameServer, unIPServer, usPortServer );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t RequestEncryptedAppTicketDelegate( IntPtr self, IntPtr pDataToInclude, int cbDataToInclude ); private delegate SteamAPICall_t RequestEncryptedAppTicketDelegate( IntPtr self, IntPtr pDataToInclude, int cbDataToInclude );
private RequestEncryptedAppTicketDelegate RequestEncryptedAppTicketDelegatePointer; private RequestEncryptedAppTicketDelegate RequestEncryptedAppTicketDelegatePointer;
#endregion #endregion
public async Task<EncryptedAppTicketResponse_t?> RequestEncryptedAppTicket( IntPtr pDataToInclude, int cbDataToInclude ) internal async Task<EncryptedAppTicketResponse_t?> RequestEncryptedAppTicket( IntPtr pDataToInclude, int cbDataToInclude )
{ {
return await (new Result<EncryptedAppTicketResponse_t>( RequestEncryptedAppTicketDelegatePointer( Self, pDataToInclude, cbDataToInclude ) )).GetResult(); return await (new Result<EncryptedAppTicketResponse_t>( RequestEncryptedAppTicketDelegatePointer( Self, pDataToInclude, cbDataToInclude ) )).GetResult();
} }
@ -287,44 +287,44 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetEncryptedAppTicketDelegate( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket ); private delegate bool GetEncryptedAppTicketDelegate( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket );
private GetEncryptedAppTicketDelegate GetEncryptedAppTicketDelegatePointer; private GetEncryptedAppTicketDelegate GetEncryptedAppTicketDelegatePointer;
#endregion #endregion
public bool GetEncryptedAppTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket ) internal bool GetEncryptedAppTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket )
{ {
return GetEncryptedAppTicketDelegatePointer( Self, pTicket, cbMaxTicket, ref pcbTicket ); return GetEncryptedAppTicketDelegatePointer( Self, pTicket, cbMaxTicket, ref pcbTicket );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetGameBadgeLevelDelegate( IntPtr self, int nSeries, [MarshalAs( UnmanagedType.U1 )] bool bFoil ); private delegate int GetGameBadgeLevelDelegate( IntPtr self, int nSeries, [MarshalAs( UnmanagedType.U1 )] bool bFoil );
private GetGameBadgeLevelDelegate GetGameBadgeLevelDelegatePointer; private GetGameBadgeLevelDelegate GetGameBadgeLevelDelegatePointer;
#endregion #endregion
public int GetGameBadgeLevel( int nSeries, [MarshalAs( UnmanagedType.U1 )] bool bFoil ) internal int GetGameBadgeLevel( int nSeries, [MarshalAs( UnmanagedType.U1 )] bool bFoil )
{ {
return GetGameBadgeLevelDelegatePointer( Self, nSeries, bFoil ); return GetGameBadgeLevelDelegatePointer( Self, nSeries, bFoil );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetPlayerSteamLevelDelegate( IntPtr self ); private delegate int GetPlayerSteamLevelDelegate( IntPtr self );
private GetPlayerSteamLevelDelegate GetPlayerSteamLevelDelegatePointer; private GetPlayerSteamLevelDelegate GetPlayerSteamLevelDelegatePointer;
#endregion #endregion
public int GetPlayerSteamLevel() internal int GetPlayerSteamLevel()
{ {
return GetPlayerSteamLevelDelegatePointer( Self ); return GetPlayerSteamLevelDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t RequestStoreAuthURLDelegate( IntPtr self, string pchRedirectURL ); private delegate SteamAPICall_t RequestStoreAuthURLDelegate( IntPtr self, string pchRedirectURL );
private RequestStoreAuthURLDelegate RequestStoreAuthURLDelegatePointer; private RequestStoreAuthURLDelegate RequestStoreAuthURLDelegatePointer;
#endregion #endregion
public async Task<StoreAuthURLResponse_t?> RequestStoreAuthURL( string pchRedirectURL ) internal async Task<StoreAuthURLResponse_t?> RequestStoreAuthURL( string pchRedirectURL )
{ {
return await (new Result<StoreAuthURLResponse_t>( RequestStoreAuthURLDelegatePointer( Self, pchRedirectURL ) )).GetResult(); return await (new Result<StoreAuthURLResponse_t>( RequestStoreAuthURLDelegatePointer( Self, pchRedirectURL ) )).GetResult();
} }
@ -332,11 +332,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsPhoneVerifiedDelegate( IntPtr self ); private delegate bool BIsPhoneVerifiedDelegate( IntPtr self );
private BIsPhoneVerifiedDelegate BIsPhoneVerifiedDelegatePointer; private BIsPhoneVerifiedDelegate BIsPhoneVerifiedDelegatePointer;
#endregion #endregion
public bool BIsPhoneVerified() internal bool BIsPhoneVerified()
{ {
return BIsPhoneVerifiedDelegatePointer( Self ); return BIsPhoneVerifiedDelegatePointer( Self );
} }
@ -344,11 +344,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsTwoFactorEnabledDelegate( IntPtr self ); private delegate bool BIsTwoFactorEnabledDelegate( IntPtr self );
private BIsTwoFactorEnabledDelegate BIsTwoFactorEnabledDelegatePointer; private BIsTwoFactorEnabledDelegate BIsTwoFactorEnabledDelegatePointer;
#endregion #endregion
public bool BIsTwoFactorEnabled() internal bool BIsTwoFactorEnabled()
{ {
return BIsTwoFactorEnabledDelegatePointer( Self ); return BIsTwoFactorEnabledDelegatePointer( Self );
} }
@ -356,11 +356,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsPhoneIdentifyingDelegate( IntPtr self ); private delegate bool BIsPhoneIdentifyingDelegate( IntPtr self );
private BIsPhoneIdentifyingDelegate BIsPhoneIdentifyingDelegatePointer; private BIsPhoneIdentifyingDelegate BIsPhoneIdentifyingDelegatePointer;
#endregion #endregion
public bool BIsPhoneIdentifying() internal bool BIsPhoneIdentifying()
{ {
return BIsPhoneIdentifyingDelegatePointer( Self ); return BIsPhoneIdentifyingDelegatePointer( Self );
} }
@ -368,22 +368,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsPhoneRequiringVerificationDelegate( IntPtr self ); private delegate bool BIsPhoneRequiringVerificationDelegate( IntPtr self );
private BIsPhoneRequiringVerificationDelegate BIsPhoneRequiringVerificationDelegatePointer; private BIsPhoneRequiringVerificationDelegate BIsPhoneRequiringVerificationDelegatePointer;
#endregion #endregion
public bool BIsPhoneRequiringVerification() internal bool BIsPhoneRequiringVerification()
{ {
return BIsPhoneRequiringVerificationDelegatePointer( Self ); return BIsPhoneRequiringVerificationDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t GetMarketEligibilityDelegate( IntPtr self ); private delegate SteamAPICall_t GetMarketEligibilityDelegate( IntPtr self );
private GetMarketEligibilityDelegate GetMarketEligibilityDelegatePointer; private GetMarketEligibilityDelegate GetMarketEligibilityDelegatePointer;
#endregion #endregion
public async Task<MarketEligibilityResponse_t?> GetMarketEligibility() internal async Task<MarketEligibilityResponse_t?> GetMarketEligibility()
{ {
return await (new Result<MarketEligibilityResponse_t>( GetMarketEligibilityDelegatePointer( Self ) )).GetResult(); return await (new Result<MarketEligibilityResponse_t>( GetMarketEligibilityDelegatePointer( Self ) )).GetResult();
} }

View File

@ -50,55 +50,55 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetSecondsSinceAppActiveDelegate( IntPtr self ); private delegate uint GetSecondsSinceAppActiveDelegate( IntPtr self );
private GetSecondsSinceAppActiveDelegate GetSecondsSinceAppActiveDelegatePointer; private GetSecondsSinceAppActiveDelegate GetSecondsSinceAppActiveDelegatePointer;
#endregion #endregion
public uint GetSecondsSinceAppActive() internal uint GetSecondsSinceAppActive()
{ {
return GetSecondsSinceAppActiveDelegatePointer( Self ); return GetSecondsSinceAppActiveDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetSecondsSinceComputerActiveDelegate( IntPtr self ); private delegate uint GetSecondsSinceComputerActiveDelegate( IntPtr self );
private GetSecondsSinceComputerActiveDelegate GetSecondsSinceComputerActiveDelegatePointer; private GetSecondsSinceComputerActiveDelegate GetSecondsSinceComputerActiveDelegatePointer;
#endregion #endregion
public uint GetSecondsSinceComputerActive() internal uint GetSecondsSinceComputerActive()
{ {
return GetSecondsSinceComputerActiveDelegatePointer( Self ); return GetSecondsSinceComputerActiveDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate Universe GetConnectedUniverseDelegate( IntPtr self ); private delegate Universe GetConnectedUniverseDelegate( IntPtr self );
private GetConnectedUniverseDelegate GetConnectedUniverseDelegatePointer; private GetConnectedUniverseDelegate GetConnectedUniverseDelegatePointer;
#endregion #endregion
public Universe GetConnectedUniverse() internal Universe GetConnectedUniverse()
{ {
return GetConnectedUniverseDelegatePointer( Self ); return GetConnectedUniverseDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetServerRealTimeDelegate( IntPtr self ); private delegate uint GetServerRealTimeDelegate( IntPtr self );
private GetServerRealTimeDelegate GetServerRealTimeDelegatePointer; private GetServerRealTimeDelegate GetServerRealTimeDelegatePointer;
#endregion #endregion
public uint GetServerRealTime() internal uint GetServerRealTime()
{ {
return GetServerRealTimeDelegatePointer( Self ); return GetServerRealTimeDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetIPCountryDelegate( IntPtr self ); private delegate IntPtr GetIPCountryDelegate( IntPtr self );
private GetIPCountryDelegate GetIPCountryDelegatePointer; private GetIPCountryDelegate GetIPCountryDelegatePointer;
#endregion #endregion
public string GetIPCountry() internal string GetIPCountry()
{ {
return GetString( GetIPCountryDelegatePointer( Self ) ); return GetString( GetIPCountryDelegatePointer( Self ) );
} }
@ -106,11 +106,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetImageSizeDelegate( IntPtr self, int iImage, ref uint pnWidth, ref uint pnHeight ); private delegate bool GetImageSizeDelegate( IntPtr self, int iImage, ref uint pnWidth, ref uint pnHeight );
private GetImageSizeDelegate GetImageSizeDelegatePointer; private GetImageSizeDelegate GetImageSizeDelegatePointer;
#endregion #endregion
public bool GetImageSize( int iImage, ref uint pnWidth, ref uint pnHeight ) internal bool GetImageSize( int iImage, ref uint pnWidth, ref uint pnHeight )
{ {
return GetImageSizeDelegatePointer( Self, iImage, ref pnWidth, ref pnHeight ); return GetImageSizeDelegatePointer( Self, iImage, ref pnWidth, ref pnHeight );
} }
@ -118,11 +118,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetImageRGBADelegate( IntPtr self, int iImage, [In,Out] byte[] pubDest, int nDestBufferSize ); private delegate bool GetImageRGBADelegate( IntPtr self, int iImage, [In,Out] byte[] pubDest, int nDestBufferSize );
private GetImageRGBADelegate GetImageRGBADelegatePointer; private GetImageRGBADelegate GetImageRGBADelegatePointer;
#endregion #endregion
public bool GetImageRGBA( int iImage, [In,Out] byte[] pubDest, int nDestBufferSize ) internal bool GetImageRGBA( int iImage, [In,Out] byte[] pubDest, int nDestBufferSize )
{ {
return GetImageRGBADelegatePointer( Self, iImage, pubDest, nDestBufferSize ); return GetImageRGBADelegatePointer( Self, iImage, pubDest, nDestBufferSize );
} }
@ -130,44 +130,44 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetCSERIPPortDelegate( IntPtr self, ref uint unIP, ref ushort usPort ); private delegate bool GetCSERIPPortDelegate( IntPtr self, ref uint unIP, ref ushort usPort );
private GetCSERIPPortDelegate GetCSERIPPortDelegatePointer; private GetCSERIPPortDelegate GetCSERIPPortDelegatePointer;
#endregion #endregion
public bool GetCSERIPPort( ref uint unIP, ref ushort usPort ) internal bool GetCSERIPPort( ref uint unIP, ref ushort usPort )
{ {
return GetCSERIPPortDelegatePointer( Self, ref unIP, ref usPort ); return GetCSERIPPortDelegatePointer( Self, ref unIP, ref usPort );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate byte GetCurrentBatteryPowerDelegate( IntPtr self ); private delegate byte GetCurrentBatteryPowerDelegate( IntPtr self );
private GetCurrentBatteryPowerDelegate GetCurrentBatteryPowerDelegatePointer; private GetCurrentBatteryPowerDelegate GetCurrentBatteryPowerDelegatePointer;
#endregion #endregion
public byte GetCurrentBatteryPower() internal byte GetCurrentBatteryPower()
{ {
return GetCurrentBatteryPowerDelegatePointer( Self ); return GetCurrentBatteryPowerDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetAppIDDelegate( IntPtr self ); private delegate uint GetAppIDDelegate( IntPtr self );
private GetAppIDDelegate GetAppIDDelegatePointer; private GetAppIDDelegate GetAppIDDelegatePointer;
#endregion #endregion
public uint GetAppID() internal uint GetAppID()
{ {
return GetAppIDDelegatePointer( Self ); return GetAppIDDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetOverlayNotificationPositionDelegate( IntPtr self, NotificationPosition eNotificationPosition ); private delegate void SetOverlayNotificationPositionDelegate( IntPtr self, NotificationPosition eNotificationPosition );
private SetOverlayNotificationPositionDelegate SetOverlayNotificationPositionDelegatePointer; private SetOverlayNotificationPositionDelegate SetOverlayNotificationPositionDelegatePointer;
#endregion #endregion
public void SetOverlayNotificationPosition( NotificationPosition eNotificationPosition ) internal void SetOverlayNotificationPosition( NotificationPosition eNotificationPosition )
{ {
SetOverlayNotificationPositionDelegatePointer( Self, eNotificationPosition ); SetOverlayNotificationPositionDelegatePointer( Self, eNotificationPosition );
} }
@ -175,22 +175,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsAPICallCompletedDelegate( IntPtr self, SteamAPICall_t hSteamAPICall, [MarshalAs( UnmanagedType.U1 )] ref bool pbFailed ); private delegate bool IsAPICallCompletedDelegate( IntPtr self, SteamAPICall_t hSteamAPICall, [MarshalAs( UnmanagedType.U1 )] ref bool pbFailed );
private IsAPICallCompletedDelegate IsAPICallCompletedDelegatePointer; private IsAPICallCompletedDelegate IsAPICallCompletedDelegatePointer;
#endregion #endregion
public bool IsAPICallCompleted( SteamAPICall_t hSteamAPICall, [MarshalAs( UnmanagedType.U1 )] ref bool pbFailed ) internal bool IsAPICallCompleted( SteamAPICall_t hSteamAPICall, [MarshalAs( UnmanagedType.U1 )] ref bool pbFailed )
{ {
return IsAPICallCompletedDelegatePointer( Self, hSteamAPICall, ref pbFailed ); return IsAPICallCompletedDelegatePointer( Self, hSteamAPICall, ref pbFailed );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICallFailure GetAPICallFailureReasonDelegate( IntPtr self, SteamAPICall_t hSteamAPICall ); private delegate SteamAPICallFailure GetAPICallFailureReasonDelegate( IntPtr self, SteamAPICall_t hSteamAPICall );
private GetAPICallFailureReasonDelegate GetAPICallFailureReasonDelegatePointer; private GetAPICallFailureReasonDelegate GetAPICallFailureReasonDelegatePointer;
#endregion #endregion
public SteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall ) internal SteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall )
{ {
return GetAPICallFailureReasonDelegatePointer( Self, hSteamAPICall ); return GetAPICallFailureReasonDelegatePointer( Self, hSteamAPICall );
} }
@ -198,44 +198,44 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetAPICallResultDelegate( IntPtr self, SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, [MarshalAs( UnmanagedType.U1 )] ref bool pbFailed ); private delegate bool GetAPICallResultDelegate( IntPtr self, SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, [MarshalAs( UnmanagedType.U1 )] ref bool pbFailed );
private GetAPICallResultDelegate GetAPICallResultDelegatePointer; private GetAPICallResultDelegate GetAPICallResultDelegatePointer;
#endregion #endregion
public bool GetAPICallResult( SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, [MarshalAs( UnmanagedType.U1 )] ref bool pbFailed ) internal bool GetAPICallResult( SteamAPICall_t hSteamAPICall, IntPtr pCallback, int cubCallback, int iCallbackExpected, [MarshalAs( UnmanagedType.U1 )] ref bool pbFailed )
{ {
return GetAPICallResultDelegatePointer( Self, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed ); return GetAPICallResultDelegatePointer( Self, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RunFrameDelegate( IntPtr self ); private delegate void RunFrameDelegate( IntPtr self );
private RunFrameDelegate RunFrameDelegatePointer; private RunFrameDelegate RunFrameDelegatePointer;
#endregion #endregion
public void RunFrame() internal void RunFrame()
{ {
RunFrameDelegatePointer( Self ); RunFrameDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetIPCCallCountDelegate( IntPtr self ); private delegate uint GetIPCCallCountDelegate( IntPtr self );
private GetIPCCallCountDelegate GetIPCCallCountDelegatePointer; private GetIPCCallCountDelegate GetIPCCallCountDelegatePointer;
#endregion #endregion
public uint GetIPCCallCount() internal uint GetIPCCallCount()
{ {
return GetIPCCallCountDelegatePointer( Self ); return GetIPCCallCountDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetWarningMessageHookDelegate( IntPtr self, IntPtr pFunction ); private delegate void SetWarningMessageHookDelegate( IntPtr self, IntPtr pFunction );
private SetWarningMessageHookDelegate SetWarningMessageHookDelegatePointer; private SetWarningMessageHookDelegate SetWarningMessageHookDelegatePointer;
#endregion #endregion
public void SetWarningMessageHook( IntPtr pFunction ) internal void SetWarningMessageHook( IntPtr pFunction )
{ {
SetWarningMessageHookDelegatePointer( Self, pFunction ); SetWarningMessageHookDelegatePointer( Self, pFunction );
} }
@ -243,11 +243,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsOverlayEnabledDelegate( IntPtr self ); private delegate bool IsOverlayEnabledDelegate( IntPtr self );
private IsOverlayEnabledDelegate IsOverlayEnabledDelegatePointer; private IsOverlayEnabledDelegate IsOverlayEnabledDelegatePointer;
#endregion #endregion
public bool IsOverlayEnabled() internal bool IsOverlayEnabled()
{ {
return IsOverlayEnabledDelegatePointer( Self ); return IsOverlayEnabledDelegatePointer( Self );
} }
@ -255,22 +255,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BOverlayNeedsPresentDelegate( IntPtr self ); private delegate bool BOverlayNeedsPresentDelegate( IntPtr self );
private BOverlayNeedsPresentDelegate BOverlayNeedsPresentDelegatePointer; private BOverlayNeedsPresentDelegate BOverlayNeedsPresentDelegatePointer;
#endregion #endregion
public bool BOverlayNeedsPresent() internal bool BOverlayNeedsPresent()
{ {
return BOverlayNeedsPresentDelegatePointer( Self ); return BOverlayNeedsPresentDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t CheckFileSignatureDelegate( IntPtr self, string szFileName ); private delegate SteamAPICall_t CheckFileSignatureDelegate( IntPtr self, string szFileName );
private CheckFileSignatureDelegate CheckFileSignatureDelegatePointer; private CheckFileSignatureDelegate CheckFileSignatureDelegatePointer;
#endregion #endregion
public async Task<CheckFileSignature_t?> CheckFileSignature( string szFileName ) internal async Task<CheckFileSignature_t?> CheckFileSignature( string szFileName )
{ {
return await (new Result<CheckFileSignature_t>( CheckFileSignatureDelegatePointer( Self, szFileName ) )).GetResult(); return await (new Result<CheckFileSignature_t>( CheckFileSignatureDelegatePointer( Self, szFileName ) )).GetResult();
} }
@ -278,22 +278,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool ShowGamepadTextInputDelegate( IntPtr self, GamepadTextInputMode eInputMode, GamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText ); private delegate bool ShowGamepadTextInputDelegate( IntPtr self, GamepadTextInputMode eInputMode, GamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText );
private ShowGamepadTextInputDelegate ShowGamepadTextInputDelegatePointer; private ShowGamepadTextInputDelegate ShowGamepadTextInputDelegatePointer;
#endregion #endregion
public bool ShowGamepadTextInput( GamepadTextInputMode eInputMode, GamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText ) internal bool ShowGamepadTextInput( GamepadTextInputMode eInputMode, GamepadTextInputLineMode eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText )
{ {
return ShowGamepadTextInputDelegatePointer( Self, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText ); return ShowGamepadTextInputDelegatePointer( Self, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetEnteredGamepadTextLengthDelegate( IntPtr self ); private delegate uint GetEnteredGamepadTextLengthDelegate( IntPtr self );
private GetEnteredGamepadTextLengthDelegate GetEnteredGamepadTextLengthDelegatePointer; private GetEnteredGamepadTextLengthDelegate GetEnteredGamepadTextLengthDelegatePointer;
#endregion #endregion
public uint GetEnteredGamepadTextLength() internal uint GetEnteredGamepadTextLength()
{ {
return GetEnteredGamepadTextLengthDelegatePointer( Self ); return GetEnteredGamepadTextLengthDelegatePointer( Self );
} }
@ -301,22 +301,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetEnteredGamepadTextInputDelegate( IntPtr self, StringBuilder pchText, uint cchText ); private delegate bool GetEnteredGamepadTextInputDelegate( IntPtr self, StringBuilder pchText, uint cchText );
private GetEnteredGamepadTextInputDelegate GetEnteredGamepadTextInputDelegatePointer; private GetEnteredGamepadTextInputDelegate GetEnteredGamepadTextInputDelegatePointer;
#endregion #endregion
public bool GetEnteredGamepadTextInput( StringBuilder pchText, uint cchText ) internal bool GetEnteredGamepadTextInput( StringBuilder pchText, uint cchText )
{ {
return GetEnteredGamepadTextInputDelegatePointer( Self, pchText, cchText ); return GetEnteredGamepadTextInputDelegatePointer( Self, pchText, cchText );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetSteamUILanguageDelegate( IntPtr self ); private delegate IntPtr GetSteamUILanguageDelegate( IntPtr self );
private GetSteamUILanguageDelegate GetSteamUILanguageDelegatePointer; private GetSteamUILanguageDelegate GetSteamUILanguageDelegatePointer;
#endregion #endregion
public string GetSteamUILanguage() internal string GetSteamUILanguage()
{ {
return GetString( GetSteamUILanguageDelegatePointer( Self ) ); return GetString( GetSteamUILanguageDelegatePointer( Self ) );
} }
@ -324,22 +324,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsSteamRunningInVRDelegate( IntPtr self ); private delegate bool IsSteamRunningInVRDelegate( IntPtr self );
private IsSteamRunningInVRDelegate IsSteamRunningInVRDelegatePointer; private IsSteamRunningInVRDelegate IsSteamRunningInVRDelegatePointer;
#endregion #endregion
public bool IsSteamRunningInVR() internal bool IsSteamRunningInVR()
{ {
return IsSteamRunningInVRDelegatePointer( Self ); return IsSteamRunningInVRDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetOverlayNotificationInsetDelegate( IntPtr self, int nHorizontalInset, int nVerticalInset ); private delegate void SetOverlayNotificationInsetDelegate( IntPtr self, int nHorizontalInset, int nVerticalInset );
private SetOverlayNotificationInsetDelegate SetOverlayNotificationInsetDelegatePointer; private SetOverlayNotificationInsetDelegate SetOverlayNotificationInsetDelegatePointer;
#endregion #endregion
public void SetOverlayNotificationInset( int nHorizontalInset, int nVerticalInset ) internal void SetOverlayNotificationInset( int nHorizontalInset, int nVerticalInset )
{ {
SetOverlayNotificationInsetDelegatePointer( Self, nHorizontalInset, nVerticalInset ); SetOverlayNotificationInsetDelegatePointer( Self, nHorizontalInset, nVerticalInset );
} }
@ -347,22 +347,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsSteamInBigPictureModeDelegate( IntPtr self ); private delegate bool IsSteamInBigPictureModeDelegate( IntPtr self );
private IsSteamInBigPictureModeDelegate IsSteamInBigPictureModeDelegatePointer; private IsSteamInBigPictureModeDelegate IsSteamInBigPictureModeDelegatePointer;
#endregion #endregion
public bool IsSteamInBigPictureMode() internal bool IsSteamInBigPictureMode()
{ {
return IsSteamInBigPictureModeDelegatePointer( Self ); return IsSteamInBigPictureModeDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void StartVRDashboardDelegate( IntPtr self ); private delegate void StartVRDashboardDelegate( IntPtr self );
private StartVRDashboardDelegate StartVRDashboardDelegatePointer; private StartVRDashboardDelegate StartVRDashboardDelegatePointer;
#endregion #endregion
public void StartVRDashboard() internal void StartVRDashboard()
{ {
StartVRDashboardDelegatePointer( Self ); StartVRDashboardDelegatePointer( Self );
} }
@ -370,22 +370,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsVRHeadsetStreamingEnabledDelegate( IntPtr self ); private delegate bool IsVRHeadsetStreamingEnabledDelegate( IntPtr self );
private IsVRHeadsetStreamingEnabledDelegate IsVRHeadsetStreamingEnabledDelegatePointer; private IsVRHeadsetStreamingEnabledDelegate IsVRHeadsetStreamingEnabledDelegatePointer;
#endregion #endregion
public bool IsVRHeadsetStreamingEnabled() internal bool IsVRHeadsetStreamingEnabled()
{ {
return IsVRHeadsetStreamingEnabledDelegatePointer( Self ); return IsVRHeadsetStreamingEnabledDelegatePointer( Self );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetVRHeadsetStreamingEnabledDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bEnabled ); private delegate void SetVRHeadsetStreamingEnabledDelegate( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bEnabled );
private SetVRHeadsetStreamingEnabledDelegate SetVRHeadsetStreamingEnabledDelegatePointer; private SetVRHeadsetStreamingEnabledDelegate SetVRHeadsetStreamingEnabledDelegatePointer;
#endregion #endregion
public void SetVRHeadsetStreamingEnabled( [MarshalAs( UnmanagedType.U1 )] bool bEnabled ) internal void SetVRHeadsetStreamingEnabled( [MarshalAs( UnmanagedType.U1 )] bool bEnabled )
{ {
SetVRHeadsetStreamingEnabledDelegatePointer( Self, bEnabled ); SetVRHeadsetStreamingEnabledDelegatePointer( Self, bEnabled );
} }

View File

@ -24,11 +24,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetVideoURLDelegate( IntPtr self, AppId_t unVideoAppID ); private delegate void GetVideoURLDelegate( IntPtr self, AppId_t unVideoAppID );
private GetVideoURLDelegate GetVideoURLDelegatePointer; private GetVideoURLDelegate GetVideoURLDelegatePointer;
#endregion #endregion
public void GetVideoURL( AppId_t unVideoAppID ) internal void GetVideoURL( AppId_t unVideoAppID )
{ {
GetVideoURLDelegatePointer( Self, unVideoAppID ); GetVideoURLDelegatePointer( Self, unVideoAppID );
} }
@ -36,22 +36,22 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsBroadcastingDelegate( IntPtr self, ref int pnNumViewers ); private delegate bool IsBroadcastingDelegate( IntPtr self, ref int pnNumViewers );
private IsBroadcastingDelegate IsBroadcastingDelegatePointer; private IsBroadcastingDelegate IsBroadcastingDelegatePointer;
#endregion #endregion
public bool IsBroadcasting( ref int pnNumViewers ) internal bool IsBroadcasting( ref int pnNumViewers )
{ {
return IsBroadcastingDelegatePointer( Self, ref pnNumViewers ); return IsBroadcastingDelegatePointer( Self, ref pnNumViewers );
} }
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetOPFSettingsDelegate( IntPtr self, AppId_t unVideoAppID ); private delegate void GetOPFSettingsDelegate( IntPtr self, AppId_t unVideoAppID );
private GetOPFSettingsDelegate GetOPFSettingsDelegatePointer; private GetOPFSettingsDelegate GetOPFSettingsDelegatePointer;
#endregion #endregion
public void GetOPFSettings( AppId_t unVideoAppID ) internal void GetOPFSettings( AppId_t unVideoAppID )
{ {
GetOPFSettingsDelegatePointer( Self, unVideoAppID ); GetOPFSettingsDelegatePointer( Self, unVideoAppID );
} }
@ -59,11 +59,11 @@ namespace Steamworks.Internal
#region FunctionMeta #region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )] [UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )] [return: MarshalAs( UnmanagedType.I1 )]
public delegate bool GetOPFStringForAppDelegate( IntPtr self, AppId_t unVideoAppID, StringBuilder pchBuffer, ref int pnBufferSize ); private delegate bool GetOPFStringForAppDelegate( IntPtr self, AppId_t unVideoAppID, StringBuilder pchBuffer, ref int pnBufferSize );
private GetOPFStringForAppDelegate GetOPFStringForAppDelegatePointer; private GetOPFStringForAppDelegate GetOPFStringForAppDelegatePointer;
#endregion #endregion
public bool GetOPFStringForApp( AppId_t unVideoAppID, StringBuilder pchBuffer, ref int pnBufferSize ) internal bool GetOPFStringForApp( AppId_t unVideoAppID, StringBuilder pchBuffer, ref int pnBufferSize )
{ {
return GetOPFStringForAppDelegatePointer( Self, unVideoAppID, pchBuffer, ref pnBufferSize ); return GetOPFStringForAppDelegatePointer( Self, unVideoAppID, pchBuffer, ref pnBufferSize );
} }

View File

@ -20,7 +20,7 @@ namespace Steamworks
// //
// EResult // EResult
// //
public enum Result : int internal enum Result : int
{ {
OK = 1, OK = 1,
Fail = 2, Fail = 2,
@ -139,7 +139,7 @@ namespace Steamworks
// //
// EVoiceResult // EVoiceResult
// //
public enum VoiceResult : int internal enum VoiceResult : int
{ {
OK = 0, OK = 0,
NotInitialized = 1, NotInitialized = 1,
@ -156,7 +156,7 @@ namespace Steamworks
// //
// EDenyReason // EDenyReason
// //
public enum DenyReason : int internal enum DenyReason : int
{ {
Invalid = 0, Invalid = 0,
InvalidVersion = 1, InvalidVersion = 1,
@ -179,7 +179,7 @@ namespace Steamworks
// //
// EBeginAuthSessionResult // EBeginAuthSessionResult
// //
public enum BeginAuthSessionResult : int public enum BeginAuthResult : int
{ {
OK = 0, OK = 0,
InvalidTicket = 1, InvalidTicket = 1,
@ -192,7 +192,7 @@ namespace Steamworks
// //
// EAuthSessionResponse // EAuthSessionResponse
// //
public enum AuthSessionResponse : int public enum AuthResponse : int
{ {
OK = 0, OK = 0,
UserNotConnectedToSteam = 1, UserNotConnectedToSteam = 1,
@ -209,7 +209,7 @@ namespace Steamworks
// //
// EUserHasLicenseForAppResult // EUserHasLicenseForAppResult
// //
public enum UserHasLicenseForAppResult : int internal enum UserHasLicenseForAppResult : int
{ {
HasLicense = 0, HasLicense = 0,
DoesNotHaveLicense = 1, DoesNotHaveLicense = 1,
@ -219,7 +219,7 @@ namespace Steamworks
// //
// EAccountType // EAccountType
// //
public enum AccountType : int internal enum AccountType : int
{ {
Invalid = 0, Invalid = 0,
Individual = 1, Individual = 1,
@ -238,7 +238,7 @@ namespace Steamworks
// //
// EAppReleaseState // EAppReleaseState
// //
public enum AppReleaseState : int internal enum AppReleaseState : int
{ {
Unknown = 0, Unknown = 0,
Unavailable = 1, Unavailable = 1,
@ -250,7 +250,7 @@ namespace Steamworks
// //
// EAppOwnershipFlags // EAppOwnershipFlags
// //
public enum AppOwnershipFlags : int internal enum AppOwnershipFlags : int
{ {
None = 0, None = 0,
OwnsLicense = 1, OwnsLicense = 1,
@ -277,7 +277,7 @@ namespace Steamworks
// //
// EAppType // EAppType
// //
public enum AppType : int internal enum AppType : int
{ {
Invalid = 0, Invalid = 0,
Game = 1, Game = 1,
@ -303,7 +303,7 @@ namespace Steamworks
// //
// ESteamUserStatType // ESteamUserStatType
// //
public enum SteamUserStatType : int internal enum SteamUserStatType : int
{ {
INVALID = 0, INVALID = 0,
INT = 1, INT = 1,
@ -317,7 +317,7 @@ namespace Steamworks
// //
// EChatEntryType // EChatEntryType
// //
public enum ChatEntryType : int internal enum ChatEntryType : int
{ {
Invalid = 0, Invalid = 0,
ChatMsg = 1, ChatMsg = 1,
@ -336,7 +336,7 @@ namespace Steamworks
// //
// EChatRoomEnterResponse // EChatRoomEnterResponse
// //
public enum ChatRoomEnterResponse : int internal enum ChatRoomEnterResponse : int
{ {
Success = 1, Success = 1,
DoesntExist = 2, DoesntExist = 2,
@ -355,7 +355,7 @@ namespace Steamworks
// //
// EChatSteamIDInstanceFlags // EChatSteamIDInstanceFlags
// //
public enum ChatSteamIDInstanceFlags : int internal enum ChatSteamIDInstanceFlags : int
{ {
AccountInstanceMask = 4095, AccountInstanceMask = 4095,
InstanceFlagClan = 524288, InstanceFlagClan = 524288,
@ -366,7 +366,7 @@ namespace Steamworks
// //
// EMarketingMessageFlags // EMarketingMessageFlags
// //
public enum MarketingMessageFlags : int internal enum MarketingMessageFlags : int
{ {
None = 0, None = 0,
HighPriority = 1, HighPriority = 1,
@ -421,7 +421,7 @@ namespace Steamworks
// //
// ELaunchOptionType // ELaunchOptionType
// //
public enum LaunchOptionType : int internal enum LaunchOptionType : int
{ {
None = 0, None = 0,
Default = 1, Default = 1,
@ -445,7 +445,7 @@ namespace Steamworks
// //
// EVRHMDType // EVRHMDType
// //
public enum VRHMDType : int internal enum VRHMDType : int
{ {
None = -1, None = -1,
Unknown = 0, Unknown = 0,
@ -479,7 +479,7 @@ namespace Steamworks
// //
// EMarketNotAllowedReasonFlags // EMarketNotAllowedReasonFlags
// //
public enum MarketNotAllowedReasonFlags : int internal enum MarketNotAllowedReasonFlags : int
{ {
None = 0, None = 0,
TemporaryFailure = 1, TemporaryFailure = 1,
@ -503,7 +503,7 @@ namespace Steamworks
// //
// CGameID::EGameIDType // CGameID::EGameIDType
// //
public enum GameIDType : int internal enum GameIDType : int
{ {
App = 0, App = 0,
GameMod = 1, GameMod = 1,
@ -514,7 +514,7 @@ namespace Steamworks
// //
// EGameSearchErrorCode_t // EGameSearchErrorCode_t
// //
public enum GameSearchErrorCode_t : int internal enum GameSearchErrorCode_t : int
{ {
OK = 1, OK = 1,
Failed_Search_Already_In_Progress = 2, Failed_Search_Already_In_Progress = 2,
@ -530,7 +530,7 @@ namespace Steamworks
// //
// EPlayerResult_t // EPlayerResult_t
// //
public enum PlayerResult_t : int internal enum PlayerResult_t : int
{ {
FailedToConnect = 1, FailedToConnect = 1,
Abandoned = 2, Abandoned = 2,
@ -542,7 +542,7 @@ namespace Steamworks
// //
// IPCFailure_t::EFailureType // IPCFailure_t::EFailureType
// //
public enum FailureType : int internal enum FailureType : int
{ {
FlushedCallbackQueue = 0, FlushedCallbackQueue = 0,
PipeFail = 1, PipeFail = 1,
@ -551,7 +551,7 @@ namespace Steamworks
// //
// EFriendRelationship // EFriendRelationship
// //
public enum FriendRelationship : int public enum Relationship : int
{ {
None = 0, None = 0,
Blocked = 1, Blocked = 1,
@ -567,7 +567,7 @@ namespace Steamworks
// //
// EPersonaState // EPersonaState
// //
public enum PersonaState : int public enum FriendState : int
{ {
Offline = 0, Offline = 0,
Online = 1, Online = 1,
@ -583,7 +583,7 @@ namespace Steamworks
// //
// EFriendFlags // EFriendFlags
// //
public enum FriendFlags : int internal enum FriendFlags : int
{ {
None = 0, None = 0,
Blocked = 1, Blocked = 1,
@ -602,7 +602,7 @@ namespace Steamworks
// //
// EUserRestriction // EUserRestriction
// //
public enum UserRestriction : int internal enum UserRestriction : int
{ {
None = 0, None = 0,
Unknown = 1, Unknown = 1,
@ -617,7 +617,7 @@ namespace Steamworks
// //
// EOverlayToStoreFlag // EOverlayToStoreFlag
// //
public enum OverlayToStoreFlag : int internal enum OverlayToStoreFlag : int
{ {
None = 0, None = 0,
AddToCart = 1, AddToCart = 1,
@ -627,7 +627,7 @@ namespace Steamworks
// //
// EActivateGameOverlayToWebPageMode // EActivateGameOverlayToWebPageMode
// //
public enum ActivateGameOverlayToWebPageMode : int internal enum ActivateGameOverlayToWebPageMode : int
{ {
Default = 0, Default = 0,
Modal = 1, Modal = 1,
@ -636,7 +636,7 @@ namespace Steamworks
// //
// EPersonaChange // EPersonaChange
// //
public enum PersonaChange : int internal enum PersonaChange : int
{ {
Name = 1, Name = 1,
Status = 2, Status = 2,
@ -658,7 +658,7 @@ namespace Steamworks
// //
// ESteamAPICallFailure // ESteamAPICallFailure
// //
public enum SteamAPICallFailure : int internal enum SteamAPICallFailure : int
{ {
None = -1, None = -1,
SteamGone = 0, SteamGone = 0,
@ -700,7 +700,7 @@ namespace Steamworks
// //
// EMatchMakingServerResponse // EMatchMakingServerResponse
// //
public enum MatchMakingServerResponse : int internal enum MatchMakingServerResponse : int
{ {
ServerResponded = 0, ServerResponded = 0,
ServerFailedToRespond = 1, ServerFailedToRespond = 1,
@ -710,7 +710,7 @@ namespace Steamworks
// //
// ELobbyType // ELobbyType
// //
public enum LobbyType : int internal enum LobbyType : int
{ {
Private = 0, Private = 0,
FriendsOnly = 1, FriendsOnly = 1,
@ -721,7 +721,7 @@ namespace Steamworks
// //
// ELobbyComparison // ELobbyComparison
// //
public enum LobbyComparison : int internal enum LobbyComparison : int
{ {
EqualToOrLessThan = -2, EqualToOrLessThan = -2,
LessThan = -1, LessThan = -1,
@ -734,7 +734,7 @@ namespace Steamworks
// //
// ELobbyDistanceFilter // ELobbyDistanceFilter
// //
public enum LobbyDistanceFilter : int internal enum LobbyDistanceFilter : int
{ {
Close = 0, Close = 0,
Default = 1, Default = 1,
@ -745,7 +745,7 @@ namespace Steamworks
// //
// EChatMemberStateChange // EChatMemberStateChange
// //
public enum ChatMemberStateChange : int internal enum ChatMemberStateChange : int
{ {
Entered = 1, Entered = 1,
Left = 2, Left = 2,
@ -757,7 +757,7 @@ namespace Steamworks
// //
// ESteamPartyBeaconLocationType // ESteamPartyBeaconLocationType
// //
public enum SteamPartyBeaconLocationType : int internal enum SteamPartyBeaconLocationType : int
{ {
Invalid = 0, Invalid = 0,
ChatGroup = 1, ChatGroup = 1,
@ -767,7 +767,7 @@ namespace Steamworks
// //
// ESteamPartyBeaconLocationData // ESteamPartyBeaconLocationData
// //
public enum SteamPartyBeaconLocationData : int internal enum SteamPartyBeaconLocationData : int
{ {
Invalid = 0, Invalid = 0,
Name = 1, Name = 1,
@ -779,7 +779,7 @@ namespace Steamworks
// //
// RequestPlayersForGameResultCallback_t::PlayerAcceptState_t // RequestPlayersForGameResultCallback_t::PlayerAcceptState_t
// //
public enum PlayerAcceptState_t : int internal enum PlayerAcceptState_t : int
{ {
Unknown = 0, Unknown = 0,
PlayerAccepted = 1, PlayerAccepted = 1,
@ -789,7 +789,7 @@ namespace Steamworks
// //
// ERemoteStoragePlatform // ERemoteStoragePlatform
// //
public enum RemoteStoragePlatform : int internal enum RemoteStoragePlatform : int
{ {
None = 0, None = 0,
Windows = 1, Windows = 1,
@ -804,7 +804,7 @@ namespace Steamworks
// //
// ERemoteStoragePublishedFileVisibility // ERemoteStoragePublishedFileVisibility
// //
public enum RemoteStoragePublishedFileVisibility : int internal enum RemoteStoragePublishedFileVisibility : int
{ {
Public = 0, Public = 0,
FriendsOnly = 1, FriendsOnly = 1,
@ -814,7 +814,7 @@ namespace Steamworks
// //
// EWorkshopFileType // EWorkshopFileType
// //
public enum WorkshopFileType : int internal enum WorkshopFileType : int
{ {
First = 0, First = 0,
Community = 0, Community = 0,
@ -839,7 +839,7 @@ namespace Steamworks
// //
// EWorkshopVote // EWorkshopVote
// //
public enum WorkshopVote : int internal enum WorkshopVote : int
{ {
Unvoted = 0, Unvoted = 0,
For = 1, For = 1,
@ -850,7 +850,7 @@ namespace Steamworks
// //
// EWorkshopFileAction // EWorkshopFileAction
// //
public enum WorkshopFileAction : int internal enum WorkshopFileAction : int
{ {
Played = 0, Played = 0,
Completed = 1, Completed = 1,
@ -859,7 +859,7 @@ namespace Steamworks
// //
// EWorkshopEnumerationType // EWorkshopEnumerationType
// //
public enum WorkshopEnumerationType : int internal enum WorkshopEnumerationType : int
{ {
RankedByVote = 0, RankedByVote = 0,
Recent = 1, Recent = 1,
@ -873,7 +873,7 @@ namespace Steamworks
// //
// EWorkshopVideoProvider // EWorkshopVideoProvider
// //
public enum WorkshopVideoProvider : int internal enum WorkshopVideoProvider : int
{ {
None = 0, None = 0,
Youtube = 1, Youtube = 1,
@ -882,7 +882,7 @@ namespace Steamworks
// //
// EUGCReadAction // EUGCReadAction
// //
public enum UGCReadAction : int internal enum UGCReadAction : int
{ {
ontinueReadingUntilFinished = 0, ontinueReadingUntilFinished = 0,
ontinueReading = 1, ontinueReading = 1,
@ -892,7 +892,7 @@ namespace Steamworks
// //
// ELeaderboardDataRequest // ELeaderboardDataRequest
// //
public enum LeaderboardDataRequest : int internal enum LeaderboardDataRequest : int
{ {
Global = 0, Global = 0,
GlobalAroundUser = 1, GlobalAroundUser = 1,
@ -903,7 +903,7 @@ namespace Steamworks
// //
// ELeaderboardSortMethod // ELeaderboardSortMethod
// //
public enum LeaderboardSortMethod : int internal enum LeaderboardSortMethod : int
{ {
None = 0, None = 0,
Ascending = 1, Ascending = 1,
@ -913,7 +913,7 @@ namespace Steamworks
// //
// ELeaderboardDisplayType // ELeaderboardDisplayType
// //
public enum LeaderboardDisplayType : int internal enum LeaderboardDisplayType : int
{ {
None = 0, None = 0,
Numeric = 1, Numeric = 1,
@ -924,7 +924,7 @@ namespace Steamworks
// //
// ELeaderboardUploadScoreMethod // ELeaderboardUploadScoreMethod
// //
public enum LeaderboardUploadScoreMethod : int internal enum LeaderboardUploadScoreMethod : int
{ {
None = 0, None = 0,
KeepBest = 1, KeepBest = 1,
@ -934,7 +934,7 @@ namespace Steamworks
// //
// ERegisterActivationCodeResult // ERegisterActivationCodeResult
// //
public enum RegisterActivationCodeResult : int internal enum RegisterActivationCodeResult : int
{ {
ResultOK = 0, ResultOK = 0,
ResultFail = 1, ResultFail = 1,
@ -946,7 +946,7 @@ namespace Steamworks
// //
// EP2PSessionError // EP2PSessionError
// //
public enum P2PSessionError : int internal enum P2PSessionError : int
{ {
None = 0, None = 0,
NotRunningApp = 1, NotRunningApp = 1,
@ -959,7 +959,7 @@ namespace Steamworks
// //
// EP2PSend // EP2PSend
// //
public enum P2PSend : int internal enum P2PSend : int
{ {
Unreliable = 0, Unreliable = 0,
UnreliableNoDelay = 1, UnreliableNoDelay = 1,
@ -970,7 +970,7 @@ namespace Steamworks
// //
// ESNetSocketState // ESNetSocketState
// //
public enum SNetSocketState : int internal enum SNetSocketState : int
{ {
Invalid = 0, Invalid = 0,
Connected = 1, Connected = 1,
@ -988,7 +988,7 @@ namespace Steamworks
// //
// ESNetSocketConnectionType // ESNetSocketConnectionType
// //
public enum SNetSocketConnectionType : int internal enum SNetSocketConnectionType : int
{ {
NotConnected = 0, NotConnected = 0,
UDP = 1, UDP = 1,
@ -998,7 +998,7 @@ namespace Steamworks
// //
// EVRScreenshotType // EVRScreenshotType
// //
public enum VRScreenshotType : int internal enum VRScreenshotType : int
{ {
None = 0, None = 0,
Mono = 1, Mono = 1,
@ -1011,7 +1011,7 @@ namespace Steamworks
// //
// AudioPlayback_Status // AudioPlayback_Status
// //
public enum AudioPlayback_Status : int public enum MusicStatus : int
{ {
Undefined = 0, Undefined = 0,
Playing = 1, Playing = 1,
@ -1022,7 +1022,7 @@ namespace Steamworks
// //
// EHTTPMethod // EHTTPMethod
// //
public enum HTTPMethod : int internal enum HTTPMethod : int
{ {
Invalid = 0, Invalid = 0,
GET = 1, GET = 1,
@ -1037,7 +1037,7 @@ namespace Steamworks
// //
// EHTTPStatusCode // EHTTPStatusCode
// //
public enum HTTPStatusCode : int internal enum HTTPStatusCode : int
{ {
Invalid = 0, Invalid = 0,
HTTPStatusCode100Continue = 100, HTTPStatusCode100Continue = 100,
@ -1088,7 +1088,7 @@ namespace Steamworks
// //
// EInputSource // EInputSource
// //
public enum InputSource : int internal enum InputSource : int
{ {
None = 0, None = 0,
LeftTrackpad = 1, LeftTrackpad = 1,
@ -1113,7 +1113,7 @@ namespace Steamworks
// //
// EInputSourceMode // EInputSourceMode
// //
public enum InputSourceMode : int internal enum InputSourceMode : int
{ {
None = 0, None = 0,
Dpad = 1, Dpad = 1,
@ -1137,7 +1137,7 @@ namespace Steamworks
// //
// EInputActionOrigin // EInputActionOrigin
// //
public enum InputActionOrigin : int internal enum InputActionOrigin : int
{ {
None = 0, None = 0,
SteamController_A = 1, SteamController_A = 1,
@ -1404,7 +1404,7 @@ namespace Steamworks
// //
// EXboxOrigin // EXboxOrigin
// //
public enum XboxOrigin : int internal enum XboxOrigin : int
{ {
A = 0, A = 0,
B = 1, B = 1,
@ -1440,7 +1440,7 @@ namespace Steamworks
// //
// ESteamControllerPad // ESteamControllerPad
// //
public enum SteamControllerPad : int internal enum SteamControllerPad : int
{ {
Left = 0, Left = 0,
Right = 1, Right = 1,
@ -1449,7 +1449,7 @@ namespace Steamworks
// //
// ESteamInputType // ESteamInputType
// //
public enum SteamInputType : int internal enum SteamInputType : int
{ {
Unknown = 0, Unknown = 0,
SteamController = 1, SteamController = 1,
@ -1471,7 +1471,7 @@ namespace Steamworks
// //
// ESteamInputLEDFlag // ESteamInputLEDFlag
// //
public enum SteamInputLEDFlag : int internal enum SteamInputLEDFlag : int
{ {
SetColor = 0, SetColor = 0,
RestoreUserDefault = 1, RestoreUserDefault = 1,
@ -1480,7 +1480,7 @@ namespace Steamworks
// //
// EControllerSource // EControllerSource
// //
public enum ControllerSource : int internal enum ControllerSource : int
{ {
None = 0, None = 0,
LeftTrackpad = 1, LeftTrackpad = 1,
@ -1505,7 +1505,7 @@ namespace Steamworks
// //
// EControllerSourceMode // EControllerSourceMode
// //
public enum ControllerSourceMode : int internal enum ControllerSourceMode : int
{ {
None = 0, None = 0,
Dpad = 1, Dpad = 1,
@ -1529,7 +1529,7 @@ namespace Steamworks
// //
// EControllerActionOrigin // EControllerActionOrigin
// //
public enum ControllerActionOrigin : int internal enum ControllerActionOrigin : int
{ {
None = 0, None = 0,
A = 1, A = 1,
@ -1779,7 +1779,7 @@ namespace Steamworks
// //
// ESteamControllerLEDFlag // ESteamControllerLEDFlag
// //
public enum SteamControllerLEDFlag : int internal enum SteamControllerLEDFlag : int
{ {
SetColor = 0, SetColor = 0,
RestoreUserDefault = 1, RestoreUserDefault = 1,
@ -1788,7 +1788,7 @@ namespace Steamworks
// //
// EUGCMatchingUGCType // EUGCMatchingUGCType
// //
public enum UGCMatchingUGCType : int internal enum UGCMatchingUGCType : int
{ {
Items = 0, Items = 0,
Items_Mtx = 1, Items_Mtx = 1,
@ -1809,7 +1809,7 @@ namespace Steamworks
// //
// EUserUGCList // EUserUGCList
// //
public enum UserUGCList : int internal enum UserUGCList : int
{ {
Published = 0, Published = 0,
VotedOn = 1, VotedOn = 1,
@ -1825,7 +1825,7 @@ namespace Steamworks
// //
// EUserUGCListSortOrder // EUserUGCListSortOrder
// //
public enum UserUGCListSortOrder : int internal enum UserUGCListSortOrder : int
{ {
CreationOrderDesc = 0, CreationOrderDesc = 0,
CreationOrderAsc = 1, CreationOrderAsc = 1,
@ -1839,7 +1839,7 @@ namespace Steamworks
// //
// EUGCQuery // EUGCQuery
// //
public enum UGCQuery : int internal enum UGCQuery : int
{ {
RankedByVote = 0, RankedByVote = 0,
RankedByPublicationDate = 1, RankedByPublicationDate = 1,
@ -1865,7 +1865,7 @@ namespace Steamworks
// //
// EItemUpdateStatus // EItemUpdateStatus
// //
public enum ItemUpdateStatus : int internal enum ItemUpdateStatus : int
{ {
Invalid = 0, Invalid = 0,
PreparingConfig = 1, PreparingConfig = 1,
@ -1878,7 +1878,7 @@ namespace Steamworks
// //
// EItemState // EItemState
// //
public enum ItemState : int internal enum ItemState : int
{ {
None = 0, None = 0,
Subscribed = 1, Subscribed = 1,
@ -1892,7 +1892,7 @@ namespace Steamworks
// //
// EItemStatistic // EItemStatistic
// //
public enum ItemStatistic : int internal enum ItemStatistic : int
{ {
NumSubscriptions = 0, NumSubscriptions = 0,
NumFavorites = 1, NumFavorites = 1,
@ -1912,7 +1912,7 @@ namespace Steamworks
// //
// EItemPreviewType // EItemPreviewType
// //
public enum ItemPreviewType : int internal enum ItemPreviewType : int
{ {
Image = 0, Image = 0,
YouTubeVideo = 1, YouTubeVideo = 1,
@ -1925,7 +1925,7 @@ namespace Steamworks
// //
// ISteamHTMLSurface::EHTMLMouseButton // ISteamHTMLSurface::EHTMLMouseButton
// //
public enum HTMLMouseButton : int internal enum HTMLMouseButton : int
{ {
Left = 0, Left = 0,
Right = 1, Right = 1,
@ -1935,7 +1935,7 @@ namespace Steamworks
// //
// ISteamHTMLSurface::EMouseCursor // ISteamHTMLSurface::EMouseCursor
// //
public enum MouseCursor : int internal enum MouseCursor : int
{ {
user = 0, user = 0,
none = 1, none = 1,
@ -1984,7 +1984,7 @@ namespace Steamworks
// //
// ISteamHTMLSurface::EHTMLKeyModifiers // ISteamHTMLSurface::EHTMLKeyModifiers
// //
public enum HTMLKeyModifiers : int internal enum HTMLKeyModifiers : int
{ {
None = 0, None = 0,
AltDown = 1, AltDown = 1,
@ -1995,7 +1995,7 @@ namespace Steamworks
// //
// ESteamItemFlags // ESteamItemFlags
// //
public enum SteamItemFlags : int internal enum SteamItemFlags : int
{ {
NoTrade = 1, NoTrade = 1,
Removed = 256, Removed = 256,

File diff suppressed because it is too large Load Diff

View File

@ -4,754 +4,454 @@ using System.Linq;
namespace Steamworks namespace Steamworks
{ {
public struct GID_t internal struct GID_t
{ {
public ulong Value; public ulong Value;
public static implicit operator GID_t( ulong value ) public static implicit operator GID_t( ulong value ) => new GID_t(){ Value = value };
{ public static implicit operator ulong( GID_t value ) => value.Value;
return new GID_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( GID_t value )
{
return value.Value;
}
} }
public struct JobID_t internal struct JobID_t
{ {
public ulong Value; public ulong Value;
public static implicit operator JobID_t( ulong value ) public static implicit operator JobID_t( ulong value ) => new JobID_t(){ Value = value };
{ public static implicit operator ulong( JobID_t value ) => value.Value;
return new JobID_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( JobID_t value )
{
return value.Value;
}
} }
public struct TxnID_t internal struct TxnID_t
{ {
public GID_t Value; public GID_t Value;
public static implicit operator TxnID_t( GID_t value ) public static implicit operator TxnID_t( GID_t value ) => new TxnID_t(){ Value = value };
{ public static implicit operator GID_t( TxnID_t value ) => value.Value;
return new TxnID_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator GID_t( TxnID_t value )
{
return value.Value;
}
} }
public struct PackageId_t internal struct PackageId_t
{ {
public uint Value; public uint Value;
public static implicit operator PackageId_t( uint value ) public static implicit operator PackageId_t( uint value ) => new PackageId_t(){ Value = value };
{ public static implicit operator uint( PackageId_t value ) => value.Value;
return new PackageId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( PackageId_t value )
{
return value.Value;
}
} }
public struct BundleId_t internal struct BundleId_t
{ {
public uint Value; public uint Value;
public static implicit operator BundleId_t( uint value ) public static implicit operator BundleId_t( uint value ) => new BundleId_t(){ Value = value };
{ public static implicit operator uint( BundleId_t value ) => value.Value;
return new BundleId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( BundleId_t value )
{
return value.Value;
}
} }
public struct AppId_t internal struct AppId_t
{ {
public uint Value; public uint Value;
public static implicit operator AppId_t( uint value ) public static implicit operator AppId_t( uint value ) => new AppId_t(){ Value = value };
{ public static implicit operator uint( AppId_t value ) => value.Value;
return new AppId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( AppId_t value )
{
return value.Value;
}
} }
public struct AssetClassId_t internal struct AssetClassId_t
{ {
public ulong Value; public ulong Value;
public static implicit operator AssetClassId_t( ulong value ) public static implicit operator AssetClassId_t( ulong value ) => new AssetClassId_t(){ Value = value };
{ public static implicit operator ulong( AssetClassId_t value ) => value.Value;
return new AssetClassId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( AssetClassId_t value )
{
return value.Value;
}
} }
public struct PhysicalItemId_t internal struct PhysicalItemId_t
{ {
public uint Value; public uint Value;
public static implicit operator PhysicalItemId_t( uint value ) public static implicit operator PhysicalItemId_t( uint value ) => new PhysicalItemId_t(){ Value = value };
{ public static implicit operator uint( PhysicalItemId_t value ) => value.Value;
return new PhysicalItemId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( PhysicalItemId_t value )
{
return value.Value;
}
} }
public struct DepotId_t internal struct DepotId_t
{ {
public uint Value; public uint Value;
public static implicit operator DepotId_t( uint value ) public static implicit operator DepotId_t( uint value ) => new DepotId_t(){ Value = value };
{ public static implicit operator uint( DepotId_t value ) => value.Value;
return new DepotId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( DepotId_t value )
{
return value.Value;
}
} }
public struct RTime32 internal struct RTime32
{ {
public uint Value; public uint Value;
public static implicit operator RTime32( uint value ) public static implicit operator RTime32( uint value ) => new RTime32(){ Value = value };
{ public static implicit operator uint( RTime32 value ) => value.Value;
return new RTime32(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( RTime32 value )
{
return value.Value;
}
} }
public struct CellID_t internal struct CellID_t
{ {
public uint Value; public uint Value;
public static implicit operator CellID_t( uint value ) public static implicit operator CellID_t( uint value ) => new CellID_t(){ Value = value };
{ public static implicit operator uint( CellID_t value ) => value.Value;
return new CellID_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( CellID_t value )
{
return value.Value;
}
} }
public struct SteamAPICall_t internal struct SteamAPICall_t
{ {
public ulong Value; public ulong Value;
public static implicit operator SteamAPICall_t( ulong value ) public static implicit operator SteamAPICall_t( ulong value ) => new SteamAPICall_t(){ Value = value };
{ public static implicit operator ulong( SteamAPICall_t value ) => value.Value;
return new SteamAPICall_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( SteamAPICall_t value )
{
return value.Value;
}
} }
public struct AccountID_t internal struct AccountID_t
{ {
public uint Value; public uint Value;
public static implicit operator AccountID_t( uint value ) public static implicit operator AccountID_t( uint value ) => new AccountID_t(){ Value = value };
{ public static implicit operator uint( AccountID_t value ) => value.Value;
return new AccountID_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( AccountID_t value )
{
return value.Value;
}
} }
public struct PartnerId_t internal struct PartnerId_t
{ {
public uint Value; public uint Value;
public static implicit operator PartnerId_t( uint value ) public static implicit operator PartnerId_t( uint value ) => new PartnerId_t(){ Value = value };
{ public static implicit operator uint( PartnerId_t value ) => value.Value;
return new PartnerId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( PartnerId_t value )
{
return value.Value;
}
} }
public struct ManifestId_t internal struct ManifestId_t
{ {
public ulong Value; public ulong Value;
public static implicit operator ManifestId_t( ulong value ) public static implicit operator ManifestId_t( ulong value ) => new ManifestId_t(){ Value = value };
{ public static implicit operator ulong( ManifestId_t value ) => value.Value;
return new ManifestId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( ManifestId_t value )
{
return value.Value;
}
} }
public struct SiteId_t internal struct SiteId_t
{ {
public ulong Value; public ulong Value;
public static implicit operator SiteId_t( ulong value ) public static implicit operator SiteId_t( ulong value ) => new SiteId_t(){ Value = value };
{ public static implicit operator ulong( SiteId_t value ) => value.Value;
return new SiteId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( SiteId_t value )
{
return value.Value;
}
} }
public struct PartyBeaconID_t internal struct PartyBeaconID_t
{ {
public ulong Value; public ulong Value;
public static implicit operator PartyBeaconID_t( ulong value ) public static implicit operator PartyBeaconID_t( ulong value ) => new PartyBeaconID_t(){ Value = value };
{ public static implicit operator ulong( PartyBeaconID_t value ) => value.Value;
return new PartyBeaconID_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( PartyBeaconID_t value )
{
return value.Value;
}
} }
public struct HAuthTicket internal struct HAuthTicket
{ {
public uint Value; public uint Value;
public static implicit operator HAuthTicket( uint value ) public static implicit operator HAuthTicket( uint value ) => new HAuthTicket(){ Value = value };
{ public static implicit operator uint( HAuthTicket value ) => value.Value;
return new HAuthTicket(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( HAuthTicket value )
{
return value.Value;
}
} }
public struct BREAKPAD_HANDLE internal struct BREAKPAD_HANDLE
{ {
public IntPtr Value; public IntPtr Value;
public static implicit operator BREAKPAD_HANDLE( IntPtr value ) public static implicit operator BREAKPAD_HANDLE( IntPtr value ) => new BREAKPAD_HANDLE(){ Value = value };
{ public static implicit operator IntPtr( BREAKPAD_HANDLE value ) => value.Value;
return new BREAKPAD_HANDLE(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator IntPtr( BREAKPAD_HANDLE value )
{
return value.Value;
}
} }
public struct HSteamPipe internal struct HSteamPipe
{ {
public int Value; public int Value;
public static implicit operator HSteamPipe( int value ) public static implicit operator HSteamPipe( int value ) => new HSteamPipe(){ Value = value };
{ public static implicit operator int( HSteamPipe value ) => value.Value;
return new HSteamPipe(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator int( HSteamPipe value )
{
return value.Value;
}
} }
public struct HSteamUser internal struct HSteamUser
{ {
public int Value; public int Value;
public static implicit operator HSteamUser( int value ) public static implicit operator HSteamUser( int value ) => new HSteamUser(){ Value = value };
{ public static implicit operator int( HSteamUser value ) => value.Value;
return new HSteamUser(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator int( HSteamUser value )
{
return value.Value;
}
} }
public struct FriendsGroupID_t internal struct FriendsGroupID_t
{ {
public short Value; public short Value;
public static implicit operator FriendsGroupID_t( short value ) public static implicit operator FriendsGroupID_t( short value ) => new FriendsGroupID_t(){ Value = value };
{ public static implicit operator short( FriendsGroupID_t value ) => value.Value;
return new FriendsGroupID_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator short( FriendsGroupID_t value )
{
return value.Value;
}
} }
public struct HServerListRequest internal struct HServerListRequest
{ {
public IntPtr Value; public IntPtr Value;
public static implicit operator HServerListRequest( IntPtr value ) public static implicit operator HServerListRequest( IntPtr value ) => new HServerListRequest(){ Value = value };
{ public static implicit operator IntPtr( HServerListRequest value ) => value.Value;
return new HServerListRequest(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator IntPtr( HServerListRequest value )
{
return value.Value;
}
} }
public struct HServerQuery internal struct HServerQuery
{ {
public int Value; public int Value;
public static implicit operator HServerQuery( int value ) public static implicit operator HServerQuery( int value ) => new HServerQuery(){ Value = value };
{ public static implicit operator int( HServerQuery value ) => value.Value;
return new HServerQuery(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator int( HServerQuery value )
{
return value.Value;
}
} }
public struct UGCHandle_t internal struct UGCHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator UGCHandle_t( ulong value ) public static implicit operator UGCHandle_t( ulong value ) => new UGCHandle_t(){ Value = value };
{ public static implicit operator ulong( UGCHandle_t value ) => value.Value;
return new UGCHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( UGCHandle_t value )
{
return value.Value;
}
} }
public struct PublishedFileUpdateHandle_t internal struct PublishedFileUpdateHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator PublishedFileUpdateHandle_t( ulong value ) public static implicit operator PublishedFileUpdateHandle_t( ulong value ) => new PublishedFileUpdateHandle_t(){ Value = value };
{ public static implicit operator ulong( PublishedFileUpdateHandle_t value ) => value.Value;
return new PublishedFileUpdateHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( PublishedFileUpdateHandle_t value )
{
return value.Value;
}
} }
public struct PublishedFileId_t internal struct PublishedFileId_t
{ {
public ulong Value; public ulong Value;
public static implicit operator PublishedFileId_t( ulong value ) public static implicit operator PublishedFileId_t( ulong value ) => new PublishedFileId_t(){ Value = value };
{ public static implicit operator ulong( PublishedFileId_t value ) => value.Value;
return new PublishedFileId_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( PublishedFileId_t value )
{
return value.Value;
}
} }
public struct UGCFileWriteStreamHandle_t internal struct UGCFileWriteStreamHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator UGCFileWriteStreamHandle_t( ulong value ) public static implicit operator UGCFileWriteStreamHandle_t( ulong value ) => new UGCFileWriteStreamHandle_t(){ Value = value };
{ public static implicit operator ulong( UGCFileWriteStreamHandle_t value ) => value.Value;
return new UGCFileWriteStreamHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( UGCFileWriteStreamHandle_t value )
{
return value.Value;
}
} }
public struct SteamLeaderboard_t internal struct SteamLeaderboard_t
{ {
public ulong Value; public ulong Value;
public static implicit operator SteamLeaderboard_t( ulong value ) public static implicit operator SteamLeaderboard_t( ulong value ) => new SteamLeaderboard_t(){ Value = value };
{ public static implicit operator ulong( SteamLeaderboard_t value ) => value.Value;
return new SteamLeaderboard_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( SteamLeaderboard_t value )
{
return value.Value;
}
} }
public struct SteamLeaderboardEntries_t internal struct SteamLeaderboardEntries_t
{ {
public ulong Value; public ulong Value;
public static implicit operator SteamLeaderboardEntries_t( ulong value ) public static implicit operator SteamLeaderboardEntries_t( ulong value ) => new SteamLeaderboardEntries_t(){ Value = value };
{ public static implicit operator ulong( SteamLeaderboardEntries_t value ) => value.Value;
return new SteamLeaderboardEntries_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( SteamLeaderboardEntries_t value )
{
return value.Value;
}
} }
public struct SNetSocket_t internal struct SNetSocket_t
{ {
public uint Value; public uint Value;
public static implicit operator SNetSocket_t( uint value ) public static implicit operator SNetSocket_t( uint value ) => new SNetSocket_t(){ Value = value };
{ public static implicit operator uint( SNetSocket_t value ) => value.Value;
return new SNetSocket_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( SNetSocket_t value )
{
return value.Value;
}
} }
public struct SNetListenSocket_t internal struct SNetListenSocket_t
{ {
public uint Value; public uint Value;
public static implicit operator SNetListenSocket_t( uint value ) public static implicit operator SNetListenSocket_t( uint value ) => new SNetListenSocket_t(){ Value = value };
{ public static implicit operator uint( SNetListenSocket_t value ) => value.Value;
return new SNetListenSocket_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( SNetListenSocket_t value )
{
return value.Value;
}
} }
public struct ScreenshotHandle internal struct ScreenshotHandle
{ {
public uint Value; public uint Value;
public static implicit operator ScreenshotHandle( uint value ) public static implicit operator ScreenshotHandle( uint value ) => new ScreenshotHandle(){ Value = value };
{ public static implicit operator uint( ScreenshotHandle value ) => value.Value;
return new ScreenshotHandle(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( ScreenshotHandle value )
{
return value.Value;
}
} }
public struct HTTPRequestHandle internal struct HTTPRequestHandle
{ {
public uint Value; public uint Value;
public static implicit operator HTTPRequestHandle( uint value ) public static implicit operator HTTPRequestHandle( uint value ) => new HTTPRequestHandle(){ Value = value };
{ public static implicit operator uint( HTTPRequestHandle value ) => value.Value;
return new HTTPRequestHandle(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( HTTPRequestHandle value )
{
return value.Value;
}
} }
public struct HTTPCookieContainerHandle internal struct HTTPCookieContainerHandle
{ {
public uint Value; public uint Value;
public static implicit operator HTTPCookieContainerHandle( uint value ) public static implicit operator HTTPCookieContainerHandle( uint value ) => new HTTPCookieContainerHandle(){ Value = value };
{ public static implicit operator uint( HTTPCookieContainerHandle value ) => value.Value;
return new HTTPCookieContainerHandle(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( HTTPCookieContainerHandle value )
{
return value.Value;
}
} }
public struct InputHandle_t internal struct InputHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator InputHandle_t( ulong value ) public static implicit operator InputHandle_t( ulong value ) => new InputHandle_t(){ Value = value };
{ public static implicit operator ulong( InputHandle_t value ) => value.Value;
return new InputHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( InputHandle_t value )
{
return value.Value;
}
} }
public struct InputActionSetHandle_t internal struct InputActionSetHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator InputActionSetHandle_t( ulong value ) public static implicit operator InputActionSetHandle_t( ulong value ) => new InputActionSetHandle_t(){ Value = value };
{ public static implicit operator ulong( InputActionSetHandle_t value ) => value.Value;
return new InputActionSetHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( InputActionSetHandle_t value )
{
return value.Value;
}
} }
public struct InputDigitalActionHandle_t internal struct InputDigitalActionHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator InputDigitalActionHandle_t( ulong value ) public static implicit operator InputDigitalActionHandle_t( ulong value ) => new InputDigitalActionHandle_t(){ Value = value };
{ public static implicit operator ulong( InputDigitalActionHandle_t value ) => value.Value;
return new InputDigitalActionHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( InputDigitalActionHandle_t value )
{
return value.Value;
}
} }
public struct InputAnalogActionHandle_t internal struct InputAnalogActionHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator InputAnalogActionHandle_t( ulong value ) public static implicit operator InputAnalogActionHandle_t( ulong value ) => new InputAnalogActionHandle_t(){ Value = value };
{ public static implicit operator ulong( InputAnalogActionHandle_t value ) => value.Value;
return new InputAnalogActionHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( InputAnalogActionHandle_t value )
{
return value.Value;
}
} }
public struct ControllerHandle_t internal struct ControllerHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator ControllerHandle_t( ulong value ) public static implicit operator ControllerHandle_t( ulong value ) => new ControllerHandle_t(){ Value = value };
{ public static implicit operator ulong( ControllerHandle_t value ) => value.Value;
return new ControllerHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( ControllerHandle_t value )
{
return value.Value;
}
} }
public struct ControllerActionSetHandle_t internal struct ControllerActionSetHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator ControllerActionSetHandle_t( ulong value ) public static implicit operator ControllerActionSetHandle_t( ulong value ) => new ControllerActionSetHandle_t(){ Value = value };
{ public static implicit operator ulong( ControllerActionSetHandle_t value ) => value.Value;
return new ControllerActionSetHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( ControllerActionSetHandle_t value )
{
return value.Value;
}
} }
public struct ControllerDigitalActionHandle_t internal struct ControllerDigitalActionHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator ControllerDigitalActionHandle_t( ulong value ) public static implicit operator ControllerDigitalActionHandle_t( ulong value ) => new ControllerDigitalActionHandle_t(){ Value = value };
{ public static implicit operator ulong( ControllerDigitalActionHandle_t value ) => value.Value;
return new ControllerDigitalActionHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( ControllerDigitalActionHandle_t value )
{
return value.Value;
}
} }
public struct ControllerAnalogActionHandle_t internal struct ControllerAnalogActionHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator ControllerAnalogActionHandle_t( ulong value ) public static implicit operator ControllerAnalogActionHandle_t( ulong value ) => new ControllerAnalogActionHandle_t(){ Value = value };
{ public static implicit operator ulong( ControllerAnalogActionHandle_t value ) => value.Value;
return new ControllerAnalogActionHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( ControllerAnalogActionHandle_t value )
{
return value.Value;
}
} }
public struct UGCQueryHandle_t internal struct UGCQueryHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator UGCQueryHandle_t( ulong value ) public static implicit operator UGCQueryHandle_t( ulong value ) => new UGCQueryHandle_t(){ Value = value };
{ public static implicit operator ulong( UGCQueryHandle_t value ) => value.Value;
return new UGCQueryHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( UGCQueryHandle_t value )
{
return value.Value;
}
} }
public struct UGCUpdateHandle_t internal struct UGCUpdateHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator UGCUpdateHandle_t( ulong value ) public static implicit operator UGCUpdateHandle_t( ulong value ) => new UGCUpdateHandle_t(){ Value = value };
{ public static implicit operator ulong( UGCUpdateHandle_t value ) => value.Value;
return new UGCUpdateHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( UGCUpdateHandle_t value )
{
return value.Value;
}
} }
public struct HHTMLBrowser internal struct HHTMLBrowser
{ {
public uint Value; public uint Value;
public static implicit operator HHTMLBrowser( uint value ) public static implicit operator HHTMLBrowser( uint value ) => new HHTMLBrowser(){ Value = value };
{ public static implicit operator uint( HHTMLBrowser value ) => value.Value;
return new HHTMLBrowser(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator uint( HHTMLBrowser value )
{
return value.Value;
}
} }
public struct SteamItemInstanceID_t internal struct SteamItemInstanceID_t
{ {
public ulong Value; public ulong Value;
public static implicit operator SteamItemInstanceID_t( ulong value ) public static implicit operator SteamItemInstanceID_t( ulong value ) => new SteamItemInstanceID_t(){ Value = value };
{ public static implicit operator ulong( SteamItemInstanceID_t value ) => value.Value;
return new SteamItemInstanceID_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( SteamItemInstanceID_t value )
{
return value.Value;
}
} }
public struct SteamItemDef_t internal struct SteamItemDef_t
{ {
public int Value; public int Value;
public static implicit operator SteamItemDef_t( int value ) public static implicit operator SteamItemDef_t( int value ) => new SteamItemDef_t(){ Value = value };
{ public static implicit operator int( SteamItemDef_t value ) => value.Value;
return new SteamItemDef_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator int( SteamItemDef_t value )
{
return value.Value;
}
} }
public struct SteamInventoryResult_t internal struct SteamInventoryResult_t
{ {
public int Value; public int Value;
public static implicit operator SteamInventoryResult_t( int value ) public static implicit operator SteamInventoryResult_t( int value ) => new SteamInventoryResult_t(){ Value = value };
{ public static implicit operator int( SteamInventoryResult_t value ) => value.Value;
return new SteamInventoryResult_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator int( SteamInventoryResult_t value )
{
return value.Value;
}
} }
public struct SteamInventoryUpdateHandle_t internal struct SteamInventoryUpdateHandle_t
{ {
public ulong Value; public ulong Value;
public static implicit operator SteamInventoryUpdateHandle_t( ulong value ) public static implicit operator SteamInventoryUpdateHandle_t( ulong value ) => new SteamInventoryUpdateHandle_t(){ Value = value };
{ public static implicit operator ulong( SteamInventoryUpdateHandle_t value ) => value.Value;
return new SteamInventoryUpdateHandle_t(){ Value = value }; public override string ToString() => Value.ToString();
}
public static implicit operator ulong( SteamInventoryUpdateHandle_t value )
{
return value.Value;
}
} }
} }

View File

@ -52,7 +52,7 @@ namespace Steamworks
/// <summary> /// <summary>
/// Gets the current status of the Steam Music player /// Gets the current status of the Steam Music player
/// </summary> /// </summary>
public static AudioPlayback_Status Status => Internal.GetPlaybackStatus(); public static MusicStatus Status => Internal.GetPlaybackStatus();
public static void Play() => Internal.Play(); public static void Play() => Internal.Play();

View File

@ -109,7 +109,7 @@ namespace Steamworks
// Overrides // Overrides
internal abstract void LaunchQuery(); internal abstract void LaunchQuery();
protected HServerListRequest request; internal HServerListRequest request;
#region Filters #region Filters

View File

@ -15,34 +15,34 @@ namespace Steamworks
Id = steamid; Id = steamid;
} }
public bool IsFriend => Relationship == FriendRelationship.Friend; public bool IsFriend => Relationship == Relationship.Friend;
public bool IsBlocked => Relationship == FriendRelationship.Blocked; public bool IsBlocked => Relationship == Relationship.Blocked;
public bool IsPlayingThisGame => GameInfo?.GameID == Utils.AppId; public bool IsPlayingThisGame => GameInfo?.GameID == Utils.AppId;
/// <summary> /// <summary>
/// Returns true if this friend is online /// Returns true if this friend is online
/// </summary> /// </summary>
public bool IsOnline => State != PersonaState.Offline; public bool IsOnline => State != FriendState.Offline;
/// <summary> /// <summary>
/// Returns true if this friend is marked as away /// Returns true if this friend is marked as away
/// </summary> /// </summary>
public bool IsAway => State == PersonaState.Away; public bool IsAway => State == FriendState.Away;
/// <summary> /// <summary>
/// Returns true if this friend is marked as busy /// Returns true if this friend is marked as busy
/// </summary> /// </summary>
public bool IsBusy => State == PersonaState.Busy; public bool IsBusy => State == FriendState.Busy;
/// <summary> /// <summary>
/// Returns true if this friend is marked as snoozing /// Returns true if this friend is marked as snoozing
/// </summary> /// </summary>
public bool IsSnoozing => State == PersonaState.Snooze; public bool IsSnoozing => State == FriendState.Snooze;
public FriendRelationship Relationship => Friends.Internal.GetFriendRelationship( Id ); public Relationship Relationship => Friends.Internal.GetFriendRelationship( Id );
public PersonaState State => Friends.Internal.GetFriendPersonaState( Id ); public FriendState State => Friends.Internal.GetFriendPersonaState( Id );
public string Name => Friends.Internal.GetFriendPersonaName( Id ); public string Name => Friends.Internal.GetFriendPersonaName( Id );
public IEnumerable<string> NameHistory public IEnumerable<string> NameHistory
{ {
@ -88,7 +88,7 @@ namespace Steamworks
internal ushort QueryPort; // m_usQueryPort uint16 internal ushort QueryPort; // m_usQueryPort uint16
internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID internal ulong SteamIDLobby; // m_steamIDLobby class CSteamID
public static FriendGameInfo From( FriendGameInfo_t i ) internal static FriendGameInfo From( FriendGameInfo_t i )
{ {
return new FriendGameInfo return new FriendGameInfo
{ {

View File

@ -84,7 +84,7 @@ namespace Steamworks
/// The first parameter is the steamid of this user /// The first parameter is the steamid of this user
/// The second is the Steam ID that owns the game, this will be different from the first if the game is being borrowed via Steam Family Sharing /// The second is the Steam ID that owns the game, this will be different from the first if the game is being borrowed via Steam Family Sharing
/// </summary> /// </summary>
public static event Action<SteamId, SteamId, AuthSessionResponse> OnValidateAuthTicketResponse; public static event Action<SteamId, SteamId, AuthResponse> OnValidateAuthTicketResponse;
/// <summary> /// <summary>
/// Called when a user has responded to a microtransaction authorization request. /// Called when a user has responded to a microtransaction authorization request.
@ -264,7 +264,7 @@ namespace Steamworks
} }
} }
public static unsafe BeginAuthSessionResult BeginAuthSession( byte[] ticketData, SteamId steamid ) public static unsafe BeginAuthResult BeginAuthSession( byte[] ticketData, SteamId steamid )
{ {
fixed ( byte* ptr = ticketData ) fixed ( byte* ptr = ticketData )
{ {

View File

@ -12,7 +12,14 @@ public static class Cleanup
{ {
type = type.Replace( "CSteamID", "SteamId" ); type = type.Replace( "CSteamID", "SteamId" );
type = type.Replace( "CGameID", "GameId" ); type = type.Replace( "CGameID", "GameId" );
type = type.Replace( "PersonaState", "FriendState" );
type = type.Replace( "AudioPlayback_Status", "MusicStatus" );
type = type.Replace( "AuthSessionResponse", "AuthResponse" );
type = type.Replace( "FriendRelationship", "Relationship" );
type = type.Replace( "BeginAuthSessionResult", "BeginAuthResult" );
return type; return type;
} }
@ -24,4 +31,22 @@ public static class Cleanup
return true; return true;
} }
internal static string Expose( string name )
{
if ( name == "FriendState" ) return "public";
if ( name == "MusicStatus" ) return "public";
if ( name == "ParentalFeature" ) return "public";
if ( name == "AuthResponse" ) return "public";
if ( name == "Relationship" ) return "public";
if ( name == "BeginAuthResult" ) return "public";
if ( name == "Universe" ) return "public";
if ( name == "NotificationPosition" ) return "public";
if ( name == "GamepadTextInputMode" ) return "public";
if ( name == "GamepadTextInputLineMode" ) return "public";
if ( name == "CheckFileSignature" ) return "public";
if ( name == "BroadcastUploadResult" ) return "public";
return "internal";
}
} }

View File

@ -93,12 +93,12 @@ namespace Generator
if ( returnType.ReturnAttribute != null) if ( returnType.ReturnAttribute != null)
WriteLine( returnType.ReturnAttribute ); WriteLine( returnType.ReturnAttribute );
WriteLine( $"public delegate {(returnType.IsReturnedWeird?"void":returnType.TypeNameFrom)} {func.Name}Delegate( IntPtr self, {delegateargstr} );".Replace( "( IntPtr self, )", "( IntPtr self )" ) ); WriteLine( $"private delegate {(returnType.IsReturnedWeird?"void":returnType.TypeNameFrom)} {func.Name}Delegate( IntPtr self, {delegateargstr} );".Replace( "( IntPtr self, )", "( IntPtr self )" ) );
WriteLine( $"private {func.Name}Delegate {func.Name}DelegatePointer;" ); WriteLine( $"private {func.Name}Delegate {func.Name}DelegatePointer;" );
WriteLine(); WriteLine();
WriteLine( $"#endregion" ); WriteLine( $"#endregion" );
StartBlock( $"public {returnType.ReturnType} {func.Name}( {argstr} )".Replace( "( )", "()" ) ); StartBlock( $"internal {returnType.ReturnType} {func.Name}( {argstr} )".Replace( "( )", "()" ) );
{ {
var callargs = string.Join( ", ", args.Select( x => x.AsCallArgument() ) ); var callargs = string.Join( ", ", args.Select( x => x.AsCallArgument() ) );

View File

@ -83,7 +83,7 @@ namespace Generator
type = ToManagedType( type ); type = ToManagedType( type );
TypeDefs.Add( c.Name, new TypeDef() TypeDefs.Add( c.Name, new TypeDef()
{ {
Name = c.Name, Name = c.Name,
NativeType = c.Type, NativeType = c.Type,

View File

@ -25,7 +25,9 @@ namespace Generator
if ( name[0] == 'E' ) if ( name[0] == 'E' )
name = name.Substring( 1 ); name = name.Substring( 1 );
StartBlock( $"public enum {name} : int" ); name = Cleanup.ConvertType( name );
StartBlock( $"{Cleanup.Expose( name )} enum {name} : int" );
{ {
// //
// If all the enum values start with the same // If all the enum values start with the same

View File

@ -64,7 +64,7 @@ namespace Generator
// //
// Main struct // Main struct
// //
StartBlock( $"public struct {name}{(isCallback?" : Steamworks.ISteamCallback":"")}" ); StartBlock( $"{Cleanup.Expose( name )} struct {name}{(isCallback?" : Steamworks.ISteamCallback":"")}" );
{ {
// //
// The fields // The fields

View File

@ -43,22 +43,14 @@ namespace Generator
if ( SkipTypesStartingWith.Any( x => o.Name.StartsWith( x ) ) ) if ( SkipTypesStartingWith.Any( x => o.Name.StartsWith( x ) ) )
continue; continue;
StartBlock( $"public struct {o.Name}" ); StartBlock( $"{Cleanup.Expose( o.Name )} struct {o.Name}" );
{ {
WriteLine( $"public {ToManagedType( o.Type )} Value;" ); WriteLine( $"public {ToManagedType( o.Type )} Value;" );
WriteLine(); WriteLine();
StartBlock( $"public static implicit operator {o.Name}( {ToManagedType( o.Type )} value )" ); WriteLine( $"public static implicit operator {o.Name}( {ToManagedType( o.Type )} value ) => new {o.Name}(){{ Value = value }};" );
{ WriteLine( $"public static implicit operator {ToManagedType( o.Type )}( {o.Name} value ) => value.Value;" );
WriteLine( $"return new {o.Name}(){{ Value = value }};" ); WriteLine( $"public override string ToString() => Value.ToString();" );
} }
EndBlock();
WriteLine();
StartBlock( $"public static implicit operator {ToManagedType( o.Type )}( {o.Name} value )" );
{
WriteLine( $"return value.Value;" );
}
EndBlock();
}
EndBlock(); EndBlock();
WriteLine(); WriteLine();
} }

View File

@ -72,9 +72,7 @@ namespace Generator
type = type.Replace( "union ", "" ); type = type.Replace( "union ", "" );
type = type.Replace( "enum ", "" ); type = type.Replace( "enum ", "" );
var cleantype = Cleanup.ConvertType( type ); type = Cleanup.ConvertType( type );
if ( cleantype != type )
return cleantype;
switch ( type ) switch ( type )
{ {