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();
bool finished = false;
AuthSessionResponse response = AuthSessionResponse.AuthTicketInvalidAlreadyUsed;
AuthResponse response = AuthResponse.AuthTicketInvalidAlreadyUsed;
//
// Clientside calls this function, gets ticket
@ -90,7 +90,7 @@ namespace Steamworks
await Task.Delay( 10 );
}
Assert.AreEqual( response, AuthSessionResponse.OK );
Assert.AreEqual( response, AuthResponse.OK );
finished = false;
stopwatch = System.Diagnostics.Stopwatch.StartNew();
@ -113,7 +113,7 @@ namespace Steamworks
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 );
Console.WriteLine( $"result: { result }" );
Assert.AreEqual( result, BeginAuthSessionResult.OK );
Assert.AreEqual( result, BeginAuthResult.OK );
User.EndAuthSession( User.SteamId );
}

View File

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

View File

@ -36,7 +36,7 @@ namespace Steamworks
/// <summary>
/// User has been authed or rejected
/// </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 )
{
@ -307,7 +307,7 @@ namespace Steamworks
{
var result = Internal.BeginAuthSession( (IntPtr)p, data.Length, steamid );
if ( result == BeginAuthSessionResult.OK )
if ( result == BeginAuthResult.OK )
return true;
return false;

View File

@ -49,11 +49,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsSubscribedDelegate( IntPtr self );
private delegate bool BIsSubscribedDelegate( IntPtr self );
private BIsSubscribedDelegate BIsSubscribedDelegatePointer;
#endregion
public bool BIsSubscribed()
internal bool BIsSubscribed()
{
return BIsSubscribedDelegatePointer( Self );
}
@ -61,11 +61,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsLowViolenceDelegate( IntPtr self );
private delegate bool BIsLowViolenceDelegate( IntPtr self );
private BIsLowViolenceDelegate BIsLowViolenceDelegatePointer;
#endregion
public bool BIsLowViolence()
internal bool BIsLowViolence()
{
return BIsLowViolenceDelegatePointer( Self );
}
@ -73,11 +73,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsCybercafeDelegate( IntPtr self );
private delegate bool BIsCybercafeDelegate( IntPtr self );
private BIsCybercafeDelegate BIsCybercafeDelegatePointer;
#endregion
public bool BIsCybercafe()
internal bool BIsCybercafe()
{
return BIsCybercafeDelegatePointer( Self );
}
@ -85,33 +85,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsVACBannedDelegate( IntPtr self );
private delegate bool BIsVACBannedDelegate( IntPtr self );
private BIsVACBannedDelegate BIsVACBannedDelegatePointer;
#endregion
public bool BIsVACBanned()
internal bool BIsVACBanned()
{
return BIsVACBannedDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetCurrentGameLanguageDelegate( IntPtr self );
private delegate IntPtr GetCurrentGameLanguageDelegate( IntPtr self );
private GetCurrentGameLanguageDelegate GetCurrentGameLanguageDelegatePointer;
#endregion
public string GetCurrentGameLanguage()
internal string GetCurrentGameLanguage()
{
return GetString( GetCurrentGameLanguageDelegatePointer( Self ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetAvailableGameLanguagesDelegate( IntPtr self );
private delegate IntPtr GetAvailableGameLanguagesDelegate( IntPtr self );
private GetAvailableGameLanguagesDelegate GetAvailableGameLanguagesDelegatePointer;
#endregion
public string GetAvailableGameLanguages()
internal string GetAvailableGameLanguages()
{
return GetString( GetAvailableGameLanguagesDelegatePointer( Self ) );
}
@ -119,11 +119,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool BIsSubscribedApp( AppId_t appID )
internal bool BIsSubscribedApp( AppId_t appID )
{
return BIsSubscribedAppDelegatePointer( Self, appID );
}
@ -131,22 +131,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool BIsDlcInstalled( AppId_t appID )
internal bool BIsDlcInstalled( AppId_t appID )
{
return BIsDlcInstalledDelegatePointer( Self, appID );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetEarliestPurchaseUnixTimeDelegate( IntPtr self, AppId_t nAppID );
private delegate uint GetEarliestPurchaseUnixTimeDelegate( IntPtr self, AppId_t nAppID );
private GetEarliestPurchaseUnixTimeDelegate GetEarliestPurchaseUnixTimeDelegatePointer;
#endregion
public uint GetEarliestPurchaseUnixTime( AppId_t nAppID )
internal uint GetEarliestPurchaseUnixTime( AppId_t nAppID )
{
return GetEarliestPurchaseUnixTimeDelegatePointer( Self, nAppID );
}
@ -154,22 +154,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsSubscribedFromFreeWeekendDelegate( IntPtr self );
private delegate bool BIsSubscribedFromFreeWeekendDelegate( IntPtr self );
private BIsSubscribedFromFreeWeekendDelegate BIsSubscribedFromFreeWeekendDelegatePointer;
#endregion
public bool BIsSubscribedFromFreeWeekend()
internal bool BIsSubscribedFromFreeWeekend()
{
return BIsSubscribedFromFreeWeekendDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetDLCCountDelegate( IntPtr self );
private delegate int GetDLCCountDelegate( IntPtr self );
private GetDLCCountDelegate GetDLCCountDelegatePointer;
#endregion
public int GetDLCCount()
internal int GetDLCCount()
{
return GetDLCCountDelegatePointer( Self );
}
@ -177,44 +177,44 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void InstallDLCDelegate( IntPtr self, AppId_t nAppID );
private delegate void InstallDLCDelegate( IntPtr self, AppId_t nAppID );
private InstallDLCDelegate InstallDLCDelegatePointer;
#endregion
public void InstallDLC( AppId_t nAppID )
internal void InstallDLC( AppId_t nAppID )
{
InstallDLCDelegatePointer( Self, nAppID );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void UninstallDLCDelegate( IntPtr self, AppId_t nAppID );
private delegate void UninstallDLCDelegate( IntPtr self, AppId_t nAppID );
private UninstallDLCDelegate UninstallDLCDelegatePointer;
#endregion
public void UninstallDLC( AppId_t nAppID )
internal void UninstallDLC( AppId_t nAppID )
{
UninstallDLCDelegatePointer( Self, nAppID );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RequestAppProofOfPurchaseKeyDelegate( IntPtr self, AppId_t nAppID );
private delegate void RequestAppProofOfPurchaseKeyDelegate( IntPtr self, AppId_t nAppID );
private RequestAppProofOfPurchaseKeyDelegate RequestAppProofOfPurchaseKeyDelegatePointer;
#endregion
public void RequestAppProofOfPurchaseKey( AppId_t nAppID )
internal void RequestAppProofOfPurchaseKey( AppId_t nAppID )
{
RequestAppProofOfPurchaseKeyDelegatePointer( Self, nAppID );
}
@ -222,11 +222,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool GetCurrentBetaName( StringBuilder pchName, int cchNameBufferSize )
internal bool GetCurrentBetaName( StringBuilder pchName, int cchNameBufferSize )
{
return GetCurrentBetaNameDelegatePointer( Self, pchName, cchNameBufferSize );
}
@ -234,33 +234,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool MarkContentCorrupt( [MarshalAs( UnmanagedType.U1 )] bool bMissingFilesOnly )
internal bool MarkContentCorrupt( [MarshalAs( UnmanagedType.U1 )] bool bMissingFilesOnly )
{
return MarkContentCorruptDelegatePointer( Self, bMissingFilesOnly );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
@ -268,22 +268,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool BIsAppInstalled( AppId_t appID )
internal bool BIsAppInstalled( AppId_t appID )
{
return BIsAppInstalledDelegatePointer( Self, appID );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetAppOwnerDelegate( IntPtr self, ref SteamId retVal );
private delegate void GetAppOwnerDelegate( IntPtr self, ref SteamId retVal );
private GetAppOwnerDelegate GetAppOwnerDelegatePointer;
#endregion
public SteamId GetAppOwner()
internal SteamId GetAppOwner()
{
var retVal = default( SteamId );
GetAppOwnerDelegatePointer( Self, ref retVal );
@ -292,11 +292,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetLaunchQueryParamDelegate( IntPtr self, string pchKey );
private delegate IntPtr GetLaunchQueryParamDelegate( IntPtr self, string pchKey );
private GetLaunchQueryParamDelegate GetLaunchQueryParamDelegatePointer;
#endregion
public string GetLaunchQueryParam( string pchKey )
internal string GetLaunchQueryParam( string pchKey )
{
return GetString( GetLaunchQueryParamDelegatePointer( Self, pchKey ) );
}
@ -304,55 +304,55 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetAppBuildIdDelegate( IntPtr self );
private delegate int GetAppBuildIdDelegate( IntPtr self );
private GetAppBuildIdDelegate GetAppBuildIdDelegatePointer;
#endregion
public int GetAppBuildId()
internal int GetAppBuildId()
{
return GetAppBuildIdDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RequestAllProofOfPurchaseKeysDelegate( IntPtr self );
private delegate void RequestAllProofOfPurchaseKeysDelegate( IntPtr self );
private RequestAllProofOfPurchaseKeysDelegate RequestAllProofOfPurchaseKeysDelegatePointer;
#endregion
public void RequestAllProofOfPurchaseKeys()
internal void RequestAllProofOfPurchaseKeys()
{
RequestAllProofOfPurchaseKeysDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t GetFileDetailsDelegate( IntPtr self, string pszFileName );
private delegate SteamAPICall_t GetFileDetailsDelegate( IntPtr self, string pszFileName );
private GetFileDetailsDelegate GetFileDetailsDelegatePointer;
#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();
}
#region FunctionMeta
[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;
#endregion
public int GetLaunchCommandLine( StringBuilder pszCommandLine, int cubCommandLine )
internal int GetLaunchCommandLine( StringBuilder pszCommandLine, int cubCommandLine )
{
return GetLaunchCommandLineDelegatePointer( Self, pszCommandLine, cubCommandLine );
}
@ -360,11 +360,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsSubscribedFromFamilySharingDelegate( IntPtr self );
private delegate bool BIsSubscribedFromFamilySharingDelegate( IntPtr self );
private BIsSubscribedFromFamilySharingDelegate BIsSubscribedFromFamilySharingDelegatePointer;
#endregion
public bool BIsSubscribedFromFamilySharing()
internal bool BIsSubscribedFromFamilySharing()
{
return BIsSubscribedFromFamilySharingDelegatePointer( Self );
}

View File

@ -93,55 +93,55 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetPersonaNameDelegate( IntPtr self );
private delegate IntPtr GetPersonaNameDelegate( IntPtr self );
private GetPersonaNameDelegate GetPersonaNameDelegatePointer;
#endregion
public string GetPersonaName()
internal string GetPersonaName()
{
return GetString( GetPersonaNameDelegatePointer( Self ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t SetPersonaNameDelegate( IntPtr self, string pchPersonaName );
private delegate SteamAPICall_t SetPersonaNameDelegate( IntPtr self, string pchPersonaName );
private SetPersonaNameDelegate SetPersonaNameDelegatePointer;
#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();
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate PersonaState GetPersonaStateDelegate( IntPtr self );
private delegate FriendState GetPersonaStateDelegate( IntPtr self );
private GetPersonaStateDelegate GetPersonaStateDelegatePointer;
#endregion
public PersonaState GetPersonaState()
internal FriendState GetPersonaState()
{
return GetPersonaStateDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendCountDelegate( IntPtr self, int iFriendFlags );
private delegate int GetFriendCountDelegate( IntPtr self, int iFriendFlags );
private GetFriendCountDelegate GetFriendCountDelegatePointer;
#endregion
public int GetFriendCount( int iFriendFlags )
internal int GetFriendCount( int iFriendFlags )
{
return GetFriendCountDelegatePointer( Self, iFriendFlags );
}
#region FunctionMeta
[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;
#endregion
public SteamId GetFriendByIndex( int iFriend, int iFriendFlags )
internal SteamId GetFriendByIndex( int iFriend, int iFriendFlags )
{
var retVal = default( SteamId );
GetFriendByIndexDelegatePointer( Self, ref retVal, iFriend, iFriendFlags );
@ -150,33 +150,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate FriendRelationship GetFriendRelationshipDelegate( IntPtr self, SteamId steamIDFriend );
private delegate Relationship GetFriendRelationshipDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendRelationshipDelegate GetFriendRelationshipDelegatePointer;
#endregion
public FriendRelationship GetFriendRelationship( SteamId steamIDFriend )
internal Relationship GetFriendRelationship( SteamId steamIDFriend )
{
return GetFriendRelationshipDelegatePointer( Self, steamIDFriend );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate PersonaState GetFriendPersonaStateDelegate( IntPtr self, SteamId steamIDFriend );
private delegate FriendState GetFriendPersonaStateDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendPersonaStateDelegate GetFriendPersonaStateDelegatePointer;
#endregion
public PersonaState GetFriendPersonaState( SteamId steamIDFriend )
internal FriendState GetFriendPersonaState( SteamId steamIDFriend )
{
return GetFriendPersonaStateDelegatePointer( Self, steamIDFriend );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetFriendPersonaNameDelegate( IntPtr self, SteamId steamIDFriend );
private delegate IntPtr GetFriendPersonaNameDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendPersonaNameDelegate GetFriendPersonaNameDelegatePointer;
#endregion
public string GetFriendPersonaName( SteamId steamIDFriend )
internal string GetFriendPersonaName( SteamId steamIDFriend )
{
return GetString( GetFriendPersonaNameDelegatePointer( Self, steamIDFriend ) );
}
@ -184,99 +184,99 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[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;
#endregion
public string GetFriendPersonaNameHistory( SteamId steamIDFriend, int iPersonaName )
internal string GetFriendPersonaNameHistory( SteamId steamIDFriend, int iPersonaName )
{
return GetString( GetFriendPersonaNameHistoryDelegatePointer( Self, steamIDFriend, iPersonaName ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendSteamLevelDelegate( IntPtr self, SteamId steamIDFriend );
private delegate int GetFriendSteamLevelDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendSteamLevelDelegate GetFriendSteamLevelDelegatePointer;
#endregion
public int GetFriendSteamLevel( SteamId steamIDFriend )
internal int GetFriendSteamLevel( SteamId steamIDFriend )
{
return GetFriendSteamLevelDelegatePointer( Self, steamIDFriend );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetPlayerNicknameDelegate( IntPtr self, SteamId steamIDPlayer );
private delegate IntPtr GetPlayerNicknameDelegate( IntPtr self, SteamId steamIDPlayer );
private GetPlayerNicknameDelegate GetPlayerNicknameDelegatePointer;
#endregion
public string GetPlayerNickname( SteamId steamIDPlayer )
internal string GetPlayerNickname( SteamId steamIDPlayer )
{
return GetString( GetPlayerNicknameDelegatePointer( Self, steamIDPlayer ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendsGroupCountDelegate( IntPtr self );
private delegate int GetFriendsGroupCountDelegate( IntPtr self );
private GetFriendsGroupCountDelegate GetFriendsGroupCountDelegatePointer;
#endregion
public int GetFriendsGroupCount()
internal int GetFriendsGroupCount()
{
return GetFriendsGroupCountDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate FriendsGroupID_t GetFriendsGroupIDByIndexDelegate( IntPtr self, int iFG );
private delegate FriendsGroupID_t GetFriendsGroupIDByIndexDelegate( IntPtr self, int iFG );
private GetFriendsGroupIDByIndexDelegate GetFriendsGroupIDByIndexDelegatePointer;
#endregion
public FriendsGroupID_t GetFriendsGroupIDByIndex( int iFG )
internal FriendsGroupID_t GetFriendsGroupIDByIndex( int iFG )
{
return GetFriendsGroupIDByIndexDelegatePointer( Self, iFG );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetFriendsGroupNameDelegate( IntPtr self, FriendsGroupID_t friendsGroupID );
private delegate IntPtr GetFriendsGroupNameDelegate( IntPtr self, FriendsGroupID_t friendsGroupID );
private GetFriendsGroupNameDelegate GetFriendsGroupNameDelegatePointer;
#endregion
public string GetFriendsGroupName( FriendsGroupID_t friendsGroupID )
internal string GetFriendsGroupName( FriendsGroupID_t friendsGroupID )
{
return GetString( GetFriendsGroupNameDelegatePointer( Self, friendsGroupID ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendsGroupMembersCountDelegate( IntPtr self, FriendsGroupID_t friendsGroupID );
private delegate int GetFriendsGroupMembersCountDelegate( IntPtr self, FriendsGroupID_t friendsGroupID );
private GetFriendsGroupMembersCountDelegate GetFriendsGroupMembersCountDelegatePointer;
#endregion
public int GetFriendsGroupMembersCount( FriendsGroupID_t friendsGroupID )
internal int GetFriendsGroupMembersCount( FriendsGroupID_t friendsGroupID )
{
return GetFriendsGroupMembersCountDelegatePointer( Self, friendsGroupID );
}
#region FunctionMeta
[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;
#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 );
}
@ -284,33 +284,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool HasFriend( SteamId steamIDFriend, int iFriendFlags )
internal bool HasFriend( SteamId steamIDFriend, int iFriendFlags )
{
return HasFriendDelegatePointer( Self, steamIDFriend, iFriendFlags );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetClanCountDelegate( IntPtr self );
private delegate int GetClanCountDelegate( IntPtr self );
private GetClanCountDelegate GetClanCountDelegatePointer;
#endregion
public int GetClanCount()
internal int GetClanCount()
{
return GetClanCountDelegatePointer( Self );
}
#region FunctionMeta
[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;
#endregion
public SteamId GetClanByIndex( int iClan )
internal SteamId GetClanByIndex( int iClan )
{
var retVal = default( SteamId );
GetClanByIndexDelegatePointer( Self, ref retVal, iClan );
@ -319,22 +319,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetClanNameDelegate( IntPtr self, SteamId steamIDClan );
private delegate IntPtr GetClanNameDelegate( IntPtr self, SteamId steamIDClan );
private GetClanNameDelegate GetClanNameDelegatePointer;
#endregion
public string GetClanName( SteamId steamIDClan )
internal string GetClanName( SteamId steamIDClan )
{
return GetString( GetClanNameDelegatePointer( Self, steamIDClan ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetClanTagDelegate( IntPtr self, SteamId steamIDClan );
private delegate IntPtr GetClanTagDelegate( IntPtr self, SteamId steamIDClan );
private GetClanTagDelegate GetClanTagDelegatePointer;
#endregion
public string GetClanTag( SteamId steamIDClan )
internal string GetClanTag( SteamId steamIDClan )
{
return GetString( GetClanTagDelegatePointer( Self, steamIDClan ) );
}
@ -342,44 +342,44 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[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;
#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();
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendCountFromSourceDelegate( IntPtr self, SteamId steamIDSource );
private delegate int GetFriendCountFromSourceDelegate( IntPtr self, SteamId steamIDSource );
private GetFriendCountFromSourceDelegate GetFriendCountFromSourceDelegatePointer;
#endregion
public int GetFriendCountFromSource( SteamId steamIDSource )
internal int GetFriendCountFromSource( SteamId steamIDSource )
{
return GetFriendCountFromSourceDelegatePointer( Self, steamIDSource );
}
#region FunctionMeta
[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;
#endregion
public SteamId GetFriendFromSourceByIndex( SteamId steamIDSource, int iFriend )
internal SteamId GetFriendFromSourceByIndex( SteamId steamIDSource, int iFriend )
{
var retVal = default( SteamId );
GetFriendFromSourceByIndexDelegatePointer( Self, ref retVal, steamIDSource, iFriend );
@ -389,121 +389,121 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool IsUserInSource( SteamId steamIDUser, SteamId steamIDSource )
internal bool IsUserInSource( SteamId steamIDUser, SteamId steamIDSource )
{
return IsUserInSourceDelegatePointer( Self, steamIDUser, steamIDSource );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ActivateGameOverlayDelegate( IntPtr self, string pchDialog );
private delegate void ActivateGameOverlayDelegate( IntPtr self, string pchDialog );
private ActivateGameOverlayDelegate ActivateGameOverlayDelegatePointer;
#endregion
public void ActivateGameOverlay( string pchDialog )
internal void ActivateGameOverlay( string pchDialog )
{
ActivateGameOverlayDelegatePointer( Self, pchDialog );
}
#region FunctionMeta
[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;
#endregion
public void ActivateGameOverlayToUser( string pchDialog, SteamId steamID )
internal void ActivateGameOverlayToUser( string pchDialog, SteamId steamID )
{
ActivateGameOverlayToUserDelegatePointer( Self, pchDialog, steamID );
}
#region FunctionMeta
[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;
#endregion
public void ActivateGameOverlayToWebPage( string pchURL, ActivateGameOverlayToWebPageMode eMode )
internal void ActivateGameOverlayToWebPage( string pchURL, ActivateGameOverlayToWebPageMode eMode )
{
ActivateGameOverlayToWebPageDelegatePointer( Self, pchURL, eMode );
}
#region FunctionMeta
[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;
#endregion
public void ActivateGameOverlayToStore( AppId_t nAppID, OverlayToStoreFlag eFlag )
internal void ActivateGameOverlayToStore( AppId_t nAppID, OverlayToStoreFlag eFlag )
{
ActivateGameOverlayToStoreDelegatePointer( Self, nAppID, eFlag );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetPlayedWithDelegate( IntPtr self, SteamId steamIDUserPlayedWith );
private delegate void SetPlayedWithDelegate( IntPtr self, SteamId steamIDUserPlayedWith );
private SetPlayedWithDelegate SetPlayedWithDelegatePointer;
#endregion
public void SetPlayedWith( SteamId steamIDUserPlayedWith )
internal void SetPlayedWith( SteamId steamIDUserPlayedWith )
{
SetPlayedWithDelegatePointer( Self, steamIDUserPlayedWith );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ActivateGameOverlayInviteDialogDelegate( IntPtr self, SteamId steamIDLobby );
private delegate void ActivateGameOverlayInviteDialogDelegate( IntPtr self, SteamId steamIDLobby );
private ActivateGameOverlayInviteDialogDelegate ActivateGameOverlayInviteDialogDelegatePointer;
#endregion
public void ActivateGameOverlayInviteDialog( SteamId steamIDLobby )
internal void ActivateGameOverlayInviteDialog( SteamId steamIDLobby )
{
ActivateGameOverlayInviteDialogDelegatePointer( Self, steamIDLobby );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetSmallFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private delegate int GetSmallFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private GetSmallFriendAvatarDelegate GetSmallFriendAvatarDelegatePointer;
#endregion
public int GetSmallFriendAvatar( SteamId steamIDFriend )
internal int GetSmallFriendAvatar( SteamId steamIDFriend )
{
return GetSmallFriendAvatarDelegatePointer( Self, steamIDFriend );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetMediumFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private delegate int GetMediumFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private GetMediumFriendAvatarDelegate GetMediumFriendAvatarDelegatePointer;
#endregion
public int GetMediumFriendAvatar( SteamId steamIDFriend )
internal int GetMediumFriendAvatar( SteamId steamIDFriend )
{
return GetMediumFriendAvatarDelegatePointer( Self, steamIDFriend );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetLargeFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private delegate int GetLargeFriendAvatarDelegate( IntPtr self, SteamId steamIDFriend );
private GetLargeFriendAvatarDelegate GetLargeFriendAvatarDelegatePointer;
#endregion
public int GetLargeFriendAvatar( SteamId steamIDFriend )
internal int GetLargeFriendAvatar( SteamId steamIDFriend )
{
return GetLargeFriendAvatarDelegatePointer( Self, steamIDFriend );
}
@ -511,33 +511,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t RequestClanOfficerListDelegate( IntPtr self, SteamId steamIDClan );
private delegate SteamAPICall_t RequestClanOfficerListDelegate( IntPtr self, SteamId steamIDClan );
private RequestClanOfficerListDelegate RequestClanOfficerListDelegatePointer;
#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();
}
#region FunctionMeta
[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;
#endregion
public SteamId GetClanOwner( SteamId steamIDClan )
internal SteamId GetClanOwner( SteamId steamIDClan )
{
var retVal = default( SteamId );
GetClanOwnerDelegatePointer( Self, ref retVal, steamIDClan );
@ -546,22 +546,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetClanOfficerCountDelegate( IntPtr self, SteamId steamIDClan );
private delegate int GetClanOfficerCountDelegate( IntPtr self, SteamId steamIDClan );
private GetClanOfficerCountDelegate GetClanOfficerCountDelegatePointer;
#endregion
public int GetClanOfficerCount( SteamId steamIDClan )
internal int GetClanOfficerCount( SteamId steamIDClan )
{
return GetClanOfficerCountDelegatePointer( Self, steamIDClan );
}
#region FunctionMeta
[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;
#endregion
public SteamId GetClanOfficerByIndex( SteamId steamIDClan, int iOfficer )
internal SteamId GetClanOfficerByIndex( SteamId steamIDClan, int iOfficer )
{
var retVal = default( SteamId );
GetClanOfficerByIndexDelegatePointer( Self, ref retVal, steamIDClan, iOfficer );
@ -570,11 +570,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetUserRestrictionsDelegate( IntPtr self );
private delegate uint GetUserRestrictionsDelegate( IntPtr self );
private GetUserRestrictionsDelegate GetUserRestrictionsDelegatePointer;
#endregion
public uint GetUserRestrictions()
internal uint GetUserRestrictions()
{
return GetUserRestrictionsDelegatePointer( Self );
}
@ -582,66 +582,66 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool SetRichPresence( string pchKey, string pchValue )
internal bool SetRichPresence( string pchKey, string pchValue )
{
return SetRichPresenceDelegatePointer( Self, pchKey, pchValue );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ClearRichPresenceDelegate( IntPtr self );
private delegate void ClearRichPresenceDelegate( IntPtr self );
private ClearRichPresenceDelegate ClearRichPresenceDelegatePointer;
#endregion
public void ClearRichPresence()
internal void ClearRichPresence()
{
ClearRichPresenceDelegatePointer( Self );
}
#region FunctionMeta
[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;
#endregion
public string GetFriendRichPresence( SteamId steamIDFriend, string pchKey )
internal string GetFriendRichPresence( SteamId steamIDFriend, string pchKey )
{
return GetString( GetFriendRichPresenceDelegatePointer( Self, steamIDFriend, pchKey ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendRichPresenceKeyCountDelegate( IntPtr self, SteamId steamIDFriend );
private delegate int GetFriendRichPresenceKeyCountDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendRichPresenceKeyCountDelegate GetFriendRichPresenceKeyCountDelegatePointer;
#endregion
public int GetFriendRichPresenceKeyCount( SteamId steamIDFriend )
internal int GetFriendRichPresenceKeyCount( SteamId steamIDFriend )
{
return GetFriendRichPresenceKeyCountDelegatePointer( Self, steamIDFriend );
}
#region FunctionMeta
[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;
#endregion
public string GetFriendRichPresenceKeyByIndex( SteamId steamIDFriend, int iKey )
internal string GetFriendRichPresenceKeyByIndex( SteamId steamIDFriend, int iKey )
{
return GetString( GetFriendRichPresenceKeyByIndexDelegatePointer( Self, steamIDFriend, iKey ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RequestFriendRichPresenceDelegate( IntPtr self, SteamId steamIDFriend );
private delegate void RequestFriendRichPresenceDelegate( IntPtr self, SteamId steamIDFriend );
private RequestFriendRichPresenceDelegate RequestFriendRichPresenceDelegatePointer;
#endregion
public void RequestFriendRichPresence( SteamId steamIDFriend )
internal void RequestFriendRichPresence( SteamId steamIDFriend )
{
RequestFriendRichPresenceDelegatePointer( Self, steamIDFriend );
}
@ -649,33 +649,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool InviteUserToGame( SteamId steamIDFriend, string pchConnectString )
internal bool InviteUserToGame( SteamId steamIDFriend, string pchConnectString )
{
return InviteUserToGameDelegatePointer( Self, steamIDFriend, pchConnectString );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetCoplayFriendCountDelegate( IntPtr self );
private delegate int GetCoplayFriendCountDelegate( IntPtr self );
private GetCoplayFriendCountDelegate GetCoplayFriendCountDelegatePointer;
#endregion
public int GetCoplayFriendCount()
internal int GetCoplayFriendCount()
{
return GetCoplayFriendCountDelegatePointer( Self );
}
#region FunctionMeta
[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;
#endregion
public SteamId GetCoplayFriend( int iCoplayFriend )
internal SteamId GetCoplayFriend( int iCoplayFriend )
{
var retVal = default( SteamId );
GetCoplayFriendDelegatePointer( Self, ref retVal, iCoplayFriend );
@ -684,33 +684,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetFriendCoplayTimeDelegate( IntPtr self, SteamId steamIDFriend );
private delegate int GetFriendCoplayTimeDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendCoplayTimeDelegate GetFriendCoplayTimeDelegatePointer;
#endregion
public int GetFriendCoplayTime( SteamId steamIDFriend )
internal int GetFriendCoplayTime( SteamId steamIDFriend )
{
return GetFriendCoplayTimeDelegatePointer( Self, steamIDFriend );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate AppId_t GetFriendCoplayGameDelegate( IntPtr self, SteamId steamIDFriend );
private delegate AppId_t GetFriendCoplayGameDelegate( IntPtr self, SteamId steamIDFriend );
private GetFriendCoplayGameDelegate GetFriendCoplayGameDelegatePointer;
#endregion
public AppId_t GetFriendCoplayGame( SteamId steamIDFriend )
internal AppId_t GetFriendCoplayGame( SteamId steamIDFriend )
{
return GetFriendCoplayGameDelegatePointer( Self, steamIDFriend );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t JoinClanChatRoomDelegate( IntPtr self, SteamId steamIDClan );
private delegate SteamAPICall_t JoinClanChatRoomDelegate( IntPtr self, SteamId steamIDClan );
private JoinClanChatRoomDelegate JoinClanChatRoomDelegatePointer;
#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();
}
@ -718,33 +718,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool LeaveClanChatRoomDelegate( IntPtr self, SteamId steamIDClan );
private delegate bool LeaveClanChatRoomDelegate( IntPtr self, SteamId steamIDClan );
private LeaveClanChatRoomDelegate LeaveClanChatRoomDelegatePointer;
#endregion
public bool LeaveClanChatRoom( SteamId steamIDClan )
internal bool LeaveClanChatRoom( SteamId steamIDClan )
{
return LeaveClanChatRoomDelegatePointer( Self, steamIDClan );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetClanChatMemberCountDelegate( IntPtr self, SteamId steamIDClan );
private delegate int GetClanChatMemberCountDelegate( IntPtr self, SteamId steamIDClan );
private GetClanChatMemberCountDelegate GetClanChatMemberCountDelegatePointer;
#endregion
public int GetClanChatMemberCount( SteamId steamIDClan )
internal int GetClanChatMemberCount( SteamId steamIDClan )
{
return GetClanChatMemberCountDelegatePointer( Self, steamIDClan );
}
#region FunctionMeta
[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;
#endregion
public SteamId GetChatMemberByIndex( SteamId steamIDClan, int iUser )
internal SteamId GetChatMemberByIndex( SteamId steamIDClan, int iUser )
{
var retVal = default( SteamId );
GetChatMemberByIndexDelegatePointer( Self, ref retVal, steamIDClan, iUser );
@ -754,22 +754,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool SendClanChatMessage( SteamId steamIDClanChat, string pchText )
internal bool SendClanChatMessage( SteamId steamIDClanChat, string pchText )
{
return SendClanChatMessageDelegatePointer( Self, steamIDClanChat, pchText );
}
#region FunctionMeta
[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;
#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 );
}
@ -777,11 +777,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool IsClanChatAdmin( SteamId steamIDClanChat, SteamId steamIDUser )
internal bool IsClanChatAdmin( SteamId steamIDClanChat, SteamId steamIDUser )
{
return IsClanChatAdminDelegatePointer( Self, steamIDClanChat, steamIDUser );
}
@ -789,11 +789,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsClanChatWindowOpenInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private delegate bool IsClanChatWindowOpenInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private IsClanChatWindowOpenInSteamDelegate IsClanChatWindowOpenInSteamDelegatePointer;
#endregion
public bool IsClanChatWindowOpenInSteam( SteamId steamIDClanChat )
internal bool IsClanChatWindowOpenInSteam( SteamId steamIDClanChat )
{
return IsClanChatWindowOpenInSteamDelegatePointer( Self, steamIDClanChat );
}
@ -801,11 +801,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool OpenClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private delegate bool OpenClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private OpenClanChatWindowInSteamDelegate OpenClanChatWindowInSteamDelegatePointer;
#endregion
public bool OpenClanChatWindowInSteam( SteamId steamIDClanChat )
internal bool OpenClanChatWindowInSteam( SteamId steamIDClanChat )
{
return OpenClanChatWindowInSteamDelegatePointer( Self, steamIDClanChat );
}
@ -813,11 +813,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool CloseClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private delegate bool CloseClanChatWindowInSteamDelegate( IntPtr self, SteamId steamIDClanChat );
private CloseClanChatWindowInSteamDelegate CloseClanChatWindowInSteamDelegatePointer;
#endregion
public bool CloseClanChatWindowInSteam( SteamId steamIDClanChat )
internal bool CloseClanChatWindowInSteam( SteamId steamIDClanChat )
{
return CloseClanChatWindowInSteamDelegatePointer( Self, steamIDClanChat );
}
@ -825,11 +825,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool SetListenForFriendsMessages( [MarshalAs( UnmanagedType.U1 )] bool bInterceptEnabled )
internal bool SetListenForFriendsMessages( [MarshalAs( UnmanagedType.U1 )] bool bInterceptEnabled )
{
return SetListenForFriendsMessagesDelegatePointer( Self, bInterceptEnabled );
}
@ -837,55 +837,55 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool ReplyToFriendMessage( SteamId steamIDFriend, string pchMsgToSend )
internal bool ReplyToFriendMessage( SteamId steamIDFriend, string pchMsgToSend )
{
return ReplyToFriendMessageDelegatePointer( Self, steamIDFriend, pchMsgToSend );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t GetFollowerCountDelegate( IntPtr self, SteamId steamID );
private delegate SteamAPICall_t GetFollowerCountDelegate( IntPtr self, SteamId steamID );
private GetFollowerCountDelegate GetFollowerCountDelegatePointer;
#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();
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t IsFollowingDelegate( IntPtr self, SteamId steamID );
private delegate SteamAPICall_t IsFollowingDelegate( IntPtr self, SteamId steamID );
private IsFollowingDelegate IsFollowingDelegatePointer;
#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();
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t EnumerateFollowingListDelegate( IntPtr self, uint unStartIndex );
private delegate SteamAPICall_t EnumerateFollowingListDelegate( IntPtr self, uint unStartIndex );
private EnumerateFollowingListDelegate EnumerateFollowingListDelegatePointer;
#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();
}
@ -893,11 +893,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsClanPublicDelegate( IntPtr self, SteamId steamIDClan );
private delegate bool IsClanPublicDelegate( IntPtr self, SteamId steamIDClan );
private IsClanPublicDelegate IsClanPublicDelegatePointer;
#endregion
public bool IsClanPublic( SteamId steamIDClan )
internal bool IsClanPublic( SteamId steamIDClan )
{
return IsClanPublicDelegatePointer( Self, steamIDClan );
}
@ -905,22 +905,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsClanOfficialGameGroupDelegate( IntPtr self, SteamId steamIDClan );
private delegate bool IsClanOfficialGameGroupDelegate( IntPtr self, SteamId steamIDClan );
private IsClanOfficialGameGroupDelegate IsClanOfficialGameGroupDelegatePointer;
#endregion
public bool IsClanOfficialGameGroup( SteamId steamIDClan )
internal bool IsClanOfficialGameGroup( SteamId steamIDClan )
{
return IsClanOfficialGameGroupDelegatePointer( Self, steamIDClan );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetNumChatsWithUnreadPriorityMessagesDelegate( IntPtr self );
private delegate int GetNumChatsWithUnreadPriorityMessagesDelegate( IntPtr self );
private GetNumChatsWithUnreadPriorityMessagesDelegate GetNumChatsWithUnreadPriorityMessagesDelegatePointer;
#endregion
public int GetNumChatsWithUnreadPriorityMessages()
internal int GetNumChatsWithUnreadPriorityMessages()
{
return GetNumChatsWithUnreadPriorityMessagesDelegatePointer( Self );
}

View File

@ -65,88 +65,88 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetProductDelegate( IntPtr self, string pszProduct );
private delegate void SetProductDelegate( IntPtr self, string pszProduct );
private SetProductDelegate SetProductDelegatePointer;
#endregion
public void SetProduct( string pszProduct )
internal void SetProduct( string pszProduct )
{
SetProductDelegatePointer( Self, pszProduct );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetGameDescriptionDelegate( IntPtr self, string pszGameDescription );
private delegate void SetGameDescriptionDelegate( IntPtr self, string pszGameDescription );
private SetGameDescriptionDelegate SetGameDescriptionDelegatePointer;
#endregion
public void SetGameDescription( string pszGameDescription )
internal void SetGameDescription( string pszGameDescription )
{
SetGameDescriptionDelegatePointer( Self, pszGameDescription );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetModDirDelegate( IntPtr self, string pszModDir );
private delegate void SetModDirDelegate( IntPtr self, string pszModDir );
private SetModDirDelegate SetModDirDelegatePointer;
#endregion
public void SetModDir( string pszModDir )
internal void SetModDir( string pszModDir )
{
SetModDirDelegatePointer( Self, pszModDir );
}
#region FunctionMeta
[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;
#endregion
public void SetDedicatedServer( [MarshalAs( UnmanagedType.U1 )] bool bDedicated )
internal void SetDedicatedServer( [MarshalAs( UnmanagedType.U1 )] bool bDedicated )
{
SetDedicatedServerDelegatePointer( Self, bDedicated );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void LogOnDelegate( IntPtr self, string pszToken );
private delegate void LogOnDelegate( IntPtr self, string pszToken );
private LogOnDelegate LogOnDelegatePointer;
#endregion
public void LogOn( string pszToken )
internal void LogOn( string pszToken )
{
LogOnDelegatePointer( Self, pszToken );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void LogOnAnonymousDelegate( IntPtr self );
private delegate void LogOnAnonymousDelegate( IntPtr self );
private LogOnAnonymousDelegate LogOnAnonymousDelegatePointer;
#endregion
public void LogOnAnonymous()
internal void LogOnAnonymous()
{
LogOnAnonymousDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void LogOffDelegate( IntPtr self );
private delegate void LogOffDelegate( IntPtr self );
private LogOffDelegate LogOffDelegatePointer;
#endregion
public void LogOff()
internal void LogOff()
{
LogOffDelegatePointer( Self );
}
@ -154,11 +154,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BLoggedOnDelegate( IntPtr self );
private delegate bool BLoggedOnDelegate( IntPtr self );
private BLoggedOnDelegate BLoggedOnDelegatePointer;
#endregion
public bool BLoggedOn()
internal bool BLoggedOn()
{
return BLoggedOnDelegatePointer( Self );
}
@ -166,22 +166,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BSecureDelegate( IntPtr self );
private delegate bool BSecureDelegate( IntPtr self );
private BSecureDelegate BSecureDelegatePointer;
#endregion
public bool BSecure()
internal bool BSecure()
{
return BSecureDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal );
private delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal );
private GetSteamIDDelegate GetSteamIDDelegatePointer;
#endregion
public SteamId GetSteamID()
internal SteamId GetSteamID()
{
var retVal = default( SteamId );
GetSteamIDDelegatePointer( Self, ref retVal );
@ -191,143 +191,143 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool WasRestartRequestedDelegate( IntPtr self );
private delegate bool WasRestartRequestedDelegate( IntPtr self );
private WasRestartRequestedDelegate WasRestartRequestedDelegatePointer;
#endregion
public bool WasRestartRequested()
internal bool WasRestartRequested()
{
return WasRestartRequestedDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetMaxPlayerCountDelegate( IntPtr self, int cPlayersMax );
private delegate void SetMaxPlayerCountDelegate( IntPtr self, int cPlayersMax );
private SetMaxPlayerCountDelegate SetMaxPlayerCountDelegatePointer;
#endregion
public void SetMaxPlayerCount( int cPlayersMax )
internal void SetMaxPlayerCount( int cPlayersMax )
{
SetMaxPlayerCountDelegatePointer( Self, cPlayersMax );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetBotPlayerCountDelegate( IntPtr self, int cBotplayers );
private delegate void SetBotPlayerCountDelegate( IntPtr self, int cBotplayers );
private SetBotPlayerCountDelegate SetBotPlayerCountDelegatePointer;
#endregion
public void SetBotPlayerCount( int cBotplayers )
internal void SetBotPlayerCount( int cBotplayers )
{
SetBotPlayerCountDelegatePointer( Self, cBotplayers );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetServerNameDelegate( IntPtr self, string pszServerName );
private delegate void SetServerNameDelegate( IntPtr self, string pszServerName );
private SetServerNameDelegate SetServerNameDelegatePointer;
#endregion
public void SetServerName( string pszServerName )
internal void SetServerName( string pszServerName )
{
SetServerNameDelegatePointer( Self, pszServerName );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetMapNameDelegate( IntPtr self, string pszMapName );
private delegate void SetMapNameDelegate( IntPtr self, string pszMapName );
private SetMapNameDelegate SetMapNameDelegatePointer;
#endregion
public void SetMapName( string pszMapName )
internal void SetMapName( string pszMapName )
{
SetMapNameDelegatePointer( Self, pszMapName );
}
#region FunctionMeta
[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;
#endregion
public void SetPasswordProtected( [MarshalAs( UnmanagedType.U1 )] bool bPasswordProtected )
internal void SetPasswordProtected( [MarshalAs( UnmanagedType.U1 )] bool bPasswordProtected )
{
SetPasswordProtectedDelegatePointer( Self, bPasswordProtected );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetSpectatorPortDelegate( IntPtr self, ushort unSpectatorPort );
private delegate void SetSpectatorPortDelegate( IntPtr self, ushort unSpectatorPort );
private SetSpectatorPortDelegate SetSpectatorPortDelegatePointer;
#endregion
public void SetSpectatorPort( ushort unSpectatorPort )
internal void SetSpectatorPort( ushort unSpectatorPort )
{
SetSpectatorPortDelegatePointer( Self, unSpectatorPort );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetSpectatorServerNameDelegate( IntPtr self, string pszSpectatorServerName );
private delegate void SetSpectatorServerNameDelegate( IntPtr self, string pszSpectatorServerName );
private SetSpectatorServerNameDelegate SetSpectatorServerNameDelegatePointer;
#endregion
public void SetSpectatorServerName( string pszSpectatorServerName )
internal void SetSpectatorServerName( string pszSpectatorServerName )
{
SetSpectatorServerNameDelegatePointer( Self, pszSpectatorServerName );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ClearAllKeyValuesDelegate( IntPtr self );
private delegate void ClearAllKeyValuesDelegate( IntPtr self );
private ClearAllKeyValuesDelegate ClearAllKeyValuesDelegatePointer;
#endregion
public void ClearAllKeyValues()
internal void ClearAllKeyValues()
{
ClearAllKeyValuesDelegatePointer( Self );
}
#region FunctionMeta
[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;
#endregion
public void SetKeyValue( string pKey, string pValue )
internal void SetKeyValue( string pKey, string pValue )
{
SetKeyValueDelegatePointer( Self, pKey, pValue );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetGameTagsDelegate( IntPtr self, string pchGameTags );
private delegate void SetGameTagsDelegate( IntPtr self, string pchGameTags );
private SetGameTagsDelegate SetGameTagsDelegatePointer;
#endregion
public void SetGameTags( string pchGameTags )
internal void SetGameTags( string pchGameTags )
{
SetGameTagsDelegatePointer( Self, pchGameTags );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetGameDataDelegate( IntPtr self, string pchGameData );
private delegate void SetGameDataDelegate( IntPtr self, string pchGameData );
private SetGameDataDelegate SetGameDataDelegatePointer;
#endregion
public void SetGameData( string pchGameData )
internal void SetGameData( string pchGameData )
{
SetGameDataDelegatePointer( Self, pchGameData );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetRegionDelegate( IntPtr self, string pszRegion );
private delegate void SetRegionDelegate( IntPtr self, string pszRegion );
private SetRegionDelegate SetRegionDelegatePointer;
#endregion
public void SetRegion( string pszRegion )
internal void SetRegion( string pszRegion )
{
SetRegionDelegatePointer( Self, pszRegion );
}
@ -335,22 +335,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CreateUnauthenticatedUserConnectionDelegate( IntPtr self, ref SteamId retVal );
private delegate void CreateUnauthenticatedUserConnectionDelegate( IntPtr self, ref SteamId retVal );
private CreateUnauthenticatedUserConnectionDelegate CreateUnauthenticatedUserConnectionDelegatePointer;
#endregion
public SteamId CreateUnauthenticatedUserConnection()
internal SteamId CreateUnauthenticatedUserConnection()
{
var retVal = default( SteamId );
CreateUnauthenticatedUserConnectionDelegatePointer( Self, ref retVal );
@ -359,11 +359,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SendUserDisconnectDelegate( IntPtr self, SteamId steamIDUser );
private delegate void SendUserDisconnectDelegate( IntPtr self, SteamId steamIDUser );
private SendUserDisconnectDelegate SendUserDisconnectDelegatePointer;
#endregion
public void SendUserDisconnect( SteamId steamIDUser )
internal void SendUserDisconnect( SteamId steamIDUser )
{
SendUserDisconnectDelegatePointer( Self, steamIDUser );
}
@ -371,66 +371,66 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID );
private delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID );
private EndAuthSessionDelegate EndAuthSessionDelegatePointer;
#endregion
public void EndAuthSession( SteamId steamID )
internal void EndAuthSession( SteamId steamID )
{
EndAuthSessionDelegatePointer( Self, steamID );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CancelAuthTicketDelegate( IntPtr self, HAuthTicket hAuthTicket );
private delegate void CancelAuthTicketDelegate( IntPtr self, HAuthTicket hAuthTicket );
private CancelAuthTicketDelegate CancelAuthTicketDelegatePointer;
#endregion
public void CancelAuthTicket( HAuthTicket hAuthTicket )
internal void CancelAuthTicket( HAuthTicket hAuthTicket )
{
CancelAuthTicketDelegatePointer( Self, hAuthTicket );
}
#region FunctionMeta
[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;
#endregion
public UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID )
internal UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID )
{
return UserHasLicenseForAppDelegatePointer( Self, steamID, appID );
}
@ -438,44 +438,44 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool RequestUserGroupStatus( SteamId steamIDUser, SteamId steamIDGroup )
internal bool RequestUserGroupStatus( SteamId steamIDUser, SteamId steamIDGroup )
{
return RequestUserGroupStatusDelegatePointer( Self, steamIDUser, steamIDGroup );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetGameplayStatsDelegate( IntPtr self );
private delegate void GetGameplayStatsDelegate( IntPtr self );
private GetGameplayStatsDelegate GetGameplayStatsDelegatePointer;
#endregion
public void GetGameplayStats()
internal void GetGameplayStats()
{
GetGameplayStatsDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t GetServerReputationDelegate( IntPtr self );
private delegate SteamAPICall_t GetServerReputationDelegate( IntPtr self );
private GetServerReputationDelegate GetServerReputationDelegatePointer;
#endregion
public async Task<GSReputation_t?> GetServerReputation()
internal async Task<GSReputation_t?> GetServerReputation()
{
return await (new Result<GSReputation_t>( GetServerReputationDelegatePointer( Self ) )).GetResult();
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetPublicIPDelegate( IntPtr self );
private delegate uint GetPublicIPDelegate( IntPtr self );
private GetPublicIPDelegate GetPublicIPDelegatePointer;
#endregion
public uint GetPublicIP()
internal uint GetPublicIP()
{
return GetPublicIPDelegatePointer( Self );
}
@ -483,77 +483,77 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#endregion
public void EnableHeartbeats( [MarshalAs( UnmanagedType.U1 )] bool bActive )
internal void EnableHeartbeats( [MarshalAs( UnmanagedType.U1 )] bool bActive )
{
EnableHeartbeatsDelegatePointer( Self, bActive );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetHeartbeatIntervalDelegate( IntPtr self, int iHeartbeatInterval );
private delegate void SetHeartbeatIntervalDelegate( IntPtr self, int iHeartbeatInterval );
private SetHeartbeatIntervalDelegate SetHeartbeatIntervalDelegatePointer;
#endregion
public void SetHeartbeatInterval( int iHeartbeatInterval )
internal void SetHeartbeatInterval( int iHeartbeatInterval )
{
SetHeartbeatIntervalDelegatePointer( Self, iHeartbeatInterval );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ForceHeartbeatDelegate( IntPtr self );
private delegate void ForceHeartbeatDelegate( IntPtr self );
private ForceHeartbeatDelegate ForceHeartbeatDelegatePointer;
#endregion
public void ForceHeartbeat()
internal void ForceHeartbeat()
{
ForceHeartbeatDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t AssociateWithClanDelegate( IntPtr self, SteamId steamIDClan );
private delegate SteamAPICall_t AssociateWithClanDelegate( IntPtr self, SteamId steamIDClan );
private AssociateWithClanDelegate AssociateWithClanDelegatePointer;
#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();
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t ComputeNewPlayerCompatibilityDelegate( IntPtr self, SteamId steamIDNewPlayer );
private delegate SteamAPICall_t ComputeNewPlayerCompatibilityDelegate( IntPtr self, SteamId steamIDNewPlayer );
private ComputeNewPlayerCompatibilityDelegate ComputeNewPlayerCompatibilityDelegatePointer;
#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();
}

View File

@ -37,110 +37,110 @@ namespace Steamworks.Internal
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#endregion
public HServerListRequest RequestLANServerList( AppId_t iApp, IntPtr pRequestServersResponse )
internal HServerListRequest RequestLANServerList( AppId_t iApp, IntPtr pRequestServersResponse )
{
return RequestLANServerListDelegatePointer( Self, iApp, pRequestServersResponse );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void ReleaseRequestDelegate( IntPtr self, HServerListRequest hServerListRequest );
private delegate void ReleaseRequestDelegate( IntPtr self, HServerListRequest hServerListRequest );
private ReleaseRequestDelegate ReleaseRequestDelegatePointer;
#endregion
public void ReleaseRequest( HServerListRequest hServerListRequest )
internal void ReleaseRequest( HServerListRequest hServerListRequest )
{
ReleaseRequestDelegatePointer( Self, hServerListRequest );
}
#region FunctionMeta
[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;
#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 ) );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CancelQueryDelegate( IntPtr self, HServerListRequest hRequest );
private delegate void CancelQueryDelegate( IntPtr self, HServerListRequest hRequest );
private CancelQueryDelegate CancelQueryDelegatePointer;
#endregion
public void CancelQuery( HServerListRequest hRequest )
internal void CancelQuery( HServerListRequest hRequest )
{
CancelQueryDelegatePointer( Self, hRequest );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RefreshQueryDelegate( IntPtr self, HServerListRequest hRequest );
private delegate void RefreshQueryDelegate( IntPtr self, HServerListRequest hRequest );
private RefreshQueryDelegate RefreshQueryDelegatePointer;
#endregion
public void RefreshQuery( HServerListRequest hRequest )
internal void RefreshQuery( HServerListRequest hRequest )
{
RefreshQueryDelegatePointer( Self, hRequest );
}
@ -148,77 +148,77 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsRefreshingDelegate( IntPtr self, HServerListRequest hRequest );
private delegate bool IsRefreshingDelegate( IntPtr self, HServerListRequest hRequest );
private IsRefreshingDelegate IsRefreshingDelegatePointer;
#endregion
public bool IsRefreshing( HServerListRequest hRequest )
internal bool IsRefreshing( HServerListRequest hRequest )
{
return IsRefreshingDelegatePointer( Self, hRequest );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetServerCountDelegate( IntPtr self, HServerListRequest hRequest );
private delegate int GetServerCountDelegate( IntPtr self, HServerListRequest hRequest );
private GetServerCountDelegate GetServerCountDelegatePointer;
#endregion
public int GetServerCount( HServerListRequest hRequest )
internal int GetServerCount( HServerListRequest hRequest )
{
return GetServerCountDelegatePointer( Self, hRequest );
}
#region FunctionMeta
[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;
#endregion
public void RefreshServer( HServerListRequest hRequest, int iServer )
internal void RefreshServer( HServerListRequest hRequest, int iServer )
{
RefreshServerDelegatePointer( Self, hRequest, iServer );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CancelServerQueryDelegate( IntPtr self, HServerQuery hServerQuery );
private delegate void CancelServerQueryDelegate( IntPtr self, HServerQuery hServerQuery );
private CancelServerQueryDelegate CancelServerQueryDelegatePointer;
#endregion
public void CancelServerQuery( HServerQuery hServerQuery )
internal void CancelServerQuery( HServerQuery hServerQuery )
{
CancelServerQueryDelegatePointer( Self, hServerQuery );
}

View File

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

View File

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

View File

@ -50,11 +50,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate HSteamUser GetHSteamUserDelegate( IntPtr self );
private delegate HSteamUser GetHSteamUserDelegate( IntPtr self );
private GetHSteamUserDelegate GetHSteamUserDelegatePointer;
#endregion
public HSteamUser GetHSteamUser()
internal HSteamUser GetHSteamUser()
{
return GetHSteamUserDelegatePointer( Self );
}
@ -62,22 +62,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BLoggedOnDelegate( IntPtr self );
private delegate bool BLoggedOnDelegate( IntPtr self );
private BLoggedOnDelegate BLoggedOnDelegatePointer;
#endregion
public bool BLoggedOn()
internal bool BLoggedOn()
{
return BLoggedOnDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal );
private delegate void GetSteamIDDelegate( IntPtr self, ref SteamId retVal );
private GetSteamIDDelegate GetSteamIDDelegatePointer;
#endregion
public SteamId GetSteamID()
internal SteamId GetSteamID()
{
var retVal = default( SteamId );
GetSteamIDDelegatePointer( Self, ref retVal );
@ -86,33 +86,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#endregion
public void TerminateGameConnection( uint unIPServer, ushort usPortServer )
internal void TerminateGameConnection( uint unIPServer, ushort usPortServer )
{
TerminateGameConnectionDelegatePointer( Self, unIPServer, usPortServer );
}
#region FunctionMeta
[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;
#endregion
public void TrackAppUsageEvent( GameId gameID, int eAppUsageEvent, string pchExtraInfo )
internal void TrackAppUsageEvent( GameId gameID, int eAppUsageEvent, string pchExtraInfo )
{
TrackAppUsageEventDelegatePointer( Self, gameID, eAppUsageEvent, pchExtraInfo );
}
@ -120,132 +120,132 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool GetUserDataFolder( StringBuilder pchBuffer, int cubBuffer )
internal bool GetUserDataFolder( StringBuilder pchBuffer, int cubBuffer )
{
return GetUserDataFolderDelegatePointer( Self, pchBuffer, cubBuffer );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void StartVoiceRecordingDelegate( IntPtr self );
private delegate void StartVoiceRecordingDelegate( IntPtr self );
private StartVoiceRecordingDelegate StartVoiceRecordingDelegatePointer;
#endregion
public void StartVoiceRecording()
internal void StartVoiceRecording()
{
StartVoiceRecordingDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void StopVoiceRecordingDelegate( IntPtr self );
private delegate void StopVoiceRecordingDelegate( IntPtr self );
private StopVoiceRecordingDelegate StopVoiceRecordingDelegatePointer;
#endregion
public void StopVoiceRecording()
internal void StopVoiceRecording()
{
StopVoiceRecordingDelegatePointer( Self );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetVoiceOptimalSampleRateDelegate( IntPtr self );
private delegate uint GetVoiceOptimalSampleRateDelegate( IntPtr self );
private GetVoiceOptimalSampleRateDelegate GetVoiceOptimalSampleRateDelegatePointer;
#endregion
public uint GetVoiceOptimalSampleRate()
internal uint GetVoiceOptimalSampleRate()
{
return GetVoiceOptimalSampleRateDelegatePointer( Self );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID );
private delegate void EndAuthSessionDelegate( IntPtr self, SteamId steamID );
private EndAuthSessionDelegate EndAuthSessionDelegatePointer;
#endregion
public void EndAuthSession( SteamId steamID )
internal void EndAuthSession( SteamId steamID )
{
EndAuthSessionDelegatePointer( Self, steamID );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void CancelAuthTicketDelegate( IntPtr self, HAuthTicket hAuthTicket );
private delegate void CancelAuthTicketDelegate( IntPtr self, HAuthTicket hAuthTicket );
private CancelAuthTicketDelegate CancelAuthTicketDelegatePointer;
#endregion
public void CancelAuthTicket( HAuthTicket hAuthTicket )
internal void CancelAuthTicket( HAuthTicket hAuthTicket )
{
CancelAuthTicketDelegatePointer( Self, hAuthTicket );
}
#region FunctionMeta
[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;
#endregion
public UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID )
internal UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamID, AppId_t appID )
{
return UserHasLicenseForAppDelegatePointer( Self, steamID, appID );
}
@ -253,33 +253,33 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsBehindNATDelegate( IntPtr self );
private delegate bool BIsBehindNATDelegate( IntPtr self );
private BIsBehindNATDelegate BIsBehindNATDelegatePointer;
#endregion
public bool BIsBehindNAT()
internal bool BIsBehindNAT()
{
return BIsBehindNATDelegatePointer( Self );
}
#region FunctionMeta
[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;
#endregion
public void AdvertiseGame( SteamId steamIDGameServer, uint unIPServer, ushort usPortServer )
internal void AdvertiseGame( SteamId steamIDGameServer, uint unIPServer, ushort usPortServer )
{
AdvertiseGameDelegatePointer( Self, steamIDGameServer, unIPServer, usPortServer );
}
#region FunctionMeta
[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;
#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();
}
@ -287,44 +287,44 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate int GetPlayerSteamLevelDelegate( IntPtr self );
private delegate int GetPlayerSteamLevelDelegate( IntPtr self );
private GetPlayerSteamLevelDelegate GetPlayerSteamLevelDelegatePointer;
#endregion
public int GetPlayerSteamLevel()
internal int GetPlayerSteamLevel()
{
return GetPlayerSteamLevelDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t RequestStoreAuthURLDelegate( IntPtr self, string pchRedirectURL );
private delegate SteamAPICall_t RequestStoreAuthURLDelegate( IntPtr self, string pchRedirectURL );
private RequestStoreAuthURLDelegate RequestStoreAuthURLDelegatePointer;
#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();
}
@ -332,11 +332,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsPhoneVerifiedDelegate( IntPtr self );
private delegate bool BIsPhoneVerifiedDelegate( IntPtr self );
private BIsPhoneVerifiedDelegate BIsPhoneVerifiedDelegatePointer;
#endregion
public bool BIsPhoneVerified()
internal bool BIsPhoneVerified()
{
return BIsPhoneVerifiedDelegatePointer( Self );
}
@ -344,11 +344,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsTwoFactorEnabledDelegate( IntPtr self );
private delegate bool BIsTwoFactorEnabledDelegate( IntPtr self );
private BIsTwoFactorEnabledDelegate BIsTwoFactorEnabledDelegatePointer;
#endregion
public bool BIsTwoFactorEnabled()
internal bool BIsTwoFactorEnabled()
{
return BIsTwoFactorEnabledDelegatePointer( Self );
}
@ -356,11 +356,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsPhoneIdentifyingDelegate( IntPtr self );
private delegate bool BIsPhoneIdentifyingDelegate( IntPtr self );
private BIsPhoneIdentifyingDelegate BIsPhoneIdentifyingDelegatePointer;
#endregion
public bool BIsPhoneIdentifying()
internal bool BIsPhoneIdentifying()
{
return BIsPhoneIdentifyingDelegatePointer( Self );
}
@ -368,22 +368,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BIsPhoneRequiringVerificationDelegate( IntPtr self );
private delegate bool BIsPhoneRequiringVerificationDelegate( IntPtr self );
private BIsPhoneRequiringVerificationDelegate BIsPhoneRequiringVerificationDelegatePointer;
#endregion
public bool BIsPhoneRequiringVerification()
internal bool BIsPhoneRequiringVerification()
{
return BIsPhoneRequiringVerificationDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t GetMarketEligibilityDelegate( IntPtr self );
private delegate SteamAPICall_t GetMarketEligibilityDelegate( IntPtr self );
private GetMarketEligibilityDelegate GetMarketEligibilityDelegatePointer;
#endregion
public async Task<MarketEligibilityResponse_t?> GetMarketEligibility()
internal async Task<MarketEligibilityResponse_t?> GetMarketEligibility()
{
return await (new Result<MarketEligibilityResponse_t>( GetMarketEligibilityDelegatePointer( Self ) )).GetResult();
}

View File

@ -50,55 +50,55 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetSecondsSinceAppActiveDelegate( IntPtr self );
private delegate uint GetSecondsSinceAppActiveDelegate( IntPtr self );
private GetSecondsSinceAppActiveDelegate GetSecondsSinceAppActiveDelegatePointer;
#endregion
public uint GetSecondsSinceAppActive()
internal uint GetSecondsSinceAppActive()
{
return GetSecondsSinceAppActiveDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetSecondsSinceComputerActiveDelegate( IntPtr self );
private delegate uint GetSecondsSinceComputerActiveDelegate( IntPtr self );
private GetSecondsSinceComputerActiveDelegate GetSecondsSinceComputerActiveDelegatePointer;
#endregion
public uint GetSecondsSinceComputerActive()
internal uint GetSecondsSinceComputerActive()
{
return GetSecondsSinceComputerActiveDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate Universe GetConnectedUniverseDelegate( IntPtr self );
private delegate Universe GetConnectedUniverseDelegate( IntPtr self );
private GetConnectedUniverseDelegate GetConnectedUniverseDelegatePointer;
#endregion
public Universe GetConnectedUniverse()
internal Universe GetConnectedUniverse()
{
return GetConnectedUniverseDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetServerRealTimeDelegate( IntPtr self );
private delegate uint GetServerRealTimeDelegate( IntPtr self );
private GetServerRealTimeDelegate GetServerRealTimeDelegatePointer;
#endregion
public uint GetServerRealTime()
internal uint GetServerRealTime()
{
return GetServerRealTimeDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetIPCountryDelegate( IntPtr self );
private delegate IntPtr GetIPCountryDelegate( IntPtr self );
private GetIPCountryDelegate GetIPCountryDelegatePointer;
#endregion
public string GetIPCountry()
internal string GetIPCountry()
{
return GetString( GetIPCountryDelegatePointer( Self ) );
}
@ -106,11 +106,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
@ -118,11 +118,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
@ -130,44 +130,44 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate byte GetCurrentBatteryPowerDelegate( IntPtr self );
private delegate byte GetCurrentBatteryPowerDelegate( IntPtr self );
private GetCurrentBatteryPowerDelegate GetCurrentBatteryPowerDelegatePointer;
#endregion
public byte GetCurrentBatteryPower()
internal byte GetCurrentBatteryPower()
{
return GetCurrentBatteryPowerDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetAppIDDelegate( IntPtr self );
private delegate uint GetAppIDDelegate( IntPtr self );
private GetAppIDDelegate GetAppIDDelegatePointer;
#endregion
public uint GetAppID()
internal uint GetAppID()
{
return GetAppIDDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetOverlayNotificationPositionDelegate( IntPtr self, NotificationPosition eNotificationPosition );
private delegate void SetOverlayNotificationPositionDelegate( IntPtr self, NotificationPosition eNotificationPosition );
private SetOverlayNotificationPositionDelegate SetOverlayNotificationPositionDelegatePointer;
#endregion
public void SetOverlayNotificationPosition( NotificationPosition eNotificationPosition )
internal void SetOverlayNotificationPosition( NotificationPosition eNotificationPosition )
{
SetOverlayNotificationPositionDelegatePointer( Self, eNotificationPosition );
}
@ -175,22 +175,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICallFailure GetAPICallFailureReasonDelegate( IntPtr self, SteamAPICall_t hSteamAPICall );
private delegate SteamAPICallFailure GetAPICallFailureReasonDelegate( IntPtr self, SteamAPICall_t hSteamAPICall );
private GetAPICallFailureReasonDelegate GetAPICallFailureReasonDelegatePointer;
#endregion
public SteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall )
internal SteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall )
{
return GetAPICallFailureReasonDelegatePointer( Self, hSteamAPICall );
}
@ -198,44 +198,44 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void RunFrameDelegate( IntPtr self );
private delegate void RunFrameDelegate( IntPtr self );
private RunFrameDelegate RunFrameDelegatePointer;
#endregion
public void RunFrame()
internal void RunFrame()
{
RunFrameDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetIPCCallCountDelegate( IntPtr self );
private delegate uint GetIPCCallCountDelegate( IntPtr self );
private GetIPCCallCountDelegate GetIPCCallCountDelegatePointer;
#endregion
public uint GetIPCCallCount()
internal uint GetIPCCallCount()
{
return GetIPCCallCountDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void SetWarningMessageHookDelegate( IntPtr self, IntPtr pFunction );
private delegate void SetWarningMessageHookDelegate( IntPtr self, IntPtr pFunction );
private SetWarningMessageHookDelegate SetWarningMessageHookDelegatePointer;
#endregion
public void SetWarningMessageHook( IntPtr pFunction )
internal void SetWarningMessageHook( IntPtr pFunction )
{
SetWarningMessageHookDelegatePointer( Self, pFunction );
}
@ -243,11 +243,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsOverlayEnabledDelegate( IntPtr self );
private delegate bool IsOverlayEnabledDelegate( IntPtr self );
private IsOverlayEnabledDelegate IsOverlayEnabledDelegatePointer;
#endregion
public bool IsOverlayEnabled()
internal bool IsOverlayEnabled()
{
return IsOverlayEnabledDelegatePointer( Self );
}
@ -255,22 +255,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool BOverlayNeedsPresentDelegate( IntPtr self );
private delegate bool BOverlayNeedsPresentDelegate( IntPtr self );
private BOverlayNeedsPresentDelegate BOverlayNeedsPresentDelegatePointer;
#endregion
public bool BOverlayNeedsPresent()
internal bool BOverlayNeedsPresent()
{
return BOverlayNeedsPresentDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate SteamAPICall_t CheckFileSignatureDelegate( IntPtr self, string szFileName );
private delegate SteamAPICall_t CheckFileSignatureDelegate( IntPtr self, string szFileName );
private CheckFileSignatureDelegate CheckFileSignatureDelegatePointer;
#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();
}
@ -278,22 +278,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate uint GetEnteredGamepadTextLengthDelegate( IntPtr self );
private delegate uint GetEnteredGamepadTextLengthDelegate( IntPtr self );
private GetEnteredGamepadTextLengthDelegate GetEnteredGamepadTextLengthDelegatePointer;
#endregion
public uint GetEnteredGamepadTextLength()
internal uint GetEnteredGamepadTextLength()
{
return GetEnteredGamepadTextLengthDelegatePointer( Self );
}
@ -301,22 +301,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool GetEnteredGamepadTextInput( StringBuilder pchText, uint cchText )
internal bool GetEnteredGamepadTextInput( StringBuilder pchText, uint cchText )
{
return GetEnteredGamepadTextInputDelegatePointer( Self, pchText, cchText );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate IntPtr GetSteamUILanguageDelegate( IntPtr self );
private delegate IntPtr GetSteamUILanguageDelegate( IntPtr self );
private GetSteamUILanguageDelegate GetSteamUILanguageDelegatePointer;
#endregion
public string GetSteamUILanguage()
internal string GetSteamUILanguage()
{
return GetString( GetSteamUILanguageDelegatePointer( Self ) );
}
@ -324,22 +324,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsSteamRunningInVRDelegate( IntPtr self );
private delegate bool IsSteamRunningInVRDelegate( IntPtr self );
private IsSteamRunningInVRDelegate IsSteamRunningInVRDelegatePointer;
#endregion
public bool IsSteamRunningInVR()
internal bool IsSteamRunningInVR()
{
return IsSteamRunningInVRDelegatePointer( Self );
}
#region FunctionMeta
[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;
#endregion
public void SetOverlayNotificationInset( int nHorizontalInset, int nVerticalInset )
internal void SetOverlayNotificationInset( int nHorizontalInset, int nVerticalInset )
{
SetOverlayNotificationInsetDelegatePointer( Self, nHorizontalInset, nVerticalInset );
}
@ -347,22 +347,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsSteamInBigPictureModeDelegate( IntPtr self );
private delegate bool IsSteamInBigPictureModeDelegate( IntPtr self );
private IsSteamInBigPictureModeDelegate IsSteamInBigPictureModeDelegatePointer;
#endregion
public bool IsSteamInBigPictureMode()
internal bool IsSteamInBigPictureMode()
{
return IsSteamInBigPictureModeDelegatePointer( Self );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void StartVRDashboardDelegate( IntPtr self );
private delegate void StartVRDashboardDelegate( IntPtr self );
private StartVRDashboardDelegate StartVRDashboardDelegatePointer;
#endregion
public void StartVRDashboard()
internal void StartVRDashboard()
{
StartVRDashboardDelegatePointer( Self );
}
@ -370,22 +370,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[return: MarshalAs( UnmanagedType.I1 )]
public delegate bool IsVRHeadsetStreamingEnabledDelegate( IntPtr self );
private delegate bool IsVRHeadsetStreamingEnabledDelegate( IntPtr self );
private IsVRHeadsetStreamingEnabledDelegate IsVRHeadsetStreamingEnabledDelegatePointer;
#endregion
public bool IsVRHeadsetStreamingEnabled()
internal bool IsVRHeadsetStreamingEnabled()
{
return IsVRHeadsetStreamingEnabledDelegatePointer( Self );
}
#region FunctionMeta
[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;
#endregion
public void SetVRHeadsetStreamingEnabled( [MarshalAs( UnmanagedType.U1 )] bool bEnabled )
internal void SetVRHeadsetStreamingEnabled( [MarshalAs( UnmanagedType.U1 )] bool bEnabled )
{
SetVRHeadsetStreamingEnabledDelegatePointer( Self, bEnabled );
}

View File

@ -24,11 +24,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetVideoURLDelegate( IntPtr self, AppId_t unVideoAppID );
private delegate void GetVideoURLDelegate( IntPtr self, AppId_t unVideoAppID );
private GetVideoURLDelegate GetVideoURLDelegatePointer;
#endregion
public void GetVideoURL( AppId_t unVideoAppID )
internal void GetVideoURL( AppId_t unVideoAppID )
{
GetVideoURLDelegatePointer( Self, unVideoAppID );
}
@ -36,22 +36,22 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#endregion
public bool IsBroadcasting( ref int pnNumViewers )
internal bool IsBroadcasting( ref int pnNumViewers )
{
return IsBroadcastingDelegatePointer( Self, ref pnNumViewers );
}
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
public delegate void GetOPFSettingsDelegate( IntPtr self, AppId_t unVideoAppID );
private delegate void GetOPFSettingsDelegate( IntPtr self, AppId_t unVideoAppID );
private GetOPFSettingsDelegate GetOPFSettingsDelegatePointer;
#endregion
public void GetOPFSettings( AppId_t unVideoAppID )
internal void GetOPFSettings( AppId_t unVideoAppID )
{
GetOPFSettingsDelegatePointer( Self, unVideoAppID );
}
@ -59,11 +59,11 @@ namespace Steamworks.Internal
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
[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;
#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 );
}

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

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

View File

@ -84,7 +84,7 @@ namespace Steamworks
/// 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
/// </summary>
public static event Action<SteamId, SteamId, AuthSessionResponse> OnValidateAuthTicketResponse;
public static event Action<SteamId, SteamId, AuthResponse> OnValidateAuthTicketResponse;
/// <summary>
/// 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 )
{

View File

@ -12,7 +12,14 @@ public static class Cleanup
{
type = type.Replace( "CSteamID", "SteamId" );
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;
}
@ -24,4 +31,22 @@ public static class Cleanup
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)
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();
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() ) );

View File

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

View File

@ -25,7 +25,9 @@ namespace Generator
if ( name[0] == 'E' )
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

View File

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

View File

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

View File

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