String fixes

This commit is contained in:
Garry Newman 2016-10-25 11:16:05 +01:00
parent 8801f840d4
commit fe7f5a7630
33 changed files with 1509 additions and 274 deletions

View File

@ -21,9 +21,9 @@ public void Init()
}
[TestMethod]
public void Init_50()
public void Init_10()
{
for ( int i = 0; i < 50; i++ )
for ( int i = 0; i < 10; i++ )
{
using ( var client = new Facepunch.Steamworks.Client( 252490 ) )
{
@ -39,9 +39,10 @@ public void Name()
{
using ( var client = new Facepunch.Steamworks.Client( 252490 ) )
{
Assert.IsTrue( client.IsValid );
var username = client.Username;
Console.WriteLine( username );
Assert.IsTrue( client.IsValid );
Assert.IsNotNull( username );
}
}
@ -51,9 +52,10 @@ public void SteamId()
{
using ( var client = new Facepunch.Steamworks.Client( 252490 ) )
{
Assert.IsTrue( client.IsValid );
var steamid = client.SteamId;
Console.WriteLine( steamid );
Assert.IsTrue( client.IsValid );
Assert.AreNotEqual( 0, steamid );
}
}

View File

@ -60,6 +60,8 @@ public void Query()
Console.WriteLine( "\t WebsiteViews: {0}", item.WebsiteViews );
Console.WriteLine( "\t VotesUp: {0}", item.VotesUp );
Console.WriteLine( "\t PreviewUrl: {0}", item.PreviewImageUrl );
Assert.IsTrue( item.PreviewImageUrl.Contains( "http" ) );
}
}
}

View File

@ -25,14 +25,23 @@ public virtual void Dispose()
}
Disposables.Clear();
Workshop.Dispose();
Workshop = null;
if ( Workshop != null )
{
Workshop.Dispose();
Workshop = null;
}
Inventory.Dispose();
Inventory = null;
if ( Inventory != null )
{
Inventory.Dispose();
Inventory = null;
}
Networking.Dispose();
Networking = null;
if ( Networking != null )
{
Networking.Dispose();
Networking = null;
}
if ( native != null )
{

View File

@ -114,6 +114,7 @@ unsafe void RunInternal()
void OnResult( QueryCompleted.Data data )
{
var gotFiles = 0;
for ( int i = 0; i < data.NumResultsReturned; i++ )
{
if ( _resultSkip > 0 )
@ -127,10 +128,9 @@ void OnResult( QueryCompleted.Data data )
Console.WriteLine( "{0} Adding result {1}", _resultPage, _results.Count );
}
SteamNative.SteamUGCDetails_t details;
// if ( !workshop.ugc.GetQueryUGCResult( data.Handle, (uint)i, out details ) )
// continue;
continue;
SteamNative.SteamUGCDetails_t details = new SteamNative.SteamUGCDetails_t();
if ( !workshop.ugc.GetQueryUGCResult( data.Handle, (uint)i, ref details ) )
continue;
// We already have this file, so skip it
if ( _results.Any( x => x.Id == details.m_nPublishedFileId ) )
@ -151,6 +151,7 @@ void OnResult( QueryCompleted.Data data )
_results.Add( item );
_resultsRemain--;
gotFiles++;
if ( _resultsRemain <= 0 )
break;
@ -163,7 +164,7 @@ void OnResult( QueryCompleted.Data data )
_resultPage++;
if ( _resultsRemain > 0 && data.NumResultsReturned > 0 )
if ( _resultsRemain > 0 && gotFiles > 0 )
{
RunInternal();
}

View File

@ -51,7 +51,7 @@ public static unsafe class ISteamUser
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection" )] internal static extern int /*int*/ InitiateGameConnection( IntPtr ISteamUser, IntPtr /*void **/ pAuthBlob , int /*int*/ cbMaxAuthBlob , CSteamID /*class CSteamID*/ steamIDGameServer, uint /*uint32*/ unIPServer , ushort /*uint16*/ usPortServer , bool /*bool*/ bSecure );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection" )] internal static extern void /*void*/ TerminateGameConnection( IntPtr ISteamUser, uint /*uint32*/ unIPServer , ushort /*uint16*/ usPortServer );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUser_TrackAppUsageEvent" )] internal static extern void /*void*/ TrackAppUsageEvent( IntPtr ISteamUser, CGameID /*class CGameID*/ gameID, int /*int*/ eAppUsageEvent , string /*const char **/ pchExtraInfo );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder" )] internal static extern bool /*bool*/ GetUserDataFolder( IntPtr ISteamUser, char* /*char **/ pchBuffer , int /*int*/ cubBuffer );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder" )] internal static extern bool /*bool*/ GetUserDataFolder( IntPtr ISteamUser, System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUser_StartVoiceRecording" )] internal static extern void /*void*/ StartVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUser_StopVoiceRecording" )] internal static extern void /*void*/ StopVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUser_GetAvailableVoice" )] internal static extern VoiceResult /*EVoiceResult*/ GetAvailableVoice( IntPtr ISteamUser, out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate );
@ -171,7 +171,7 @@ public static unsafe class ISteamUtils
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_CheckFileSignature" )] internal static extern ulong /*SteamAPICall_t*/ CheckFileSignature( IntPtr ISteamUtils, string /*const char **/ szFileName );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_ShowGamepadTextInput" )] internal static extern bool /*bool*/ ShowGamepadTextInput( IntPtr ISteamUtils, GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode , GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode , string /*const char **/ pchDescription , uint /*uint32*/ unCharMax , string /*const char **/ pchExistingText );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextLength" )] internal static extern uint /*uint32*/ GetEnteredGamepadTextLength( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput" )] internal static extern bool /*bool*/ GetEnteredGamepadTextInput( IntPtr ISteamUtils, char* /*char **/ pchText , uint /*uint32*/ cchText );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput" )] internal static extern bool /*bool*/ GetEnteredGamepadTextInput( IntPtr ISteamUtils, System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_GetSteamUILanguage" )] internal static extern IntPtr GetSteamUILanguage( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningInVR" )] internal static extern bool /*bool*/ IsSteamRunningInVR( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationInset" )] internal static extern void /*void*/ SetOverlayNotificationInset( IntPtr ISteamUtils, int /*int*/ nHorizontalInset , int /*int*/ nVerticalInset );
@ -203,7 +203,7 @@ public static unsafe class ISteamMatchmaking
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyData" )] internal static extern IntPtr GetLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyData" )] internal static extern bool /*bool*/ SetLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey , string /*const char **/ pchValue );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataCount" )] internal static extern int /*int*/ GetLobbyDataCount( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex" )] internal static extern bool /*bool*/ GetLobbyDataByIndex( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, int /*int*/ iLobbyData , char* /*char **/ pchKey , int /*int*/ cchKeyBufferSize , char* /*char **/ pchValue , int /*int*/ cchValueBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex" )] internal static extern bool /*bool*/ GetLobbyDataByIndex( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, int /*int*/ iLobbyData , System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize , System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamMatchmaking_DeleteLobbyData" )] internal static extern bool /*bool*/ DeleteLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberData" )] internal static extern IntPtr GetLobbyMemberData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberData" )] internal static extern void /*void*/ SetLobbyMemberData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey , string /*const char **/ pchValue );
@ -270,7 +270,7 @@ public static unsafe class ISteamRemoteStorage
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp" )] internal static extern void /*void*/ SetCloudEnabledForApp( IntPtr ISteamRemoteStorage, bool /*bool*/ bEnabled );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownload" )] internal static extern ulong /*SteamAPICall_t*/ UGCDownload( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, uint /*uint32*/ unPriority );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress" )] internal static extern bool /*bool*/ GetUGCDownloadProgress( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails" )] internal static extern bool /*bool*/ GetUGCDetails( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, ref AppId_t /*AppId_t **/ pnAppID, char* /*char ***/ ppchName , IntPtr /*int32 **/ pnFileSizeInBytes, out CSteamID /*class CSteamID **/ pSteamIDOwner );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails" )] internal static extern bool /*bool*/ GetUGCDetails( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, ref AppId_t /*AppId_t **/ pnAppID, System.Text.StringBuilder /*char ***/ ppchName, IntPtr /*int32 **/ pnFileSizeInBytes, out CSteamID /*class CSteamID **/ pSteamIDOwner );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCRead" )] internal static extern int /*int32*/ UGCRead( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, IntPtr /*void **/ pvData , int /*int32*/ cubDataToRead , uint /*uint32*/ cOffset , UGCReadAction /*EUGCReadAction*/ eAction );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCCount" )] internal static extern int /*int32*/ GetCachedUGCCount( IntPtr ISteamRemoteStorage );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle" )] internal static extern ulong /*UGCHandle_t*/ GetCachedUGCHandle( IntPtr ISteamRemoteStorage, int /*int32*/ iCachedContent );
@ -338,8 +338,8 @@ public static unsafe class ISteamUserStats
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern ulong /*SteamAPICall_t*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern ulong /*SteamAPICall_t*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern ulong /*SteamAPICall_t*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, char* /*char **/ pchName , uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , char* /*char **/ pchName , uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern ulong /*SteamAPICall_t*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData );
@ -361,14 +361,14 @@ public static unsafe class ISteamApps
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, char* /*char **/ pchName , int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName" )] internal static extern bool /*bool*/ GetCurrentBetaName( IntPtr ISteamApps, char* /*char **/ pchName , int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName" )] internal static extern bool /*bool*/ GetCurrentBetaName( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_MarkContentCorrupt" )] internal static extern bool /*bool*/ MarkContentCorrupt( IntPtr ISteamApps, bool /*bool*/ bMissingFilesOnly );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetInstalledDepots" )] internal static extern uint /*uint32*/ GetInstalledDepots( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir" )] internal static extern uint /*uint32*/ GetAppInstallDir( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, char* /*char **/ pchFolder , uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir" )] internal static extern uint /*uint32*/ GetAppInstallDir( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_BIsAppInstalled" )] internal static extern bool /*bool*/ BIsAppInstalled( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetAppOwner" )] internal static extern ulong /*class CSteamID*/ GetAppOwner( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam" )] internal static extern IntPtr GetLaunchQueryParam( IntPtr ISteamApps, string /*const char **/ pchKey );
@ -528,15 +528,15 @@ public static unsafe class ISteamUGC
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequest" )] internal static extern ulong /*UGCQueryHandle_t*/ CreateQueryAllUGCRequest( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType , UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType , AppId_t /*AppId_t*/ nCreatorAppID, AppId_t /*AppId_t*/ nConsumerAppID, uint /*uint32*/ unPage );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest" )] internal static extern ulong /*UGCQueryHandle_t*/ CreateQueryUGCDetailsRequest( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_SendQueryUGCRequest" )] internal static extern ulong /*SteamAPICall_t*/ SendQueryUGCRequest( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult" )] internal static extern bool /*bool*/ GetQueryUGCResult( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , IntPtr /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL" )] internal static extern bool /*bool*/ GetQueryUGCPreviewURL( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , char* /*char **/ pchURL , uint /*uint32*/ cchURLSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata" )] internal static extern bool /*bool*/ GetQueryUGCMetadata( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , char* /*char **/ pchMetadata , uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult" )] internal static extern bool /*bool*/ GetQueryUGCResult( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL" )] internal static extern bool /*bool*/ GetQueryUGCPreviewURL( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata" )] internal static extern bool /*bool*/ GetQueryUGCMetadata( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCChildren" )] internal static extern bool /*bool*/ GetQueryUGCChildren( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCStatistic" )] internal static extern bool /*bool*/ GetQueryUGCStatistic( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , ItemStatistic /*EItemStatistic*/ eStatType , out uint /*uint32 **/ pStatValue );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews" )] internal static extern uint /*uint32*/ GetQueryUGCNumAdditionalPreviews( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview" )] internal static extern bool /*bool*/ GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ previewIndex , char* /*char **/ pchURLOrVideoID , uint /*uint32*/ cchURLSize , char* /*char **/ pchOriginalFileName , uint /*uint32*/ cchOriginalFileNameSize , out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview" )] internal static extern bool /*bool*/ GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ previewIndex , System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize , System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize , out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags" )] internal static extern uint /*uint32*/ GetQueryUGCNumKeyValueTags( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag" )] internal static extern bool /*bool*/ GetQueryUGCKeyValueTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ keyValueTagIndex , char* /*char **/ pchKey , uint /*uint32*/ cchKeySize , char* /*char **/ pchValue , uint /*uint32*/ cchValueSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag" )] internal static extern bool /*bool*/ GetQueryUGCKeyValueTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ keyValueTagIndex , System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize , System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest" )] internal static extern bool /*bool*/ ReleaseQueryUGCRequest( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTag" )] internal static extern bool /*bool*/ AddRequiredTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, string /*const char **/ pTagName );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_AddExcludedTag" )] internal static extern bool /*bool*/ AddExcludedTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, string /*const char **/ pTagName );
@ -582,7 +582,7 @@ public static unsafe class ISteamUGC
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetNumSubscribedItems" )] internal static extern uint /*uint32*/ GetNumSubscribedItems( IntPtr ISteamUGC );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetSubscribedItems" )] internal static extern uint /*uint32*/ GetSubscribedItems( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetItemState" )] internal static extern uint /*uint32*/ GetItemState( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo" )] internal static extern bool /*bool*/ GetItemInstallInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, char* /*char **/ pchFolder , uint /*uint32*/ cchFolderSize , out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo" )] internal static extern bool /*bool*/ GetItemInstallInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize , out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_GetItemDownloadInfo" )] internal static extern bool /*bool*/ GetItemDownloadInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_DownloadItem" )] internal static extern bool /*bool*/ DownloadItem( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, bool /*bool*/ bHighPriority );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamUGC_BInitWorkshopForGameServer" )] internal static extern bool /*bool*/ BInitWorkshopForGameServer( IntPtr ISteamUGC, DepotId_t /*DepotId_t*/ unWorkshopDepotID, string /*const char **/ pszFolder );
@ -593,8 +593,8 @@ public static unsafe class ISteamAppList
{
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamAppList_GetNumInstalledApps" )] internal static extern uint /*uint32*/ GetNumInstalledApps( IntPtr ISteamAppList );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamAppList_GetInstalledApps" )] internal static extern uint /*uint32*/ GetInstalledApps( IntPtr ISteamAppList, IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppName" )] internal static extern int /*int*/ GetAppName( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, char* /*char **/ pchName , int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir" )] internal static extern int /*int*/ GetAppInstallDir( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, char* /*char **/ pchDirectory , int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppName" )] internal static extern int /*int*/ GetAppName( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir" )] internal static extern int /*int*/ GetAppInstallDir( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppBuildId" )] internal static extern int /*int*/ GetAppBuildId( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID );
}
@ -660,7 +660,7 @@ public static unsafe class ISteamInventory
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamInventory_TradeItems" )] internal static extern bool /*bool*/ TradeItems( IntPtr ISteamInventory, ref SteamInventoryResult_t /*SteamInventoryResult_t **/ pResultHandle, CSteamID /*class CSteamID*/ steamIDTradePartner, ref SteamItemInstanceID_t /*const SteamItemInstanceID_t **/ pArrayGive, out uint /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength , ref SteamItemInstanceID_t /*const SteamItemInstanceID_t **/ pArrayGet, out uint /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamInventory_LoadItemDefinitions" )] internal static extern bool /*bool*/ LoadItemDefinitions( IntPtr ISteamInventory );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionIDs" )] internal static extern bool /*bool*/ GetItemDefinitionIDs( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty" )] internal static extern bool /*bool*/ GetItemDefinitionProperty( IntPtr ISteamInventory, SteamItemDef_t /*SteamItemDef_t*/ iDefinition, string /*const char **/ pchPropertyName , char* /*char **/ pchValueBuffer , out uint /*uint32 **/ punValueBufferSize );
[DllImportAttribute( "libsteam_api.so", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty" )] internal static extern bool /*bool*/ GetItemDefinitionProperty( IntPtr ISteamInventory, SteamItemDef_t /*SteamItemDef_t*/ iDefinition, string /*const char **/ pchPropertyName , System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSize );
}
public static unsafe class ISteamVideo

View File

@ -51,7 +51,7 @@ public static unsafe class ISteamUser
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection" )] internal static extern int /*int*/ InitiateGameConnection( IntPtr ISteamUser, IntPtr /*void **/ pAuthBlob , int /*int*/ cbMaxAuthBlob , CSteamID /*class CSteamID*/ steamIDGameServer, uint /*uint32*/ unIPServer , ushort /*uint16*/ usPortServer , bool /*bool*/ bSecure );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection" )] internal static extern void /*void*/ TerminateGameConnection( IntPtr ISteamUser, uint /*uint32*/ unIPServer , ushort /*uint16*/ usPortServer );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUser_TrackAppUsageEvent" )] internal static extern void /*void*/ TrackAppUsageEvent( IntPtr ISteamUser, CGameID /*class CGameID*/ gameID, int /*int*/ eAppUsageEvent , string /*const char **/ pchExtraInfo );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder" )] internal static extern bool /*bool*/ GetUserDataFolder( IntPtr ISteamUser, char* /*char **/ pchBuffer , int /*int*/ cubBuffer );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder" )] internal static extern bool /*bool*/ GetUserDataFolder( IntPtr ISteamUser, System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUser_StartVoiceRecording" )] internal static extern void /*void*/ StartVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUser_StopVoiceRecording" )] internal static extern void /*void*/ StopVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUser_GetAvailableVoice" )] internal static extern VoiceResult /*EVoiceResult*/ GetAvailableVoice( IntPtr ISteamUser, out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate );
@ -171,7 +171,7 @@ public static unsafe class ISteamUtils
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUtils_CheckFileSignature" )] internal static extern ulong /*SteamAPICall_t*/ CheckFileSignature( IntPtr ISteamUtils, string /*const char **/ szFileName );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUtils_ShowGamepadTextInput" )] internal static extern bool /*bool*/ ShowGamepadTextInput( IntPtr ISteamUtils, GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode , GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode , string /*const char **/ pchDescription , uint /*uint32*/ unCharMax , string /*const char **/ pchExistingText );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextLength" )] internal static extern uint /*uint32*/ GetEnteredGamepadTextLength( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput" )] internal static extern bool /*bool*/ GetEnteredGamepadTextInput( IntPtr ISteamUtils, char* /*char **/ pchText , uint /*uint32*/ cchText );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput" )] internal static extern bool /*bool*/ GetEnteredGamepadTextInput( IntPtr ISteamUtils, System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUtils_GetSteamUILanguage" )] internal static extern IntPtr GetSteamUILanguage( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningInVR" )] internal static extern bool /*bool*/ IsSteamRunningInVR( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationInset" )] internal static extern void /*void*/ SetOverlayNotificationInset( IntPtr ISteamUtils, int /*int*/ nHorizontalInset , int /*int*/ nVerticalInset );
@ -203,7 +203,7 @@ public static unsafe class ISteamMatchmaking
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyData" )] internal static extern IntPtr GetLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyData" )] internal static extern bool /*bool*/ SetLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey , string /*const char **/ pchValue );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataCount" )] internal static extern int /*int*/ GetLobbyDataCount( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex" )] internal static extern bool /*bool*/ GetLobbyDataByIndex( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, int /*int*/ iLobbyData , char* /*char **/ pchKey , int /*int*/ cchKeyBufferSize , char* /*char **/ pchValue , int /*int*/ cchValueBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex" )] internal static extern bool /*bool*/ GetLobbyDataByIndex( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, int /*int*/ iLobbyData , System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize , System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamMatchmaking_DeleteLobbyData" )] internal static extern bool /*bool*/ DeleteLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberData" )] internal static extern IntPtr GetLobbyMemberData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberData" )] internal static extern void /*void*/ SetLobbyMemberData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey , string /*const char **/ pchValue );
@ -270,7 +270,7 @@ public static unsafe class ISteamRemoteStorage
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp" )] internal static extern void /*void*/ SetCloudEnabledForApp( IntPtr ISteamRemoteStorage, bool /*bool*/ bEnabled );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownload" )] internal static extern ulong /*SteamAPICall_t*/ UGCDownload( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, uint /*uint32*/ unPriority );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress" )] internal static extern bool /*bool*/ GetUGCDownloadProgress( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails" )] internal static extern bool /*bool*/ GetUGCDetails( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, ref AppId_t /*AppId_t **/ pnAppID, char* /*char ***/ ppchName , IntPtr /*int32 **/ pnFileSizeInBytes, out CSteamID /*class CSteamID **/ pSteamIDOwner );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails" )] internal static extern bool /*bool*/ GetUGCDetails( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, ref AppId_t /*AppId_t **/ pnAppID, System.Text.StringBuilder /*char ***/ ppchName, IntPtr /*int32 **/ pnFileSizeInBytes, out CSteamID /*class CSteamID **/ pSteamIDOwner );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCRead" )] internal static extern int /*int32*/ UGCRead( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, IntPtr /*void **/ pvData , int /*int32*/ cubDataToRead , uint /*uint32*/ cOffset , UGCReadAction /*EUGCReadAction*/ eAction );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCCount" )] internal static extern int /*int32*/ GetCachedUGCCount( IntPtr ISteamRemoteStorage );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle" )] internal static extern ulong /*UGCHandle_t*/ GetCachedUGCHandle( IntPtr ISteamRemoteStorage, int /*int32*/ iCachedContent );
@ -338,8 +338,8 @@ public static unsafe class ISteamUserStats
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern ulong /*SteamAPICall_t*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern ulong /*SteamAPICall_t*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern ulong /*SteamAPICall_t*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, char* /*char **/ pchName , uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , char* /*char **/ pchName , uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern ulong /*SteamAPICall_t*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData );
@ -361,14 +361,14 @@ public static unsafe class ISteamApps
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, char* /*char **/ pchName , int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName" )] internal static extern bool /*bool*/ GetCurrentBetaName( IntPtr ISteamApps, char* /*char **/ pchName , int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName" )] internal static extern bool /*bool*/ GetCurrentBetaName( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_MarkContentCorrupt" )] internal static extern bool /*bool*/ MarkContentCorrupt( IntPtr ISteamApps, bool /*bool*/ bMissingFilesOnly );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetInstalledDepots" )] internal static extern uint /*uint32*/ GetInstalledDepots( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir" )] internal static extern uint /*uint32*/ GetAppInstallDir( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, char* /*char **/ pchFolder , uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir" )] internal static extern uint /*uint32*/ GetAppInstallDir( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_BIsAppInstalled" )] internal static extern bool /*bool*/ BIsAppInstalled( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetAppOwner" )] internal static extern ulong /*class CSteamID*/ GetAppOwner( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam" )] internal static extern IntPtr GetLaunchQueryParam( IntPtr ISteamApps, string /*const char **/ pchKey );
@ -528,15 +528,15 @@ public static unsafe class ISteamUGC
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequest" )] internal static extern ulong /*UGCQueryHandle_t*/ CreateQueryAllUGCRequest( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType , UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType , AppId_t /*AppId_t*/ nCreatorAppID, AppId_t /*AppId_t*/ nConsumerAppID, uint /*uint32*/ unPage );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest" )] internal static extern ulong /*UGCQueryHandle_t*/ CreateQueryUGCDetailsRequest( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_SendQueryUGCRequest" )] internal static extern ulong /*SteamAPICall_t*/ SendQueryUGCRequest( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult" )] internal static extern bool /*bool*/ GetQueryUGCResult( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , IntPtr /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL" )] internal static extern bool /*bool*/ GetQueryUGCPreviewURL( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , char* /*char **/ pchURL , uint /*uint32*/ cchURLSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata" )] internal static extern bool /*bool*/ GetQueryUGCMetadata( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , char* /*char **/ pchMetadata , uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult" )] internal static extern bool /*bool*/ GetQueryUGCResult( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL" )] internal static extern bool /*bool*/ GetQueryUGCPreviewURL( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata" )] internal static extern bool /*bool*/ GetQueryUGCMetadata( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCChildren" )] internal static extern bool /*bool*/ GetQueryUGCChildren( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCStatistic" )] internal static extern bool /*bool*/ GetQueryUGCStatistic( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , ItemStatistic /*EItemStatistic*/ eStatType , out uint /*uint32 **/ pStatValue );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews" )] internal static extern uint /*uint32*/ GetQueryUGCNumAdditionalPreviews( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview" )] internal static extern bool /*bool*/ GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ previewIndex , char* /*char **/ pchURLOrVideoID , uint /*uint32*/ cchURLSize , char* /*char **/ pchOriginalFileName , uint /*uint32*/ cchOriginalFileNameSize , out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview" )] internal static extern bool /*bool*/ GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ previewIndex , System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize , System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize , out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags" )] internal static extern uint /*uint32*/ GetQueryUGCNumKeyValueTags( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag" )] internal static extern bool /*bool*/ GetQueryUGCKeyValueTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ keyValueTagIndex , char* /*char **/ pchKey , uint /*uint32*/ cchKeySize , char* /*char **/ pchValue , uint /*uint32*/ cchValueSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag" )] internal static extern bool /*bool*/ GetQueryUGCKeyValueTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ keyValueTagIndex , System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize , System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest" )] internal static extern bool /*bool*/ ReleaseQueryUGCRequest( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTag" )] internal static extern bool /*bool*/ AddRequiredTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, string /*const char **/ pTagName );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_AddExcludedTag" )] internal static extern bool /*bool*/ AddExcludedTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, string /*const char **/ pTagName );
@ -582,7 +582,7 @@ public static unsafe class ISteamUGC
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetNumSubscribedItems" )] internal static extern uint /*uint32*/ GetNumSubscribedItems( IntPtr ISteamUGC );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetSubscribedItems" )] internal static extern uint /*uint32*/ GetSubscribedItems( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetItemState" )] internal static extern uint /*uint32*/ GetItemState( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo" )] internal static extern bool /*bool*/ GetItemInstallInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, char* /*char **/ pchFolder , uint /*uint32*/ cchFolderSize , out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo" )] internal static extern bool /*bool*/ GetItemInstallInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize , out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_GetItemDownloadInfo" )] internal static extern bool /*bool*/ GetItemDownloadInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_DownloadItem" )] internal static extern bool /*bool*/ DownloadItem( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, bool /*bool*/ bHighPriority );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamUGC_BInitWorkshopForGameServer" )] internal static extern bool /*bool*/ BInitWorkshopForGameServer( IntPtr ISteamUGC, DepotId_t /*DepotId_t*/ unWorkshopDepotID, string /*const char **/ pszFolder );
@ -593,8 +593,8 @@ public static unsafe class ISteamAppList
{
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamAppList_GetNumInstalledApps" )] internal static extern uint /*uint32*/ GetNumInstalledApps( IntPtr ISteamAppList );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamAppList_GetInstalledApps" )] internal static extern uint /*uint32*/ GetInstalledApps( IntPtr ISteamAppList, IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppName" )] internal static extern int /*int*/ GetAppName( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, char* /*char **/ pchName , int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir" )] internal static extern int /*int*/ GetAppInstallDir( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, char* /*char **/ pchDirectory , int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppName" )] internal static extern int /*int*/ GetAppName( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir" )] internal static extern int /*int*/ GetAppInstallDir( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamAppList_GetAppBuildId" )] internal static extern int /*int*/ GetAppBuildId( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID );
}
@ -660,7 +660,7 @@ public static unsafe class ISteamInventory
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamInventory_TradeItems" )] internal static extern bool /*bool*/ TradeItems( IntPtr ISteamInventory, ref SteamInventoryResult_t /*SteamInventoryResult_t **/ pResultHandle, CSteamID /*class CSteamID*/ steamIDTradePartner, ref SteamItemInstanceID_t /*const SteamItemInstanceID_t **/ pArrayGive, out uint /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength , ref SteamItemInstanceID_t /*const SteamItemInstanceID_t **/ pArrayGet, out uint /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamInventory_LoadItemDefinitions" )] internal static extern bool /*bool*/ LoadItemDefinitions( IntPtr ISteamInventory );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionIDs" )] internal static extern bool /*bool*/ GetItemDefinitionIDs( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty" )] internal static extern bool /*bool*/ GetItemDefinitionProperty( IntPtr ISteamInventory, SteamItemDef_t /*SteamItemDef_t*/ iDefinition, string /*const char **/ pchPropertyName , char* /*char **/ pchValueBuffer , out uint /*uint32 **/ punValueBufferSize );
[DllImportAttribute( "libsteam_api.dylib.so", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty" )] internal static extern bool /*bool*/ GetItemDefinitionProperty( IntPtr ISteamInventory, SteamItemDef_t /*SteamItemDef_t*/ iDefinition, string /*const char **/ pchPropertyName , System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSize );
}
public static unsafe class ISteamVideo

View File

@ -51,7 +51,7 @@ public static unsafe class ISteamUser
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection" )] internal static extern int /*int*/ InitiateGameConnection( IntPtr ISteamUser, IntPtr /*void **/ pAuthBlob , int /*int*/ cbMaxAuthBlob , CSteamID /*class CSteamID*/ steamIDGameServer, uint /*uint32*/ unIPServer , ushort /*uint16*/ usPortServer , bool /*bool*/ bSecure );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection" )] internal static extern void /*void*/ TerminateGameConnection( IntPtr ISteamUser, uint /*uint32*/ unIPServer , ushort /*uint16*/ usPortServer );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUser_TrackAppUsageEvent" )] internal static extern void /*void*/ TrackAppUsageEvent( IntPtr ISteamUser, CGameID /*class CGameID*/ gameID, int /*int*/ eAppUsageEvent , string /*const char **/ pchExtraInfo );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder" )] internal static extern bool /*bool*/ GetUserDataFolder( IntPtr ISteamUser, char* /*char **/ pchBuffer , int /*int*/ cubBuffer );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder" )] internal static extern bool /*bool*/ GetUserDataFolder( IntPtr ISteamUser, System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUser_StartVoiceRecording" )] internal static extern void /*void*/ StartVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUser_StopVoiceRecording" )] internal static extern void /*void*/ StopVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUser_GetAvailableVoice" )] internal static extern VoiceResult /*EVoiceResult*/ GetAvailableVoice( IntPtr ISteamUser, out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate );
@ -171,7 +171,7 @@ public static unsafe class ISteamUtils
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_CheckFileSignature" )] internal static extern ulong /*SteamAPICall_t*/ CheckFileSignature( IntPtr ISteamUtils, string /*const char **/ szFileName );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_ShowGamepadTextInput" )] internal static extern bool /*bool*/ ShowGamepadTextInput( IntPtr ISteamUtils, GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode , GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode , string /*const char **/ pchDescription , uint /*uint32*/ unCharMax , string /*const char **/ pchExistingText );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextLength" )] internal static extern uint /*uint32*/ GetEnteredGamepadTextLength( IntPtr ISteamUtils );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput" )] internal static extern bool /*bool*/ GetEnteredGamepadTextInput( IntPtr ISteamUtils, char* /*char **/ pchText , uint /*uint32*/ cchText );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput" )] internal static extern bool /*bool*/ GetEnteredGamepadTextInput( IntPtr ISteamUtils, System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_GetSteamUILanguage" )] internal static extern IntPtr GetSteamUILanguage( IntPtr ISteamUtils );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningInVR" )] internal static extern bool /*bool*/ IsSteamRunningInVR( IntPtr ISteamUtils );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationInset" )] internal static extern void /*void*/ SetOverlayNotificationInset( IntPtr ISteamUtils, int /*int*/ nHorizontalInset , int /*int*/ nVerticalInset );
@ -203,7 +203,7 @@ public static unsafe class ISteamMatchmaking
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyData" )] internal static extern IntPtr GetLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyData" )] internal static extern bool /*bool*/ SetLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey , string /*const char **/ pchValue );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataCount" )] internal static extern int /*int*/ GetLobbyDataCount( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex" )] internal static extern bool /*bool*/ GetLobbyDataByIndex( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, int /*int*/ iLobbyData , char* /*char **/ pchKey , int /*int*/ cchKeyBufferSize , char* /*char **/ pchValue , int /*int*/ cchValueBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex" )] internal static extern bool /*bool*/ GetLobbyDataByIndex( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, int /*int*/ iLobbyData , System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize , System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_DeleteLobbyData" )] internal static extern bool /*bool*/ DeleteLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberData" )] internal static extern IntPtr GetLobbyMemberData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchKey );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberData" )] internal static extern void /*void*/ SetLobbyMemberData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey , string /*const char **/ pchValue );
@ -270,7 +270,7 @@ public static unsafe class ISteamRemoteStorage
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp" )] internal static extern void /*void*/ SetCloudEnabledForApp( IntPtr ISteamRemoteStorage, bool /*bool*/ bEnabled );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownload" )] internal static extern ulong /*SteamAPICall_t*/ UGCDownload( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, uint /*uint32*/ unPriority );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress" )] internal static extern bool /*bool*/ GetUGCDownloadProgress( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails" )] internal static extern bool /*bool*/ GetUGCDetails( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, ref AppId_t /*AppId_t **/ pnAppID, char* /*char ***/ ppchName , IntPtr /*int32 **/ pnFileSizeInBytes, out CSteamID /*class CSteamID **/ pSteamIDOwner );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails" )] internal static extern bool /*bool*/ GetUGCDetails( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, ref AppId_t /*AppId_t **/ pnAppID, System.Text.StringBuilder /*char ***/ ppchName, IntPtr /*int32 **/ pnFileSizeInBytes, out CSteamID /*class CSteamID **/ pSteamIDOwner );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCRead" )] internal static extern int /*int32*/ UGCRead( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, IntPtr /*void **/ pvData , int /*int32*/ cubDataToRead , uint /*uint32*/ cOffset , UGCReadAction /*EUGCReadAction*/ eAction );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCCount" )] internal static extern int /*int32*/ GetCachedUGCCount( IntPtr ISteamRemoteStorage );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle" )] internal static extern ulong /*UGCHandle_t*/ GetCachedUGCHandle( IntPtr ISteamRemoteStorage, int /*int32*/ iCachedContent );
@ -338,8 +338,8 @@ public static unsafe class ISteamUserStats
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern ulong /*SteamAPICall_t*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern ulong /*SteamAPICall_t*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern ulong /*SteamAPICall_t*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, char* /*char **/ pchName , uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , char* /*char **/ pchName , uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern ulong /*SteamAPICall_t*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData );
@ -361,14 +361,14 @@ public static unsafe class ISteamApps
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, char* /*char **/ pchName , int /*int*/ cchNameBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName" )] internal static extern bool /*bool*/ GetCurrentBetaName( IntPtr ISteamApps, char* /*char **/ pchName , int /*int*/ cchNameBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName" )] internal static extern bool /*bool*/ GetCurrentBetaName( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_MarkContentCorrupt" )] internal static extern bool /*bool*/ MarkContentCorrupt( IntPtr ISteamApps, bool /*bool*/ bMissingFilesOnly );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetInstalledDepots" )] internal static extern uint /*uint32*/ GetInstalledDepots( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir" )] internal static extern uint /*uint32*/ GetAppInstallDir( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, char* /*char **/ pchFolder , uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir" )] internal static extern uint /*uint32*/ GetAppInstallDir( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_BIsAppInstalled" )] internal static extern bool /*bool*/ BIsAppInstalled( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetAppOwner" )] internal static extern ulong /*class CSteamID*/ GetAppOwner( IntPtr ISteamApps );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam" )] internal static extern IntPtr GetLaunchQueryParam( IntPtr ISteamApps, string /*const char **/ pchKey );
@ -528,15 +528,15 @@ public static unsafe class ISteamUGC
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequest" )] internal static extern ulong /*UGCQueryHandle_t*/ CreateQueryAllUGCRequest( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType , UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType , AppId_t /*AppId_t*/ nCreatorAppID, AppId_t /*AppId_t*/ nConsumerAppID, uint /*uint32*/ unPage );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest" )] internal static extern ulong /*UGCQueryHandle_t*/ CreateQueryUGCDetailsRequest( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_SendQueryUGCRequest" )] internal static extern ulong /*SteamAPICall_t*/ SendQueryUGCRequest( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult" )] internal static extern bool /*bool*/ GetQueryUGCResult( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , IntPtr /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL" )] internal static extern bool /*bool*/ GetQueryUGCPreviewURL( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , char* /*char **/ pchURL , uint /*uint32*/ cchURLSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata" )] internal static extern bool /*bool*/ GetQueryUGCMetadata( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , char* /*char **/ pchMetadata , uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult" )] internal static extern bool /*bool*/ GetQueryUGCResult( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL" )] internal static extern bool /*bool*/ GetQueryUGCPreviewURL( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata" )] internal static extern bool /*bool*/ GetQueryUGCMetadata( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCChildren" )] internal static extern bool /*bool*/ GetQueryUGCChildren( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCStatistic" )] internal static extern bool /*bool*/ GetQueryUGCStatistic( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , ItemStatistic /*EItemStatistic*/ eStatType , out uint /*uint32 **/ pStatValue );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews" )] internal static extern uint /*uint32*/ GetQueryUGCNumAdditionalPreviews( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview" )] internal static extern bool /*bool*/ GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ previewIndex , char* /*char **/ pchURLOrVideoID , uint /*uint32*/ cchURLSize , char* /*char **/ pchOriginalFileName , uint /*uint32*/ cchOriginalFileNameSize , out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview" )] internal static extern bool /*bool*/ GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ previewIndex , System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize , System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize , out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags" )] internal static extern uint /*uint32*/ GetQueryUGCNumKeyValueTags( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag" )] internal static extern bool /*bool*/ GetQueryUGCKeyValueTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ keyValueTagIndex , char* /*char **/ pchKey , uint /*uint32*/ cchKeySize , char* /*char **/ pchValue , uint /*uint32*/ cchValueSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag" )] internal static extern bool /*bool*/ GetQueryUGCKeyValueTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ keyValueTagIndex , System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize , System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest" )] internal static extern bool /*bool*/ ReleaseQueryUGCRequest( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTag" )] internal static extern bool /*bool*/ AddRequiredTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, string /*const char **/ pTagName );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_AddExcludedTag" )] internal static extern bool /*bool*/ AddExcludedTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, string /*const char **/ pTagName );
@ -582,7 +582,7 @@ public static unsafe class ISteamUGC
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetNumSubscribedItems" )] internal static extern uint /*uint32*/ GetNumSubscribedItems( IntPtr ISteamUGC );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetSubscribedItems" )] internal static extern uint /*uint32*/ GetSubscribedItems( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetItemState" )] internal static extern uint /*uint32*/ GetItemState( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo" )] internal static extern bool /*bool*/ GetItemInstallInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, char* /*char **/ pchFolder , uint /*uint32*/ cchFolderSize , out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo" )] internal static extern bool /*bool*/ GetItemInstallInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize , out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_GetItemDownloadInfo" )] internal static extern bool /*bool*/ GetItemDownloadInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_DownloadItem" )] internal static extern bool /*bool*/ DownloadItem( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, bool /*bool*/ bHighPriority );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamUGC_BInitWorkshopForGameServer" )] internal static extern bool /*bool*/ BInitWorkshopForGameServer( IntPtr ISteamUGC, DepotId_t /*DepotId_t*/ unWorkshopDepotID, string /*const char **/ pszFolder );
@ -593,8 +593,8 @@ public static unsafe class ISteamAppList
{
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamAppList_GetNumInstalledApps" )] internal static extern uint /*uint32*/ GetNumInstalledApps( IntPtr ISteamAppList );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamAppList_GetInstalledApps" )] internal static extern uint /*uint32*/ GetInstalledApps( IntPtr ISteamAppList, IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppName" )] internal static extern int /*int*/ GetAppName( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, char* /*char **/ pchName , int /*int*/ cchNameMax );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir" )] internal static extern int /*int*/ GetAppInstallDir( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, char* /*char **/ pchDirectory , int /*int*/ cchNameMax );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppName" )] internal static extern int /*int*/ GetAppName( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir" )] internal static extern int /*int*/ GetAppInstallDir( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppBuildId" )] internal static extern int /*int*/ GetAppBuildId( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID );
}
@ -660,7 +660,7 @@ public static unsafe class ISteamInventory
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamInventory_TradeItems" )] internal static extern bool /*bool*/ TradeItems( IntPtr ISteamInventory, ref SteamInventoryResult_t /*SteamInventoryResult_t **/ pResultHandle, CSteamID /*class CSteamID*/ steamIDTradePartner, ref SteamItemInstanceID_t /*const SteamItemInstanceID_t **/ pArrayGive, out uint /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength , ref SteamItemInstanceID_t /*const SteamItemInstanceID_t **/ pArrayGet, out uint /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamInventory_LoadItemDefinitions" )] internal static extern bool /*bool*/ LoadItemDefinitions( IntPtr ISteamInventory );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionIDs" )] internal static extern bool /*bool*/ GetItemDefinitionIDs( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty" )] internal static extern bool /*bool*/ GetItemDefinitionProperty( IntPtr ISteamInventory, SteamItemDef_t /*SteamItemDef_t*/ iDefinition, string /*const char **/ pchPropertyName , char* /*char **/ pchValueBuffer , out uint /*uint32 **/ punValueBufferSize );
[DllImportAttribute( "steam_api.dll", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty" )] internal static extern bool /*bool*/ GetItemDefinitionProperty( IntPtr ISteamInventory, SteamItemDef_t /*SteamItemDef_t*/ iDefinition, string /*const char **/ pchPropertyName , System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSize );
}
public static unsafe class ISteamVideo

View File

@ -51,7 +51,7 @@ public static unsafe class ISteamUser
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection" )] internal static extern int /*int*/ InitiateGameConnection( IntPtr ISteamUser, IntPtr /*void **/ pAuthBlob , int /*int*/ cbMaxAuthBlob , CSteamID /*class CSteamID*/ steamIDGameServer, uint /*uint32*/ unIPServer , ushort /*uint16*/ usPortServer , bool /*bool*/ bSecure );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection" )] internal static extern void /*void*/ TerminateGameConnection( IntPtr ISteamUser, uint /*uint32*/ unIPServer , ushort /*uint16*/ usPortServer );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUser_TrackAppUsageEvent" )] internal static extern void /*void*/ TrackAppUsageEvent( IntPtr ISteamUser, CGameID /*class CGameID*/ gameID, int /*int*/ eAppUsageEvent , string /*const char **/ pchExtraInfo );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder" )] internal static extern bool /*bool*/ GetUserDataFolder( IntPtr ISteamUser, char* /*char **/ pchBuffer , int /*int*/ cubBuffer );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUser_GetUserDataFolder" )] internal static extern bool /*bool*/ GetUserDataFolder( IntPtr ISteamUser, System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUser_StartVoiceRecording" )] internal static extern void /*void*/ StartVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUser_StopVoiceRecording" )] internal static extern void /*void*/ StopVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUser_GetAvailableVoice" )] internal static extern VoiceResult /*EVoiceResult*/ GetAvailableVoice( IntPtr ISteamUser, out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate );
@ -171,7 +171,7 @@ public static unsafe class ISteamUtils
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_CheckFileSignature" )] internal static extern ulong /*SteamAPICall_t*/ CheckFileSignature( IntPtr ISteamUtils, string /*const char **/ szFileName );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_ShowGamepadTextInput" )] internal static extern bool /*bool*/ ShowGamepadTextInput( IntPtr ISteamUtils, GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode , GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode , string /*const char **/ pchDescription , uint /*uint32*/ unCharMax , string /*const char **/ pchExistingText );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextLength" )] internal static extern uint /*uint32*/ GetEnteredGamepadTextLength( IntPtr ISteamUtils );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput" )] internal static extern bool /*bool*/ GetEnteredGamepadTextInput( IntPtr ISteamUtils, char* /*char **/ pchText , uint /*uint32*/ cchText );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetEnteredGamepadTextInput" )] internal static extern bool /*bool*/ GetEnteredGamepadTextInput( IntPtr ISteamUtils, System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_GetSteamUILanguage" )] internal static extern IntPtr GetSteamUILanguage( IntPtr ISteamUtils );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningInVR" )] internal static extern bool /*bool*/ IsSteamRunningInVR( IntPtr ISteamUtils );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUtils_SetOverlayNotificationInset" )] internal static extern void /*void*/ SetOverlayNotificationInset( IntPtr ISteamUtils, int /*int*/ nHorizontalInset , int /*int*/ nVerticalInset );
@ -203,7 +203,7 @@ public static unsafe class ISteamMatchmaking
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyData" )] internal static extern IntPtr GetLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyData" )] internal static extern bool /*bool*/ SetLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey , string /*const char **/ pchValue );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataCount" )] internal static extern int /*int*/ GetLobbyDataCount( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex" )] internal static extern bool /*bool*/ GetLobbyDataByIndex( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, int /*int*/ iLobbyData , char* /*char **/ pchKey , int /*int*/ cchKeyBufferSize , char* /*char **/ pchValue , int /*int*/ cchValueBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex" )] internal static extern bool /*bool*/ GetLobbyDataByIndex( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, int /*int*/ iLobbyData , System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize , System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_DeleteLobbyData" )] internal static extern bool /*bool*/ DeleteLobbyData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_GetLobbyMemberData" )] internal static extern IntPtr GetLobbyMemberData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, CSteamID /*class CSteamID*/ steamIDUser, string /*const char **/ pchKey );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamMatchmaking_SetLobbyMemberData" )] internal static extern void /*void*/ SetLobbyMemberData( IntPtr ISteamMatchmaking, CSteamID /*class CSteamID*/ steamIDLobby, string /*const char **/ pchKey , string /*const char **/ pchValue );
@ -270,7 +270,7 @@ public static unsafe class ISteamRemoteStorage
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp" )] internal static extern void /*void*/ SetCloudEnabledForApp( IntPtr ISteamRemoteStorage, bool /*bool*/ bEnabled );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCDownload" )] internal static extern ulong /*SteamAPICall_t*/ UGCDownload( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, uint /*uint32*/ unPriority );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress" )] internal static extern bool /*bool*/ GetUGCDownloadProgress( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails" )] internal static extern bool /*bool*/ GetUGCDetails( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, ref AppId_t /*AppId_t **/ pnAppID, char* /*char ***/ ppchName , IntPtr /*int32 **/ pnFileSizeInBytes, out CSteamID /*class CSteamID **/ pSteamIDOwner );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetUGCDetails" )] internal static extern bool /*bool*/ GetUGCDetails( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, ref AppId_t /*AppId_t **/ pnAppID, System.Text.StringBuilder /*char ***/ ppchName, IntPtr /*int32 **/ pnFileSizeInBytes, out CSteamID /*class CSteamID **/ pSteamIDOwner );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_UGCRead" )] internal static extern int /*int32*/ UGCRead( IntPtr ISteamRemoteStorage, UGCHandle_t /*UGCHandle_t*/ hContent, IntPtr /*void **/ pvData , int /*int32*/ cubDataToRead , uint /*uint32*/ cOffset , UGCReadAction /*EUGCReadAction*/ eAction );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCCount" )] internal static extern int /*int32*/ GetCachedUGCCount( IntPtr ISteamRemoteStorage );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle" )] internal static extern ulong /*UGCHandle_t*/ GetCachedUGCHandle( IntPtr ISteamRemoteStorage, int /*int32*/ iCachedContent );
@ -338,8 +338,8 @@ public static unsafe class ISteamUserStats
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_AttachLeaderboardUGC" )] internal static extern ulong /*SteamAPICall_t*/ AttachLeaderboardUGC( IntPtr ISteamUserStats, SteamLeaderboard_t /*SteamLeaderboard_t*/ hSteamLeaderboard, UGCHandle_t /*UGCHandle_t*/ hUGC );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers" )] internal static extern ulong /*SteamAPICall_t*/ GetNumberOfCurrentPlayers( IntPtr ISteamUserStats );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages" )] internal static extern ulong /*SteamAPICall_t*/ RequestGlobalAchievementPercentages( IntPtr ISteamUserStats );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, char* /*char **/ pchName , uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , char* /*char **/ pchName , uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo" )] internal static extern int /*int*/ GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious , System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen , out float /*float **/ pflPercent, out bool /*bool **/ pbAchieved );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementAchievedPercent" )] internal static extern bool /*bool*/ GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName , out float /*float **/ pflPercent );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_RequestGlobalStats" )] internal static extern ulong /*SteamAPICall_t*/ RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat" )] internal static extern bool /*bool*/ GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName , out long /*int64 **/ pData );
@ -361,14 +361,14 @@ public static unsafe class ISteamApps
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime" )] internal static extern uint /*uint32*/ GetEarliestPurchaseUnixTime( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend" )] internal static extern bool /*bool*/ BIsSubscribedFromFreeWeekend( IntPtr ISteamApps );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetDLCCount" )] internal static extern int /*int*/ GetDLCCount( IntPtr ISteamApps );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, char* /*char **/ pchName , int /*int*/ cchNameBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_BGetDLCDataByIndex" )] internal static extern bool /*bool*/ BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC , ref AppId_t /*AppId_t **/ pAppID, out bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_InstallDLC" )] internal static extern void /*void*/ InstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_UninstallDLC" )] internal static extern void /*void*/ UninstallDLC( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey" )] internal static extern void /*void*/ RequestAppProofOfPurchaseKey( IntPtr ISteamApps, AppId_t /*AppId_t*/ nAppID );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName" )] internal static extern bool /*bool*/ GetCurrentBetaName( IntPtr ISteamApps, char* /*char **/ pchName , int /*int*/ cchNameBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetCurrentBetaName" )] internal static extern bool /*bool*/ GetCurrentBetaName( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_MarkContentCorrupt" )] internal static extern bool /*bool*/ MarkContentCorrupt( IntPtr ISteamApps, bool /*bool*/ bMissingFilesOnly );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetInstalledDepots" )] internal static extern uint /*uint32*/ GetInstalledDepots( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir" )] internal static extern uint /*uint32*/ GetAppInstallDir( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, char* /*char **/ pchFolder , uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetAppInstallDir" )] internal static extern uint /*uint32*/ GetAppInstallDir( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_BIsAppInstalled" )] internal static extern bool /*bool*/ BIsAppInstalled( IntPtr ISteamApps, AppId_t /*AppId_t*/ appID );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetAppOwner" )] internal static extern ulong /*class CSteamID*/ GetAppOwner( IntPtr ISteamApps );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamApps_GetLaunchQueryParam" )] internal static extern IntPtr GetLaunchQueryParam( IntPtr ISteamApps, string /*const char **/ pchKey );
@ -528,15 +528,15 @@ public static unsafe class ISteamUGC
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequest" )] internal static extern ulong /*UGCQueryHandle_t*/ CreateQueryAllUGCRequest( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType , UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType , AppId_t /*AppId_t*/ nCreatorAppID, AppId_t /*AppId_t*/ nConsumerAppID, uint /*uint32*/ unPage );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest" )] internal static extern ulong /*UGCQueryHandle_t*/ CreateQueryUGCDetailsRequest( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_SendQueryUGCRequest" )] internal static extern ulong /*SteamAPICall_t*/ SendQueryUGCRequest( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult" )] internal static extern bool /*bool*/ GetQueryUGCResult( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , IntPtr /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL" )] internal static extern bool /*bool*/ GetQueryUGCPreviewURL( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , char* /*char **/ pchURL , uint /*uint32*/ cchURLSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata" )] internal static extern bool /*bool*/ GetQueryUGCMetadata( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , char* /*char **/ pchMetadata , uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCResult" )] internal static extern bool /*bool*/ GetQueryUGCResult( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL" )] internal static extern bool /*bool*/ GetQueryUGCPreviewURL( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCMetadata" )] internal static extern bool /*bool*/ GetQueryUGCMetadata( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCChildren" )] internal static extern bool /*bool*/ GetQueryUGCChildren( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCStatistic" )] internal static extern bool /*bool*/ GetQueryUGCStatistic( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , ItemStatistic /*EItemStatistic*/ eStatType , out uint /*uint32 **/ pStatValue );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews" )] internal static extern uint /*uint32*/ GetQueryUGCNumAdditionalPreviews( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview" )] internal static extern bool /*bool*/ GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ previewIndex , char* /*char **/ pchURLOrVideoID , uint /*uint32*/ cchURLSize , char* /*char **/ pchOriginalFileName , uint /*uint32*/ cchOriginalFileNameSize , out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview" )] internal static extern bool /*bool*/ GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ previewIndex , System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize , System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize , out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags" )] internal static extern uint /*uint32*/ GetQueryUGCNumKeyValueTags( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag" )] internal static extern bool /*bool*/ GetQueryUGCKeyValueTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ keyValueTagIndex , char* /*char **/ pchKey , uint /*uint32*/ cchKeySize , char* /*char **/ pchValue , uint /*uint32*/ cchValueSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag" )] internal static extern bool /*bool*/ GetQueryUGCKeyValueTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, uint /*uint32*/ index , uint /*uint32*/ keyValueTagIndex , System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize , System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest" )] internal static extern bool /*bool*/ ReleaseQueryUGCRequest( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_AddRequiredTag" )] internal static extern bool /*bool*/ AddRequiredTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, string /*const char **/ pTagName );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_AddExcludedTag" )] internal static extern bool /*bool*/ AddExcludedTag( IntPtr ISteamUGC, UGCQueryHandle_t /*UGCQueryHandle_t*/ handle, string /*const char **/ pTagName );
@ -582,7 +582,7 @@ public static unsafe class ISteamUGC
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetNumSubscribedItems" )] internal static extern uint /*uint32*/ GetNumSubscribedItems( IntPtr ISteamUGC );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetSubscribedItems" )] internal static extern uint /*uint32*/ GetSubscribedItems( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetItemState" )] internal static extern uint /*uint32*/ GetItemState( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo" )] internal static extern bool /*bool*/ GetItemInstallInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, char* /*char **/ pchFolder , uint /*uint32*/ cchFolderSize , out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetItemInstallInfo" )] internal static extern bool /*bool*/ GetItemInstallInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize , out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_GetItemDownloadInfo" )] internal static extern bool /*bool*/ GetItemDownloadInfo( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_DownloadItem" )] internal static extern bool /*bool*/ DownloadItem( IntPtr ISteamUGC, PublishedFileId_t /*PublishedFileId_t*/ nPublishedFileID, bool /*bool*/ bHighPriority );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamUGC_BInitWorkshopForGameServer" )] internal static extern bool /*bool*/ BInitWorkshopForGameServer( IntPtr ISteamUGC, DepotId_t /*DepotId_t*/ unWorkshopDepotID, string /*const char **/ pszFolder );
@ -593,8 +593,8 @@ public static unsafe class ISteamAppList
{
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamAppList_GetNumInstalledApps" )] internal static extern uint /*uint32*/ GetNumInstalledApps( IntPtr ISteamAppList );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamAppList_GetInstalledApps" )] internal static extern uint /*uint32*/ GetInstalledApps( IntPtr ISteamAppList, IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppName" )] internal static extern int /*int*/ GetAppName( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, char* /*char **/ pchName , int /*int*/ cchNameMax );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir" )] internal static extern int /*int*/ GetAppInstallDir( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, char* /*char **/ pchDirectory , int /*int*/ cchNameMax );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppName" )] internal static extern int /*int*/ GetAppName( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppInstallDir" )] internal static extern int /*int*/ GetAppInstallDir( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamAppList_GetAppBuildId" )] internal static extern int /*int*/ GetAppBuildId( IntPtr ISteamAppList, AppId_t /*AppId_t*/ nAppID );
}
@ -660,7 +660,7 @@ public static unsafe class ISteamInventory
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamInventory_TradeItems" )] internal static extern bool /*bool*/ TradeItems( IntPtr ISteamInventory, ref SteamInventoryResult_t /*SteamInventoryResult_t **/ pResultHandle, CSteamID /*class CSteamID*/ steamIDTradePartner, ref SteamItemInstanceID_t /*const SteamItemInstanceID_t **/ pArrayGive, out uint /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength , ref SteamItemInstanceID_t /*const SteamItemInstanceID_t **/ pArrayGet, out uint /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamInventory_LoadItemDefinitions" )] internal static extern bool /*bool*/ LoadItemDefinitions( IntPtr ISteamInventory );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionIDs" )] internal static extern bool /*bool*/ GetItemDefinitionIDs( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty" )] internal static extern bool /*bool*/ GetItemDefinitionProperty( IntPtr ISteamInventory, SteamItemDef_t /*SteamItemDef_t*/ iDefinition, string /*const char **/ pchPropertyName , char* /*char **/ pchValueBuffer , out uint /*uint32 **/ punValueBufferSize );
[DllImportAttribute( "steam_api64.dll", EntryPoint = "SteamAPI_ISteamInventory_GetItemDefinitionProperty" )] internal static extern bool /*bool*/ GetItemDefinitionProperty( IntPtr ISteamInventory, SteamItemDef_t /*SteamItemDef_t*/ iDefinition, string /*const char **/ pchPropertyName , System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSize );
}
public static unsafe class ISteamVideo

View File

@ -16,6 +16,8 @@ public SteamAppList( IntPtr pointer )
// int
public int GetAppBuildId( AppId_t nAppID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamAppList.GetAppBuildId( _ptr, nAppID );
else return Platform.Win64.ISteamAppList.GetAppBuildId( _ptr, nAppID );
}
@ -24,38 +26,38 @@ public int GetAppBuildId( AppId_t nAppID /*AppId_t*/ )
// with: Detect_StringFetch True
public string GetAppInstallDir( AppId_t nAppID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
int bSuccess = default( int );
var pchDirectory_buffer = new char[4096];
fixed ( void* pchDirectory_ptr = pchDirectory_buffer )
{
int cchNameMax = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamAppList.GetAppInstallDir( _ptr, nAppID, (char*)pchDirectory_ptr, cchNameMax );
else bSuccess = Platform.Win64.ISteamAppList.GetAppInstallDir( _ptr, nAppID, (char*)pchDirectory_ptr, cchNameMax );
if ( bSuccess <= 0 ) return null;
return Marshal.PtrToStringAuto( (IntPtr)pchDirectory_ptr );
}
System.Text.StringBuilder pchDirectory_sb = new System.Text.StringBuilder( 4096 );
int cchNameMax = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamAppList.GetAppInstallDir( _ptr, nAppID, pchDirectory_sb, cchNameMax );
else bSuccess = Platform.Win64.ISteamAppList.GetAppInstallDir( _ptr, nAppID, pchDirectory_sb, cchNameMax );
if ( bSuccess <= 0 ) return null;
return pchDirectory_sb.ToString();
}
// int
// with: Detect_StringFetch True
public string GetAppName( AppId_t nAppID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
int bSuccess = default( int );
var pchName_buffer = new char[4096];
fixed ( void* pchName_ptr = pchName_buffer )
{
int cchNameMax = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamAppList.GetAppName( _ptr, nAppID, (char*)pchName_ptr, cchNameMax );
else bSuccess = Platform.Win64.ISteamAppList.GetAppName( _ptr, nAppID, (char*)pchName_ptr, cchNameMax );
if ( bSuccess <= 0 ) return null;
return Marshal.PtrToStringAuto( (IntPtr)pchName_ptr );
}
System.Text.StringBuilder pchName_sb = new System.Text.StringBuilder( 4096 );
int cchNameMax = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamAppList.GetAppName( _ptr, nAppID, pchName_sb, cchNameMax );
else bSuccess = Platform.Win64.ISteamAppList.GetAppName( _ptr, nAppID, pchName_sb, cchNameMax );
if ( bSuccess <= 0 ) return null;
return pchName_sb.ToString();
}
// with: Detect_VectorReturn
// uint
public uint GetInstalledApps( AppId_t[] pvecAppID /*AppId_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
var unMaxAppIDs = (uint) pvecAppID.Length;
fixed ( AppId_t* pvecAppID_ptr = pvecAppID )
{
@ -67,6 +69,8 @@ public uint GetInstalledApps( AppId_t[] pvecAppID /*AppId_t **/ )
// uint
public uint GetNumInstalledApps()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamAppList.GetNumInstalledApps( _ptr );
else return Platform.Win64.ISteamAppList.GetNumInstalledApps( _ptr );
}

View File

@ -17,23 +17,24 @@ public SteamApps( IntPtr pointer )
// with: Detect_StringFetch False
public bool BGetDLCDataByIndex( int iDLC /*int*/, ref AppId_t pAppID /*AppId_t **/, out bool pbAvailable /*bool **/, out string pchName /*char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
pchName = string.Empty;
var pchName_buffer = new char[4096];
fixed ( void* pchName_ptr = pchName_buffer )
{
int cchNameBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamApps.BGetDLCDataByIndex( _ptr, iDLC, ref pAppID, out pbAvailable, (char*)pchName_ptr, cchNameBufferSize );
else bSuccess = Platform.Win64.ISteamApps.BGetDLCDataByIndex( _ptr, iDLC, ref pAppID, out pbAvailable, (char*)pchName_ptr, cchNameBufferSize );
if ( !bSuccess ) return bSuccess;
pchName = Marshal.PtrToStringAuto( (IntPtr)pchName_ptr );
}
System.Text.StringBuilder pchName_sb = new System.Text.StringBuilder( 4096 );
int cchNameBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamApps.BGetDLCDataByIndex( _ptr, iDLC, ref pAppID, out pbAvailable, pchName_sb, cchNameBufferSize );
else bSuccess = Platform.Win64.ISteamApps.BGetDLCDataByIndex( _ptr, iDLC, ref pAppID, out pbAvailable, pchName_sb, cchNameBufferSize );
if ( !bSuccess ) return bSuccess;
pchName = pchName_sb.ToString();
return bSuccess;
}
// bool
public bool BIsAppInstalled( AppId_t appID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.BIsAppInstalled( _ptr, appID );
else return Platform.Win64.ISteamApps.BIsAppInstalled( _ptr, appID );
}
@ -41,6 +42,8 @@ public bool BIsAppInstalled( AppId_t appID /*AppId_t*/ )
// bool
public bool BIsCybercafe()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.BIsCybercafe( _ptr );
else return Platform.Win64.ISteamApps.BIsCybercafe( _ptr );
}
@ -48,6 +51,8 @@ public bool BIsCybercafe()
// bool
public bool BIsDlcInstalled( AppId_t appID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.BIsDlcInstalled( _ptr, appID );
else return Platform.Win64.ISteamApps.BIsDlcInstalled( _ptr, appID );
}
@ -55,6 +60,8 @@ public bool BIsDlcInstalled( AppId_t appID /*AppId_t*/ )
// bool
public bool BIsLowViolence()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.BIsLowViolence( _ptr );
else return Platform.Win64.ISteamApps.BIsLowViolence( _ptr );
}
@ -62,6 +69,8 @@ public bool BIsLowViolence()
// bool
public bool BIsSubscribed()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.BIsSubscribed( _ptr );
else return Platform.Win64.ISteamApps.BIsSubscribed( _ptr );
}
@ -69,6 +78,8 @@ public bool BIsSubscribed()
// bool
public bool BIsSubscribedApp( AppId_t appID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.BIsSubscribedApp( _ptr, appID );
else return Platform.Win64.ISteamApps.BIsSubscribedApp( _ptr, appID );
}
@ -76,6 +87,8 @@ public bool BIsSubscribedApp( AppId_t appID /*AppId_t*/ )
// bool
public bool BIsSubscribedFromFreeWeekend()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.BIsSubscribedFromFreeWeekend( _ptr );
else return Platform.Win64.ISteamApps.BIsSubscribedFromFreeWeekend( _ptr );
}
@ -83,6 +96,8 @@ public bool BIsSubscribedFromFreeWeekend()
// bool
public bool BIsVACBanned()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.BIsVACBanned( _ptr );
else return Platform.Win64.ISteamApps.BIsVACBanned( _ptr );
}
@ -90,6 +105,8 @@ public bool BIsVACBanned()
// int
public int GetAppBuildId()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.GetAppBuildId( _ptr );
else return Platform.Win64.ISteamApps.GetAppBuildId( _ptr );
}
@ -98,21 +115,22 @@ public int GetAppBuildId()
// with: Detect_StringFetch True
public string GetAppInstallDir( AppId_t appID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
uint bSuccess = default( uint );
var pchFolder_buffer = new char[4096];
fixed ( void* pchFolder_ptr = pchFolder_buffer )
{
uint cchFolderBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamApps.GetAppInstallDir( _ptr, appID, (char*)pchFolder_ptr, cchFolderBufferSize );
else bSuccess = Platform.Win64.ISteamApps.GetAppInstallDir( _ptr, appID, (char*)pchFolder_ptr, cchFolderBufferSize );
if ( bSuccess <= 0 ) return null;
return Marshal.PtrToStringAuto( (IntPtr)pchFolder_ptr );
}
System.Text.StringBuilder pchFolder_sb = new System.Text.StringBuilder( 4096 );
uint cchFolderBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamApps.GetAppInstallDir( _ptr, appID, pchFolder_sb, cchFolderBufferSize );
else bSuccess = Platform.Win64.ISteamApps.GetAppInstallDir( _ptr, appID, pchFolder_sb, cchFolderBufferSize );
if ( bSuccess <= 0 ) return null;
return pchFolder_sb.ToString();
}
// ulong
public ulong GetAppOwner()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.GetAppOwner( _ptr );
else return Platform.Win64.ISteamApps.GetAppOwner( _ptr );
}
@ -121,6 +139,8 @@ public ulong GetAppOwner()
// with: Detect_StringReturn
public string GetAvailableGameLanguages()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamApps.GetAvailableGameLanguages( _ptr );
else string_pointer = Platform.Win64.ISteamApps.GetAvailableGameLanguages( _ptr );
@ -131,22 +151,23 @@ public string GetAvailableGameLanguages()
// with: Detect_StringFetch True
public string GetCurrentBetaName()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
var pchName_buffer = new char[4096];
fixed ( void* pchName_ptr = pchName_buffer )
{
int cchNameBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamApps.GetCurrentBetaName( _ptr, (char*)pchName_ptr, cchNameBufferSize );
else bSuccess = Platform.Win64.ISteamApps.GetCurrentBetaName( _ptr, (char*)pchName_ptr, cchNameBufferSize );
if ( !bSuccess ) return null;
return Marshal.PtrToStringAuto( (IntPtr)pchName_ptr );
}
System.Text.StringBuilder pchName_sb = new System.Text.StringBuilder( 4096 );
int cchNameBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamApps.GetCurrentBetaName( _ptr, pchName_sb, cchNameBufferSize );
else bSuccess = Platform.Win64.ISteamApps.GetCurrentBetaName( _ptr, pchName_sb, cchNameBufferSize );
if ( !bSuccess ) return null;
return pchName_sb.ToString();
}
// string
// with: Detect_StringReturn
public string GetCurrentGameLanguage()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamApps.GetCurrentGameLanguage( _ptr );
else string_pointer = Platform.Win64.ISteamApps.GetCurrentGameLanguage( _ptr );
@ -156,6 +177,8 @@ public string GetCurrentGameLanguage()
// int
public int GetDLCCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.GetDLCCount( _ptr );
else return Platform.Win64.ISteamApps.GetDLCCount( _ptr );
}
@ -163,6 +186,8 @@ public int GetDLCCount()
// bool
public bool GetDlcDownloadProgress( AppId_t nAppID /*AppId_t*/, out ulong punBytesDownloaded /*uint64 **/, out ulong punBytesTotal /*uint64 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.GetDlcDownloadProgress( _ptr, nAppID, out punBytesDownloaded, out punBytesTotal );
else return Platform.Win64.ISteamApps.GetDlcDownloadProgress( _ptr, nAppID, out punBytesDownloaded, out punBytesTotal );
}
@ -170,6 +195,8 @@ public bool GetDlcDownloadProgress( AppId_t nAppID /*AppId_t*/, out ulong punByt
// uint
public uint GetEarliestPurchaseUnixTime( AppId_t nAppID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.GetEarliestPurchaseUnixTime( _ptr, nAppID );
else return Platform.Win64.ISteamApps.GetEarliestPurchaseUnixTime( _ptr, nAppID );
}
@ -177,6 +204,8 @@ public uint GetEarliestPurchaseUnixTime( AppId_t nAppID /*AppId_t*/ )
// uint
public uint GetInstalledDepots( AppId_t appID /*AppId_t*/, IntPtr pvecDepots /*DepotId_t **/, uint cMaxDepots /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.GetInstalledDepots( _ptr, appID, (IntPtr) pvecDepots, cMaxDepots );
else return Platform.Win64.ISteamApps.GetInstalledDepots( _ptr, appID, (IntPtr) pvecDepots, cMaxDepots );
}
@ -185,6 +214,8 @@ public uint GetInstalledDepots( AppId_t appID /*AppId_t*/, IntPtr pvecDepots /*D
// with: Detect_StringReturn
public string GetLaunchQueryParam( string pchKey /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamApps.GetLaunchQueryParam( _ptr, pchKey );
else string_pointer = Platform.Win64.ISteamApps.GetLaunchQueryParam( _ptr, pchKey );
@ -194,6 +225,8 @@ public string GetLaunchQueryParam( string pchKey /*const char **/ )
// void
public void InstallDLC( AppId_t nAppID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamApps.InstallDLC( _ptr, nAppID );
else Platform.Win64.ISteamApps.InstallDLC( _ptr, nAppID );
}
@ -201,6 +234,8 @@ public void InstallDLC( AppId_t nAppID /*AppId_t*/ )
// bool
public bool MarkContentCorrupt( bool bMissingFilesOnly /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamApps.MarkContentCorrupt( _ptr, bMissingFilesOnly );
else return Platform.Win64.ISteamApps.MarkContentCorrupt( _ptr, bMissingFilesOnly );
}
@ -208,6 +243,8 @@ public bool MarkContentCorrupt( bool bMissingFilesOnly /*bool*/ )
// void
public void RequestAllProofOfPurchaseKeys()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamApps.RequestAllProofOfPurchaseKeys( _ptr );
else Platform.Win64.ISteamApps.RequestAllProofOfPurchaseKeys( _ptr );
}
@ -215,6 +252,8 @@ public void RequestAllProofOfPurchaseKeys()
// void
public void RequestAppProofOfPurchaseKey( AppId_t nAppID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamApps.RequestAppProofOfPurchaseKey( _ptr, nAppID );
else Platform.Win64.ISteamApps.RequestAppProofOfPurchaseKey( _ptr, nAppID );
}
@ -222,6 +261,8 @@ public void RequestAppProofOfPurchaseKey( AppId_t nAppID /*AppId_t*/ )
// void
public void UninstallDLC( AppId_t nAppID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamApps.UninstallDLC( _ptr, nAppID );
else Platform.Win64.ISteamApps.UninstallDLC( _ptr, nAppID );
}

View File

@ -16,6 +16,8 @@ public SteamClient( IntPtr pointer )
// bool
public bool BReleaseSteamPipe( HSteamPipe hSteamPipe /*HSteamPipe*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamClient.BReleaseSteamPipe( _ptr, hSteamPipe );
else return Platform.Win64.ISteamClient.BReleaseSteamPipe( _ptr, hSteamPipe );
}
@ -23,6 +25,8 @@ public bool BReleaseSteamPipe( HSteamPipe hSteamPipe /*HSteamPipe*/ )
// bool
public bool BShutdownIfAllPipesClosed()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamClient.BShutdownIfAllPipesClosed( _ptr );
else return Platform.Win64.ISteamClient.BShutdownIfAllPipesClosed( _ptr );
}
@ -30,6 +34,8 @@ public bool BShutdownIfAllPipesClosed()
// HSteamUser
public HSteamUser ConnectToGlobalUser( HSteamPipe hSteamPipe /*HSteamPipe*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamClient.ConnectToGlobalUser( _ptr, hSteamPipe );
else return Platform.Win64.ISteamClient.ConnectToGlobalUser( _ptr, hSteamPipe );
}
@ -37,6 +43,8 @@ public HSteamUser ConnectToGlobalUser( HSteamPipe hSteamPipe /*HSteamPipe*/ )
// HSteamUser
public HSteamUser CreateLocalUser( out HSteamPipe phSteamPipe /*HSteamPipe **/, AccountType eAccountType /*EAccountType*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamClient.CreateLocalUser( _ptr, out phSteamPipe, eAccountType );
else return Platform.Win64.ISteamClient.CreateLocalUser( _ptr, out phSteamPipe, eAccountType );
}
@ -44,6 +52,8 @@ public HSteamUser CreateLocalUser( out HSteamPipe phSteamPipe /*HSteamPipe **/,
// HSteamPipe
public HSteamPipe CreateSteamPipe()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamClient.CreateSteamPipe( _ptr );
else return Platform.Win64.ISteamClient.CreateSteamPipe( _ptr );
}
@ -51,6 +61,8 @@ public HSteamPipe CreateSteamPipe()
// uint
public uint GetIPCCallCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamClient.GetIPCCallCount( _ptr );
else return Platform.Win64.ISteamClient.GetIPCCallCount( _ptr );
}
@ -58,6 +70,8 @@ public uint GetIPCCallCount()
// ISteamAppList *
public SteamAppList GetISteamAppList( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamAppList( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamAppList( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -67,6 +81,8 @@ public SteamAppList GetISteamAppList( HSteamUser hSteamUser /*HSteamUser*/, HSte
// ISteamApps *
public SteamApps GetISteamApps( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamApps( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamApps( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -76,6 +92,8 @@ public SteamApps GetISteamApps( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe
// ISteamController *
public SteamController GetISteamController( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamController( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamController( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -85,6 +103,8 @@ public SteamController GetISteamController( HSteamUser hSteamUser /*HSteamUser*/
// ISteamFriends *
public SteamFriends GetISteamFriends( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamFriends( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamFriends( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -94,6 +114,8 @@ public SteamFriends GetISteamFriends( HSteamUser hSteamUser /*HSteamUser*/, HSte
// ISteamGameServer *
public SteamGameServer GetISteamGameServer( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamGameServer( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamGameServer( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -103,6 +125,8 @@ public SteamGameServer GetISteamGameServer( HSteamUser hSteamUser /*HSteamUser*/
// ISteamGameServerStats *
public SteamGameServerStats GetISteamGameServerStats( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamGameServerStats( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamGameServerStats( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -112,6 +136,8 @@ public SteamGameServerStats GetISteamGameServerStats( HSteamUser hSteamuser /*HS
// IntPtr
public IntPtr GetISteamGenericInterface( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamClient.GetISteamGenericInterface( _ptr, hSteamUser, hSteamPipe, pchVersion );
else return Platform.Win64.ISteamClient.GetISteamGenericInterface( _ptr, hSteamUser, hSteamPipe, pchVersion );
}
@ -119,6 +145,8 @@ public IntPtr GetISteamGenericInterface( HSteamUser hSteamUser /*HSteamUser*/, H
// ISteamHTMLSurface *
public SteamHTMLSurface GetISteamHTMLSurface( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamHTMLSurface( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamHTMLSurface( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -128,6 +156,8 @@ public SteamHTMLSurface GetISteamHTMLSurface( HSteamUser hSteamuser /*HSteamUser
// ISteamHTTP *
public SteamHTTP GetISteamHTTP( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamHTTP( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamHTTP( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -137,6 +167,8 @@ public SteamHTTP GetISteamHTTP( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe
// ISteamInventory *
public SteamInventory GetISteamInventory( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamInventory( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamInventory( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -146,6 +178,8 @@ public SteamInventory GetISteamInventory( HSteamUser hSteamuser /*HSteamUser*/,
// ISteamMatchmaking *
public SteamMatchmaking GetISteamMatchmaking( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamMatchmaking( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamMatchmaking( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -155,6 +189,8 @@ public SteamMatchmaking GetISteamMatchmaking( HSteamUser hSteamUser /*HSteamUser
// ISteamMatchmakingServers *
public SteamMatchmakingServers GetISteamMatchmakingServers( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamMatchmakingServers( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamMatchmakingServers( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -164,6 +200,8 @@ public SteamMatchmakingServers GetISteamMatchmakingServers( HSteamUser hSteamUse
// ISteamMusic *
public SteamMusic GetISteamMusic( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamMusic( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamMusic( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -173,6 +211,8 @@ public SteamMusic GetISteamMusic( HSteamUser hSteamuser /*HSteamUser*/, HSteamPi
// ISteamMusicRemote *
public SteamMusicRemote GetISteamMusicRemote( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamMusicRemote( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamMusicRemote( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -182,6 +222,8 @@ public SteamMusicRemote GetISteamMusicRemote( HSteamUser hSteamuser /*HSteamUser
// ISteamNetworking *
public SteamNetworking GetISteamNetworking( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamNetworking( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamNetworking( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -191,6 +233,8 @@ public SteamNetworking GetISteamNetworking( HSteamUser hSteamUser /*HSteamUser*/
// ISteamRemoteStorage *
public SteamRemoteStorage GetISteamRemoteStorage( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamRemoteStorage( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamRemoteStorage( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -200,6 +244,8 @@ public SteamRemoteStorage GetISteamRemoteStorage( HSteamUser hSteamuser /*HSteam
// ISteamScreenshots *
public SteamScreenshots GetISteamScreenshots( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamScreenshots( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamScreenshots( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -209,6 +255,8 @@ public SteamScreenshots GetISteamScreenshots( HSteamUser hSteamuser /*HSteamUser
// ISteamUGC *
public SteamUGC GetISteamUGC( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamUGC( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamUGC( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -218,6 +266,8 @@ public SteamUGC GetISteamUGC( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe h
// ISteamUnifiedMessages *
public SteamUnifiedMessages GetISteamUnifiedMessages( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamUnifiedMessages( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamUnifiedMessages( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -227,6 +277,8 @@ public SteamUnifiedMessages GetISteamUnifiedMessages( HSteamUser hSteamuser /*HS
// ISteamUser *
public SteamUser GetISteamUser( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamUser( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamUser( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -236,6 +288,8 @@ public SteamUser GetISteamUser( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe
// ISteamUserStats *
public SteamUserStats GetISteamUserStats( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamUserStats( _ptr, hSteamUser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamUserStats( _ptr, hSteamUser, hSteamPipe, pchVersion );
@ -245,6 +299,8 @@ public SteamUserStats GetISteamUserStats( HSteamUser hSteamUser /*HSteamUser*/,
// ISteamUtils *
public SteamUtils GetISteamUtils( HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamUtils( _ptr, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamUtils( _ptr, hSteamPipe, pchVersion );
@ -254,6 +310,8 @@ public SteamUtils GetISteamUtils( HSteamPipe hSteamPipe /*HSteamPipe*/, string p
// ISteamVideo *
public SteamVideo GetISteamVideo( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe hSteamPipe /*HSteamPipe*/, string pchVersion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr interface_pointer;
if ( Platform.IsWindows32 ) interface_pointer = Platform.Win32.ISteamClient.GetISteamVideo( _ptr, hSteamuser, hSteamPipe, pchVersion );
else interface_pointer = Platform.Win64.ISteamClient.GetISteamVideo( _ptr, hSteamuser, hSteamPipe, pchVersion );
@ -263,6 +321,8 @@ public SteamVideo GetISteamVideo( HSteamUser hSteamuser /*HSteamUser*/, HSteamPi
// void
public void ReleaseUser( HSteamPipe hSteamPipe /*HSteamPipe*/, HSteamUser hUser /*HSteamUser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamClient.ReleaseUser( _ptr, hSteamPipe, hUser );
else Platform.Win64.ISteamClient.ReleaseUser( _ptr, hSteamPipe, hUser );
}
@ -270,6 +330,8 @@ public void ReleaseUser( HSteamPipe hSteamPipe /*HSteamPipe*/, HSteamUser hUser
// void
public void SetLocalIPBinding( uint unIP /*uint32*/, ushort usPort /*uint16*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamClient.SetLocalIPBinding( _ptr, unIP, usPort );
else Platform.Win64.ISteamClient.SetLocalIPBinding( _ptr, unIP, usPort );
}
@ -277,6 +339,8 @@ public void SetLocalIPBinding( uint unIP /*uint32*/, ushort usPort /*uint16*/ )
// void
public void SetWarningMessageHook( IntPtr pFunction /*SteamAPIWarningMessageHook_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamClient.SetWarningMessageHook( _ptr, (IntPtr) pFunction );
else Platform.Win64.ISteamClient.SetWarningMessageHook( _ptr, (IntPtr) pFunction );
}

View File

@ -16,6 +16,8 @@ public SteamController( IntPtr pointer )
// void
public void ActivateActionSet( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerActionSetHandle_t actionSetHandle /*ControllerActionSetHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamController.ActivateActionSet( _ptr, controllerHandle, actionSetHandle );
else Platform.Win64.ISteamController.ActivateActionSet( _ptr, controllerHandle, actionSetHandle );
}
@ -23,6 +25,8 @@ public void ActivateActionSet( ControllerHandle_t controllerHandle /*ControllerH
// ControllerActionSetHandle_t
public ControllerActionSetHandle_t GetActionSetHandle( string pszActionSetName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetActionSetHandle( _ptr, pszActionSetName );
else return Platform.Win64.ISteamController.GetActionSetHandle( _ptr, pszActionSetName );
}
@ -30,6 +34,8 @@ public ControllerActionSetHandle_t GetActionSetHandle( string pszActionSetName /
// ControllerAnalogActionData_t
public ControllerAnalogActionData_t GetAnalogActionData( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerAnalogActionHandle_t analogActionHandle /*ControllerAnalogActionHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetAnalogActionData( _ptr, controllerHandle, analogActionHandle );
else return Platform.Win64.ISteamController.GetAnalogActionData( _ptr, controllerHandle, analogActionHandle );
}
@ -37,6 +43,8 @@ public ControllerAnalogActionData_t GetAnalogActionData( ControllerHandle_t cont
// ControllerAnalogActionHandle_t
public ControllerAnalogActionHandle_t GetAnalogActionHandle( string pszActionName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetAnalogActionHandle( _ptr, pszActionName );
else return Platform.Win64.ISteamController.GetAnalogActionHandle( _ptr, pszActionName );
}
@ -44,6 +52,8 @@ public ControllerAnalogActionHandle_t GetAnalogActionHandle( string pszActionNam
// int
public int GetAnalogActionOrigins( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerActionSetHandle_t actionSetHandle /*ControllerActionSetHandle_t*/, ControllerAnalogActionHandle_t analogActionHandle /*ControllerAnalogActionHandle_t*/, out ControllerActionOrigin originsOut /*EControllerActionOrigin **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetAnalogActionOrigins( _ptr, controllerHandle, actionSetHandle, analogActionHandle, out originsOut );
else return Platform.Win64.ISteamController.GetAnalogActionOrigins( _ptr, controllerHandle, actionSetHandle, analogActionHandle, out originsOut );
}
@ -51,6 +61,8 @@ public int GetAnalogActionOrigins( ControllerHandle_t controllerHandle /*Control
// int
public int GetConnectedControllers( ControllerHandle_t* handlesOut /*ControllerHandle_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetConnectedControllers( _ptr, (IntPtr) handlesOut );
else return Platform.Win64.ISteamController.GetConnectedControllers( _ptr, (IntPtr) handlesOut );
}
@ -58,6 +70,8 @@ public int GetConnectedControllers( ControllerHandle_t* handlesOut /*ControllerH
// ControllerActionSetHandle_t
public ControllerActionSetHandle_t GetCurrentActionSet( ControllerHandle_t controllerHandle /*ControllerHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetCurrentActionSet( _ptr, controllerHandle );
else return Platform.Win64.ISteamController.GetCurrentActionSet( _ptr, controllerHandle );
}
@ -65,6 +79,8 @@ public ControllerActionSetHandle_t GetCurrentActionSet( ControllerHandle_t contr
// ControllerDigitalActionData_t
public ControllerDigitalActionData_t GetDigitalActionData( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerDigitalActionHandle_t digitalActionHandle /*ControllerDigitalActionHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetDigitalActionData( _ptr, controllerHandle, digitalActionHandle );
else return Platform.Win64.ISteamController.GetDigitalActionData( _ptr, controllerHandle, digitalActionHandle );
}
@ -72,6 +88,8 @@ public ControllerDigitalActionData_t GetDigitalActionData( ControllerHandle_t co
// ControllerDigitalActionHandle_t
public ControllerDigitalActionHandle_t GetDigitalActionHandle( string pszActionName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetDigitalActionHandle( _ptr, pszActionName );
else return Platform.Win64.ISteamController.GetDigitalActionHandle( _ptr, pszActionName );
}
@ -79,6 +97,8 @@ public ControllerDigitalActionHandle_t GetDigitalActionHandle( string pszActionN
// int
public int GetDigitalActionOrigins( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerActionSetHandle_t actionSetHandle /*ControllerActionSetHandle_t*/, ControllerDigitalActionHandle_t digitalActionHandle /*ControllerDigitalActionHandle_t*/, out ControllerActionOrigin originsOut /*EControllerActionOrigin **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.GetDigitalActionOrigins( _ptr, controllerHandle, actionSetHandle, digitalActionHandle, out originsOut );
else return Platform.Win64.ISteamController.GetDigitalActionOrigins( _ptr, controllerHandle, actionSetHandle, digitalActionHandle, out originsOut );
}
@ -86,6 +106,8 @@ public int GetDigitalActionOrigins( ControllerHandle_t controllerHandle /*Contro
// bool
public bool Init()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.Init( _ptr );
else return Platform.Win64.ISteamController.Init( _ptr );
}
@ -93,6 +115,8 @@ public bool Init()
// void
public void RunFrame()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamController.RunFrame( _ptr );
else Platform.Win64.ISteamController.RunFrame( _ptr );
}
@ -100,6 +124,8 @@ public void RunFrame()
// bool
public bool ShowBindingPanel( ControllerHandle_t controllerHandle /*ControllerHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.ShowBindingPanel( _ptr, controllerHandle );
else return Platform.Win64.ISteamController.ShowBindingPanel( _ptr, controllerHandle );
}
@ -107,6 +133,8 @@ public bool ShowBindingPanel( ControllerHandle_t controllerHandle /*ControllerHa
// bool
public bool Shutdown()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamController.Shutdown( _ptr );
else return Platform.Win64.ISteamController.Shutdown( _ptr );
}
@ -114,6 +142,8 @@ public bool Shutdown()
// void
public void StopAnalogActionMomentum( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, ControllerAnalogActionHandle_t eAction /*ControllerAnalogActionHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamController.StopAnalogActionMomentum( _ptr, controllerHandle, eAction );
else Platform.Win64.ISteamController.StopAnalogActionMomentum( _ptr, controllerHandle, eAction );
}
@ -121,6 +151,8 @@ public void StopAnalogActionMomentum( ControllerHandle_t controllerHandle /*Cont
// void
public void TriggerHapticPulse( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, SteamControllerPad eTargetPad /*ESteamControllerPad*/, ushort usDurationMicroSec /*unsigned short*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamController.TriggerHapticPulse( _ptr, controllerHandle, eTargetPad, usDurationMicroSec );
else Platform.Win64.ISteamController.TriggerHapticPulse( _ptr, controllerHandle, eTargetPad, usDurationMicroSec );
}
@ -128,6 +160,8 @@ public void TriggerHapticPulse( ControllerHandle_t controllerHandle /*Controller
// void
public void TriggerRepeatedHapticPulse( ControllerHandle_t controllerHandle /*ControllerHandle_t*/, SteamControllerPad eTargetPad /*ESteamControllerPad*/, ushort usDurationMicroSec /*unsigned short*/, ushort usOffMicroSec /*unsigned short*/, ushort unRepeat /*unsigned short*/, uint nFlags /*unsigned int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamController.TriggerRepeatedHapticPulse( _ptr, controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags );
else Platform.Win64.ISteamController.TriggerRepeatedHapticPulse( _ptr, controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags );
}

View File

@ -16,6 +16,8 @@ public SteamFriends( IntPtr pointer )
// void
public void ActivateGameOverlay( string pchDialog /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.ActivateGameOverlay( _ptr, pchDialog );
else Platform.Win64.ISteamFriends.ActivateGameOverlay( _ptr, pchDialog );
}
@ -23,6 +25,8 @@ public void ActivateGameOverlay( string pchDialog /*const char **/ )
// void
public void ActivateGameOverlayInviteDialog( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.ActivateGameOverlayInviteDialog( _ptr, steamIDLobby );
else Platform.Win64.ISteamFriends.ActivateGameOverlayInviteDialog( _ptr, steamIDLobby );
}
@ -30,6 +34,8 @@ public void ActivateGameOverlayInviteDialog( CSteamID steamIDLobby /*class CStea
// void
public void ActivateGameOverlayToStore( AppId_t nAppID /*AppId_t*/, OverlayToStoreFlag eFlag /*EOverlayToStoreFlag*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.ActivateGameOverlayToStore( _ptr, nAppID, eFlag );
else Platform.Win64.ISteamFriends.ActivateGameOverlayToStore( _ptr, nAppID, eFlag );
}
@ -37,6 +43,8 @@ public void ActivateGameOverlayToStore( AppId_t nAppID /*AppId_t*/, OverlayToSto
// void
public void ActivateGameOverlayToUser( string pchDialog /*const char **/, CSteamID steamID /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.ActivateGameOverlayToUser( _ptr, pchDialog, steamID );
else Platform.Win64.ISteamFriends.ActivateGameOverlayToUser( _ptr, pchDialog, steamID );
}
@ -44,6 +52,8 @@ public void ActivateGameOverlayToUser( string pchDialog /*const char **/, CSteam
// void
public void ActivateGameOverlayToWebPage( string pchURL /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.ActivateGameOverlayToWebPage( _ptr, pchURL );
else Platform.Win64.ISteamFriends.ActivateGameOverlayToWebPage( _ptr, pchURL );
}
@ -51,6 +61,8 @@ public void ActivateGameOverlayToWebPage( string pchURL /*const char **/ )
// void
public void ClearRichPresence()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.ClearRichPresence( _ptr );
else Platform.Win64.ISteamFriends.ClearRichPresence( _ptr );
}
@ -58,6 +70,8 @@ public void ClearRichPresence()
// bool
public bool CloseClanChatWindowInSteam( CSteamID steamIDClanChat /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.CloseClanChatWindowInSteam( _ptr, steamIDClanChat );
else return Platform.Win64.ISteamFriends.CloseClanChatWindowInSteam( _ptr, steamIDClanChat );
}
@ -65,6 +79,8 @@ public bool CloseClanChatWindowInSteam( CSteamID steamIDClanChat /*class CSteamI
// SteamAPICall_t
public SteamAPICall_t DownloadClanActivityCounts( IntPtr psteamIDClans /*class CSteamID **/, int cClansToRequest /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.DownloadClanActivityCounts( _ptr, (IntPtr) psteamIDClans, cClansToRequest );
else return Platform.Win64.ISteamFriends.DownloadClanActivityCounts( _ptr, (IntPtr) psteamIDClans, cClansToRequest );
}
@ -72,6 +88,8 @@ public SteamAPICall_t DownloadClanActivityCounts( IntPtr psteamIDClans /*class C
// SteamAPICall_t
public SteamAPICall_t EnumerateFollowingList( uint unStartIndex /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.EnumerateFollowingList( _ptr, unStartIndex );
else return Platform.Win64.ISteamFriends.EnumerateFollowingList( _ptr, unStartIndex );
}
@ -79,6 +97,8 @@ public SteamAPICall_t EnumerateFollowingList( uint unStartIndex /*uint32*/ )
// ulong
public ulong GetChatMemberByIndex( CSteamID steamIDClan /*class CSteamID*/, int iUser /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetChatMemberByIndex( _ptr, steamIDClan, iUser );
else return Platform.Win64.ISteamFriends.GetChatMemberByIndex( _ptr, steamIDClan, iUser );
}
@ -86,6 +106,8 @@ public ulong GetChatMemberByIndex( CSteamID steamIDClan /*class CSteamID*/, int
// bool
public bool GetClanActivityCounts( CSteamID steamIDClan /*class CSteamID*/, out int pnOnline /*int **/, out int pnInGame /*int **/, out int pnChatting /*int **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetClanActivityCounts( _ptr, steamIDClan, out pnOnline, out pnInGame, out pnChatting );
else return Platform.Win64.ISteamFriends.GetClanActivityCounts( _ptr, steamIDClan, out pnOnline, out pnInGame, out pnChatting );
}
@ -93,6 +115,8 @@ public bool GetClanActivityCounts( CSteamID steamIDClan /*class CSteamID*/, out
// ulong
public ulong GetClanByIndex( int iClan /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetClanByIndex( _ptr, iClan );
else return Platform.Win64.ISteamFriends.GetClanByIndex( _ptr, iClan );
}
@ -100,6 +124,8 @@ public ulong GetClanByIndex( int iClan /*int*/ )
// int
public int GetClanChatMemberCount( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetClanChatMemberCount( _ptr, steamIDClan );
else return Platform.Win64.ISteamFriends.GetClanChatMemberCount( _ptr, steamIDClan );
}
@ -107,6 +133,8 @@ public int GetClanChatMemberCount( CSteamID steamIDClan /*class CSteamID*/ )
// int
public int GetClanChatMessage( CSteamID steamIDClanChat /*class CSteamID*/, int iMessage /*int*/, IntPtr prgchText /*void **/, int cchTextMax /*int*/, out ChatEntryType peChatEntryType /*EChatEntryType **/, out CSteamID psteamidChatter /*class CSteamID **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetClanChatMessage( _ptr, steamIDClanChat, iMessage, (IntPtr) prgchText, cchTextMax, out peChatEntryType, out psteamidChatter );
else return Platform.Win64.ISteamFriends.GetClanChatMessage( _ptr, steamIDClanChat, iMessage, (IntPtr) prgchText, cchTextMax, out peChatEntryType, out psteamidChatter );
}
@ -114,6 +142,8 @@ public int GetClanChatMessage( CSteamID steamIDClanChat /*class CSteamID*/, int
// int
public int GetClanCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetClanCount( _ptr );
else return Platform.Win64.ISteamFriends.GetClanCount( _ptr );
}
@ -122,6 +152,8 @@ public int GetClanCount()
// with: Detect_StringReturn
public string GetClanName( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetClanName( _ptr, steamIDClan );
else string_pointer = Platform.Win64.ISteamFriends.GetClanName( _ptr, steamIDClan );
@ -131,6 +163,8 @@ public string GetClanName( CSteamID steamIDClan /*class CSteamID*/ )
// ulong
public ulong GetClanOfficerByIndex( CSteamID steamIDClan /*class CSteamID*/, int iOfficer /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetClanOfficerByIndex( _ptr, steamIDClan, iOfficer );
else return Platform.Win64.ISteamFriends.GetClanOfficerByIndex( _ptr, steamIDClan, iOfficer );
}
@ -138,6 +172,8 @@ public ulong GetClanOfficerByIndex( CSteamID steamIDClan /*class CSteamID*/, int
// int
public int GetClanOfficerCount( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetClanOfficerCount( _ptr, steamIDClan );
else return Platform.Win64.ISteamFriends.GetClanOfficerCount( _ptr, steamIDClan );
}
@ -145,6 +181,8 @@ public int GetClanOfficerCount( CSteamID steamIDClan /*class CSteamID*/ )
// ulong
public ulong GetClanOwner( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetClanOwner( _ptr, steamIDClan );
else return Platform.Win64.ISteamFriends.GetClanOwner( _ptr, steamIDClan );
}
@ -153,6 +191,8 @@ public ulong GetClanOwner( CSteamID steamIDClan /*class CSteamID*/ )
// with: Detect_StringReturn
public string GetClanTag( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetClanTag( _ptr, steamIDClan );
else string_pointer = Platform.Win64.ISteamFriends.GetClanTag( _ptr, steamIDClan );
@ -162,6 +202,8 @@ public string GetClanTag( CSteamID steamIDClan /*class CSteamID*/ )
// ulong
public ulong GetCoplayFriend( int iCoplayFriend /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetCoplayFriend( _ptr, iCoplayFriend );
else return Platform.Win64.ISteamFriends.GetCoplayFriend( _ptr, iCoplayFriend );
}
@ -169,6 +211,8 @@ public ulong GetCoplayFriend( int iCoplayFriend /*int*/ )
// int
public int GetCoplayFriendCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetCoplayFriendCount( _ptr );
else return Platform.Win64.ISteamFriends.GetCoplayFriendCount( _ptr );
}
@ -176,6 +220,8 @@ public int GetCoplayFriendCount()
// SteamAPICall_t
public SteamAPICall_t GetFollowerCount( CSteamID steamID /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFollowerCount( _ptr, steamID );
else return Platform.Win64.ISteamFriends.GetFollowerCount( _ptr, steamID );
}
@ -183,6 +229,8 @@ public SteamAPICall_t GetFollowerCount( CSteamID steamID /*class CSteamID*/ )
// ulong
public ulong GetFriendByIndex( int iFriend /*int*/, int iFriendFlags /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendByIndex( _ptr, iFriend, iFriendFlags );
else return Platform.Win64.ISteamFriends.GetFriendByIndex( _ptr, iFriend, iFriendFlags );
}
@ -190,6 +238,8 @@ public ulong GetFriendByIndex( int iFriend /*int*/, int iFriendFlags /*int*/ )
// AppId_t
public AppId_t GetFriendCoplayGame( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendCoplayGame( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetFriendCoplayGame( _ptr, steamIDFriend );
}
@ -197,6 +247,8 @@ public AppId_t GetFriendCoplayGame( CSteamID steamIDFriend /*class CSteamID*/ )
// int
public int GetFriendCoplayTime( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendCoplayTime( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetFriendCoplayTime( _ptr, steamIDFriend );
}
@ -204,6 +256,8 @@ public int GetFriendCoplayTime( CSteamID steamIDFriend /*class CSteamID*/ )
// int
public int GetFriendCount( int iFriendFlags /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendCount( _ptr, iFriendFlags );
else return Platform.Win64.ISteamFriends.GetFriendCount( _ptr, iFriendFlags );
}
@ -211,6 +265,8 @@ public int GetFriendCount( int iFriendFlags /*int*/ )
// int
public int GetFriendCountFromSource( CSteamID steamIDSource /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendCountFromSource( _ptr, steamIDSource );
else return Platform.Win64.ISteamFriends.GetFriendCountFromSource( _ptr, steamIDSource );
}
@ -218,6 +274,8 @@ public int GetFriendCountFromSource( CSteamID steamIDSource /*class CSteamID*/ )
// ulong
public ulong GetFriendFromSourceByIndex( CSteamID steamIDSource /*class CSteamID*/, int iFriend /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendFromSourceByIndex( _ptr, steamIDSource, iFriend );
else return Platform.Win64.ISteamFriends.GetFriendFromSourceByIndex( _ptr, steamIDSource, iFriend );
}
@ -225,6 +283,8 @@ public ulong GetFriendFromSourceByIndex( CSteamID steamIDSource /*class CSteamID
// bool
public bool GetFriendGamePlayed( CSteamID steamIDFriend /*class CSteamID*/, ref FriendGameInfo_t pFriendGameInfo /*struct FriendGameInfo_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendGamePlayed( _ptr, steamIDFriend, ref pFriendGameInfo );
else return Platform.Win64.ISteamFriends.GetFriendGamePlayed( _ptr, steamIDFriend, ref pFriendGameInfo );
}
@ -232,6 +292,8 @@ public bool GetFriendGamePlayed( CSteamID steamIDFriend /*class CSteamID*/, ref
// int
public int GetFriendMessage( CSteamID steamIDFriend /*class CSteamID*/, int iMessageID /*int*/, IntPtr pvData /*void **/, int cubData /*int*/, out ChatEntryType peChatEntryType /*EChatEntryType **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendMessage( _ptr, steamIDFriend, iMessageID, (IntPtr) pvData, cubData, out peChatEntryType );
else return Platform.Win64.ISteamFriends.GetFriendMessage( _ptr, steamIDFriend, iMessageID, (IntPtr) pvData, cubData, out peChatEntryType );
}
@ -240,6 +302,8 @@ public int GetFriendMessage( CSteamID steamIDFriend /*class CSteamID*/, int iMes
// with: Detect_StringReturn
public string GetFriendPersonaName( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetFriendPersonaName( _ptr, steamIDFriend );
else string_pointer = Platform.Win64.ISteamFriends.GetFriendPersonaName( _ptr, steamIDFriend );
@ -250,6 +314,8 @@ public string GetFriendPersonaName( CSteamID steamIDFriend /*class CSteamID*/ )
// with: Detect_StringReturn
public string GetFriendPersonaNameHistory( CSteamID steamIDFriend /*class CSteamID*/, int iPersonaName /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetFriendPersonaNameHistory( _ptr, steamIDFriend, iPersonaName );
else string_pointer = Platform.Win64.ISteamFriends.GetFriendPersonaNameHistory( _ptr, steamIDFriend, iPersonaName );
@ -259,6 +325,8 @@ public string GetFriendPersonaNameHistory( CSteamID steamIDFriend /*class CSteam
// PersonaState
public PersonaState GetFriendPersonaState( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendPersonaState( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetFriendPersonaState( _ptr, steamIDFriend );
}
@ -266,6 +334,8 @@ public PersonaState GetFriendPersonaState( CSteamID steamIDFriend /*class CSteam
// FriendRelationship
public FriendRelationship GetFriendRelationship( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendRelationship( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetFriendRelationship( _ptr, steamIDFriend );
}
@ -274,6 +344,8 @@ public FriendRelationship GetFriendRelationship( CSteamID steamIDFriend /*class
// with: Detect_StringReturn
public string GetFriendRichPresence( CSteamID steamIDFriend /*class CSteamID*/, string pchKey /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetFriendRichPresence( _ptr, steamIDFriend, pchKey );
else string_pointer = Platform.Win64.ISteamFriends.GetFriendRichPresence( _ptr, steamIDFriend, pchKey );
@ -284,6 +356,8 @@ public string GetFriendRichPresence( CSteamID steamIDFriend /*class CSteamID*/,
// with: Detect_StringReturn
public string GetFriendRichPresenceKeyByIndex( CSteamID steamIDFriend /*class CSteamID*/, int iKey /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetFriendRichPresenceKeyByIndex( _ptr, steamIDFriend, iKey );
else string_pointer = Platform.Win64.ISteamFriends.GetFriendRichPresenceKeyByIndex( _ptr, steamIDFriend, iKey );
@ -293,6 +367,8 @@ public string GetFriendRichPresenceKeyByIndex( CSteamID steamIDFriend /*class CS
// int
public int GetFriendRichPresenceKeyCount( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendRichPresenceKeyCount( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetFriendRichPresenceKeyCount( _ptr, steamIDFriend );
}
@ -300,6 +376,8 @@ public int GetFriendRichPresenceKeyCount( CSteamID steamIDFriend /*class CSteamI
// int
public int GetFriendsGroupCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendsGroupCount( _ptr );
else return Platform.Win64.ISteamFriends.GetFriendsGroupCount( _ptr );
}
@ -307,6 +385,8 @@ public int GetFriendsGroupCount()
// FriendsGroupID_t
public FriendsGroupID_t GetFriendsGroupIDByIndex( int iFG /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendsGroupIDByIndex( _ptr, iFG );
else return Platform.Win64.ISteamFriends.GetFriendsGroupIDByIndex( _ptr, iFG );
}
@ -314,6 +394,8 @@ public FriendsGroupID_t GetFriendsGroupIDByIndex( int iFG /*int*/ )
// int
public int GetFriendsGroupMembersCount( FriendsGroupID_t friendsGroupID /*FriendsGroupID_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendsGroupMembersCount( _ptr, friendsGroupID );
else return Platform.Win64.ISteamFriends.GetFriendsGroupMembersCount( _ptr, friendsGroupID );
}
@ -321,6 +403,8 @@ public int GetFriendsGroupMembersCount( FriendsGroupID_t friendsGroupID /*Friend
// void
public void GetFriendsGroupMembersList( FriendsGroupID_t friendsGroupID /*FriendsGroupID_t*/, IntPtr pOutSteamIDMembers /*class CSteamID **/, int nMembersCount /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.GetFriendsGroupMembersList( _ptr, friendsGroupID, (IntPtr) pOutSteamIDMembers, nMembersCount );
else Platform.Win64.ISteamFriends.GetFriendsGroupMembersList( _ptr, friendsGroupID, (IntPtr) pOutSteamIDMembers, nMembersCount );
}
@ -329,6 +413,8 @@ public void GetFriendsGroupMembersList( FriendsGroupID_t friendsGroupID /*Friend
// with: Detect_StringReturn
public string GetFriendsGroupName( FriendsGroupID_t friendsGroupID /*FriendsGroupID_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetFriendsGroupName( _ptr, friendsGroupID );
else string_pointer = Platform.Win64.ISteamFriends.GetFriendsGroupName( _ptr, friendsGroupID );
@ -338,6 +424,8 @@ public string GetFriendsGroupName( FriendsGroupID_t friendsGroupID /*FriendsGrou
// int
public int GetFriendSteamLevel( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetFriendSteamLevel( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetFriendSteamLevel( _ptr, steamIDFriend );
}
@ -345,6 +433,8 @@ public int GetFriendSteamLevel( CSteamID steamIDFriend /*class CSteamID*/ )
// int
public int GetLargeFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetLargeFriendAvatar( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetLargeFriendAvatar( _ptr, steamIDFriend );
}
@ -352,6 +442,8 @@ public int GetLargeFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ )
// int
public int GetMediumFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetMediumFriendAvatar( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetMediumFriendAvatar( _ptr, steamIDFriend );
}
@ -360,6 +452,8 @@ public int GetMediumFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ )
// with: Detect_StringReturn
public string GetPersonaName()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetPersonaName( _ptr );
else string_pointer = Platform.Win64.ISteamFriends.GetPersonaName( _ptr );
@ -369,6 +463,8 @@ public string GetPersonaName()
// PersonaState
public PersonaState GetPersonaState()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetPersonaState( _ptr );
else return Platform.Win64.ISteamFriends.GetPersonaState( _ptr );
}
@ -377,6 +473,8 @@ public PersonaState GetPersonaState()
// with: Detect_StringReturn
public string GetPlayerNickname( CSteamID steamIDPlayer /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamFriends.GetPlayerNickname( _ptr, steamIDPlayer );
else string_pointer = Platform.Win64.ISteamFriends.GetPlayerNickname( _ptr, steamIDPlayer );
@ -386,6 +484,8 @@ public string GetPlayerNickname( CSteamID steamIDPlayer /*class CSteamID*/ )
// int
public int GetSmallFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetSmallFriendAvatar( _ptr, steamIDFriend );
else return Platform.Win64.ISteamFriends.GetSmallFriendAvatar( _ptr, steamIDFriend );
}
@ -393,6 +493,8 @@ public int GetSmallFriendAvatar( CSteamID steamIDFriend /*class CSteamID*/ )
// uint
public uint GetUserRestrictions()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.GetUserRestrictions( _ptr );
else return Platform.Win64.ISteamFriends.GetUserRestrictions( _ptr );
}
@ -400,6 +502,8 @@ public uint GetUserRestrictions()
// bool
public bool HasFriend( CSteamID steamIDFriend /*class CSteamID*/, int iFriendFlags /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.HasFriend( _ptr, steamIDFriend, iFriendFlags );
else return Platform.Win64.ISteamFriends.HasFriend( _ptr, steamIDFriend, iFriendFlags );
}
@ -407,6 +511,8 @@ public bool HasFriend( CSteamID steamIDFriend /*class CSteamID*/, int iFriendFla
// bool
public bool InviteUserToGame( CSteamID steamIDFriend /*class CSteamID*/, string pchConnectString /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.InviteUserToGame( _ptr, steamIDFriend, pchConnectString );
else return Platform.Win64.ISteamFriends.InviteUserToGame( _ptr, steamIDFriend, pchConnectString );
}
@ -414,6 +520,8 @@ public bool InviteUserToGame( CSteamID steamIDFriend /*class CSteamID*/, string
// bool
public bool IsClanChatAdmin( CSteamID steamIDClanChat /*class CSteamID*/, CSteamID steamIDUser /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.IsClanChatAdmin( _ptr, steamIDClanChat, steamIDUser );
else return Platform.Win64.ISteamFriends.IsClanChatAdmin( _ptr, steamIDClanChat, steamIDUser );
}
@ -421,6 +529,8 @@ public bool IsClanChatAdmin( CSteamID steamIDClanChat /*class CSteamID*/, CSteam
// bool
public bool IsClanChatWindowOpenInSteam( CSteamID steamIDClanChat /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.IsClanChatWindowOpenInSteam( _ptr, steamIDClanChat );
else return Platform.Win64.ISteamFriends.IsClanChatWindowOpenInSteam( _ptr, steamIDClanChat );
}
@ -428,6 +538,8 @@ public bool IsClanChatWindowOpenInSteam( CSteamID steamIDClanChat /*class CSteam
// SteamAPICall_t
public SteamAPICall_t IsFollowing( CSteamID steamID /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.IsFollowing( _ptr, steamID );
else return Platform.Win64.ISteamFriends.IsFollowing( _ptr, steamID );
}
@ -435,6 +547,8 @@ public SteamAPICall_t IsFollowing( CSteamID steamID /*class CSteamID*/ )
// bool
public bool IsUserInSource( CSteamID steamIDUser /*class CSteamID*/, CSteamID steamIDSource /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.IsUserInSource( _ptr, steamIDUser, steamIDSource );
else return Platform.Win64.ISteamFriends.IsUserInSource( _ptr, steamIDUser, steamIDSource );
}
@ -442,6 +556,8 @@ public bool IsUserInSource( CSteamID steamIDUser /*class CSteamID*/, CSteamID st
// SteamAPICall_t
public SteamAPICall_t JoinClanChatRoom( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.JoinClanChatRoom( _ptr, steamIDClan );
else return Platform.Win64.ISteamFriends.JoinClanChatRoom( _ptr, steamIDClan );
}
@ -449,6 +565,8 @@ public SteamAPICall_t JoinClanChatRoom( CSteamID steamIDClan /*class CSteamID*/
// bool
public bool LeaveClanChatRoom( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.LeaveClanChatRoom( _ptr, steamIDClan );
else return Platform.Win64.ISteamFriends.LeaveClanChatRoom( _ptr, steamIDClan );
}
@ -456,6 +574,8 @@ public bool LeaveClanChatRoom( CSteamID steamIDClan /*class CSteamID*/ )
// bool
public bool OpenClanChatWindowInSteam( CSteamID steamIDClanChat /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.OpenClanChatWindowInSteam( _ptr, steamIDClanChat );
else return Platform.Win64.ISteamFriends.OpenClanChatWindowInSteam( _ptr, steamIDClanChat );
}
@ -463,6 +583,8 @@ public bool OpenClanChatWindowInSteam( CSteamID steamIDClanChat /*class CSteamID
// bool
public bool ReplyToFriendMessage( CSteamID steamIDFriend /*class CSteamID*/, string pchMsgToSend /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.ReplyToFriendMessage( _ptr, steamIDFriend, pchMsgToSend );
else return Platform.Win64.ISteamFriends.ReplyToFriendMessage( _ptr, steamIDFriend, pchMsgToSend );
}
@ -470,6 +592,8 @@ public bool ReplyToFriendMessage( CSteamID steamIDFriend /*class CSteamID*/, str
// SteamAPICall_t
public SteamAPICall_t RequestClanOfficerList( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.RequestClanOfficerList( _ptr, steamIDClan );
else return Platform.Win64.ISteamFriends.RequestClanOfficerList( _ptr, steamIDClan );
}
@ -477,6 +601,8 @@ public SteamAPICall_t RequestClanOfficerList( CSteamID steamIDClan /*class CStea
// void
public void RequestFriendRichPresence( CSteamID steamIDFriend /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.RequestFriendRichPresence( _ptr, steamIDFriend );
else Platform.Win64.ISteamFriends.RequestFriendRichPresence( _ptr, steamIDFriend );
}
@ -484,6 +610,8 @@ public void RequestFriendRichPresence( CSteamID steamIDFriend /*class CSteamID*/
// bool
public bool RequestUserInformation( CSteamID steamIDUser /*class CSteamID*/, bool bRequireNameOnly /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.RequestUserInformation( _ptr, steamIDUser, bRequireNameOnly );
else return Platform.Win64.ISteamFriends.RequestUserInformation( _ptr, steamIDUser, bRequireNameOnly );
}
@ -491,6 +619,8 @@ public bool RequestUserInformation( CSteamID steamIDUser /*class CSteamID*/, boo
// bool
public bool SendClanChatMessage( CSteamID steamIDClanChat /*class CSteamID*/, string pchText /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.SendClanChatMessage( _ptr, steamIDClanChat, pchText );
else return Platform.Win64.ISteamFriends.SendClanChatMessage( _ptr, steamIDClanChat, pchText );
}
@ -498,6 +628,8 @@ public bool SendClanChatMessage( CSteamID steamIDClanChat /*class CSteamID*/, st
// void
public void SetInGameVoiceSpeaking( CSteamID steamIDUser /*class CSteamID*/, bool bSpeaking /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.SetInGameVoiceSpeaking( _ptr, steamIDUser, bSpeaking );
else Platform.Win64.ISteamFriends.SetInGameVoiceSpeaking( _ptr, steamIDUser, bSpeaking );
}
@ -505,6 +637,8 @@ public void SetInGameVoiceSpeaking( CSteamID steamIDUser /*class CSteamID*/, boo
// bool
public bool SetListenForFriendsMessages( bool bInterceptEnabled /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.SetListenForFriendsMessages( _ptr, bInterceptEnabled );
else return Platform.Win64.ISteamFriends.SetListenForFriendsMessages( _ptr, bInterceptEnabled );
}
@ -512,6 +646,8 @@ public bool SetListenForFriendsMessages( bool bInterceptEnabled /*bool*/ )
// SteamAPICall_t
public SteamAPICall_t SetPersonaName( string pchPersonaName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.SetPersonaName( _ptr, pchPersonaName );
else return Platform.Win64.ISteamFriends.SetPersonaName( _ptr, pchPersonaName );
}
@ -519,6 +655,8 @@ public SteamAPICall_t SetPersonaName( string pchPersonaName /*const char **/ )
// void
public void SetPlayedWith( CSteamID steamIDUserPlayedWith /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamFriends.SetPlayedWith( _ptr, steamIDUserPlayedWith );
else Platform.Win64.ISteamFriends.SetPlayedWith( _ptr, steamIDUserPlayedWith );
}
@ -526,6 +664,8 @@ public void SetPlayedWith( CSteamID steamIDUserPlayedWith /*class CSteamID*/ )
// bool
public bool SetRichPresence( string pchKey /*const char **/, string pchValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamFriends.SetRichPresence( _ptr, pchKey, pchValue );
else return Platform.Win64.ISteamFriends.SetRichPresence( _ptr, pchKey, pchValue );
}

View File

@ -16,6 +16,8 @@ public SteamGameServer( IntPtr pointer )
// SteamAPICall_t
public SteamAPICall_t AssociateWithClan( CSteamID steamIDClan /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.AssociateWithClan( _ptr, steamIDClan );
else return Platform.Win64.ISteamGameServer.AssociateWithClan( _ptr, steamIDClan );
}
@ -23,6 +25,8 @@ public SteamAPICall_t AssociateWithClan( CSteamID steamIDClan /*class CSteamID*/
// BeginAuthSessionResult
public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket /*const void **/, int cbAuthTicket /*int*/, CSteamID steamID /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.BeginAuthSession( _ptr, (IntPtr) pAuthTicket, cbAuthTicket, steamID );
else return Platform.Win64.ISteamGameServer.BeginAuthSession( _ptr, (IntPtr) pAuthTicket, cbAuthTicket, steamID );
}
@ -30,6 +34,8 @@ public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket /*const void
// bool
public bool BLoggedOn()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.BLoggedOn( _ptr );
else return Platform.Win64.ISteamGameServer.BLoggedOn( _ptr );
}
@ -37,6 +43,8 @@ public bool BLoggedOn()
// bool
public bool BSecure()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.BSecure( _ptr );
else return Platform.Win64.ISteamGameServer.BSecure( _ptr );
}
@ -44,6 +52,8 @@ public bool BSecure()
// bool
public bool BUpdateUserData( CSteamID steamIDUser /*class CSteamID*/, string pchPlayerName /*const char **/, uint uScore /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.BUpdateUserData( _ptr, steamIDUser, pchPlayerName, uScore );
else return Platform.Win64.ISteamGameServer.BUpdateUserData( _ptr, steamIDUser, pchPlayerName, uScore );
}
@ -51,6 +61,8 @@ public bool BUpdateUserData( CSteamID steamIDUser /*class CSteamID*/, string pch
// void
public void CancelAuthTicket( HAuthTicket hAuthTicket /*HAuthTicket*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.CancelAuthTicket( _ptr, hAuthTicket );
else Platform.Win64.ISteamGameServer.CancelAuthTicket( _ptr, hAuthTicket );
}
@ -58,6 +70,8 @@ public void CancelAuthTicket( HAuthTicket hAuthTicket /*HAuthTicket*/ )
// void
public void ClearAllKeyValues()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.ClearAllKeyValues( _ptr );
else Platform.Win64.ISteamGameServer.ClearAllKeyValues( _ptr );
}
@ -65,6 +79,8 @@ public void ClearAllKeyValues()
// SteamAPICall_t
public SteamAPICall_t ComputeNewPlayerCompatibility( CSteamID steamIDNewPlayer /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.ComputeNewPlayerCompatibility( _ptr, steamIDNewPlayer );
else return Platform.Win64.ISteamGameServer.ComputeNewPlayerCompatibility( _ptr, steamIDNewPlayer );
}
@ -72,6 +88,8 @@ public SteamAPICall_t ComputeNewPlayerCompatibility( CSteamID steamIDNewPlayer /
// ulong
public ulong CreateUnauthenticatedUserConnection()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.CreateUnauthenticatedUserConnection( _ptr );
else return Platform.Win64.ISteamGameServer.CreateUnauthenticatedUserConnection( _ptr );
}
@ -79,6 +97,8 @@ public ulong CreateUnauthenticatedUserConnection()
// void
public void EnableHeartbeats( bool bActive /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.EnableHeartbeats( _ptr, bActive );
else Platform.Win64.ISteamGameServer.EnableHeartbeats( _ptr, bActive );
}
@ -86,6 +106,8 @@ public void EnableHeartbeats( bool bActive /*bool*/ )
// void
public void EndAuthSession( CSteamID steamID /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.EndAuthSession( _ptr, steamID );
else Platform.Win64.ISteamGameServer.EndAuthSession( _ptr, steamID );
}
@ -93,6 +115,8 @@ public void EndAuthSession( CSteamID steamID /*class CSteamID*/ )
// void
public void ForceHeartbeat()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.ForceHeartbeat( _ptr );
else Platform.Win64.ISteamGameServer.ForceHeartbeat( _ptr );
}
@ -100,6 +124,8 @@ public void ForceHeartbeat()
// HAuthTicket
public HAuthTicket GetAuthSessionTicket( IntPtr pTicket /*void **/, int cbMaxTicket /*int*/, out uint pcbTicket /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.GetAuthSessionTicket( _ptr, (IntPtr) pTicket, cbMaxTicket, out pcbTicket );
else return Platform.Win64.ISteamGameServer.GetAuthSessionTicket( _ptr, (IntPtr) pTicket, cbMaxTicket, out pcbTicket );
}
@ -107,6 +133,8 @@ public HAuthTicket GetAuthSessionTicket( IntPtr pTicket /*void **/, int cbMaxTic
// void
public void GetGameplayStats()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.GetGameplayStats( _ptr );
else Platform.Win64.ISteamGameServer.GetGameplayStats( _ptr );
}
@ -114,6 +142,8 @@ public void GetGameplayStats()
// int
public int GetNextOutgoingPacket( IntPtr pOut /*void **/, int cbMaxOut /*int*/, out uint pNetAdr /*uint32 **/, out ushort pPort /*uint16 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.GetNextOutgoingPacket( _ptr, (IntPtr) pOut, cbMaxOut, out pNetAdr, out pPort );
else return Platform.Win64.ISteamGameServer.GetNextOutgoingPacket( _ptr, (IntPtr) pOut, cbMaxOut, out pNetAdr, out pPort );
}
@ -121,6 +151,8 @@ public int GetNextOutgoingPacket( IntPtr pOut /*void **/, int cbMaxOut /*int*/,
// uint
public uint GetPublicIP()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.GetPublicIP( _ptr );
else return Platform.Win64.ISteamGameServer.GetPublicIP( _ptr );
}
@ -128,6 +160,8 @@ public uint GetPublicIP()
// SteamAPICall_t
public SteamAPICall_t GetServerReputation()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.GetServerReputation( _ptr );
else return Platform.Win64.ISteamGameServer.GetServerReputation( _ptr );
}
@ -135,6 +169,8 @@ public SteamAPICall_t GetServerReputation()
// ulong
public ulong GetSteamID()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.GetSteamID( _ptr );
else return Platform.Win64.ISteamGameServer.GetSteamID( _ptr );
}
@ -142,6 +178,8 @@ public ulong GetSteamID()
// bool
public bool HandleIncomingPacket( IntPtr pData /*const void **/, int cbData /*int*/, uint srcIP /*uint32*/, ushort srcPort /*uint16*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.HandleIncomingPacket( _ptr, (IntPtr) pData, cbData, srcIP, srcPort );
else return Platform.Win64.ISteamGameServer.HandleIncomingPacket( _ptr, (IntPtr) pData, cbData, srcIP, srcPort );
}
@ -149,6 +187,8 @@ public bool HandleIncomingPacket( IntPtr pData /*const void **/, int cbData /*in
// bool
public bool InitGameServer( uint unIP /*uint32*/, ushort usGamePort /*uint16*/, ushort usQueryPort /*uint16*/, uint unFlags /*uint32*/, AppId_t nGameAppId /*AppId_t*/, string pchVersionString /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.InitGameServer( _ptr, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString );
else return Platform.Win64.ISteamGameServer.InitGameServer( _ptr, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString );
}
@ -156,6 +196,8 @@ public bool InitGameServer( uint unIP /*uint32*/, ushort usGamePort /*uint16*/,
// void
public void LogOff()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.LogOff( _ptr );
else Platform.Win64.ISteamGameServer.LogOff( _ptr );
}
@ -163,6 +205,8 @@ public void LogOff()
// void
public void LogOn( string pszToken /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.LogOn( _ptr, pszToken );
else Platform.Win64.ISteamGameServer.LogOn( _ptr, pszToken );
}
@ -170,6 +214,8 @@ public void LogOn( string pszToken /*const char **/ )
// void
public void LogOnAnonymous()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.LogOnAnonymous( _ptr );
else Platform.Win64.ISteamGameServer.LogOnAnonymous( _ptr );
}
@ -177,6 +223,8 @@ public void LogOnAnonymous()
// bool
public bool RequestUserGroupStatus( CSteamID steamIDUser /*class CSteamID*/, CSteamID steamIDGroup /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.RequestUserGroupStatus( _ptr, steamIDUser, steamIDGroup );
else return Platform.Win64.ISteamGameServer.RequestUserGroupStatus( _ptr, steamIDUser, steamIDGroup );
}
@ -184,6 +232,8 @@ public bool RequestUserGroupStatus( CSteamID steamIDUser /*class CSteamID*/, CSt
// bool
public bool SendUserConnectAndAuthenticate( uint unIPClient /*uint32*/, IntPtr pvAuthBlob /*const void **/, uint cubAuthBlobSize /*uint32*/, out CSteamID pSteamIDUser /*class CSteamID **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.SendUserConnectAndAuthenticate( _ptr, unIPClient, (IntPtr) pvAuthBlob, cubAuthBlobSize, out pSteamIDUser );
else return Platform.Win64.ISteamGameServer.SendUserConnectAndAuthenticate( _ptr, unIPClient, (IntPtr) pvAuthBlob, cubAuthBlobSize, out pSteamIDUser );
}
@ -191,6 +241,8 @@ public bool SendUserConnectAndAuthenticate( uint unIPClient /*uint32*/, IntPtr p
// void
public void SendUserDisconnect( CSteamID steamIDUser /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SendUserDisconnect( _ptr, steamIDUser );
else Platform.Win64.ISteamGameServer.SendUserDisconnect( _ptr, steamIDUser );
}
@ -198,6 +250,8 @@ public void SendUserDisconnect( CSteamID steamIDUser /*class CSteamID*/ )
// void
public void SetBotPlayerCount( int cBotplayers /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetBotPlayerCount( _ptr, cBotplayers );
else Platform.Win64.ISteamGameServer.SetBotPlayerCount( _ptr, cBotplayers );
}
@ -205,6 +259,8 @@ public void SetBotPlayerCount( int cBotplayers /*int*/ )
// void
public void SetDedicatedServer( bool bDedicated /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetDedicatedServer( _ptr, bDedicated );
else Platform.Win64.ISteamGameServer.SetDedicatedServer( _ptr, bDedicated );
}
@ -212,6 +268,8 @@ public void SetDedicatedServer( bool bDedicated /*bool*/ )
// void
public void SetGameData( string pchGameData /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetGameData( _ptr, pchGameData );
else Platform.Win64.ISteamGameServer.SetGameData( _ptr, pchGameData );
}
@ -219,6 +277,8 @@ public void SetGameData( string pchGameData /*const char **/ )
// void
public void SetGameDescription( string pszGameDescription /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetGameDescription( _ptr, pszGameDescription );
else Platform.Win64.ISteamGameServer.SetGameDescription( _ptr, pszGameDescription );
}
@ -226,6 +286,8 @@ public void SetGameDescription( string pszGameDescription /*const char **/ )
// void
public void SetGameTags( string pchGameTags /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetGameTags( _ptr, pchGameTags );
else Platform.Win64.ISteamGameServer.SetGameTags( _ptr, pchGameTags );
}
@ -233,6 +295,8 @@ public void SetGameTags( string pchGameTags /*const char **/ )
// void
public void SetHeartbeatInterval( int iHeartbeatInterval /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetHeartbeatInterval( _ptr, iHeartbeatInterval );
else Platform.Win64.ISteamGameServer.SetHeartbeatInterval( _ptr, iHeartbeatInterval );
}
@ -240,6 +304,8 @@ public void SetHeartbeatInterval( int iHeartbeatInterval /*int*/ )
// void
public void SetKeyValue( string pKey /*const char **/, string pValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetKeyValue( _ptr, pKey, pValue );
else Platform.Win64.ISteamGameServer.SetKeyValue( _ptr, pKey, pValue );
}
@ -247,6 +313,8 @@ public void SetKeyValue( string pKey /*const char **/, string pValue /*const cha
// void
public void SetMapName( string pszMapName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetMapName( _ptr, pszMapName );
else Platform.Win64.ISteamGameServer.SetMapName( _ptr, pszMapName );
}
@ -254,6 +322,8 @@ public void SetMapName( string pszMapName /*const char **/ )
// void
public void SetMaxPlayerCount( int cPlayersMax /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetMaxPlayerCount( _ptr, cPlayersMax );
else Platform.Win64.ISteamGameServer.SetMaxPlayerCount( _ptr, cPlayersMax );
}
@ -261,6 +331,8 @@ public void SetMaxPlayerCount( int cPlayersMax /*int*/ )
// void
public void SetModDir( string pszModDir /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetModDir( _ptr, pszModDir );
else Platform.Win64.ISteamGameServer.SetModDir( _ptr, pszModDir );
}
@ -268,6 +340,8 @@ public void SetModDir( string pszModDir /*const char **/ )
// void
public void SetPasswordProtected( bool bPasswordProtected /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetPasswordProtected( _ptr, bPasswordProtected );
else Platform.Win64.ISteamGameServer.SetPasswordProtected( _ptr, bPasswordProtected );
}
@ -275,6 +349,8 @@ public void SetPasswordProtected( bool bPasswordProtected /*bool*/ )
// void
public void SetProduct( string pszProduct /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetProduct( _ptr, pszProduct );
else Platform.Win64.ISteamGameServer.SetProduct( _ptr, pszProduct );
}
@ -282,6 +358,8 @@ public void SetProduct( string pszProduct /*const char **/ )
// void
public void SetRegion( string pszRegion /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetRegion( _ptr, pszRegion );
else Platform.Win64.ISteamGameServer.SetRegion( _ptr, pszRegion );
}
@ -289,6 +367,8 @@ public void SetRegion( string pszRegion /*const char **/ )
// void
public void SetServerName( string pszServerName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetServerName( _ptr, pszServerName );
else Platform.Win64.ISteamGameServer.SetServerName( _ptr, pszServerName );
}
@ -296,6 +376,8 @@ public void SetServerName( string pszServerName /*const char **/ )
// void
public void SetSpectatorPort( ushort unSpectatorPort /*uint16*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetSpectatorPort( _ptr, unSpectatorPort );
else Platform.Win64.ISteamGameServer.SetSpectatorPort( _ptr, unSpectatorPort );
}
@ -303,6 +385,8 @@ public void SetSpectatorPort( ushort unSpectatorPort /*uint16*/ )
// void
public void SetSpectatorServerName( string pszSpectatorServerName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamGameServer.SetSpectatorServerName( _ptr, pszSpectatorServerName );
else Platform.Win64.ISteamGameServer.SetSpectatorServerName( _ptr, pszSpectatorServerName );
}
@ -310,6 +394,8 @@ public void SetSpectatorServerName( string pszSpectatorServerName /*const char *
// UserHasLicenseForAppResult
public UserHasLicenseForAppResult UserHasLicenseForApp( CSteamID steamID /*class CSteamID*/, AppId_t appID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.UserHasLicenseForApp( _ptr, steamID, appID );
else return Platform.Win64.ISteamGameServer.UserHasLicenseForApp( _ptr, steamID, appID );
}
@ -317,6 +403,8 @@ public UserHasLicenseForAppResult UserHasLicenseForApp( CSteamID steamID /*class
// bool
public bool WasRestartRequested()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServer.WasRestartRequested( _ptr );
else return Platform.Win64.ISteamGameServer.WasRestartRequested( _ptr );
}

View File

@ -16,6 +16,8 @@ public SteamGameServerStats( IntPtr pointer )
// bool
public bool ClearUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.ClearUserAchievement( _ptr, steamIDUser, pchName );
else return Platform.Win64.ISteamGameServerStats.ClearUserAchievement( _ptr, steamIDUser, pchName );
}
@ -23,6 +25,8 @@ public bool ClearUserAchievement( CSteamID steamIDUser /*class CSteamID*/, strin
// bool
public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out bool pbAchieved /*bool **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.GetUserAchievement( _ptr, steamIDUser, pchName, out pbAchieved );
else return Platform.Win64.ISteamGameServerStats.GetUserAchievement( _ptr, steamIDUser, pchName, out pbAchieved );
}
@ -30,6 +34,8 @@ public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string
// bool
public bool GetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out int pData /*int32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.GetUserStat( _ptr, steamIDUser, pchName, out pData );
else return Platform.Win64.ISteamGameServerStats.GetUserStat( _ptr, steamIDUser, pchName, out pData );
}
@ -37,6 +43,8 @@ public bool GetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName
// bool
public bool GetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out float pData /*float **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.GetUserStat0( _ptr, steamIDUser, pchName, out pData );
else return Platform.Win64.ISteamGameServerStats.GetUserStat0( _ptr, steamIDUser, pchName, out pData );
}
@ -44,6 +52,8 @@ public bool GetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchNam
// SteamAPICall_t
public SteamAPICall_t RequestUserStats( CSteamID steamIDUser /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.RequestUserStats( _ptr, steamIDUser );
else return Platform.Win64.ISteamGameServerStats.RequestUserStats( _ptr, steamIDUser );
}
@ -51,6 +61,8 @@ public SteamAPICall_t RequestUserStats( CSteamID steamIDUser /*class CSteamID*/
// bool
public bool SetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.SetUserAchievement( _ptr, steamIDUser, pchName );
else return Platform.Win64.ISteamGameServerStats.SetUserAchievement( _ptr, steamIDUser, pchName );
}
@ -58,6 +70,8 @@ public bool SetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string
// bool
public bool SetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, int nData /*int32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.SetUserStat( _ptr, steamIDUser, pchName, nData );
else return Platform.Win64.ISteamGameServerStats.SetUserStat( _ptr, steamIDUser, pchName, nData );
}
@ -65,6 +79,8 @@ public bool SetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName
// bool
public bool SetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, float fData /*float*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.SetUserStat0( _ptr, steamIDUser, pchName, fData );
else return Platform.Win64.ISteamGameServerStats.SetUserStat0( _ptr, steamIDUser, pchName, fData );
}
@ -72,6 +88,8 @@ public bool SetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchNam
// SteamAPICall_t
public SteamAPICall_t StoreUserStats( CSteamID steamIDUser /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.StoreUserStats( _ptr, steamIDUser );
else return Platform.Win64.ISteamGameServerStats.StoreUserStats( _ptr, steamIDUser );
}
@ -79,6 +97,8 @@ public SteamAPICall_t StoreUserStats( CSteamID steamIDUser /*class CSteamID*/ )
// bool
public bool UpdateUserAvgRateStat( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, float flCountThisSession /*float*/, double dSessionLength /*double*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamGameServerStats.UpdateUserAvgRateStat( _ptr, steamIDUser, pchName, flCountThisSession, dSessionLength );
else return Platform.Win64.ISteamGameServerStats.UpdateUserAvgRateStat( _ptr, steamIDUser, pchName, flCountThisSession, dSessionLength );
}

View File

@ -16,6 +16,8 @@ public SteamHTMLSurface( IntPtr pointer )
// void
public void AddHeader( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchKey /*const char **/, string pchValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.AddHeader( _ptr, unBrowserHandle, pchKey, pchValue );
else Platform.Win64.ISteamHTMLSurface.AddHeader( _ptr, unBrowserHandle, pchKey, pchValue );
}
@ -23,6 +25,8 @@ public void AddHeader( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pch
// void
public void AllowStartRequest( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bAllowed /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.AllowStartRequest( _ptr, unBrowserHandle, bAllowed );
else Platform.Win64.ISteamHTMLSurface.AllowStartRequest( _ptr, unBrowserHandle, bAllowed );
}
@ -30,6 +34,8 @@ public void AllowStartRequest( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bo
// void
public void CopyToClipboard( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.CopyToClipboard( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.CopyToClipboard( _ptr, unBrowserHandle );
}
@ -37,6 +43,8 @@ public void CopyToClipboard( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
// SteamAPICall_t
public SteamAPICall_t CreateBrowser( string pchUserAgent /*const char **/, string pchUserCSS /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTMLSurface.CreateBrowser( _ptr, pchUserAgent, pchUserCSS );
else return Platform.Win64.ISteamHTMLSurface.CreateBrowser( _ptr, pchUserAgent, pchUserCSS );
}
@ -44,6 +52,8 @@ public SteamAPICall_t CreateBrowser( string pchUserAgent /*const char **/, strin
// void
public void DestructISteamHTMLSurface()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.DestructISteamHTMLSurface( _ptr );
else Platform.Win64.ISteamHTMLSurface.DestructISteamHTMLSurface( _ptr );
}
@ -51,6 +61,8 @@ public void DestructISteamHTMLSurface()
// void
public void ExecuteJavascript( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchScript /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.ExecuteJavascript( _ptr, unBrowserHandle, pchScript );
else Platform.Win64.ISteamHTMLSurface.ExecuteJavascript( _ptr, unBrowserHandle, pchScript );
}
@ -58,6 +70,8 @@ public void ExecuteJavascript( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, st
// void
public void Find( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchSearchStr /*const char **/, bool bCurrentlyInFind /*bool*/, bool bReverse /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.Find( _ptr, unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse );
else Platform.Win64.ISteamHTMLSurface.Find( _ptr, unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse );
}
@ -65,6 +79,8 @@ public void Find( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchSearc
// void
public void GetLinkAtPosition( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, int x /*int*/, int y /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.GetLinkAtPosition( _ptr, unBrowserHandle, x, y );
else Platform.Win64.ISteamHTMLSurface.GetLinkAtPosition( _ptr, unBrowserHandle, x, y );
}
@ -72,6 +88,8 @@ public void GetLinkAtPosition( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, in
// void
public void GoBack( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.GoBack( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.GoBack( _ptr, unBrowserHandle );
}
@ -79,6 +97,8 @@ public void GoBack( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
// void
public void GoForward( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.GoForward( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.GoForward( _ptr, unBrowserHandle );
}
@ -86,6 +106,8 @@ public void GoForward( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
// bool
public bool Init()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTMLSurface.Init( _ptr );
else return Platform.Win64.ISteamHTMLSurface.Init( _ptr );
}
@ -93,6 +115,8 @@ public bool Init()
// void
public void JSDialogResponse( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bResult /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.JSDialogResponse( _ptr, unBrowserHandle, bResult );
else Platform.Win64.ISteamHTMLSurface.JSDialogResponse( _ptr, unBrowserHandle, bResult );
}
@ -100,6 +124,8 @@ public void JSDialogResponse( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, boo
// void
public void KeyChar( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint cUnicodeChar /*uint32*/, HTMLKeyModifiers eHTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.KeyChar( _ptr, unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers );
else Platform.Win64.ISteamHTMLSurface.KeyChar( _ptr, unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers );
}
@ -107,6 +133,8 @@ public void KeyChar( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint cUnicod
// void
public void KeyDown( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nNativeKeyCode /*uint32*/, HTMLKeyModifiers eHTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.KeyDown( _ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers );
else Platform.Win64.ISteamHTMLSurface.KeyDown( _ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers );
}
@ -114,6 +142,8 @@ public void KeyDown( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nNative
// void
public void KeyUp( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nNativeKeyCode /*uint32*/, HTMLKeyModifiers eHTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.KeyUp( _ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers );
else Platform.Win64.ISteamHTMLSurface.KeyUp( _ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers );
}
@ -121,6 +151,8 @@ public void KeyUp( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nNativeKe
// void
public void LoadURL( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchURL /*const char **/, string pchPostData /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.LoadURL( _ptr, unBrowserHandle, pchURL, pchPostData );
else Platform.Win64.ISteamHTMLSurface.LoadURL( _ptr, unBrowserHandle, pchURL, pchPostData );
}
@ -128,6 +160,8 @@ public void LoadURL( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, string pchUR
// void
public void MouseDoubleClick( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTMLMouseButton eMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.MouseDoubleClick( _ptr, unBrowserHandle, eMouseButton );
else Platform.Win64.ISteamHTMLSurface.MouseDoubleClick( _ptr, unBrowserHandle, eMouseButton );
}
@ -135,6 +169,8 @@ public void MouseDoubleClick( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTM
// void
public void MouseDown( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTMLMouseButton eMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.MouseDown( _ptr, unBrowserHandle, eMouseButton );
else Platform.Win64.ISteamHTMLSurface.MouseDown( _ptr, unBrowserHandle, eMouseButton );
}
@ -142,6 +178,8 @@ public void MouseDown( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTMLMouseB
// void
public void MouseMove( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, int x /*int*/, int y /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.MouseMove( _ptr, unBrowserHandle, x, y );
else Platform.Win64.ISteamHTMLSurface.MouseMove( _ptr, unBrowserHandle, x, y );
}
@ -149,6 +187,8 @@ public void MouseMove( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, int x /*in
// void
public void MouseUp( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTMLMouseButton eMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.MouseUp( _ptr, unBrowserHandle, eMouseButton );
else Platform.Win64.ISteamHTMLSurface.MouseUp( _ptr, unBrowserHandle, eMouseButton );
}
@ -156,6 +196,8 @@ public void MouseUp( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, HTMLMouseBut
// void
public void MouseWheel( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, int nDelta /*int32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.MouseWheel( _ptr, unBrowserHandle, nDelta );
else Platform.Win64.ISteamHTMLSurface.MouseWheel( _ptr, unBrowserHandle, nDelta );
}
@ -163,6 +205,8 @@ public void MouseWheel( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, int nDelt
// void
public void PasteFromClipboard( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.PasteFromClipboard( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.PasteFromClipboard( _ptr, unBrowserHandle );
}
@ -170,6 +214,8 @@ public void PasteFromClipboard( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
// void
public void Reload( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.Reload( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.Reload( _ptr, unBrowserHandle );
}
@ -177,6 +223,8 @@ public void Reload( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
// void
public void RemoveBrowser( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.RemoveBrowser( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.RemoveBrowser( _ptr, unBrowserHandle );
}
@ -184,6 +232,8 @@ public void RemoveBrowser( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
// void
public void SetBackgroundMode( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bBackgroundMode /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.SetBackgroundMode( _ptr, unBrowserHandle, bBackgroundMode );
else Platform.Win64.ISteamHTMLSurface.SetBackgroundMode( _ptr, unBrowserHandle, bBackgroundMode );
}
@ -191,6 +241,8 @@ public void SetBackgroundMode( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bo
// void
public void SetCookie( string pchHostname /*const char **/, string pchKey /*const char **/, string pchValue /*const char **/, string pchPath /*const char **/, RTime32 nExpires /*RTime32*/, bool bSecure /*bool*/, bool bHTTPOnly /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.SetCookie( _ptr, pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly );
else Platform.Win64.ISteamHTMLSurface.SetCookie( _ptr, pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly );
}
@ -198,6 +250,8 @@ public void SetCookie( string pchHostname /*const char **/, string pchKey /*cons
// void
public void SetHorizontalScroll( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nAbsolutePixelScroll /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.SetHorizontalScroll( _ptr, unBrowserHandle, nAbsolutePixelScroll );
else Platform.Win64.ISteamHTMLSurface.SetHorizontalScroll( _ptr, unBrowserHandle, nAbsolutePixelScroll );
}
@ -205,6 +259,8 @@ public void SetHorizontalScroll( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/,
// void
public void SetKeyFocus( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bHasKeyFocus /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.SetKeyFocus( _ptr, unBrowserHandle, bHasKeyFocus );
else Platform.Win64.ISteamHTMLSurface.SetKeyFocus( _ptr, unBrowserHandle, bHasKeyFocus );
}
@ -212,6 +268,8 @@ public void SetKeyFocus( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, bool bHa
// void
public void SetPageScaleFactor( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, float flZoom /*float*/, int nPointX /*int*/, int nPointY /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.SetPageScaleFactor( _ptr, unBrowserHandle, flZoom, nPointX, nPointY );
else Platform.Win64.ISteamHTMLSurface.SetPageScaleFactor( _ptr, unBrowserHandle, flZoom, nPointX, nPointY );
}
@ -219,6 +277,8 @@ public void SetPageScaleFactor( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, f
// void
public void SetSize( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint unWidth /*uint32*/, uint unHeight /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.SetSize( _ptr, unBrowserHandle, unWidth, unHeight );
else Platform.Win64.ISteamHTMLSurface.SetSize( _ptr, unBrowserHandle, unWidth, unHeight );
}
@ -226,6 +286,8 @@ public void SetSize( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint unWidth
// void
public void SetVerticalScroll( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, uint nAbsolutePixelScroll /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.SetVerticalScroll( _ptr, unBrowserHandle, nAbsolutePixelScroll );
else Platform.Win64.ISteamHTMLSurface.SetVerticalScroll( _ptr, unBrowserHandle, nAbsolutePixelScroll );
}
@ -233,6 +295,8 @@ public void SetVerticalScroll( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/, ui
// bool
public bool Shutdown()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTMLSurface.Shutdown( _ptr );
else return Platform.Win64.ISteamHTMLSurface.Shutdown( _ptr );
}
@ -240,6 +304,8 @@ public bool Shutdown()
// void
public void StopFind( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.StopFind( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.StopFind( _ptr, unBrowserHandle );
}
@ -247,6 +313,8 @@ public void StopFind( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
// void
public void StopLoad( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.StopLoad( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.StopLoad( _ptr, unBrowserHandle );
}
@ -254,6 +322,8 @@ public void StopLoad( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
// void
public void ViewSource( HHTMLBrowser unBrowserHandle /*HHTMLBrowser*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamHTMLSurface.ViewSource( _ptr, unBrowserHandle );
else Platform.Win64.ISteamHTMLSurface.ViewSource( _ptr, unBrowserHandle );
}

View File

@ -16,6 +16,8 @@ public SteamHTTP( IntPtr pointer )
// HTTPCookieContainerHandle
public HTTPCookieContainerHandle CreateCookieContainer( bool bAllowResponsesToModify /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.CreateCookieContainer( _ptr, bAllowResponsesToModify );
else return Platform.Win64.ISteamHTTP.CreateCookieContainer( _ptr, bAllowResponsesToModify );
}
@ -23,6 +25,8 @@ public HTTPCookieContainerHandle CreateCookieContainer( bool bAllowResponsesToMo
// HTTPRequestHandle
public HTTPRequestHandle CreateHTTPRequest( HTTPMethod eHTTPRequestMethod /*EHTTPMethod*/, string pchAbsoluteURL /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.CreateHTTPRequest( _ptr, eHTTPRequestMethod, pchAbsoluteURL );
else return Platform.Win64.ISteamHTTP.CreateHTTPRequest( _ptr, eHTTPRequestMethod, pchAbsoluteURL );
}
@ -30,6 +34,8 @@ public HTTPRequestHandle CreateHTTPRequest( HTTPMethod eHTTPRequestMethod /*EHTT
// bool
public bool DeferHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.DeferHTTPRequest( _ptr, hRequest );
else return Platform.Win64.ISteamHTTP.DeferHTTPRequest( _ptr, hRequest );
}
@ -37,6 +43,8 @@ public bool DeferHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/ )
// bool
public bool GetHTTPDownloadProgressPct( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, out float pflPercentOut /*float **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.GetHTTPDownloadProgressPct( _ptr, hRequest, out pflPercentOut );
else return Platform.Win64.ISteamHTTP.GetHTTPDownloadProgressPct( _ptr, hRequest, out pflPercentOut );
}
@ -44,6 +52,8 @@ public bool GetHTTPDownloadProgressPct( HTTPRequestHandle hRequest /*HTTPRequest
// bool
public bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, out bool pbWasTimedOut /*bool **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.GetHTTPRequestWasTimedOut( _ptr, hRequest, out pbWasTimedOut );
else return Platform.Win64.ISteamHTTP.GetHTTPRequestWasTimedOut( _ptr, hRequest, out pbWasTimedOut );
}
@ -51,6 +61,8 @@ public bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest /*HTTPRequestH
// bool
public bool GetHTTPResponseBodyData( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, out byte pBodyDataBuffer /*uint8 **/, uint unBufferSize /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.GetHTTPResponseBodyData( _ptr, hRequest, out pBodyDataBuffer, unBufferSize );
else return Platform.Win64.ISteamHTTP.GetHTTPResponseBodyData( _ptr, hRequest, out pBodyDataBuffer, unBufferSize );
}
@ -58,6 +70,8 @@ public bool GetHTTPResponseBodyData( HTTPRequestHandle hRequest /*HTTPRequestHan
// bool
public bool GetHTTPResponseBodySize( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, out uint unBodySize /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.GetHTTPResponseBodySize( _ptr, hRequest, out unBodySize );
else return Platform.Win64.ISteamHTTP.GetHTTPResponseBodySize( _ptr, hRequest, out unBodySize );
}
@ -65,6 +79,8 @@ public bool GetHTTPResponseBodySize( HTTPRequestHandle hRequest /*HTTPRequestHan
// bool
public bool GetHTTPResponseHeaderSize( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchHeaderName /*const char **/, out uint unResponseHeaderSize /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.GetHTTPResponseHeaderSize( _ptr, hRequest, pchHeaderName, out unResponseHeaderSize );
else return Platform.Win64.ISteamHTTP.GetHTTPResponseHeaderSize( _ptr, hRequest, pchHeaderName, out unResponseHeaderSize );
}
@ -72,6 +88,8 @@ public bool GetHTTPResponseHeaderSize( HTTPRequestHandle hRequest /*HTTPRequestH
// bool
public bool GetHTTPResponseHeaderValue( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchHeaderName /*const char **/, out byte pHeaderValueBuffer /*uint8 **/, uint unBufferSize /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.GetHTTPResponseHeaderValue( _ptr, hRequest, pchHeaderName, out pHeaderValueBuffer, unBufferSize );
else return Platform.Win64.ISteamHTTP.GetHTTPResponseHeaderValue( _ptr, hRequest, pchHeaderName, out pHeaderValueBuffer, unBufferSize );
}
@ -79,6 +97,8 @@ public bool GetHTTPResponseHeaderValue( HTTPRequestHandle hRequest /*HTTPRequest
// bool
public bool GetHTTPStreamingResponseBodyData( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, uint cOffset /*uint32*/, out byte pBodyDataBuffer /*uint8 **/, uint unBufferSize /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.GetHTTPStreamingResponseBodyData( _ptr, hRequest, cOffset, out pBodyDataBuffer, unBufferSize );
else return Platform.Win64.ISteamHTTP.GetHTTPStreamingResponseBodyData( _ptr, hRequest, cOffset, out pBodyDataBuffer, unBufferSize );
}
@ -86,6 +106,8 @@ public bool GetHTTPStreamingResponseBodyData( HTTPRequestHandle hRequest /*HTTPR
// bool
public bool PrioritizeHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.PrioritizeHTTPRequest( _ptr, hRequest );
else return Platform.Win64.ISteamHTTP.PrioritizeHTTPRequest( _ptr, hRequest );
}
@ -93,6 +115,8 @@ public bool PrioritizeHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandl
// bool
public bool ReleaseCookieContainer( HTTPCookieContainerHandle hCookieContainer /*HTTPCookieContainerHandle*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.ReleaseCookieContainer( _ptr, hCookieContainer );
else return Platform.Win64.ISteamHTTP.ReleaseCookieContainer( _ptr, hCookieContainer );
}
@ -100,6 +124,8 @@ public bool ReleaseCookieContainer( HTTPCookieContainerHandle hCookieContainer /
// bool
public bool ReleaseHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.ReleaseHTTPRequest( _ptr, hRequest );
else return Platform.Win64.ISteamHTTP.ReleaseHTTPRequest( _ptr, hRequest );
}
@ -107,6 +133,8 @@ public bool ReleaseHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/
// bool
public bool SendHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, ref SteamAPICall_t pCallHandle /*SteamAPICall_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SendHTTPRequest( _ptr, hRequest, ref pCallHandle );
else return Platform.Win64.ISteamHTTP.SendHTTPRequest( _ptr, hRequest, ref pCallHandle );
}
@ -114,6 +142,8 @@ public bool SendHTTPRequest( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, r
// bool
public bool SendHTTPRequestAndStreamResponse( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, ref SteamAPICall_t pCallHandle /*SteamAPICall_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SendHTTPRequestAndStreamResponse( _ptr, hRequest, ref pCallHandle );
else return Platform.Win64.ISteamHTTP.SendHTTPRequestAndStreamResponse( _ptr, hRequest, ref pCallHandle );
}
@ -121,6 +151,8 @@ public bool SendHTTPRequestAndStreamResponse( HTTPRequestHandle hRequest /*HTTPR
// bool
public bool SetCookie( HTTPCookieContainerHandle hCookieContainer /*HTTPCookieContainerHandle*/, string pchHost /*const char **/, string pchUrl /*const char **/, string pchCookie /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetCookie( _ptr, hCookieContainer, pchHost, pchUrl, pchCookie );
else return Platform.Win64.ISteamHTTP.SetCookie( _ptr, hCookieContainer, pchHost, pchUrl, pchCookie );
}
@ -128,6 +160,8 @@ public bool SetCookie( HTTPCookieContainerHandle hCookieContainer /*HTTPCookieCo
// bool
public bool SetHTTPRequestAbsoluteTimeoutMS( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, uint unMilliseconds /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestAbsoluteTimeoutMS( _ptr, hRequest, unMilliseconds );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestAbsoluteTimeoutMS( _ptr, hRequest, unMilliseconds );
}
@ -135,6 +169,8 @@ public bool SetHTTPRequestAbsoluteTimeoutMS( HTTPRequestHandle hRequest /*HTTPRe
// bool
public bool SetHTTPRequestContextValue( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, ulong ulContextValue /*uint64*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestContextValue( _ptr, hRequest, ulContextValue );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestContextValue( _ptr, hRequest, ulContextValue );
}
@ -142,6 +178,8 @@ public bool SetHTTPRequestContextValue( HTTPRequestHandle hRequest /*HTTPRequest
// bool
public bool SetHTTPRequestCookieContainer( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, HTTPCookieContainerHandle hCookieContainer /*HTTPCookieContainerHandle*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestCookieContainer( _ptr, hRequest, hCookieContainer );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestCookieContainer( _ptr, hRequest, hCookieContainer );
}
@ -149,6 +187,8 @@ public bool SetHTTPRequestCookieContainer( HTTPRequestHandle hRequest /*HTTPRequ
// bool
public bool SetHTTPRequestGetOrPostParameter( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchParamName /*const char **/, string pchParamValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestGetOrPostParameter( _ptr, hRequest, pchParamName, pchParamValue );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestGetOrPostParameter( _ptr, hRequest, pchParamName, pchParamValue );
}
@ -156,6 +196,8 @@ public bool SetHTTPRequestGetOrPostParameter( HTTPRequestHandle hRequest /*HTTPR
// bool
public bool SetHTTPRequestHeaderValue( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchHeaderName /*const char **/, string pchHeaderValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestHeaderValue( _ptr, hRequest, pchHeaderName, pchHeaderValue );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestHeaderValue( _ptr, hRequest, pchHeaderName, pchHeaderValue );
}
@ -163,6 +205,8 @@ public bool SetHTTPRequestHeaderValue( HTTPRequestHandle hRequest /*HTTPRequestH
// bool
public bool SetHTTPRequestNetworkActivityTimeout( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, uint unTimeoutSeconds /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestNetworkActivityTimeout( _ptr, hRequest, unTimeoutSeconds );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestNetworkActivityTimeout( _ptr, hRequest, unTimeoutSeconds );
}
@ -170,6 +214,8 @@ public bool SetHTTPRequestNetworkActivityTimeout( HTTPRequestHandle hRequest /*H
// bool
public bool SetHTTPRequestRawPostBody( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchContentType /*const char **/, out byte pubBody /*uint8 **/, uint unBodyLen /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestRawPostBody( _ptr, hRequest, pchContentType, out pubBody, unBodyLen );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestRawPostBody( _ptr, hRequest, pchContentType, out pubBody, unBodyLen );
}
@ -177,6 +223,8 @@ public bool SetHTTPRequestRawPostBody( HTTPRequestHandle hRequest /*HTTPRequestH
// bool
public bool SetHTTPRequestRequiresVerifiedCertificate( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, bool bRequireVerifiedCertificate /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestRequiresVerifiedCertificate( _ptr, hRequest, bRequireVerifiedCertificate );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestRequiresVerifiedCertificate( _ptr, hRequest, bRequireVerifiedCertificate );
}
@ -184,6 +232,8 @@ public bool SetHTTPRequestRequiresVerifiedCertificate( HTTPRequestHandle hReques
// bool
public bool SetHTTPRequestUserAgentInfo( HTTPRequestHandle hRequest /*HTTPRequestHandle*/, string pchUserAgentInfo /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamHTTP.SetHTTPRequestUserAgentInfo( _ptr, hRequest, pchUserAgentInfo );
else return Platform.Win64.ISteamHTTP.SetHTTPRequestUserAgentInfo( _ptr, hRequest, pchUserAgentInfo );
}

View File

@ -16,6 +16,8 @@ public SteamInventory( IntPtr pointer )
// bool
public bool AddPromoItem( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemDef_t itemDef /*SteamItemDef_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.AddPromoItem( _ptr, ref pResultHandle, itemDef );
else return Platform.Win64.ISteamInventory.AddPromoItem( _ptr, ref pResultHandle, itemDef );
}
@ -23,6 +25,8 @@ public bool AddPromoItem( ref SteamInventoryResult_t pResultHandle /*SteamInvent
// bool
public bool AddPromoItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, IntPtr pArrayItemDefs /*const SteamItemDef_t **/, uint unArrayLength /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.AddPromoItems( _ptr, ref pResultHandle, (IntPtr) pArrayItemDefs, unArrayLength );
else return Platform.Win64.ISteamInventory.AddPromoItems( _ptr, ref pResultHandle, (IntPtr) pArrayItemDefs, unArrayLength );
}
@ -30,6 +34,8 @@ public bool AddPromoItems( ref SteamInventoryResult_t pResultHandle /*SteamInven
// bool
public bool CheckResultSteamID( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/, CSteamID steamIDExpected /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.CheckResultSteamID( _ptr, resultHandle, steamIDExpected );
else return Platform.Win64.ISteamInventory.CheckResultSteamID( _ptr, resultHandle, steamIDExpected );
}
@ -37,6 +43,8 @@ public bool CheckResultSteamID( SteamInventoryResult_t resultHandle /*SteamInven
// bool
public bool ConsumeItem( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemInstanceID_t itemConsume /*SteamItemInstanceID_t*/, uint unQuantity /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.ConsumeItem( _ptr, ref pResultHandle, itemConsume, unQuantity );
else return Platform.Win64.ISteamInventory.ConsumeItem( _ptr, ref pResultHandle, itemConsume, unQuantity );
}
@ -44,6 +52,8 @@ public bool ConsumeItem( ref SteamInventoryResult_t pResultHandle /*SteamInvento
// bool
public bool DeserializeResult( ref SteamInventoryResult_t pOutResultHandle /*SteamInventoryResult_t **/, IntPtr pBuffer /*const void **/, uint unBufferSize /*uint32*/, bool bRESERVED_MUST_BE_FALSE /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.DeserializeResult( _ptr, ref pOutResultHandle, (IntPtr) pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE );
else return Platform.Win64.ISteamInventory.DeserializeResult( _ptr, ref pOutResultHandle, (IntPtr) pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE );
}
@ -51,6 +61,8 @@ public bool DeserializeResult( ref SteamInventoryResult_t pOutResultHandle /*Ste
// void
public void DestroyResult( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamInventory.DestroyResult( _ptr, resultHandle );
else Platform.Win64.ISteamInventory.DestroyResult( _ptr, resultHandle );
}
@ -58,6 +70,8 @@ public void DestroyResult( SteamInventoryResult_t resultHandle /*SteamInventoryR
// bool
public bool ExchangeItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, ref SteamItemDef_t pArrayGenerate /*const SteamItemDef_t **/, out uint punArrayGenerateQuantity /*const uint32 **/, uint unArrayGenerateLength /*uint32*/, IntPtr pArrayDestroy /*const SteamItemInstanceID_t **/, IntPtr punArrayDestroyQuantity /*const uint32 **/, uint unArrayDestroyLength /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.ExchangeItems( _ptr, ref pResultHandle, ref pArrayGenerate, out punArrayGenerateQuantity, unArrayGenerateLength, (IntPtr) pArrayDestroy, (IntPtr) punArrayDestroyQuantity, unArrayDestroyLength );
else return Platform.Win64.ISteamInventory.ExchangeItems( _ptr, ref pResultHandle, ref pArrayGenerate, out punArrayGenerateQuantity, unArrayGenerateLength, (IntPtr) pArrayDestroy, (IntPtr) punArrayDestroyQuantity, unArrayDestroyLength );
}
@ -65,6 +79,8 @@ public bool ExchangeItems( ref SteamInventoryResult_t pResultHandle /*SteamInven
// bool
public bool GenerateItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, IntPtr pArrayItemDefs /*const SteamItemDef_t **/, out uint punArrayQuantity /*const uint32 **/, uint unArrayLength /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.GenerateItems( _ptr, ref pResultHandle, (IntPtr) pArrayItemDefs, out punArrayQuantity, unArrayLength );
else return Platform.Win64.ISteamInventory.GenerateItems( _ptr, ref pResultHandle, (IntPtr) pArrayItemDefs, out punArrayQuantity, unArrayLength );
}
@ -72,6 +88,8 @@ public bool GenerateItems( ref SteamInventoryResult_t pResultHandle /*SteamInven
// bool
public bool GetAllItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.GetAllItems( _ptr, ref pResultHandle );
else return Platform.Win64.ISteamInventory.GetAllItems( _ptr, ref pResultHandle );
}
@ -80,6 +98,8 @@ public bool GetAllItems( ref SteamInventoryResult_t pResultHandle /*SteamInvento
// using: Detect_MultiSizeArrayReturn
public SteamItemDef_t[] GetItemDefinitionIDs()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
uint punItemDefIDsArraySize = 0;
bool success = false;
@ -101,23 +121,24 @@ public SteamItemDef_t[] GetItemDefinitionIDs()
// with: Detect_StringFetch False
public bool GetItemDefinitionProperty( SteamItemDef_t iDefinition /*SteamItemDef_t*/, string pchPropertyName /*const char **/, out string pchValueBuffer /*char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
pchValueBuffer = string.Empty;
var pchValueBuffer_buffer = new char[4096];
fixed ( void* pchValueBuffer_ptr = pchValueBuffer_buffer )
{
uint punValueBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamInventory.GetItemDefinitionProperty( _ptr, iDefinition, pchPropertyName, (char*)pchValueBuffer_ptr, out punValueBufferSize );
else bSuccess = Platform.Win64.ISteamInventory.GetItemDefinitionProperty( _ptr, iDefinition, pchPropertyName, (char*)pchValueBuffer_ptr, out punValueBufferSize );
if ( !bSuccess ) return bSuccess;
pchValueBuffer = Marshal.PtrToStringAuto( (IntPtr)pchValueBuffer_ptr );
}
System.Text.StringBuilder pchValueBuffer_sb = new System.Text.StringBuilder( 4096 );
uint punValueBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamInventory.GetItemDefinitionProperty( _ptr, iDefinition, pchPropertyName, pchValueBuffer_sb, out punValueBufferSize );
else bSuccess = Platform.Win64.ISteamInventory.GetItemDefinitionProperty( _ptr, iDefinition, pchPropertyName, pchValueBuffer_sb, out punValueBufferSize );
if ( !bSuccess ) return bSuccess;
pchValueBuffer = pchValueBuffer_sb.ToString();
return bSuccess;
}
// bool
public bool GetItemsByID( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, IntPtr pInstanceIDs /*const SteamItemInstanceID_t **/, uint unCountInstanceIDs /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.GetItemsByID( _ptr, ref pResultHandle, (IntPtr) pInstanceIDs, unCountInstanceIDs );
else return Platform.Win64.ISteamInventory.GetItemsByID( _ptr, ref pResultHandle, (IntPtr) pInstanceIDs, unCountInstanceIDs );
}
@ -126,6 +147,8 @@ public bool GetItemsByID( ref SteamInventoryResult_t pResultHandle /*SteamInvent
// using: Detect_MultiSizeArrayReturn
public SteamItemDetails_t[] GetResultItems( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
uint punOutItemsArraySize = 0;
bool success = false;
@ -146,6 +169,8 @@ public SteamItemDetails_t[] GetResultItems( SteamInventoryResult_t resultHandle
// Result
public Result GetResultStatus( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.GetResultStatus( _ptr, resultHandle );
else return Platform.Win64.ISteamInventory.GetResultStatus( _ptr, resultHandle );
}
@ -153,6 +178,8 @@ public Result GetResultStatus( SteamInventoryResult_t resultHandle /*SteamInvent
// uint
public uint GetResultTimestamp( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.GetResultTimestamp( _ptr, resultHandle );
else return Platform.Win64.ISteamInventory.GetResultTimestamp( _ptr, resultHandle );
}
@ -160,6 +187,8 @@ public uint GetResultTimestamp( SteamInventoryResult_t resultHandle /*SteamInven
// bool
public bool GrantPromoItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.GrantPromoItems( _ptr, ref pResultHandle );
else return Platform.Win64.ISteamInventory.GrantPromoItems( _ptr, ref pResultHandle );
}
@ -167,6 +196,8 @@ public bool GrantPromoItems( ref SteamInventoryResult_t pResultHandle /*SteamInv
// bool
public bool LoadItemDefinitions()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.LoadItemDefinitions( _ptr );
else return Platform.Win64.ISteamInventory.LoadItemDefinitions( _ptr );
}
@ -174,6 +205,8 @@ public bool LoadItemDefinitions()
// void
public void SendItemDropHeartbeat()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamInventory.SendItemDropHeartbeat( _ptr );
else Platform.Win64.ISteamInventory.SendItemDropHeartbeat( _ptr );
}
@ -181,6 +214,8 @@ public void SendItemDropHeartbeat()
// bool
public bool SerializeResult( SteamInventoryResult_t resultHandle /*SteamInventoryResult_t*/, IntPtr pOutBuffer /*void **/, out uint punOutBufferSize /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.SerializeResult( _ptr, resultHandle, (IntPtr) pOutBuffer, out punOutBufferSize );
else return Platform.Win64.ISteamInventory.SerializeResult( _ptr, resultHandle, (IntPtr) pOutBuffer, out punOutBufferSize );
}
@ -188,6 +223,8 @@ public bool SerializeResult( SteamInventoryResult_t resultHandle /*SteamInventor
// bool
public bool TradeItems( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, CSteamID steamIDTradePartner /*class CSteamID*/, ref SteamItemInstanceID_t pArrayGive /*const SteamItemInstanceID_t **/, out uint pArrayGiveQuantity /*const uint32 **/, uint nArrayGiveLength /*uint32*/, ref SteamItemInstanceID_t pArrayGet /*const SteamItemInstanceID_t **/, out uint pArrayGetQuantity /*const uint32 **/, uint nArrayGetLength /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.TradeItems( _ptr, ref pResultHandle, steamIDTradePartner, ref pArrayGive, out pArrayGiveQuantity, nArrayGiveLength, ref pArrayGet, out pArrayGetQuantity, nArrayGetLength );
else return Platform.Win64.ISteamInventory.TradeItems( _ptr, ref pResultHandle, steamIDTradePartner, ref pArrayGive, out pArrayGiveQuantity, nArrayGiveLength, ref pArrayGet, out pArrayGetQuantity, nArrayGetLength );
}
@ -195,6 +232,8 @@ public bool TradeItems( ref SteamInventoryResult_t pResultHandle /*SteamInventor
// bool
public bool TransferItemQuantity( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemInstanceID_t itemIdSource /*SteamItemInstanceID_t*/, uint unQuantity /*uint32*/, SteamItemInstanceID_t itemIdDest /*SteamItemInstanceID_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.TransferItemQuantity( _ptr, ref pResultHandle, itemIdSource, unQuantity, itemIdDest );
else return Platform.Win64.ISteamInventory.TransferItemQuantity( _ptr, ref pResultHandle, itemIdSource, unQuantity, itemIdDest );
}
@ -202,6 +241,8 @@ public bool TransferItemQuantity( ref SteamInventoryResult_t pResultHandle /*Ste
// bool
public bool TriggerItemDrop( ref SteamInventoryResult_t pResultHandle /*SteamInventoryResult_t **/, SteamItemDef_t dropListDefinition /*SteamItemDef_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamInventory.TriggerItemDrop( _ptr, ref pResultHandle, dropListDefinition );
else return Platform.Win64.ISteamInventory.TriggerItemDrop( _ptr, ref pResultHandle, dropListDefinition );
}

View File

@ -16,6 +16,8 @@ public SteamMatchmaking( IntPtr pointer )
// int
public int AddFavoriteGame( AppId_t nAppID /*AppId_t*/, uint nIP /*uint32*/, ushort nConnPort /*uint16*/, ushort nQueryPort /*uint16*/, uint unFlags /*uint32*/, uint rTime32LastPlayedOnServer /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.AddFavoriteGame( _ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer );
else return Platform.Win64.ISteamMatchmaking.AddFavoriteGame( _ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer );
}
@ -23,6 +25,8 @@ public int AddFavoriteGame( AppId_t nAppID /*AppId_t*/, uint nIP /*uint32*/, ush
// void
public void AddRequestLobbyListCompatibleMembersFilter( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.AddRequestLobbyListCompatibleMembersFilter( _ptr, steamIDLobby );
else Platform.Win64.ISteamMatchmaking.AddRequestLobbyListCompatibleMembersFilter( _ptr, steamIDLobby );
}
@ -30,6 +34,8 @@ public void AddRequestLobbyListCompatibleMembersFilter( CSteamID steamIDLobby /*
// void
public void AddRequestLobbyListDistanceFilter( LobbyDistanceFilter eLobbyDistanceFilter /*ELobbyDistanceFilter*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.AddRequestLobbyListDistanceFilter( _ptr, eLobbyDistanceFilter );
else Platform.Win64.ISteamMatchmaking.AddRequestLobbyListDistanceFilter( _ptr, eLobbyDistanceFilter );
}
@ -37,6 +43,8 @@ public void AddRequestLobbyListDistanceFilter( LobbyDistanceFilter eLobbyDistanc
// void
public void AddRequestLobbyListFilterSlotsAvailable( int nSlotsAvailable /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.AddRequestLobbyListFilterSlotsAvailable( _ptr, nSlotsAvailable );
else Platform.Win64.ISteamMatchmaking.AddRequestLobbyListFilterSlotsAvailable( _ptr, nSlotsAvailable );
}
@ -44,6 +52,8 @@ public void AddRequestLobbyListFilterSlotsAvailable( int nSlotsAvailable /*int*/
// void
public void AddRequestLobbyListNearValueFilter( string pchKeyToMatch /*const char **/, int nValueToBeCloseTo /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.AddRequestLobbyListNearValueFilter( _ptr, pchKeyToMatch, nValueToBeCloseTo );
else Platform.Win64.ISteamMatchmaking.AddRequestLobbyListNearValueFilter( _ptr, pchKeyToMatch, nValueToBeCloseTo );
}
@ -51,6 +61,8 @@ public void AddRequestLobbyListNearValueFilter( string pchKeyToMatch /*const cha
// void
public void AddRequestLobbyListNumericalFilter( string pchKeyToMatch /*const char **/, int nValueToMatch /*int*/, LobbyComparison eComparisonType /*ELobbyComparison*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.AddRequestLobbyListNumericalFilter( _ptr, pchKeyToMatch, nValueToMatch, eComparisonType );
else Platform.Win64.ISteamMatchmaking.AddRequestLobbyListNumericalFilter( _ptr, pchKeyToMatch, nValueToMatch, eComparisonType );
}
@ -58,6 +70,8 @@ public void AddRequestLobbyListNumericalFilter( string pchKeyToMatch /*const cha
// void
public void AddRequestLobbyListResultCountFilter( int cMaxResults /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.AddRequestLobbyListResultCountFilter( _ptr, cMaxResults );
else Platform.Win64.ISteamMatchmaking.AddRequestLobbyListResultCountFilter( _ptr, cMaxResults );
}
@ -65,6 +79,8 @@ public void AddRequestLobbyListResultCountFilter( int cMaxResults /*int*/ )
// void
public void AddRequestLobbyListStringFilter( string pchKeyToMatch /*const char **/, string pchValueToMatch /*const char **/, LobbyComparison eComparisonType /*ELobbyComparison*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.AddRequestLobbyListStringFilter( _ptr, pchKeyToMatch, pchValueToMatch, eComparisonType );
else Platform.Win64.ISteamMatchmaking.AddRequestLobbyListStringFilter( _ptr, pchKeyToMatch, pchValueToMatch, eComparisonType );
}
@ -72,6 +88,8 @@ public void AddRequestLobbyListStringFilter( string pchKeyToMatch /*const char *
// SteamAPICall_t
public SteamAPICall_t CreateLobby( LobbyType eLobbyType /*ELobbyType*/, int cMaxMembers /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.CreateLobby( _ptr, eLobbyType, cMaxMembers );
else return Platform.Win64.ISteamMatchmaking.CreateLobby( _ptr, eLobbyType, cMaxMembers );
}
@ -79,6 +97,8 @@ public SteamAPICall_t CreateLobby( LobbyType eLobbyType /*ELobbyType*/, int cMax
// bool
public bool DeleteLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pchKey /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.DeleteLobbyData( _ptr, steamIDLobby, pchKey );
else return Platform.Win64.ISteamMatchmaking.DeleteLobbyData( _ptr, steamIDLobby, pchKey );
}
@ -86,6 +106,8 @@ public bool DeleteLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pc
// bool
public bool GetFavoriteGame( int iGame /*int*/, ref AppId_t pnAppID /*AppId_t **/, out uint pnIP /*uint32 **/, out ushort pnConnPort /*uint16 **/, out ushort pnQueryPort /*uint16 **/, IntPtr punFlags /*uint32 **/, out uint pRTime32LastPlayedOnServer /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetFavoriteGame( _ptr, iGame, ref pnAppID, out pnIP, out pnConnPort, out pnQueryPort, (IntPtr) punFlags, out pRTime32LastPlayedOnServer );
else return Platform.Win64.ISteamMatchmaking.GetFavoriteGame( _ptr, iGame, ref pnAppID, out pnIP, out pnConnPort, out pnQueryPort, (IntPtr) punFlags, out pRTime32LastPlayedOnServer );
}
@ -93,6 +115,8 @@ public bool GetFavoriteGame( int iGame /*int*/, ref AppId_t pnAppID /*AppId_t **
// int
public int GetFavoriteGameCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetFavoriteGameCount( _ptr );
else return Platform.Win64.ISteamMatchmaking.GetFavoriteGameCount( _ptr );
}
@ -100,6 +124,8 @@ public int GetFavoriteGameCount()
// ulong
public ulong GetLobbyByIndex( int iLobby /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetLobbyByIndex( _ptr, iLobby );
else return Platform.Win64.ISteamMatchmaking.GetLobbyByIndex( _ptr, iLobby );
}
@ -107,6 +133,8 @@ public ulong GetLobbyByIndex( int iLobby /*int*/ )
// int
public int GetLobbyChatEntry( CSteamID steamIDLobby /*class CSteamID*/, int iChatID /*int*/, out CSteamID pSteamIDUser /*class CSteamID **/, IntPtr pvData /*void **/, int cubData /*int*/, out ChatEntryType peChatEntryType /*EChatEntryType **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetLobbyChatEntry( _ptr, steamIDLobby, iChatID, out pSteamIDUser, (IntPtr) pvData, cubData, out peChatEntryType );
else return Platform.Win64.ISteamMatchmaking.GetLobbyChatEntry( _ptr, steamIDLobby, iChatID, out pSteamIDUser, (IntPtr) pvData, cubData, out peChatEntryType );
}
@ -115,6 +143,8 @@ public int GetLobbyChatEntry( CSteamID steamIDLobby /*class CSteamID*/, int iCha
// with: Detect_StringReturn
public string GetLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pchKey /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamMatchmaking.GetLobbyData( _ptr, steamIDLobby, pchKey );
else string_pointer = Platform.Win64.ISteamMatchmaking.GetLobbyData( _ptr, steamIDLobby, pchKey );
@ -126,31 +156,29 @@ public string GetLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pch
// with: Detect_StringFetch False
public bool GetLobbyDataByIndex( CSteamID steamIDLobby /*class CSteamID*/, int iLobbyData /*int*/, out string pchKey /*char **/, out string pchValue /*char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
pchKey = string.Empty;
var pchKey_buffer = new char[4096];
fixed ( void* pchKey_ptr = pchKey_buffer )
{
int cchKeyBufferSize = 4096;
pchValue = string.Empty;
var pchValue_buffer = new char[4096];
fixed ( void* pchValue_ptr = pchValue_buffer )
{
int cchValueBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamMatchmaking.GetLobbyDataByIndex( _ptr, steamIDLobby, iLobbyData, (char*)pchKey_ptr, cchKeyBufferSize, (char*)pchValue_ptr, cchValueBufferSize );
else bSuccess = Platform.Win64.ISteamMatchmaking.GetLobbyDataByIndex( _ptr, steamIDLobby, iLobbyData, (char*)pchKey_ptr, cchKeyBufferSize, (char*)pchValue_ptr, cchValueBufferSize );
if ( !bSuccess ) return bSuccess;
pchValue = Marshal.PtrToStringAuto( (IntPtr)pchValue_ptr );
}
if ( !bSuccess ) return bSuccess;
pchKey = Marshal.PtrToStringAuto( (IntPtr)pchKey_ptr );
}
System.Text.StringBuilder pchKey_sb = new System.Text.StringBuilder( 4096 );
int cchKeyBufferSize = 4096;
pchValue = string.Empty;
System.Text.StringBuilder pchValue_sb = new System.Text.StringBuilder( 4096 );
int cchValueBufferSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamMatchmaking.GetLobbyDataByIndex( _ptr, steamIDLobby, iLobbyData, pchKey_sb, cchKeyBufferSize, pchValue_sb, cchValueBufferSize );
else bSuccess = Platform.Win64.ISteamMatchmaking.GetLobbyDataByIndex( _ptr, steamIDLobby, iLobbyData, pchKey_sb, cchKeyBufferSize, pchValue_sb, cchValueBufferSize );
if ( !bSuccess ) return bSuccess;
pchValue = pchValue_sb.ToString();
if ( !bSuccess ) return bSuccess;
pchKey = pchKey_sb.ToString();
return bSuccess;
}
// int
public int GetLobbyDataCount( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetLobbyDataCount( _ptr, steamIDLobby );
else return Platform.Win64.ISteamMatchmaking.GetLobbyDataCount( _ptr, steamIDLobby );
}
@ -158,6 +186,8 @@ public int GetLobbyDataCount( CSteamID steamIDLobby /*class CSteamID*/ )
// bool
public bool GetLobbyGameServer( CSteamID steamIDLobby /*class CSteamID*/, out uint punGameServerIP /*uint32 **/, out ushort punGameServerPort /*uint16 **/, out CSteamID psteamIDGameServer /*class CSteamID **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetLobbyGameServer( _ptr, steamIDLobby, out punGameServerIP, out punGameServerPort, out psteamIDGameServer );
else return Platform.Win64.ISteamMatchmaking.GetLobbyGameServer( _ptr, steamIDLobby, out punGameServerIP, out punGameServerPort, out psteamIDGameServer );
}
@ -165,6 +195,8 @@ public bool GetLobbyGameServer( CSteamID steamIDLobby /*class CSteamID*/, out ui
// ulong
public ulong GetLobbyMemberByIndex( CSteamID steamIDLobby /*class CSteamID*/, int iMember /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetLobbyMemberByIndex( _ptr, steamIDLobby, iMember );
else return Platform.Win64.ISteamMatchmaking.GetLobbyMemberByIndex( _ptr, steamIDLobby, iMember );
}
@ -173,6 +205,8 @@ public ulong GetLobbyMemberByIndex( CSteamID steamIDLobby /*class CSteamID*/, in
// with: Detect_StringReturn
public string GetLobbyMemberData( CSteamID steamIDLobby /*class CSteamID*/, CSteamID steamIDUser /*class CSteamID*/, string pchKey /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamMatchmaking.GetLobbyMemberData( _ptr, steamIDLobby, steamIDUser, pchKey );
else string_pointer = Platform.Win64.ISteamMatchmaking.GetLobbyMemberData( _ptr, steamIDLobby, steamIDUser, pchKey );
@ -182,6 +216,8 @@ public string GetLobbyMemberData( CSteamID steamIDLobby /*class CSteamID*/, CSte
// int
public int GetLobbyMemberLimit( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetLobbyMemberLimit( _ptr, steamIDLobby );
else return Platform.Win64.ISteamMatchmaking.GetLobbyMemberLimit( _ptr, steamIDLobby );
}
@ -189,6 +225,8 @@ public int GetLobbyMemberLimit( CSteamID steamIDLobby /*class CSteamID*/ )
// ulong
public ulong GetLobbyOwner( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetLobbyOwner( _ptr, steamIDLobby );
else return Platform.Win64.ISteamMatchmaking.GetLobbyOwner( _ptr, steamIDLobby );
}
@ -196,6 +234,8 @@ public ulong GetLobbyOwner( CSteamID steamIDLobby /*class CSteamID*/ )
// int
public int GetNumLobbyMembers( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.GetNumLobbyMembers( _ptr, steamIDLobby );
else return Platform.Win64.ISteamMatchmaking.GetNumLobbyMembers( _ptr, steamIDLobby );
}
@ -203,6 +243,8 @@ public int GetNumLobbyMembers( CSteamID steamIDLobby /*class CSteamID*/ )
// bool
public bool InviteUserToLobby( CSteamID steamIDLobby /*class CSteamID*/, CSteamID steamIDInvitee /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.InviteUserToLobby( _ptr, steamIDLobby, steamIDInvitee );
else return Platform.Win64.ISteamMatchmaking.InviteUserToLobby( _ptr, steamIDLobby, steamIDInvitee );
}
@ -210,6 +252,8 @@ public bool InviteUserToLobby( CSteamID steamIDLobby /*class CSteamID*/, CSteamI
// SteamAPICall_t
public SteamAPICall_t JoinLobby( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.JoinLobby( _ptr, steamIDLobby );
else return Platform.Win64.ISteamMatchmaking.JoinLobby( _ptr, steamIDLobby );
}
@ -217,6 +261,8 @@ public SteamAPICall_t JoinLobby( CSteamID steamIDLobby /*class CSteamID*/ )
// void
public void LeaveLobby( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.LeaveLobby( _ptr, steamIDLobby );
else Platform.Win64.ISteamMatchmaking.LeaveLobby( _ptr, steamIDLobby );
}
@ -224,6 +270,8 @@ public void LeaveLobby( CSteamID steamIDLobby /*class CSteamID*/ )
// bool
public bool RemoveFavoriteGame( AppId_t nAppID /*AppId_t*/, uint nIP /*uint32*/, ushort nConnPort /*uint16*/, ushort nQueryPort /*uint16*/, uint unFlags /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.RemoveFavoriteGame( _ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags );
else return Platform.Win64.ISteamMatchmaking.RemoveFavoriteGame( _ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags );
}
@ -231,6 +279,8 @@ public bool RemoveFavoriteGame( AppId_t nAppID /*AppId_t*/, uint nIP /*uint32*/,
// bool
public bool RequestLobbyData( CSteamID steamIDLobby /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.RequestLobbyData( _ptr, steamIDLobby );
else return Platform.Win64.ISteamMatchmaking.RequestLobbyData( _ptr, steamIDLobby );
}
@ -238,6 +288,8 @@ public bool RequestLobbyData( CSteamID steamIDLobby /*class CSteamID*/ )
// SteamAPICall_t
public SteamAPICall_t RequestLobbyList()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.RequestLobbyList( _ptr );
else return Platform.Win64.ISteamMatchmaking.RequestLobbyList( _ptr );
}
@ -245,6 +297,8 @@ public SteamAPICall_t RequestLobbyList()
// bool
public bool SendLobbyChatMsg( CSteamID steamIDLobby /*class CSteamID*/, IntPtr pvMsgBody /*const void **/, int cubMsgBody /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.SendLobbyChatMsg( _ptr, steamIDLobby, (IntPtr) pvMsgBody, cubMsgBody );
else return Platform.Win64.ISteamMatchmaking.SendLobbyChatMsg( _ptr, steamIDLobby, (IntPtr) pvMsgBody, cubMsgBody );
}
@ -252,6 +306,8 @@ public bool SendLobbyChatMsg( CSteamID steamIDLobby /*class CSteamID*/, IntPtr p
// bool
public bool SetLinkedLobby( CSteamID steamIDLobby /*class CSteamID*/, CSteamID steamIDLobbyDependent /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.SetLinkedLobby( _ptr, steamIDLobby, steamIDLobbyDependent );
else return Platform.Win64.ISteamMatchmaking.SetLinkedLobby( _ptr, steamIDLobby, steamIDLobbyDependent );
}
@ -259,6 +315,8 @@ public bool SetLinkedLobby( CSteamID steamIDLobby /*class CSteamID*/, CSteamID s
// bool
public bool SetLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pchKey /*const char **/, string pchValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.SetLobbyData( _ptr, steamIDLobby, pchKey, pchValue );
else return Platform.Win64.ISteamMatchmaking.SetLobbyData( _ptr, steamIDLobby, pchKey, pchValue );
}
@ -266,6 +324,8 @@ public bool SetLobbyData( CSteamID steamIDLobby /*class CSteamID*/, string pchKe
// void
public void SetLobbyGameServer( CSteamID steamIDLobby /*class CSteamID*/, uint unGameServerIP /*uint32*/, ushort unGameServerPort /*uint16*/, CSteamID steamIDGameServer /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.SetLobbyGameServer( _ptr, steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer );
else Platform.Win64.ISteamMatchmaking.SetLobbyGameServer( _ptr, steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer );
}
@ -273,6 +333,8 @@ public void SetLobbyGameServer( CSteamID steamIDLobby /*class CSteamID*/, uint u
// bool
public bool SetLobbyJoinable( CSteamID steamIDLobby /*class CSteamID*/, bool bLobbyJoinable /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.SetLobbyJoinable( _ptr, steamIDLobby, bLobbyJoinable );
else return Platform.Win64.ISteamMatchmaking.SetLobbyJoinable( _ptr, steamIDLobby, bLobbyJoinable );
}
@ -280,6 +342,8 @@ public bool SetLobbyJoinable( CSteamID steamIDLobby /*class CSteamID*/, bool bLo
// void
public void SetLobbyMemberData( CSteamID steamIDLobby /*class CSteamID*/, string pchKey /*const char **/, string pchValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmaking.SetLobbyMemberData( _ptr, steamIDLobby, pchKey, pchValue );
else Platform.Win64.ISteamMatchmaking.SetLobbyMemberData( _ptr, steamIDLobby, pchKey, pchValue );
}
@ -287,6 +351,8 @@ public void SetLobbyMemberData( CSteamID steamIDLobby /*class CSteamID*/, string
// bool
public bool SetLobbyMemberLimit( CSteamID steamIDLobby /*class CSteamID*/, int cMaxMembers /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.SetLobbyMemberLimit( _ptr, steamIDLobby, cMaxMembers );
else return Platform.Win64.ISteamMatchmaking.SetLobbyMemberLimit( _ptr, steamIDLobby, cMaxMembers );
}
@ -294,6 +360,8 @@ public bool SetLobbyMemberLimit( CSteamID steamIDLobby /*class CSteamID*/, int c
// bool
public bool SetLobbyOwner( CSteamID steamIDLobby /*class CSteamID*/, CSteamID steamIDNewOwner /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.SetLobbyOwner( _ptr, steamIDLobby, steamIDNewOwner );
else return Platform.Win64.ISteamMatchmaking.SetLobbyOwner( _ptr, steamIDLobby, steamIDNewOwner );
}
@ -301,6 +369,8 @@ public bool SetLobbyOwner( CSteamID steamIDLobby /*class CSteamID*/, CSteamID st
// bool
public bool SetLobbyType( CSteamID steamIDLobby /*class CSteamID*/, LobbyType eLobbyType /*ELobbyType*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmaking.SetLobbyType( _ptr, steamIDLobby, eLobbyType );
else return Platform.Win64.ISteamMatchmaking.SetLobbyType( _ptr, steamIDLobby, eLobbyType );
}

View File

@ -16,6 +16,8 @@ public SteamMatchmakingServers( IntPtr pointer )
// void
public void CancelQuery( HServerListRequest hRequest /*HServerListRequest*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmakingServers.CancelQuery( _ptr, hRequest );
else Platform.Win64.ISteamMatchmakingServers.CancelQuery( _ptr, hRequest );
}
@ -23,6 +25,8 @@ public void CancelQuery( HServerListRequest hRequest /*HServerListRequest*/ )
// void
public void CancelServerQuery( HServerQuery hServerQuery /*HServerQuery*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmakingServers.CancelServerQuery( _ptr, hServerQuery );
else Platform.Win64.ISteamMatchmakingServers.CancelServerQuery( _ptr, hServerQuery );
}
@ -30,6 +34,8 @@ public void CancelServerQuery( HServerQuery hServerQuery /*HServerQuery*/ )
// int
public int GetServerCount( HServerListRequest hRequest /*HServerListRequest*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.GetServerCount( _ptr, hRequest );
else return Platform.Win64.ISteamMatchmakingServers.GetServerCount( _ptr, hRequest );
}
@ -38,6 +44,8 @@ public int GetServerCount( HServerListRequest hRequest /*HServerListRequest*/ )
// with: Detect_ReturningStruct
public gameserveritem_t GetServerDetails( HServerListRequest hRequest /*HServerListRequest*/, int iServer /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr struct_pointer;
if ( Platform.IsWindows32 ) struct_pointer = Platform.Win32.ISteamMatchmakingServers.GetServerDetails( _ptr, hRequest, iServer );
else struct_pointer = Platform.Win64.ISteamMatchmakingServers.GetServerDetails( _ptr, hRequest, iServer );
@ -48,6 +56,8 @@ public gameserveritem_t GetServerDetails( HServerListRequest hRequest /*HServerL
// bool
public bool IsRefreshing( HServerListRequest hRequest /*HServerListRequest*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.IsRefreshing( _ptr, hRequest );
else return Platform.Win64.ISteamMatchmakingServers.IsRefreshing( _ptr, hRequest );
}
@ -55,6 +65,8 @@ public bool IsRefreshing( HServerListRequest hRequest /*HServerListRequest*/ )
// HServerQuery
public HServerQuery PingServer( uint unIP /*uint32*/, ushort usPort /*uint16*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingPingResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.PingServer( _ptr, unIP, usPort, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.PingServer( _ptr, unIP, usPort, (IntPtr) pRequestServersResponse );
}
@ -62,6 +74,8 @@ public HServerQuery PingServer( uint unIP /*uint32*/, ushort usPort /*uint16*/,
// HServerQuery
public HServerQuery PlayerDetails( uint unIP /*uint32*/, ushort usPort /*uint16*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingPlayersResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.PlayerDetails( _ptr, unIP, usPort, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.PlayerDetails( _ptr, unIP, usPort, (IntPtr) pRequestServersResponse );
}
@ -69,6 +83,8 @@ public HServerQuery PlayerDetails( uint unIP /*uint32*/, ushort usPort /*uint16*
// void
public void RefreshQuery( HServerListRequest hRequest /*HServerListRequest*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmakingServers.RefreshQuery( _ptr, hRequest );
else Platform.Win64.ISteamMatchmakingServers.RefreshQuery( _ptr, hRequest );
}
@ -76,6 +92,8 @@ public void RefreshQuery( HServerListRequest hRequest /*HServerListRequest*/ )
// void
public void RefreshServer( HServerListRequest hRequest /*HServerListRequest*/, int iServer /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmakingServers.RefreshServer( _ptr, hRequest, iServer );
else Platform.Win64.ISteamMatchmakingServers.RefreshServer( _ptr, hRequest, iServer );
}
@ -83,6 +101,8 @@ public void RefreshServer( HServerListRequest hRequest /*HServerListRequest*/, i
// void
public void ReleaseRequest( HServerListRequest hServerListRequest /*HServerListRequest*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMatchmakingServers.ReleaseRequest( _ptr, hServerListRequest );
else Platform.Win64.ISteamMatchmakingServers.ReleaseRequest( _ptr, hServerListRequest );
}
@ -91,6 +111,8 @@ public void ReleaseRequest( HServerListRequest hServerListRequest /*HServerListR
// with: Detect_MatchmakingFilters
public HServerListRequest RequestFavoritesServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.RequestFavoritesServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.RequestFavoritesServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
}
@ -99,6 +121,8 @@ public HServerListRequest RequestFavoritesServerList( AppId_t iApp /*AppId_t*/,
// with: Detect_MatchmakingFilters
public HServerListRequest RequestFriendsServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.RequestFriendsServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.RequestFriendsServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
}
@ -107,6 +131,8 @@ public HServerListRequest RequestFriendsServerList( AppId_t iApp /*AppId_t*/, In
// with: Detect_MatchmakingFilters
public HServerListRequest RequestHistoryServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.RequestHistoryServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.RequestHistoryServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
}
@ -115,6 +141,8 @@ public HServerListRequest RequestHistoryServerList( AppId_t iApp /*AppId_t*/, In
// with: Detect_MatchmakingFilters
public HServerListRequest RequestInternetServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.RequestInternetServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.RequestInternetServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
}
@ -122,6 +150,8 @@ public HServerListRequest RequestInternetServerList( AppId_t iApp /*AppId_t*/, I
// HServerListRequest
public HServerListRequest RequestLANServerList( AppId_t iApp /*AppId_t*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.RequestLANServerList( _ptr, iApp, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.RequestLANServerList( _ptr, iApp, (IntPtr) pRequestServersResponse );
}
@ -130,6 +160,8 @@ public HServerListRequest RequestLANServerList( AppId_t iApp /*AppId_t*/, IntPtr
// with: Detect_MatchmakingFilters
public HServerListRequest RequestSpectatorServerList( AppId_t iApp /*AppId_t*/, IntPtr ppchFilters /*struct MatchMakingKeyValuePair_t ***/, uint nFilters /*uint32*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingServerListResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.RequestSpectatorServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.RequestSpectatorServerList( _ptr, iApp, (IntPtr) ppchFilters, nFilters, (IntPtr) pRequestServersResponse );
}
@ -137,6 +169,8 @@ public HServerListRequest RequestSpectatorServerList( AppId_t iApp /*AppId_t*/,
// HServerQuery
public HServerQuery ServerRules( uint unIP /*uint32*/, ushort usPort /*uint16*/, IntPtr pRequestServersResponse /*class ISteamMatchmakingRulesResponse **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMatchmakingServers.ServerRules( _ptr, unIP, usPort, (IntPtr) pRequestServersResponse );
else return Platform.Win64.ISteamMatchmakingServers.ServerRules( _ptr, unIP, usPort, (IntPtr) pRequestServersResponse );
}

View File

@ -16,6 +16,8 @@ public SteamMusic( IntPtr pointer )
// bool
public bool BIsEnabled()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusic.BIsEnabled( _ptr );
else return Platform.Win64.ISteamMusic.BIsEnabled( _ptr );
}
@ -23,6 +25,8 @@ public bool BIsEnabled()
// bool
public bool BIsPlaying()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusic.BIsPlaying( _ptr );
else return Platform.Win64.ISteamMusic.BIsPlaying( _ptr );
}
@ -30,6 +34,8 @@ public bool BIsPlaying()
// AudioPlayback_Status
public AudioPlayback_Status GetPlaybackStatus()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusic.GetPlaybackStatus( _ptr );
else return Platform.Win64.ISteamMusic.GetPlaybackStatus( _ptr );
}
@ -37,6 +43,8 @@ public AudioPlayback_Status GetPlaybackStatus()
// float
public float GetVolume()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusic.GetVolume( _ptr );
else return Platform.Win64.ISteamMusic.GetVolume( _ptr );
}
@ -44,6 +52,8 @@ public float GetVolume()
// void
public void Pause()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMusic.Pause( _ptr );
else Platform.Win64.ISteamMusic.Pause( _ptr );
}
@ -51,6 +61,8 @@ public void Pause()
// void
public void Play()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMusic.Play( _ptr );
else Platform.Win64.ISteamMusic.Play( _ptr );
}
@ -58,6 +70,8 @@ public void Play()
// void
public void PlayNext()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMusic.PlayNext( _ptr );
else Platform.Win64.ISteamMusic.PlayNext( _ptr );
}
@ -65,6 +79,8 @@ public void PlayNext()
// void
public void PlayPrevious()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMusic.PlayPrevious( _ptr );
else Platform.Win64.ISteamMusic.PlayPrevious( _ptr );
}
@ -72,6 +88,8 @@ public void PlayPrevious()
// void
public void SetVolume( float flVolume /*float*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamMusic.SetVolume( _ptr, flVolume );
else Platform.Win64.ISteamMusic.SetVolume( _ptr, flVolume );
}

View File

@ -16,6 +16,8 @@ public SteamMusicRemote( IntPtr pointer )
// bool
public bool BActivationSuccess( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.BActivationSuccess( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.BActivationSuccess( _ptr, bValue );
}
@ -23,6 +25,8 @@ public bool BActivationSuccess( bool bValue /*bool*/ )
// bool
public bool BIsCurrentMusicRemote()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.BIsCurrentMusicRemote( _ptr );
else return Platform.Win64.ISteamMusicRemote.BIsCurrentMusicRemote( _ptr );
}
@ -30,6 +34,8 @@ public bool BIsCurrentMusicRemote()
// bool
public bool CurrentEntryDidChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.CurrentEntryDidChange( _ptr );
else return Platform.Win64.ISteamMusicRemote.CurrentEntryDidChange( _ptr );
}
@ -37,6 +43,8 @@ public bool CurrentEntryDidChange()
// bool
public bool CurrentEntryIsAvailable( bool bAvailable /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.CurrentEntryIsAvailable( _ptr, bAvailable );
else return Platform.Win64.ISteamMusicRemote.CurrentEntryIsAvailable( _ptr, bAvailable );
}
@ -44,6 +52,8 @@ public bool CurrentEntryIsAvailable( bool bAvailable /*bool*/ )
// bool
public bool CurrentEntryWillChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.CurrentEntryWillChange( _ptr );
else return Platform.Win64.ISteamMusicRemote.CurrentEntryWillChange( _ptr );
}
@ -51,6 +61,8 @@ public bool CurrentEntryWillChange()
// bool
public bool DeregisterSteamMusicRemote()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.DeregisterSteamMusicRemote( _ptr );
else return Platform.Win64.ISteamMusicRemote.DeregisterSteamMusicRemote( _ptr );
}
@ -58,6 +70,8 @@ public bool DeregisterSteamMusicRemote()
// bool
public bool EnableLooped( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.EnableLooped( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.EnableLooped( _ptr, bValue );
}
@ -65,6 +79,8 @@ public bool EnableLooped( bool bValue /*bool*/ )
// bool
public bool EnablePlaylists( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.EnablePlaylists( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.EnablePlaylists( _ptr, bValue );
}
@ -72,6 +88,8 @@ public bool EnablePlaylists( bool bValue /*bool*/ )
// bool
public bool EnablePlayNext( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.EnablePlayNext( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.EnablePlayNext( _ptr, bValue );
}
@ -79,6 +97,8 @@ public bool EnablePlayNext( bool bValue /*bool*/ )
// bool
public bool EnablePlayPrevious( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.EnablePlayPrevious( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.EnablePlayPrevious( _ptr, bValue );
}
@ -86,6 +106,8 @@ public bool EnablePlayPrevious( bool bValue /*bool*/ )
// bool
public bool EnableQueue( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.EnableQueue( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.EnableQueue( _ptr, bValue );
}
@ -93,6 +115,8 @@ public bool EnableQueue( bool bValue /*bool*/ )
// bool
public bool EnableShuffled( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.EnableShuffled( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.EnableShuffled( _ptr, bValue );
}
@ -100,6 +124,8 @@ public bool EnableShuffled( bool bValue /*bool*/ )
// bool
public bool PlaylistDidChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.PlaylistDidChange( _ptr );
else return Platform.Win64.ISteamMusicRemote.PlaylistDidChange( _ptr );
}
@ -107,6 +133,8 @@ public bool PlaylistDidChange()
// bool
public bool PlaylistWillChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.PlaylistWillChange( _ptr );
else return Platform.Win64.ISteamMusicRemote.PlaylistWillChange( _ptr );
}
@ -114,6 +142,8 @@ public bool PlaylistWillChange()
// bool
public bool QueueDidChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.QueueDidChange( _ptr );
else return Platform.Win64.ISteamMusicRemote.QueueDidChange( _ptr );
}
@ -121,6 +151,8 @@ public bool QueueDidChange()
// bool
public bool QueueWillChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.QueueWillChange( _ptr );
else return Platform.Win64.ISteamMusicRemote.QueueWillChange( _ptr );
}
@ -128,6 +160,8 @@ public bool QueueWillChange()
// bool
public bool RegisterSteamMusicRemote( string pchName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.RegisterSteamMusicRemote( _ptr, pchName );
else return Platform.Win64.ISteamMusicRemote.RegisterSteamMusicRemote( _ptr, pchName );
}
@ -135,6 +169,8 @@ public bool RegisterSteamMusicRemote( string pchName /*const char **/ )
// bool
public bool ResetPlaylistEntries()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.ResetPlaylistEntries( _ptr );
else return Platform.Win64.ISteamMusicRemote.ResetPlaylistEntries( _ptr );
}
@ -142,6 +178,8 @@ public bool ResetPlaylistEntries()
// bool
public bool ResetQueueEntries()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.ResetQueueEntries( _ptr );
else return Platform.Win64.ISteamMusicRemote.ResetQueueEntries( _ptr );
}
@ -149,6 +187,8 @@ public bool ResetQueueEntries()
// bool
public bool SetCurrentPlaylistEntry( int nID /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.SetCurrentPlaylistEntry( _ptr, nID );
else return Platform.Win64.ISteamMusicRemote.SetCurrentPlaylistEntry( _ptr, nID );
}
@ -156,6 +196,8 @@ public bool SetCurrentPlaylistEntry( int nID /*int*/ )
// bool
public bool SetCurrentQueueEntry( int nID /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.SetCurrentQueueEntry( _ptr, nID );
else return Platform.Win64.ISteamMusicRemote.SetCurrentQueueEntry( _ptr, nID );
}
@ -163,6 +205,8 @@ public bool SetCurrentQueueEntry( int nID /*int*/ )
// bool
public bool SetDisplayName( string pchDisplayName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.SetDisplayName( _ptr, pchDisplayName );
else return Platform.Win64.ISteamMusicRemote.SetDisplayName( _ptr, pchDisplayName );
}
@ -170,6 +214,8 @@ public bool SetDisplayName( string pchDisplayName /*const char **/ )
// bool
public bool SetPlaylistEntry( int nID /*int*/, int nPosition /*int*/, string pchEntryText /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.SetPlaylistEntry( _ptr, nID, nPosition, pchEntryText );
else return Platform.Win64.ISteamMusicRemote.SetPlaylistEntry( _ptr, nID, nPosition, pchEntryText );
}
@ -177,6 +223,8 @@ public bool SetPlaylistEntry( int nID /*int*/, int nPosition /*int*/, string pch
// bool
public bool SetPNGIcon_64x64( IntPtr pvBuffer /*void **/, uint cbBufferLength /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.SetPNGIcon_64x64( _ptr, (IntPtr) pvBuffer, cbBufferLength );
else return Platform.Win64.ISteamMusicRemote.SetPNGIcon_64x64( _ptr, (IntPtr) pvBuffer, cbBufferLength );
}
@ -184,6 +232,8 @@ public bool SetPNGIcon_64x64( IntPtr pvBuffer /*void **/, uint cbBufferLength /*
// bool
public bool SetQueueEntry( int nID /*int*/, int nPosition /*int*/, string pchEntryText /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.SetQueueEntry( _ptr, nID, nPosition, pchEntryText );
else return Platform.Win64.ISteamMusicRemote.SetQueueEntry( _ptr, nID, nPosition, pchEntryText );
}
@ -191,6 +241,8 @@ public bool SetQueueEntry( int nID /*int*/, int nPosition /*int*/, string pchEnt
// bool
public bool UpdateCurrentEntryCoverArt( IntPtr pvBuffer /*void **/, uint cbBufferLength /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.UpdateCurrentEntryCoverArt( _ptr, (IntPtr) pvBuffer, cbBufferLength );
else return Platform.Win64.ISteamMusicRemote.UpdateCurrentEntryCoverArt( _ptr, (IntPtr) pvBuffer, cbBufferLength );
}
@ -198,6 +250,8 @@ public bool UpdateCurrentEntryCoverArt( IntPtr pvBuffer /*void **/, uint cbBuffe
// bool
public bool UpdateCurrentEntryElapsedSeconds( int nValue /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.UpdateCurrentEntryElapsedSeconds( _ptr, nValue );
else return Platform.Win64.ISteamMusicRemote.UpdateCurrentEntryElapsedSeconds( _ptr, nValue );
}
@ -205,6 +259,8 @@ public bool UpdateCurrentEntryElapsedSeconds( int nValue /*int*/ )
// bool
public bool UpdateCurrentEntryText( string pchText /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.UpdateCurrentEntryText( _ptr, pchText );
else return Platform.Win64.ISteamMusicRemote.UpdateCurrentEntryText( _ptr, pchText );
}
@ -212,6 +268,8 @@ public bool UpdateCurrentEntryText( string pchText /*const char **/ )
// bool
public bool UpdateLooped( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.UpdateLooped( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.UpdateLooped( _ptr, bValue );
}
@ -219,6 +277,8 @@ public bool UpdateLooped( bool bValue /*bool*/ )
// bool
public bool UpdatePlaybackStatus( AudioPlayback_Status nStatus /*AudioPlayback_Status*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.UpdatePlaybackStatus( _ptr, nStatus );
else return Platform.Win64.ISteamMusicRemote.UpdatePlaybackStatus( _ptr, nStatus );
}
@ -226,6 +286,8 @@ public bool UpdatePlaybackStatus( AudioPlayback_Status nStatus /*AudioPlayback_S
// bool
public bool UpdateShuffled( bool bValue /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.UpdateShuffled( _ptr, bValue );
else return Platform.Win64.ISteamMusicRemote.UpdateShuffled( _ptr, bValue );
}
@ -233,6 +295,8 @@ public bool UpdateShuffled( bool bValue /*bool*/ )
// bool
public bool UpdateVolume( float flValue /*float*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamMusicRemote.UpdateVolume( _ptr, flValue );
else return Platform.Win64.ISteamMusicRemote.UpdateVolume( _ptr, flValue );
}

View File

@ -16,6 +16,8 @@ public SteamNetworking( IntPtr pointer )
// bool
public bool AcceptP2PSessionWithUser( CSteamID steamIDRemote /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.AcceptP2PSessionWithUser( _ptr, steamIDRemote );
else return Platform.Win64.ISteamNetworking.AcceptP2PSessionWithUser( _ptr, steamIDRemote );
}
@ -23,6 +25,8 @@ public bool AcceptP2PSessionWithUser( CSteamID steamIDRemote /*class CSteamID*/
// bool
public bool AllowP2PPacketRelay( bool bAllow /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.AllowP2PPacketRelay( _ptr, bAllow );
else return Platform.Win64.ISteamNetworking.AllowP2PPacketRelay( _ptr, bAllow );
}
@ -30,6 +34,8 @@ public bool AllowP2PPacketRelay( bool bAllow /*bool*/ )
// bool
public bool CloseP2PChannelWithUser( CSteamID steamIDRemote /*class CSteamID*/, int nChannel /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.CloseP2PChannelWithUser( _ptr, steamIDRemote, nChannel );
else return Platform.Win64.ISteamNetworking.CloseP2PChannelWithUser( _ptr, steamIDRemote, nChannel );
}
@ -37,6 +43,8 @@ public bool CloseP2PChannelWithUser( CSteamID steamIDRemote /*class CSteamID*/,
// bool
public bool CloseP2PSessionWithUser( CSteamID steamIDRemote /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.CloseP2PSessionWithUser( _ptr, steamIDRemote );
else return Platform.Win64.ISteamNetworking.CloseP2PSessionWithUser( _ptr, steamIDRemote );
}
@ -44,6 +52,8 @@ public bool CloseP2PSessionWithUser( CSteamID steamIDRemote /*class CSteamID*/ )
// SNetSocket_t
public SNetSocket_t CreateConnectionSocket( uint nIP /*uint32*/, ushort nPort /*uint16*/, int nTimeoutSec /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.CreateConnectionSocket( _ptr, nIP, nPort, nTimeoutSec );
else return Platform.Win64.ISteamNetworking.CreateConnectionSocket( _ptr, nIP, nPort, nTimeoutSec );
}
@ -51,6 +61,8 @@ public SNetSocket_t CreateConnectionSocket( uint nIP /*uint32*/, ushort nPort /*
// SNetListenSocket_t
public SNetListenSocket_t CreateListenSocket( int nVirtualP2PPort /*int*/, uint nIP /*uint32*/, ushort nPort /*uint16*/, bool bAllowUseOfPacketRelay /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.CreateListenSocket( _ptr, nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay );
else return Platform.Win64.ISteamNetworking.CreateListenSocket( _ptr, nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay );
}
@ -58,6 +70,8 @@ public SNetListenSocket_t CreateListenSocket( int nVirtualP2PPort /*int*/, uint
// SNetSocket_t
public SNetSocket_t CreateP2PConnectionSocket( CSteamID steamIDTarget /*class CSteamID*/, int nVirtualPort /*int*/, int nTimeoutSec /*int*/, bool bAllowUseOfPacketRelay /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.CreateP2PConnectionSocket( _ptr, steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay );
else return Platform.Win64.ISteamNetworking.CreateP2PConnectionSocket( _ptr, steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay );
}
@ -65,6 +79,8 @@ public SNetSocket_t CreateP2PConnectionSocket( CSteamID steamIDTarget /*class CS
// bool
public bool DestroyListenSocket( SNetListenSocket_t hSocket /*SNetListenSocket_t*/, bool bNotifyRemoteEnd /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.DestroyListenSocket( _ptr, hSocket, bNotifyRemoteEnd );
else return Platform.Win64.ISteamNetworking.DestroyListenSocket( _ptr, hSocket, bNotifyRemoteEnd );
}
@ -72,6 +88,8 @@ public bool DestroyListenSocket( SNetListenSocket_t hSocket /*SNetListenSocket_t
// bool
public bool DestroySocket( SNetSocket_t hSocket /*SNetSocket_t*/, bool bNotifyRemoteEnd /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.DestroySocket( _ptr, hSocket, bNotifyRemoteEnd );
else return Platform.Win64.ISteamNetworking.DestroySocket( _ptr, hSocket, bNotifyRemoteEnd );
}
@ -79,6 +97,8 @@ public bool DestroySocket( SNetSocket_t hSocket /*SNetSocket_t*/, bool bNotifyRe
// bool
public bool GetListenSocketInfo( SNetListenSocket_t hListenSocket /*SNetListenSocket_t*/, out uint pnIP /*uint32 **/, out ushort pnPort /*uint16 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.GetListenSocketInfo( _ptr, hListenSocket, out pnIP, out pnPort );
else return Platform.Win64.ISteamNetworking.GetListenSocketInfo( _ptr, hListenSocket, out pnIP, out pnPort );
}
@ -86,6 +106,8 @@ public bool GetListenSocketInfo( SNetListenSocket_t hListenSocket /*SNetListenSo
// int
public int GetMaxPacketSize( SNetSocket_t hSocket /*SNetSocket_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.GetMaxPacketSize( _ptr, hSocket );
else return Platform.Win64.ISteamNetworking.GetMaxPacketSize( _ptr, hSocket );
}
@ -93,6 +115,8 @@ public int GetMaxPacketSize( SNetSocket_t hSocket /*SNetSocket_t*/ )
// bool
public bool GetP2PSessionState( CSteamID steamIDRemote /*class CSteamID*/, ref P2PSessionState_t pConnectionState /*struct P2PSessionState_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.GetP2PSessionState( _ptr, steamIDRemote, ref pConnectionState );
else return Platform.Win64.ISteamNetworking.GetP2PSessionState( _ptr, steamIDRemote, ref pConnectionState );
}
@ -100,6 +124,8 @@ public bool GetP2PSessionState( CSteamID steamIDRemote /*class CSteamID*/, ref P
// SNetSocketConnectionType
public SNetSocketConnectionType GetSocketConnectionType( SNetSocket_t hSocket /*SNetSocket_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.GetSocketConnectionType( _ptr, hSocket );
else return Platform.Win64.ISteamNetworking.GetSocketConnectionType( _ptr, hSocket );
}
@ -107,6 +133,8 @@ public SNetSocketConnectionType GetSocketConnectionType( SNetSocket_t hSocket /*
// bool
public bool GetSocketInfo( SNetSocket_t hSocket /*SNetSocket_t*/, out CSteamID pSteamIDRemote /*class CSteamID **/, IntPtr peSocketStatus /*int **/, out uint punIPRemote /*uint32 **/, out ushort punPortRemote /*uint16 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.GetSocketInfo( _ptr, hSocket, out pSteamIDRemote, (IntPtr) peSocketStatus, out punIPRemote, out punPortRemote );
else return Platform.Win64.ISteamNetworking.GetSocketInfo( _ptr, hSocket, out pSteamIDRemote, (IntPtr) peSocketStatus, out punIPRemote, out punPortRemote );
}
@ -114,6 +142,8 @@ public bool GetSocketInfo( SNetSocket_t hSocket /*SNetSocket_t*/, out CSteamID p
// bool
public bool IsDataAvailable( SNetListenSocket_t hListenSocket /*SNetListenSocket_t*/, out uint pcubMsgSize /*uint32 **/, ref SNetSocket_t phSocket /*SNetSocket_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.IsDataAvailable( _ptr, hListenSocket, out pcubMsgSize, ref phSocket );
else return Platform.Win64.ISteamNetworking.IsDataAvailable( _ptr, hListenSocket, out pcubMsgSize, ref phSocket );
}
@ -121,6 +151,8 @@ public bool IsDataAvailable( SNetListenSocket_t hListenSocket /*SNetListenSocket
// bool
public bool IsDataAvailableOnSocket( SNetSocket_t hSocket /*SNetSocket_t*/, out uint pcubMsgSize /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.IsDataAvailableOnSocket( _ptr, hSocket, out pcubMsgSize );
else return Platform.Win64.ISteamNetworking.IsDataAvailableOnSocket( _ptr, hSocket, out pcubMsgSize );
}
@ -128,6 +160,8 @@ public bool IsDataAvailableOnSocket( SNetSocket_t hSocket /*SNetSocket_t*/, out
// bool
public bool IsP2PPacketAvailable( out uint pcubMsgSize /*uint32 **/, int nChannel /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.IsP2PPacketAvailable( _ptr, out pcubMsgSize, nChannel );
else return Platform.Win64.ISteamNetworking.IsP2PPacketAvailable( _ptr, out pcubMsgSize, nChannel );
}
@ -135,6 +169,8 @@ public bool IsP2PPacketAvailable( out uint pcubMsgSize /*uint32 **/, int nChanne
// bool
public bool ReadP2PPacket( IntPtr pubDest /*void **/, uint cubDest /*uint32*/, out uint pcubMsgSize /*uint32 **/, out CSteamID psteamIDRemote /*class CSteamID **/, int nChannel /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.ReadP2PPacket( _ptr, (IntPtr) pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel );
else return Platform.Win64.ISteamNetworking.ReadP2PPacket( _ptr, (IntPtr) pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel );
}
@ -142,6 +178,8 @@ public bool ReadP2PPacket( IntPtr pubDest /*void **/, uint cubDest /*uint32*/, o
// bool
public bool RetrieveData( SNetListenSocket_t hListenSocket /*SNetListenSocket_t*/, IntPtr pubDest /*void **/, uint cubDest /*uint32*/, out uint pcubMsgSize /*uint32 **/, ref SNetSocket_t phSocket /*SNetSocket_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.RetrieveData( _ptr, hListenSocket, (IntPtr) pubDest, cubDest, out pcubMsgSize, ref phSocket );
else return Platform.Win64.ISteamNetworking.RetrieveData( _ptr, hListenSocket, (IntPtr) pubDest, cubDest, out pcubMsgSize, ref phSocket );
}
@ -149,6 +187,8 @@ public bool RetrieveData( SNetListenSocket_t hListenSocket /*SNetListenSocket_t*
// bool
public bool RetrieveDataFromSocket( SNetSocket_t hSocket /*SNetSocket_t*/, IntPtr pubDest /*void **/, uint cubDest /*uint32*/, out uint pcubMsgSize /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.RetrieveDataFromSocket( _ptr, hSocket, (IntPtr) pubDest, cubDest, out pcubMsgSize );
else return Platform.Win64.ISteamNetworking.RetrieveDataFromSocket( _ptr, hSocket, (IntPtr) pubDest, cubDest, out pcubMsgSize );
}
@ -156,6 +196,8 @@ public bool RetrieveDataFromSocket( SNetSocket_t hSocket /*SNetSocket_t*/, IntPt
// bool
public bool SendDataOnSocket( SNetSocket_t hSocket /*SNetSocket_t*/, IntPtr pubData /*void **/, uint cubData /*uint32*/, bool bReliable /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.SendDataOnSocket( _ptr, hSocket, (IntPtr) pubData, cubData, bReliable );
else return Platform.Win64.ISteamNetworking.SendDataOnSocket( _ptr, hSocket, (IntPtr) pubData, cubData, bReliable );
}
@ -163,6 +205,8 @@ public bool SendDataOnSocket( SNetSocket_t hSocket /*SNetSocket_t*/, IntPtr pubD
// bool
public bool SendP2PPacket( CSteamID steamIDRemote /*class CSteamID*/, IntPtr pubData /*const void **/, uint cubData /*uint32*/, P2PSend eP2PSendType /*EP2PSend*/, int nChannel /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamNetworking.SendP2PPacket( _ptr, steamIDRemote, (IntPtr) pubData, cubData, eP2PSendType, nChannel );
else return Platform.Win64.ISteamNetworking.SendP2PPacket( _ptr, steamIDRemote, (IntPtr) pubData, cubData, eP2PSendType, nChannel );
}

View File

@ -16,6 +16,8 @@ public SteamRemoteStorage( IntPtr pointer )
// SteamAPICall_t
public SteamAPICall_t CommitPublishedFileUpdate( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.CommitPublishedFileUpdate( _ptr, updateHandle );
else return Platform.Win64.ISteamRemoteStorage.CommitPublishedFileUpdate( _ptr, updateHandle );
}
@ -23,6 +25,8 @@ public SteamAPICall_t CommitPublishedFileUpdate( PublishedFileUpdateHandle_t upd
// PublishedFileUpdateHandle_t
public PublishedFileUpdateHandle_t CreatePublishedFileUpdateRequest( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.CreatePublishedFileUpdateRequest( _ptr, unPublishedFileId );
else return Platform.Win64.ISteamRemoteStorage.CreatePublishedFileUpdateRequest( _ptr, unPublishedFileId );
}
@ -30,6 +34,8 @@ public PublishedFileUpdateHandle_t CreatePublishedFileUpdateRequest( PublishedFi
// SteamAPICall_t
public SteamAPICall_t DeletePublishedFile( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.DeletePublishedFile( _ptr, unPublishedFileId );
else return Platform.Win64.ISteamRemoteStorage.DeletePublishedFile( _ptr, unPublishedFileId );
}
@ -37,6 +43,8 @@ public SteamAPICall_t DeletePublishedFile( PublishedFileId_t unPublishedFileId /
// SteamAPICall_t
public SteamAPICall_t EnumeratePublishedFilesByUserAction( WorkshopFileAction eAction /*EWorkshopFileAction*/, uint unStartIndex /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.EnumeratePublishedFilesByUserAction( _ptr, eAction, unStartIndex );
else return Platform.Win64.ISteamRemoteStorage.EnumeratePublishedFilesByUserAction( _ptr, eAction, unStartIndex );
}
@ -44,6 +52,8 @@ public SteamAPICall_t EnumeratePublishedFilesByUserAction( WorkshopFileAction eA
// SteamAPICall_t
public SteamAPICall_t EnumeratePublishedWorkshopFiles( WorkshopEnumerationType eEnumerationType /*EWorkshopEnumerationType*/, uint unStartIndex /*uint32*/, uint unCount /*uint32*/, uint unDays /*uint32*/, IntPtr pTags /*struct SteamParamStringArray_t **/, IntPtr pUserTags /*struct SteamParamStringArray_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.EnumeratePublishedWorkshopFiles( _ptr, eEnumerationType, unStartIndex, unCount, unDays, (IntPtr) pTags, (IntPtr) pUserTags );
else return Platform.Win64.ISteamRemoteStorage.EnumeratePublishedWorkshopFiles( _ptr, eEnumerationType, unStartIndex, unCount, unDays, (IntPtr) pTags, (IntPtr) pUserTags );
}
@ -51,6 +61,8 @@ public SteamAPICall_t EnumeratePublishedWorkshopFiles( WorkshopEnumerationType e
// SteamAPICall_t
public SteamAPICall_t EnumerateUserPublishedFiles( uint unStartIndex /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.EnumerateUserPublishedFiles( _ptr, unStartIndex );
else return Platform.Win64.ISteamRemoteStorage.EnumerateUserPublishedFiles( _ptr, unStartIndex );
}
@ -58,6 +70,8 @@ public SteamAPICall_t EnumerateUserPublishedFiles( uint unStartIndex /*uint32*/
// SteamAPICall_t
public SteamAPICall_t EnumerateUserSharedWorkshopFiles( CSteamID steamId /*class CSteamID*/, uint unStartIndex /*uint32*/, IntPtr pRequiredTags /*struct SteamParamStringArray_t **/, IntPtr pExcludedTags /*struct SteamParamStringArray_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.EnumerateUserSharedWorkshopFiles( _ptr, steamId, unStartIndex, (IntPtr) pRequiredTags, (IntPtr) pExcludedTags );
else return Platform.Win64.ISteamRemoteStorage.EnumerateUserSharedWorkshopFiles( _ptr, steamId, unStartIndex, (IntPtr) pRequiredTags, (IntPtr) pExcludedTags );
}
@ -65,6 +79,8 @@ public SteamAPICall_t EnumerateUserSharedWorkshopFiles( CSteamID steamId /*class
// SteamAPICall_t
public SteamAPICall_t EnumerateUserSubscribedFiles( uint unStartIndex /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.EnumerateUserSubscribedFiles( _ptr, unStartIndex );
else return Platform.Win64.ISteamRemoteStorage.EnumerateUserSubscribedFiles( _ptr, unStartIndex );
}
@ -72,6 +88,8 @@ public SteamAPICall_t EnumerateUserSubscribedFiles( uint unStartIndex /*uint32*/
// bool
public bool FileDelete( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileDelete( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.FileDelete( _ptr, pchFile );
}
@ -79,6 +97,8 @@ public bool FileDelete( string pchFile /*const char **/ )
// bool
public bool FileExists( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileExists( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.FileExists( _ptr, pchFile );
}
@ -86,6 +106,8 @@ public bool FileExists( string pchFile /*const char **/ )
// bool
public bool FileForget( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileForget( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.FileForget( _ptr, pchFile );
}
@ -93,6 +115,8 @@ public bool FileForget( string pchFile /*const char **/ )
// bool
public bool FilePersisted( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FilePersisted( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.FilePersisted( _ptr, pchFile );
}
@ -100,6 +124,8 @@ public bool FilePersisted( string pchFile /*const char **/ )
// int
public int FileRead( string pchFile /*const char **/, IntPtr pvData /*void **/, int cubDataToRead /*int32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileRead( _ptr, pchFile, (IntPtr) pvData, cubDataToRead );
else return Platform.Win64.ISteamRemoteStorage.FileRead( _ptr, pchFile, (IntPtr) pvData, cubDataToRead );
}
@ -107,6 +133,8 @@ public int FileRead( string pchFile /*const char **/, IntPtr pvData /*void **/,
// SteamAPICall_t
public SteamAPICall_t FileReadAsync( string pchFile /*const char **/, uint nOffset /*uint32*/, uint cubToRead /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileReadAsync( _ptr, pchFile, nOffset, cubToRead );
else return Platform.Win64.ISteamRemoteStorage.FileReadAsync( _ptr, pchFile, nOffset, cubToRead );
}
@ -114,6 +142,8 @@ public SteamAPICall_t FileReadAsync( string pchFile /*const char **/, uint nOffs
// bool
public bool FileReadAsyncComplete( SteamAPICall_t hReadCall /*SteamAPICall_t*/, IntPtr pvBuffer /*void **/, uint cubToRead /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileReadAsyncComplete( _ptr, hReadCall, (IntPtr) pvBuffer, cubToRead );
else return Platform.Win64.ISteamRemoteStorage.FileReadAsyncComplete( _ptr, hReadCall, (IntPtr) pvBuffer, cubToRead );
}
@ -121,6 +151,8 @@ public bool FileReadAsyncComplete( SteamAPICall_t hReadCall /*SteamAPICall_t*/,
// SteamAPICall_t
public SteamAPICall_t FileShare( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileShare( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.FileShare( _ptr, pchFile );
}
@ -128,6 +160,8 @@ public SteamAPICall_t FileShare( string pchFile /*const char **/ )
// bool
public bool FileWrite( string pchFile /*const char **/, IntPtr pvData /*const void **/, int cubData /*int32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileWrite( _ptr, pchFile, (IntPtr) pvData, cubData );
else return Platform.Win64.ISteamRemoteStorage.FileWrite( _ptr, pchFile, (IntPtr) pvData, cubData );
}
@ -135,6 +169,8 @@ public bool FileWrite( string pchFile /*const char **/, IntPtr pvData /*const vo
// SteamAPICall_t
public SteamAPICall_t FileWriteAsync( string pchFile /*const char **/, IntPtr pvData /*const void **/, uint cubData /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileWriteAsync( _ptr, pchFile, (IntPtr) pvData, cubData );
else return Platform.Win64.ISteamRemoteStorage.FileWriteAsync( _ptr, pchFile, (IntPtr) pvData, cubData );
}
@ -142,6 +178,8 @@ public SteamAPICall_t FileWriteAsync( string pchFile /*const char **/, IntPtr pv
// bool
public bool FileWriteStreamCancel( UGCFileWriteStreamHandle_t writeHandle /*UGCFileWriteStreamHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileWriteStreamCancel( _ptr, writeHandle );
else return Platform.Win64.ISteamRemoteStorage.FileWriteStreamCancel( _ptr, writeHandle );
}
@ -149,6 +187,8 @@ public bool FileWriteStreamCancel( UGCFileWriteStreamHandle_t writeHandle /*UGCF
// bool
public bool FileWriteStreamClose( UGCFileWriteStreamHandle_t writeHandle /*UGCFileWriteStreamHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileWriteStreamClose( _ptr, writeHandle );
else return Platform.Win64.ISteamRemoteStorage.FileWriteStreamClose( _ptr, writeHandle );
}
@ -156,6 +196,8 @@ public bool FileWriteStreamClose( UGCFileWriteStreamHandle_t writeHandle /*UGCFi
// UGCFileWriteStreamHandle_t
public UGCFileWriteStreamHandle_t FileWriteStreamOpen( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileWriteStreamOpen( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.FileWriteStreamOpen( _ptr, pchFile );
}
@ -163,6 +205,8 @@ public UGCFileWriteStreamHandle_t FileWriteStreamOpen( string pchFile /*const ch
// bool
public bool FileWriteStreamWriteChunk( UGCFileWriteStreamHandle_t writeHandle /*UGCFileWriteStreamHandle_t*/, IntPtr pvData /*const void **/, int cubData /*int32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.FileWriteStreamWriteChunk( _ptr, writeHandle, (IntPtr) pvData, cubData );
else return Platform.Win64.ISteamRemoteStorage.FileWriteStreamWriteChunk( _ptr, writeHandle, (IntPtr) pvData, cubData );
}
@ -170,6 +214,8 @@ public bool FileWriteStreamWriteChunk( UGCFileWriteStreamHandle_t writeHandle /*
// int
public int GetCachedUGCCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetCachedUGCCount( _ptr );
else return Platform.Win64.ISteamRemoteStorage.GetCachedUGCCount( _ptr );
}
@ -177,6 +223,8 @@ public int GetCachedUGCCount()
// UGCHandle_t
public UGCHandle_t GetCachedUGCHandle( int iCachedContent /*int32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetCachedUGCHandle( _ptr, iCachedContent );
else return Platform.Win64.ISteamRemoteStorage.GetCachedUGCHandle( _ptr, iCachedContent );
}
@ -184,6 +232,8 @@ public UGCHandle_t GetCachedUGCHandle( int iCachedContent /*int32*/ )
// int
public int GetFileCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetFileCount( _ptr );
else return Platform.Win64.ISteamRemoteStorage.GetFileCount( _ptr );
}
@ -192,6 +242,8 @@ public int GetFileCount()
// with: Detect_StringReturn
public string GetFileNameAndSize( int iFile /*int*/, IntPtr pnFileSizeInBytes /*int32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamRemoteStorage.GetFileNameAndSize( _ptr, iFile, (IntPtr) pnFileSizeInBytes );
else string_pointer = Platform.Win64.ISteamRemoteStorage.GetFileNameAndSize( _ptr, iFile, (IntPtr) pnFileSizeInBytes );
@ -201,6 +253,8 @@ public string GetFileNameAndSize( int iFile /*int*/, IntPtr pnFileSizeInBytes /*
// int
public int GetFileSize( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetFileSize( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.GetFileSize( _ptr, pchFile );
}
@ -208,6 +262,8 @@ public int GetFileSize( string pchFile /*const char **/ )
// long
public long GetFileTimestamp( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetFileTimestamp( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.GetFileTimestamp( _ptr, pchFile );
}
@ -215,6 +271,8 @@ public long GetFileTimestamp( string pchFile /*const char **/ )
// SteamAPICall_t
public SteamAPICall_t GetPublishedFileDetails( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, uint unMaxSecondsOld /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetPublishedFileDetails( _ptr, unPublishedFileId, unMaxSecondsOld );
else return Platform.Win64.ISteamRemoteStorage.GetPublishedFileDetails( _ptr, unPublishedFileId, unMaxSecondsOld );
}
@ -222,6 +280,8 @@ public SteamAPICall_t GetPublishedFileDetails( PublishedFileId_t unPublishedFile
// SteamAPICall_t
public SteamAPICall_t GetPublishedItemVoteDetails( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetPublishedItemVoteDetails( _ptr, unPublishedFileId );
else return Platform.Win64.ISteamRemoteStorage.GetPublishedItemVoteDetails( _ptr, unPublishedFileId );
}
@ -229,6 +289,8 @@ public SteamAPICall_t GetPublishedItemVoteDetails( PublishedFileId_t unPublished
// bool
public bool GetQuota( IntPtr pnTotalBytes /*int32 **/, IntPtr puAvailableBytes /*int32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetQuota( _ptr, (IntPtr) pnTotalBytes, (IntPtr) puAvailableBytes );
else return Platform.Win64.ISteamRemoteStorage.GetQuota( _ptr, (IntPtr) pnTotalBytes, (IntPtr) puAvailableBytes );
}
@ -236,6 +298,8 @@ public bool GetQuota( IntPtr pnTotalBytes /*int32 **/, IntPtr puAvailableBytes /
// RemoteStoragePlatform
public RemoteStoragePlatform GetSyncPlatforms( string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetSyncPlatforms( _ptr, pchFile );
else return Platform.Win64.ISteamRemoteStorage.GetSyncPlatforms( _ptr, pchFile );
}
@ -244,23 +308,24 @@ public RemoteStoragePlatform GetSyncPlatforms( string pchFile /*const char **/ )
// with: Detect_StringFetch False
public bool GetUGCDetails( UGCHandle_t hContent /*UGCHandle_t*/, ref AppId_t pnAppID /*AppId_t **/, out string ppchName /*char ***/, out CSteamID pSteamIDOwner /*class CSteamID **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
ppchName = string.Empty;
var ppchName_buffer = new char[4096];
fixed ( void* ppchName_ptr = ppchName_buffer )
{
int pnFileSizeInBytes = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamRemoteStorage.GetUGCDetails( _ptr, hContent, ref pnAppID, (char*)ppchName_ptr, (IntPtr) pnFileSizeInBytes, out pSteamIDOwner );
else bSuccess = Platform.Win64.ISteamRemoteStorage.GetUGCDetails( _ptr, hContent, ref pnAppID, (char*)ppchName_ptr, (IntPtr) pnFileSizeInBytes, out pSteamIDOwner );
if ( !bSuccess ) return bSuccess;
ppchName = Marshal.PtrToStringAuto( (IntPtr)ppchName_ptr );
}
System.Text.StringBuilder ppchName_sb = new System.Text.StringBuilder( 4096 );
int pnFileSizeInBytes = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamRemoteStorage.GetUGCDetails( _ptr, hContent, ref pnAppID, ppchName_sb, (IntPtr) pnFileSizeInBytes, out pSteamIDOwner );
else bSuccess = Platform.Win64.ISteamRemoteStorage.GetUGCDetails( _ptr, hContent, ref pnAppID, ppchName_sb, (IntPtr) pnFileSizeInBytes, out pSteamIDOwner );
if ( !bSuccess ) return bSuccess;
ppchName = ppchName_sb.ToString();
return bSuccess;
}
// bool
public bool GetUGCDownloadProgress( UGCHandle_t hContent /*UGCHandle_t*/, out int pnBytesDownloaded /*int32 **/, out int pnBytesExpected /*int32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetUGCDownloadProgress( _ptr, hContent, out pnBytesDownloaded, out pnBytesExpected );
else return Platform.Win64.ISteamRemoteStorage.GetUGCDownloadProgress( _ptr, hContent, out pnBytesDownloaded, out pnBytesExpected );
}
@ -268,6 +333,8 @@ public bool GetUGCDownloadProgress( UGCHandle_t hContent /*UGCHandle_t*/, out in
// SteamAPICall_t
public SteamAPICall_t GetUserPublishedItemVoteDetails( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.GetUserPublishedItemVoteDetails( _ptr, unPublishedFileId );
else return Platform.Win64.ISteamRemoteStorage.GetUserPublishedItemVoteDetails( _ptr, unPublishedFileId );
}
@ -275,6 +342,8 @@ public SteamAPICall_t GetUserPublishedItemVoteDetails( PublishedFileId_t unPubli
// bool
public bool IsCloudEnabledForAccount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.IsCloudEnabledForAccount( _ptr );
else return Platform.Win64.ISteamRemoteStorage.IsCloudEnabledForAccount( _ptr );
}
@ -282,6 +351,8 @@ public bool IsCloudEnabledForAccount()
// bool
public bool IsCloudEnabledForApp()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.IsCloudEnabledForApp( _ptr );
else return Platform.Win64.ISteamRemoteStorage.IsCloudEnabledForApp( _ptr );
}
@ -289,6 +360,8 @@ public bool IsCloudEnabledForApp()
// SteamAPICall_t
public SteamAPICall_t PublishVideo( WorkshopVideoProvider eVideoProvider /*EWorkshopVideoProvider*/, string pchVideoAccount /*const char **/, string pchVideoIdentifier /*const char **/, string pchPreviewFile /*const char **/, AppId_t nConsumerAppId /*AppId_t*/, string pchTitle /*const char **/, string pchDescription /*const char **/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/, IntPtr pTags /*struct SteamParamStringArray_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.PublishVideo( _ptr, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, (IntPtr) pTags );
else return Platform.Win64.ISteamRemoteStorage.PublishVideo( _ptr, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, (IntPtr) pTags );
}
@ -296,6 +369,8 @@ public SteamAPICall_t PublishVideo( WorkshopVideoProvider eVideoProvider /*EWork
// SteamAPICall_t
public SteamAPICall_t PublishWorkshopFile( string pchFile /*const char **/, string pchPreviewFile /*const char **/, AppId_t nConsumerAppId /*AppId_t*/, string pchTitle /*const char **/, string pchDescription /*const char **/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/, IntPtr pTags /*struct SteamParamStringArray_t **/, WorkshopFileType eWorkshopFileType /*EWorkshopFileType*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.PublishWorkshopFile( _ptr, pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, (IntPtr) pTags, eWorkshopFileType );
else return Platform.Win64.ISteamRemoteStorage.PublishWorkshopFile( _ptr, pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, (IntPtr) pTags, eWorkshopFileType );
}
@ -303,6 +378,8 @@ public SteamAPICall_t PublishWorkshopFile( string pchFile /*const char **/, stri
// void
public void SetCloudEnabledForApp( bool bEnabled /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamRemoteStorage.SetCloudEnabledForApp( _ptr, bEnabled );
else Platform.Win64.ISteamRemoteStorage.SetCloudEnabledForApp( _ptr, bEnabled );
}
@ -310,6 +387,8 @@ public void SetCloudEnabledForApp( bool bEnabled /*bool*/ )
// bool
public bool SetSyncPlatforms( string pchFile /*const char **/, RemoteStoragePlatform eRemoteStoragePlatform /*ERemoteStoragePlatform*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.SetSyncPlatforms( _ptr, pchFile, eRemoteStoragePlatform );
else return Platform.Win64.ISteamRemoteStorage.SetSyncPlatforms( _ptr, pchFile, eRemoteStoragePlatform );
}
@ -317,6 +396,8 @@ public bool SetSyncPlatforms( string pchFile /*const char **/, RemoteStoragePlat
// SteamAPICall_t
public SteamAPICall_t SetUserPublishedFileAction( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, WorkshopFileAction eAction /*EWorkshopFileAction*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.SetUserPublishedFileAction( _ptr, unPublishedFileId, eAction );
else return Platform.Win64.ISteamRemoteStorage.SetUserPublishedFileAction( _ptr, unPublishedFileId, eAction );
}
@ -324,6 +405,8 @@ public SteamAPICall_t SetUserPublishedFileAction( PublishedFileId_t unPublishedF
// SteamAPICall_t
public SteamAPICall_t SubscribePublishedFile( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.SubscribePublishedFile( _ptr, unPublishedFileId );
else return Platform.Win64.ISteamRemoteStorage.SubscribePublishedFile( _ptr, unPublishedFileId );
}
@ -331,6 +414,8 @@ public SteamAPICall_t SubscribePublishedFile( PublishedFileId_t unPublishedFileI
// SteamAPICall_t
public SteamAPICall_t UGCDownload( UGCHandle_t hContent /*UGCHandle_t*/, uint unPriority /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UGCDownload( _ptr, hContent, unPriority );
else return Platform.Win64.ISteamRemoteStorage.UGCDownload( _ptr, hContent, unPriority );
}
@ -338,6 +423,8 @@ public SteamAPICall_t UGCDownload( UGCHandle_t hContent /*UGCHandle_t*/, uint un
// SteamAPICall_t
public SteamAPICall_t UGCDownloadToLocation( UGCHandle_t hContent /*UGCHandle_t*/, string pchLocation /*const char **/, uint unPriority /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UGCDownloadToLocation( _ptr, hContent, pchLocation, unPriority );
else return Platform.Win64.ISteamRemoteStorage.UGCDownloadToLocation( _ptr, hContent, pchLocation, unPriority );
}
@ -345,6 +432,8 @@ public SteamAPICall_t UGCDownloadToLocation( UGCHandle_t hContent /*UGCHandle_t*
// int
public int UGCRead( UGCHandle_t hContent /*UGCHandle_t*/, IntPtr pvData /*void **/, int cubDataToRead /*int32*/, uint cOffset /*uint32*/, UGCReadAction eAction /*EUGCReadAction*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UGCRead( _ptr, hContent, (IntPtr) pvData, cubDataToRead, cOffset, eAction );
else return Platform.Win64.ISteamRemoteStorage.UGCRead( _ptr, hContent, (IntPtr) pvData, cubDataToRead, cOffset, eAction );
}
@ -352,6 +441,8 @@ public int UGCRead( UGCHandle_t hContent /*UGCHandle_t*/, IntPtr pvData /*void *
// SteamAPICall_t
public SteamAPICall_t UnsubscribePublishedFile( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UnsubscribePublishedFile( _ptr, unPublishedFileId );
else return Platform.Win64.ISteamRemoteStorage.UnsubscribePublishedFile( _ptr, unPublishedFileId );
}
@ -359,6 +450,8 @@ public SteamAPICall_t UnsubscribePublishedFile( PublishedFileId_t unPublishedFil
// bool
public bool UpdatePublishedFileDescription( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchDescription /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UpdatePublishedFileDescription( _ptr, updateHandle, pchDescription );
else return Platform.Win64.ISteamRemoteStorage.UpdatePublishedFileDescription( _ptr, updateHandle, pchDescription );
}
@ -366,6 +459,8 @@ public bool UpdatePublishedFileDescription( PublishedFileUpdateHandle_t updateHa
// bool
public bool UpdatePublishedFileFile( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UpdatePublishedFileFile( _ptr, updateHandle, pchFile );
else return Platform.Win64.ISteamRemoteStorage.UpdatePublishedFileFile( _ptr, updateHandle, pchFile );
}
@ -373,6 +468,8 @@ public bool UpdatePublishedFileFile( PublishedFileUpdateHandle_t updateHandle /*
// bool
public bool UpdatePublishedFilePreviewFile( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchPreviewFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UpdatePublishedFilePreviewFile( _ptr, updateHandle, pchPreviewFile );
else return Platform.Win64.ISteamRemoteStorage.UpdatePublishedFilePreviewFile( _ptr, updateHandle, pchPreviewFile );
}
@ -380,6 +477,8 @@ public bool UpdatePublishedFilePreviewFile( PublishedFileUpdateHandle_t updateHa
// bool
public bool UpdatePublishedFileSetChangeDescription( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchChangeDescription /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UpdatePublishedFileSetChangeDescription( _ptr, updateHandle, pchChangeDescription );
else return Platform.Win64.ISteamRemoteStorage.UpdatePublishedFileSetChangeDescription( _ptr, updateHandle, pchChangeDescription );
}
@ -387,6 +486,8 @@ public bool UpdatePublishedFileSetChangeDescription( PublishedFileUpdateHandle_t
// bool
public bool UpdatePublishedFileTags( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, IntPtr pTags /*struct SteamParamStringArray_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UpdatePublishedFileTags( _ptr, updateHandle, (IntPtr) pTags );
else return Platform.Win64.ISteamRemoteStorage.UpdatePublishedFileTags( _ptr, updateHandle, (IntPtr) pTags );
}
@ -394,6 +495,8 @@ public bool UpdatePublishedFileTags( PublishedFileUpdateHandle_t updateHandle /*
// bool
public bool UpdatePublishedFileTitle( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, string pchTitle /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UpdatePublishedFileTitle( _ptr, updateHandle, pchTitle );
else return Platform.Win64.ISteamRemoteStorage.UpdatePublishedFileTitle( _ptr, updateHandle, pchTitle );
}
@ -401,6 +504,8 @@ public bool UpdatePublishedFileTitle( PublishedFileUpdateHandle_t updateHandle /
// bool
public bool UpdatePublishedFileVisibility( PublishedFileUpdateHandle_t updateHandle /*PublishedFileUpdateHandle_t*/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UpdatePublishedFileVisibility( _ptr, updateHandle, eVisibility );
else return Platform.Win64.ISteamRemoteStorage.UpdatePublishedFileVisibility( _ptr, updateHandle, eVisibility );
}
@ -408,6 +513,8 @@ public bool UpdatePublishedFileVisibility( PublishedFileUpdateHandle_t updateHan
// SteamAPICall_t
public SteamAPICall_t UpdateUserPublishedItemVote( PublishedFileId_t unPublishedFileId /*PublishedFileId_t*/, bool bVoteUp /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamRemoteStorage.UpdateUserPublishedItemVote( _ptr, unPublishedFileId, bVoteUp );
else return Platform.Win64.ISteamRemoteStorage.UpdateUserPublishedItemVote( _ptr, unPublishedFileId, bVoteUp );
}

View File

@ -16,6 +16,8 @@ public SteamScreenshots( IntPtr pointer )
// ScreenshotHandle
public ScreenshotHandle AddScreenshotToLibrary( string pchFilename /*const char **/, string pchThumbnailFilename /*const char **/, int nWidth /*int*/, int nHeight /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamScreenshots.AddScreenshotToLibrary( _ptr, pchFilename, pchThumbnailFilename, nWidth, nHeight );
else return Platform.Win64.ISteamScreenshots.AddScreenshotToLibrary( _ptr, pchFilename, pchThumbnailFilename, nWidth, nHeight );
}
@ -23,6 +25,8 @@ public ScreenshotHandle AddScreenshotToLibrary( string pchFilename /*const char
// void
public void HookScreenshots( bool bHook /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamScreenshots.HookScreenshots( _ptr, bHook );
else Platform.Win64.ISteamScreenshots.HookScreenshots( _ptr, bHook );
}
@ -30,6 +34,8 @@ public void HookScreenshots( bool bHook /*bool*/ )
// bool
public bool SetLocation( ScreenshotHandle hScreenshot /*ScreenshotHandle*/, string pchLocation /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamScreenshots.SetLocation( _ptr, hScreenshot, pchLocation );
else return Platform.Win64.ISteamScreenshots.SetLocation( _ptr, hScreenshot, pchLocation );
}
@ -37,6 +43,8 @@ public bool SetLocation( ScreenshotHandle hScreenshot /*ScreenshotHandle*/, stri
// bool
public bool TagPublishedFile( ScreenshotHandle hScreenshot /*ScreenshotHandle*/, PublishedFileId_t unPublishedFileID /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamScreenshots.TagPublishedFile( _ptr, hScreenshot, unPublishedFileID );
else return Platform.Win64.ISteamScreenshots.TagPublishedFile( _ptr, hScreenshot, unPublishedFileID );
}
@ -44,6 +52,8 @@ public bool TagPublishedFile( ScreenshotHandle hScreenshot /*ScreenshotHandle*/,
// bool
public bool TagUser( ScreenshotHandle hScreenshot /*ScreenshotHandle*/, CSteamID steamID /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamScreenshots.TagUser( _ptr, hScreenshot, steamID );
else return Platform.Win64.ISteamScreenshots.TagUser( _ptr, hScreenshot, steamID );
}
@ -51,6 +61,8 @@ public bool TagUser( ScreenshotHandle hScreenshot /*ScreenshotHandle*/, CSteamID
// void
public void TriggerScreenshot()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamScreenshots.TriggerScreenshot( _ptr );
else Platform.Win64.ISteamScreenshots.TriggerScreenshot( _ptr );
}
@ -58,6 +70,8 @@ public void TriggerScreenshot()
// ScreenshotHandle
public ScreenshotHandle WriteScreenshot( IntPtr pubRGB /*void **/, uint cubRGB /*uint32*/, int nWidth /*int*/, int nHeight /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamScreenshots.WriteScreenshot( _ptr, (IntPtr) pubRGB, cubRGB, nWidth, nHeight );
else return Platform.Win64.ISteamScreenshots.WriteScreenshot( _ptr, (IntPtr) pubRGB, cubRGB, nWidth, nHeight );
}

View File

@ -16,6 +16,8 @@ public SteamUGC( IntPtr pointer )
// bool
public bool AddExcludedTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pTagName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.AddExcludedTag( _ptr, handle, pTagName );
else return Platform.Win64.ISteamUGC.AddExcludedTag( _ptr, handle, pTagName );
}
@ -23,6 +25,8 @@ public bool AddExcludedTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string
// bool
public bool AddItemKeyValueTag( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchKey /*const char **/, string pchValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.AddItemKeyValueTag( _ptr, handle, pchKey, pchValue );
else return Platform.Win64.ISteamUGC.AddItemKeyValueTag( _ptr, handle, pchKey, pchValue );
}
@ -30,6 +34,8 @@ public bool AddItemKeyValueTag( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/,
// bool
public bool AddItemPreviewFile( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pszPreviewFile /*const char **/, ItemPreviewType type /*EItemPreviewType*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.AddItemPreviewFile( _ptr, handle, pszPreviewFile, type );
else return Platform.Win64.ISteamUGC.AddItemPreviewFile( _ptr, handle, pszPreviewFile, type );
}
@ -37,6 +43,8 @@ public bool AddItemPreviewFile( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/,
// bool
public bool AddItemPreviewVideo( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pszVideoID /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.AddItemPreviewVideo( _ptr, handle, pszVideoID );
else return Platform.Win64.ISteamUGC.AddItemPreviewVideo( _ptr, handle, pszVideoID );
}
@ -44,6 +52,8 @@ public bool AddItemPreviewVideo( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/,
// SteamAPICall_t
public SteamAPICall_t AddItemToFavorites( AppId_t nAppId /*AppId_t*/, PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.AddItemToFavorites( _ptr, nAppId, nPublishedFileID );
else return Platform.Win64.ISteamUGC.AddItemToFavorites( _ptr, nAppId, nPublishedFileID );
}
@ -51,6 +61,8 @@ public SteamAPICall_t AddItemToFavorites( AppId_t nAppId /*AppId_t*/, PublishedF
// bool
public bool AddRequiredKeyValueTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pKey /*const char **/, string pValue /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.AddRequiredKeyValueTag( _ptr, handle, pKey, pValue );
else return Platform.Win64.ISteamUGC.AddRequiredKeyValueTag( _ptr, handle, pKey, pValue );
}
@ -58,6 +70,8 @@ public bool AddRequiredKeyValueTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/
// bool
public bool AddRequiredTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pTagName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.AddRequiredTag( _ptr, handle, pTagName );
else return Platform.Win64.ISteamUGC.AddRequiredTag( _ptr, handle, pTagName );
}
@ -65,6 +79,8 @@ public bool AddRequiredTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string
// bool
public bool BInitWorkshopForGameServer( DepotId_t unWorkshopDepotID /*DepotId_t*/, string pszFolder /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.BInitWorkshopForGameServer( _ptr, unWorkshopDepotID, pszFolder );
else return Platform.Win64.ISteamUGC.BInitWorkshopForGameServer( _ptr, unWorkshopDepotID, pszFolder );
}
@ -72,6 +88,8 @@ public bool BInitWorkshopForGameServer( DepotId_t unWorkshopDepotID /*DepotId_t*
// SteamAPICall_t
public SteamAPICall_t CreateItem( AppId_t nConsumerAppId /*AppId_t*/, WorkshopFileType eFileType /*EWorkshopFileType*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.CreateItem( _ptr, nConsumerAppId, eFileType );
else return Platform.Win64.ISteamUGC.CreateItem( _ptr, nConsumerAppId, eFileType );
}
@ -79,6 +97,8 @@ public SteamAPICall_t CreateItem( AppId_t nConsumerAppId /*AppId_t*/, WorkshopFi
// UGCQueryHandle_t
public UGCQueryHandle_t CreateQueryAllUGCRequest( UGCQuery eQueryType /*EUGCQuery*/, UGCMatchingUGCType eMatchingeMatchingUGCTypeFileType /*EUGCMatchingUGCType*/, AppId_t nCreatorAppID /*AppId_t*/, AppId_t nConsumerAppID /*AppId_t*/, uint unPage /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.CreateQueryAllUGCRequest( _ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage );
else return Platform.Win64.ISteamUGC.CreateQueryAllUGCRequest( _ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage );
}
@ -87,6 +107,8 @@ public UGCQueryHandle_t CreateQueryAllUGCRequest( UGCQuery eQueryType /*EUGCQuer
// UGCQueryHandle_t
public UGCQueryHandle_t CreateQueryUGCDetailsRequest( PublishedFileId_t[] pvecPublishedFileID /*PublishedFileId_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
var unNumPublishedFileIDs = (uint) pvecPublishedFileID.Length;
fixed ( PublishedFileId_t* pvecPublishedFileID_ptr = pvecPublishedFileID )
{
@ -98,6 +120,8 @@ public UGCQueryHandle_t CreateQueryUGCDetailsRequest( PublishedFileId_t[] pvecPu
// UGCQueryHandle_t
public UGCQueryHandle_t CreateQueryUserUGCRequest( AccountID_t unAccountID /*AccountID_t*/, UserUGCList eListType /*EUserUGCList*/, UGCMatchingUGCType eMatchingUGCType /*EUGCMatchingUGCType*/, UserUGCListSortOrder eSortOrder /*EUserUGCListSortOrder*/, AppId_t nCreatorAppID /*AppId_t*/, AppId_t nConsumerAppID /*AppId_t*/, uint unPage /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.CreateQueryUserUGCRequest( _ptr, unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage );
else return Platform.Win64.ISteamUGC.CreateQueryUserUGCRequest( _ptr, unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage );
}
@ -105,6 +129,8 @@ public UGCQueryHandle_t CreateQueryUserUGCRequest( AccountID_t unAccountID /*Acc
// bool
public bool DownloadItem( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, bool bHighPriority /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.DownloadItem( _ptr, nPublishedFileID, bHighPriority );
else return Platform.Win64.ISteamUGC.DownloadItem( _ptr, nPublishedFileID, bHighPriority );
}
@ -112,6 +138,8 @@ public bool DownloadItem( PublishedFileId_t nPublishedFileID /*PublishedFileId_t
// bool
public bool GetItemDownloadInfo( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, out ulong punBytesDownloaded /*uint64 **/, out ulong punBytesTotal /*uint64 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetItemDownloadInfo( _ptr, nPublishedFileID, out punBytesDownloaded, out punBytesTotal );
else return Platform.Win64.ISteamUGC.GetItemDownloadInfo( _ptr, nPublishedFileID, out punBytesDownloaded, out punBytesTotal );
}
@ -120,23 +148,24 @@ public bool GetItemDownloadInfo( PublishedFileId_t nPublishedFileID /*PublishedF
// with: Detect_StringFetch False
public bool GetItemInstallInfo( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, out ulong punSizeOnDisk /*uint64 **/, out string pchFolder /*char **/, out uint punTimeStamp /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
pchFolder = string.Empty;
var pchFolder_buffer = new char[4096];
fixed ( void* pchFolder_ptr = pchFolder_buffer )
{
uint cchFolderSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetItemInstallInfo( _ptr, nPublishedFileID, out punSizeOnDisk, (char*)pchFolder_ptr, cchFolderSize, out punTimeStamp );
else bSuccess = Platform.Win64.ISteamUGC.GetItemInstallInfo( _ptr, nPublishedFileID, out punSizeOnDisk, (char*)pchFolder_ptr, cchFolderSize, out punTimeStamp );
if ( !bSuccess ) return bSuccess;
pchFolder = Marshal.PtrToStringAuto( (IntPtr)pchFolder_ptr );
}
System.Text.StringBuilder pchFolder_sb = new System.Text.StringBuilder( 4096 );
uint cchFolderSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetItemInstallInfo( _ptr, nPublishedFileID, out punSizeOnDisk, pchFolder_sb, cchFolderSize, out punTimeStamp );
else bSuccess = Platform.Win64.ISteamUGC.GetItemInstallInfo( _ptr, nPublishedFileID, out punSizeOnDisk, pchFolder_sb, cchFolderSize, out punTimeStamp );
if ( !bSuccess ) return bSuccess;
pchFolder = pchFolder_sb.ToString();
return bSuccess;
}
// uint
public uint GetItemState( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetItemState( _ptr, nPublishedFileID );
else return Platform.Win64.ISteamUGC.GetItemState( _ptr, nPublishedFileID );
}
@ -144,6 +173,8 @@ public uint GetItemState( PublishedFileId_t nPublishedFileID /*PublishedFileId_t
// ItemUpdateStatus
public ItemUpdateStatus GetItemUpdateProgress( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, out ulong punBytesProcessed /*uint64 **/, out ulong punBytesTotal /*uint64 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetItemUpdateProgress( _ptr, handle, out punBytesProcessed, out punBytesTotal );
else return Platform.Win64.ISteamUGC.GetItemUpdateProgress( _ptr, handle, out punBytesProcessed, out punBytesTotal );
}
@ -151,6 +182,8 @@ public ItemUpdateStatus GetItemUpdateProgress( UGCUpdateHandle_t handle /*UGCUpd
// uint
public uint GetNumSubscribedItems()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetNumSubscribedItems( _ptr );
else return Platform.Win64.ISteamUGC.GetNumSubscribedItems( _ptr );
}
@ -160,31 +193,29 @@ public uint GetNumSubscribedItems()
// with: Detect_StringFetch False
public bool GetQueryUGCAdditionalPreview( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, uint previewIndex /*uint32*/, out string pchURLOrVideoID /*char **/, out string pchOriginalFileName /*char **/, out ItemPreviewType pPreviewType /*EItemPreviewType **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
pchURLOrVideoID = string.Empty;
var pchURLOrVideoID_buffer = new char[4096];
fixed ( void* pchURLOrVideoID_ptr = pchURLOrVideoID_buffer )
{
uint cchURLSize = 4096;
pchOriginalFileName = string.Empty;
var pchOriginalFileName_buffer = new char[4096];
fixed ( void* pchOriginalFileName_ptr = pchOriginalFileName_buffer )
{
uint cchOriginalFileNameSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetQueryUGCAdditionalPreview( _ptr, handle, index, previewIndex, (char*)pchURLOrVideoID_ptr, cchURLSize, (char*)pchOriginalFileName_ptr, cchOriginalFileNameSize, out pPreviewType );
else bSuccess = Platform.Win64.ISteamUGC.GetQueryUGCAdditionalPreview( _ptr, handle, index, previewIndex, (char*)pchURLOrVideoID_ptr, cchURLSize, (char*)pchOriginalFileName_ptr, cchOriginalFileNameSize, out pPreviewType );
if ( !bSuccess ) return bSuccess;
pchOriginalFileName = Marshal.PtrToStringAuto( (IntPtr)pchOriginalFileName_ptr );
}
if ( !bSuccess ) return bSuccess;
pchURLOrVideoID = Marshal.PtrToStringAuto( (IntPtr)pchURLOrVideoID_ptr );
}
System.Text.StringBuilder pchURLOrVideoID_sb = new System.Text.StringBuilder( 4096 );
uint cchURLSize = 4096;
pchOriginalFileName = string.Empty;
System.Text.StringBuilder pchOriginalFileName_sb = new System.Text.StringBuilder( 4096 );
uint cchOriginalFileNameSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetQueryUGCAdditionalPreview( _ptr, handle, index, previewIndex, pchURLOrVideoID_sb, cchURLSize, pchOriginalFileName_sb, cchOriginalFileNameSize, out pPreviewType );
else bSuccess = Platform.Win64.ISteamUGC.GetQueryUGCAdditionalPreview( _ptr, handle, index, previewIndex, pchURLOrVideoID_sb, cchURLSize, pchOriginalFileName_sb, cchOriginalFileNameSize, out pPreviewType );
if ( !bSuccess ) return bSuccess;
pchOriginalFileName = pchOriginalFileName_sb.ToString();
if ( !bSuccess ) return bSuccess;
pchURLOrVideoID = pchURLOrVideoID_sb.ToString();
return bSuccess;
}
// bool
public bool GetQueryUGCChildren( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, PublishedFileId_t* pvecPublishedFileID /*PublishedFileId_t **/, uint cMaxEntries /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetQueryUGCChildren( _ptr, handle, index, (IntPtr) pvecPublishedFileID, cMaxEntries );
else return Platform.Win64.ISteamUGC.GetQueryUGCChildren( _ptr, handle, index, (IntPtr) pvecPublishedFileID, cMaxEntries );
}
@ -194,25 +225,21 @@ public bool GetQueryUGCChildren( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, u
// with: Detect_StringFetch False
public bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, uint keyValueTagIndex /*uint32*/, out string pchKey /*char **/, out string pchValue /*char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
pchKey = string.Empty;
var pchKey_buffer = new char[4096];
fixed ( void* pchKey_ptr = pchKey_buffer )
{
uint cchKeySize = 4096;
pchValue = string.Empty;
var pchValue_buffer = new char[4096];
fixed ( void* pchValue_ptr = pchValue_buffer )
{
uint cchValueSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetQueryUGCKeyValueTag( _ptr, handle, index, keyValueTagIndex, (char*)pchKey_ptr, cchKeySize, (char*)pchValue_ptr, cchValueSize );
else bSuccess = Platform.Win64.ISteamUGC.GetQueryUGCKeyValueTag( _ptr, handle, index, keyValueTagIndex, (char*)pchKey_ptr, cchKeySize, (char*)pchValue_ptr, cchValueSize );
if ( !bSuccess ) return bSuccess;
pchValue = Marshal.PtrToStringAuto( (IntPtr)pchValue_ptr );
}
if ( !bSuccess ) return bSuccess;
pchKey = Marshal.PtrToStringAuto( (IntPtr)pchKey_ptr );
}
System.Text.StringBuilder pchKey_sb = new System.Text.StringBuilder( 4096 );
uint cchKeySize = 4096;
pchValue = string.Empty;
System.Text.StringBuilder pchValue_sb = new System.Text.StringBuilder( 4096 );
uint cchValueSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetQueryUGCKeyValueTag( _ptr, handle, index, keyValueTagIndex, pchKey_sb, cchKeySize, pchValue_sb, cchValueSize );
else bSuccess = Platform.Win64.ISteamUGC.GetQueryUGCKeyValueTag( _ptr, handle, index, keyValueTagIndex, pchKey_sb, cchKeySize, pchValue_sb, cchValueSize );
if ( !bSuccess ) return bSuccess;
pchValue = pchValue_sb.ToString();
if ( !bSuccess ) return bSuccess;
pchKey = pchKey_sb.ToString();
return bSuccess;
}
@ -220,23 +247,24 @@ public bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/
// with: Detect_StringFetch False
public bool GetQueryUGCMetadata( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, out string pchMetadata /*char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
pchMetadata = string.Empty;
var pchMetadata_buffer = new char[4096];
fixed ( void* pchMetadata_ptr = pchMetadata_buffer )
{
uint cchMetadatasize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetQueryUGCMetadata( _ptr, handle, index, (char*)pchMetadata_ptr, cchMetadatasize );
else bSuccess = Platform.Win64.ISteamUGC.GetQueryUGCMetadata( _ptr, handle, index, (char*)pchMetadata_ptr, cchMetadatasize );
if ( !bSuccess ) return bSuccess;
pchMetadata = Marshal.PtrToStringAuto( (IntPtr)pchMetadata_ptr );
}
System.Text.StringBuilder pchMetadata_sb = new System.Text.StringBuilder( 4096 );
uint cchMetadatasize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetQueryUGCMetadata( _ptr, handle, index, pchMetadata_sb, cchMetadatasize );
else bSuccess = Platform.Win64.ISteamUGC.GetQueryUGCMetadata( _ptr, handle, index, pchMetadata_sb, cchMetadatasize );
if ( !bSuccess ) return bSuccess;
pchMetadata = pchMetadata_sb.ToString();
return bSuccess;
}
// uint
public uint GetQueryUGCNumAdditionalPreviews( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetQueryUGCNumAdditionalPreviews( _ptr, handle, index );
else return Platform.Win64.ISteamUGC.GetQueryUGCNumAdditionalPreviews( _ptr, handle, index );
}
@ -244,6 +272,8 @@ public uint GetQueryUGCNumAdditionalPreviews( UGCQueryHandle_t handle /*UGCQuery
// uint
public uint GetQueryUGCNumKeyValueTags( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetQueryUGCNumKeyValueTags( _ptr, handle, index );
else return Platform.Win64.ISteamUGC.GetQueryUGCNumKeyValueTags( _ptr, handle, index );
}
@ -252,30 +282,33 @@ public uint GetQueryUGCNumKeyValueTags( UGCQueryHandle_t handle /*UGCQueryHandle
// with: Detect_StringFetch False
public bool GetQueryUGCPreviewURL( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, out string pchURL /*char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
pchURL = string.Empty;
var pchURL_buffer = new char[4096];
fixed ( void* pchURL_ptr = pchURL_buffer )
{
uint cchURLSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetQueryUGCPreviewURL( _ptr, handle, index, (char*)pchURL_ptr, cchURLSize );
else bSuccess = Platform.Win64.ISteamUGC.GetQueryUGCPreviewURL( _ptr, handle, index, (char*)pchURL_ptr, cchURLSize );
if ( !bSuccess ) return bSuccess;
pchURL = Marshal.PtrToStringAuto( (IntPtr)pchURL_ptr );
}
System.Text.StringBuilder pchURL_sb = new System.Text.StringBuilder( 4096 );
uint cchURLSize = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUGC.GetQueryUGCPreviewURL( _ptr, handle, index, pchURL_sb, cchURLSize );
else bSuccess = Platform.Win64.ISteamUGC.GetQueryUGCPreviewURL( _ptr, handle, index, pchURL_sb, cchURLSize );
if ( !bSuccess ) return bSuccess;
pchURL = pchURL_sb.ToString();
return bSuccess;
}
// bool
public bool GetQueryUGCResult( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, IntPtr pDetails /*struct SteamUGCDetails_t **/ )
public bool GetQueryUGCResult( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, ref SteamUGCDetails_t pDetails /*struct SteamUGCDetails_t **/ )
{
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetQueryUGCResult( _ptr, handle, index, (IntPtr) pDetails );
else return Platform.Win64.ISteamUGC.GetQueryUGCResult( _ptr, handle, index, (IntPtr) pDetails );
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetQueryUGCResult( _ptr, handle, index, ref pDetails );
else return Platform.Win64.ISteamUGC.GetQueryUGCResult( _ptr, handle, index, ref pDetails );
}
// bool
public bool GetQueryUGCStatistic( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint index /*uint32*/, ItemStatistic eStatType /*EItemStatistic*/, out uint pStatValue /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetQueryUGCStatistic( _ptr, handle, index, eStatType, out pStatValue );
else return Platform.Win64.ISteamUGC.GetQueryUGCStatistic( _ptr, handle, index, eStatType, out pStatValue );
}
@ -283,6 +316,8 @@ public bool GetQueryUGCStatistic( UGCQueryHandle_t handle /*UGCQueryHandle_t*/,
// uint
public uint GetSubscribedItems( PublishedFileId_t* pvecPublishedFileID /*PublishedFileId_t **/, uint cMaxEntries /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetSubscribedItems( _ptr, (IntPtr) pvecPublishedFileID, cMaxEntries );
else return Platform.Win64.ISteamUGC.GetSubscribedItems( _ptr, (IntPtr) pvecPublishedFileID, cMaxEntries );
}
@ -290,6 +325,8 @@ public uint GetSubscribedItems( PublishedFileId_t* pvecPublishedFileID /*Publish
// SteamAPICall_t
public SteamAPICall_t GetUserItemVote( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.GetUserItemVote( _ptr, nPublishedFileID );
else return Platform.Win64.ISteamUGC.GetUserItemVote( _ptr, nPublishedFileID );
}
@ -297,6 +334,8 @@ public SteamAPICall_t GetUserItemVote( PublishedFileId_t nPublishedFileID /*Publ
// bool
public bool ReleaseQueryUGCRequest( UGCQueryHandle_t handle /*UGCQueryHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.ReleaseQueryUGCRequest( _ptr, handle );
else return Platform.Win64.ISteamUGC.ReleaseQueryUGCRequest( _ptr, handle );
}
@ -304,6 +343,8 @@ public bool ReleaseQueryUGCRequest( UGCQueryHandle_t handle /*UGCQueryHandle_t*/
// SteamAPICall_t
public SteamAPICall_t RemoveItemFromFavorites( AppId_t nAppId /*AppId_t*/, PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.RemoveItemFromFavorites( _ptr, nAppId, nPublishedFileID );
else return Platform.Win64.ISteamUGC.RemoveItemFromFavorites( _ptr, nAppId, nPublishedFileID );
}
@ -311,6 +352,8 @@ public SteamAPICall_t RemoveItemFromFavorites( AppId_t nAppId /*AppId_t*/, Publi
// bool
public bool RemoveItemKeyValueTags( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchKey /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.RemoveItemKeyValueTags( _ptr, handle, pchKey );
else return Platform.Win64.ISteamUGC.RemoveItemKeyValueTags( _ptr, handle, pchKey );
}
@ -318,6 +361,8 @@ public bool RemoveItemKeyValueTags( UGCUpdateHandle_t handle /*UGCUpdateHandle_t
// bool
public bool RemoveItemPreview( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, uint index /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.RemoveItemPreview( _ptr, handle, index );
else return Platform.Win64.ISteamUGC.RemoveItemPreview( _ptr, handle, index );
}
@ -325,6 +370,8 @@ public bool RemoveItemPreview( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, u
// SteamAPICall_t
public SteamAPICall_t RequestUGCDetails( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, uint unMaxAgeSeconds /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.RequestUGCDetails( _ptr, nPublishedFileID, unMaxAgeSeconds );
else return Platform.Win64.ISteamUGC.RequestUGCDetails( _ptr, nPublishedFileID, unMaxAgeSeconds );
}
@ -332,6 +379,8 @@ public SteamAPICall_t RequestUGCDetails( PublishedFileId_t nPublishedFileID /*Pu
// SteamAPICall_t
public SteamAPICall_t SendQueryUGCRequest( UGCQueryHandle_t handle /*UGCQueryHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SendQueryUGCRequest( _ptr, handle );
else return Platform.Win64.ISteamUGC.SendQueryUGCRequest( _ptr, handle );
}
@ -339,6 +388,8 @@ public SteamAPICall_t SendQueryUGCRequest( UGCQueryHandle_t handle /*UGCQueryHan
// bool
public bool SetAllowCachedResponse( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint unMaxAgeSeconds /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetAllowCachedResponse( _ptr, handle, unMaxAgeSeconds );
else return Platform.Win64.ISteamUGC.SetAllowCachedResponse( _ptr, handle, unMaxAgeSeconds );
}
@ -346,6 +397,8 @@ public bool SetAllowCachedResponse( UGCQueryHandle_t handle /*UGCQueryHandle_t*/
// bool
public bool SetCloudFileNameFilter( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pMatchCloudFileName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetCloudFileNameFilter( _ptr, handle, pMatchCloudFileName );
else return Platform.Win64.ISteamUGC.SetCloudFileNameFilter( _ptr, handle, pMatchCloudFileName );
}
@ -353,6 +406,8 @@ public bool SetCloudFileNameFilter( UGCQueryHandle_t handle /*UGCQueryHandle_t*/
// bool
public bool SetItemContent( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pszContentFolder /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetItemContent( _ptr, handle, pszContentFolder );
else return Platform.Win64.ISteamUGC.SetItemContent( _ptr, handle, pszContentFolder );
}
@ -360,6 +415,8 @@ public bool SetItemContent( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, stri
// bool
public bool SetItemDescription( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchDescription /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetItemDescription( _ptr, handle, pchDescription );
else return Platform.Win64.ISteamUGC.SetItemDescription( _ptr, handle, pchDescription );
}
@ -367,6 +424,8 @@ public bool SetItemDescription( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/,
// bool
public bool SetItemMetadata( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchMetaData /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetItemMetadata( _ptr, handle, pchMetaData );
else return Platform.Win64.ISteamUGC.SetItemMetadata( _ptr, handle, pchMetaData );
}
@ -374,6 +433,8 @@ public bool SetItemMetadata( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, str
// bool
public bool SetItemPreview( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pszPreviewFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetItemPreview( _ptr, handle, pszPreviewFile );
else return Platform.Win64.ISteamUGC.SetItemPreview( _ptr, handle, pszPreviewFile );
}
@ -381,6 +442,8 @@ public bool SetItemPreview( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, stri
// bool
public bool SetItemTags( UGCUpdateHandle_t updateHandle /*UGCUpdateHandle_t*/, IntPtr pTags /*const struct SteamParamStringArray_t **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetItemTags( _ptr, updateHandle, (IntPtr) pTags );
else return Platform.Win64.ISteamUGC.SetItemTags( _ptr, updateHandle, (IntPtr) pTags );
}
@ -388,6 +451,8 @@ public bool SetItemTags( UGCUpdateHandle_t updateHandle /*UGCUpdateHandle_t*/, I
// bool
public bool SetItemTitle( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchTitle /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetItemTitle( _ptr, handle, pchTitle );
else return Platform.Win64.ISteamUGC.SetItemTitle( _ptr, handle, pchTitle );
}
@ -395,6 +460,8 @@ public bool SetItemTitle( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string
// bool
public bool SetItemUpdateLanguage( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchLanguage /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetItemUpdateLanguage( _ptr, handle, pchLanguage );
else return Platform.Win64.ISteamUGC.SetItemUpdateLanguage( _ptr, handle, pchLanguage );
}
@ -402,6 +469,8 @@ public bool SetItemUpdateLanguage( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*
// bool
public bool SetItemVisibility( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, RemoteStoragePublishedFileVisibility eVisibility /*ERemoteStoragePublishedFileVisibility*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetItemVisibility( _ptr, handle, eVisibility );
else return Platform.Win64.ISteamUGC.SetItemVisibility( _ptr, handle, eVisibility );
}
@ -409,6 +478,8 @@ public bool SetItemVisibility( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, R
// bool
public bool SetLanguage( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pchLanguage /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetLanguage( _ptr, handle, pchLanguage );
else return Platform.Win64.ISteamUGC.SetLanguage( _ptr, handle, pchLanguage );
}
@ -416,6 +487,8 @@ public bool SetLanguage( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pc
// bool
public bool SetMatchAnyTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bMatchAnyTag /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetMatchAnyTag( _ptr, handle, bMatchAnyTag );
else return Platform.Win64.ISteamUGC.SetMatchAnyTag( _ptr, handle, bMatchAnyTag );
}
@ -423,6 +496,8 @@ public bool SetMatchAnyTag( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool b
// bool
public bool SetRankedByTrendDays( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, uint unDays /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetRankedByTrendDays( _ptr, handle, unDays );
else return Platform.Win64.ISteamUGC.SetRankedByTrendDays( _ptr, handle, unDays );
}
@ -430,6 +505,8 @@ public bool SetRankedByTrendDays( UGCQueryHandle_t handle /*UGCQueryHandle_t*/,
// bool
public bool SetReturnAdditionalPreviews( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnAdditionalPreviews /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetReturnAdditionalPreviews( _ptr, handle, bReturnAdditionalPreviews );
else return Platform.Win64.ISteamUGC.SetReturnAdditionalPreviews( _ptr, handle, bReturnAdditionalPreviews );
}
@ -437,6 +514,8 @@ public bool SetReturnAdditionalPreviews( UGCQueryHandle_t handle /*UGCQueryHandl
// bool
public bool SetReturnChildren( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnChildren /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetReturnChildren( _ptr, handle, bReturnChildren );
else return Platform.Win64.ISteamUGC.SetReturnChildren( _ptr, handle, bReturnChildren );
}
@ -444,6 +523,8 @@ public bool SetReturnChildren( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, boo
// bool
public bool SetReturnKeyValueTags( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnKeyValueTags /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetReturnKeyValueTags( _ptr, handle, bReturnKeyValueTags );
else return Platform.Win64.ISteamUGC.SetReturnKeyValueTags( _ptr, handle, bReturnKeyValueTags );
}
@ -451,6 +532,8 @@ public bool SetReturnKeyValueTags( UGCQueryHandle_t handle /*UGCQueryHandle_t*/,
// bool
public bool SetReturnLongDescription( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnLongDescription /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetReturnLongDescription( _ptr, handle, bReturnLongDescription );
else return Platform.Win64.ISteamUGC.SetReturnLongDescription( _ptr, handle, bReturnLongDescription );
}
@ -458,6 +541,8 @@ public bool SetReturnLongDescription( UGCQueryHandle_t handle /*UGCQueryHandle_t
// bool
public bool SetReturnMetadata( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnMetadata /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetReturnMetadata( _ptr, handle, bReturnMetadata );
else return Platform.Win64.ISteamUGC.SetReturnMetadata( _ptr, handle, bReturnMetadata );
}
@ -465,6 +550,8 @@ public bool SetReturnMetadata( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, boo
// bool
public bool SetReturnTotalOnly( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bool bReturnTotalOnly /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetReturnTotalOnly( _ptr, handle, bReturnTotalOnly );
else return Platform.Win64.ISteamUGC.SetReturnTotalOnly( _ptr, handle, bReturnTotalOnly );
}
@ -472,6 +559,8 @@ public bool SetReturnTotalOnly( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, bo
// bool
public bool SetSearchText( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string pSearchText /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetSearchText( _ptr, handle, pSearchText );
else return Platform.Win64.ISteamUGC.SetSearchText( _ptr, handle, pSearchText );
}
@ -479,6 +568,8 @@ public bool SetSearchText( UGCQueryHandle_t handle /*UGCQueryHandle_t*/, string
// SteamAPICall_t
public SteamAPICall_t SetUserItemVote( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/, bool bVoteUp /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SetUserItemVote( _ptr, nPublishedFileID, bVoteUp );
else return Platform.Win64.ISteamUGC.SetUserItemVote( _ptr, nPublishedFileID, bVoteUp );
}
@ -486,6 +577,8 @@ public SteamAPICall_t SetUserItemVote( PublishedFileId_t nPublishedFileID /*Publ
// UGCUpdateHandle_t
public UGCUpdateHandle_t StartItemUpdate( AppId_t nConsumerAppId /*AppId_t*/, PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.StartItemUpdate( _ptr, nConsumerAppId, nPublishedFileID );
else return Platform.Win64.ISteamUGC.StartItemUpdate( _ptr, nConsumerAppId, nPublishedFileID );
}
@ -493,6 +586,8 @@ public UGCUpdateHandle_t StartItemUpdate( AppId_t nConsumerAppId /*AppId_t*/, Pu
// SteamAPICall_t
public SteamAPICall_t SubmitItemUpdate( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, string pchChangeNote /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SubmitItemUpdate( _ptr, handle, pchChangeNote );
else return Platform.Win64.ISteamUGC.SubmitItemUpdate( _ptr, handle, pchChangeNote );
}
@ -500,6 +595,8 @@ public SteamAPICall_t SubmitItemUpdate( UGCUpdateHandle_t handle /*UGCUpdateHand
// SteamAPICall_t
public SteamAPICall_t SubscribeItem( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.SubscribeItem( _ptr, nPublishedFileID );
else return Platform.Win64.ISteamUGC.SubscribeItem( _ptr, nPublishedFileID );
}
@ -507,6 +604,8 @@ public SteamAPICall_t SubscribeItem( PublishedFileId_t nPublishedFileID /*Publis
// void
public void SuspendDownloads( bool bSuspend /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUGC.SuspendDownloads( _ptr, bSuspend );
else Platform.Win64.ISteamUGC.SuspendDownloads( _ptr, bSuspend );
}
@ -514,6 +613,8 @@ public void SuspendDownloads( bool bSuspend /*bool*/ )
// SteamAPICall_t
public SteamAPICall_t UnsubscribeItem( PublishedFileId_t nPublishedFileID /*PublishedFileId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.UnsubscribeItem( _ptr, nPublishedFileID );
else return Platform.Win64.ISteamUGC.UnsubscribeItem( _ptr, nPublishedFileID );
}
@ -521,6 +622,8 @@ public SteamAPICall_t UnsubscribeItem( PublishedFileId_t nPublishedFileID /*Publ
// bool
public bool UpdateItemPreviewFile( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, uint index /*uint32*/, string pszPreviewFile /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.UpdateItemPreviewFile( _ptr, handle, index, pszPreviewFile );
else return Platform.Win64.ISteamUGC.UpdateItemPreviewFile( _ptr, handle, index, pszPreviewFile );
}
@ -528,6 +631,8 @@ public bool UpdateItemPreviewFile( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*
// bool
public bool UpdateItemPreviewVideo( UGCUpdateHandle_t handle /*UGCUpdateHandle_t*/, uint index /*uint32*/, string pszVideoID /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUGC.UpdateItemPreviewVideo( _ptr, handle, index, pszVideoID );
else return Platform.Win64.ISteamUGC.UpdateItemPreviewVideo( _ptr, handle, index, pszVideoID );
}

View File

@ -16,6 +16,8 @@ public SteamUnifiedMessages( IntPtr pointer )
// bool
public bool GetMethodResponseData( ClientUnifiedMessageHandle hHandle /*ClientUnifiedMessageHandle*/, IntPtr pResponseBuffer /*void **/, uint unResponseBufferSize /*uint32*/, bool bAutoRelease /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUnifiedMessages.GetMethodResponseData( _ptr, hHandle, (IntPtr) pResponseBuffer, unResponseBufferSize, bAutoRelease );
else return Platform.Win64.ISteamUnifiedMessages.GetMethodResponseData( _ptr, hHandle, (IntPtr) pResponseBuffer, unResponseBufferSize, bAutoRelease );
}
@ -23,6 +25,8 @@ public bool GetMethodResponseData( ClientUnifiedMessageHandle hHandle /*ClientUn
// bool
public bool GetMethodResponseInfo( ClientUnifiedMessageHandle hHandle /*ClientUnifiedMessageHandle*/, out uint punResponseSize /*uint32 **/, out Result peResult /*EResult **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUnifiedMessages.GetMethodResponseInfo( _ptr, hHandle, out punResponseSize, out peResult );
else return Platform.Win64.ISteamUnifiedMessages.GetMethodResponseInfo( _ptr, hHandle, out punResponseSize, out peResult );
}
@ -30,6 +34,8 @@ public bool GetMethodResponseInfo( ClientUnifiedMessageHandle hHandle /*ClientUn
// bool
public bool ReleaseMethod( ClientUnifiedMessageHandle hHandle /*ClientUnifiedMessageHandle*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUnifiedMessages.ReleaseMethod( _ptr, hHandle );
else return Platform.Win64.ISteamUnifiedMessages.ReleaseMethod( _ptr, hHandle );
}
@ -37,6 +43,8 @@ public bool ReleaseMethod( ClientUnifiedMessageHandle hHandle /*ClientUnifiedMes
// ClientUnifiedMessageHandle
public ClientUnifiedMessageHandle SendMethod( string pchServiceMethod /*const char **/, IntPtr pRequestBuffer /*const void **/, uint unRequestBufferSize /*uint32*/, ulong unContext /*uint64*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUnifiedMessages.SendMethod( _ptr, pchServiceMethod, (IntPtr) pRequestBuffer, unRequestBufferSize, unContext );
else return Platform.Win64.ISteamUnifiedMessages.SendMethod( _ptr, pchServiceMethod, (IntPtr) pRequestBuffer, unRequestBufferSize, unContext );
}
@ -44,6 +52,8 @@ public ClientUnifiedMessageHandle SendMethod( string pchServiceMethod /*const ch
// bool
public bool SendNotification( string pchServiceNotification /*const char **/, IntPtr pNotificationBuffer /*const void **/, uint unNotificationBufferSize /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUnifiedMessages.SendNotification( _ptr, pchServiceNotification, (IntPtr) pNotificationBuffer, unNotificationBufferSize );
else return Platform.Win64.ISteamUnifiedMessages.SendNotification( _ptr, pchServiceNotification, (IntPtr) pNotificationBuffer, unNotificationBufferSize );
}

View File

@ -16,6 +16,8 @@ public SteamUser( IntPtr pointer )
// void
public void AdvertiseGame( CSteamID steamIDGameServer /*class CSteamID*/, uint unIPServer /*uint32*/, ushort usPortServer /*uint16*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUser.AdvertiseGame( _ptr, steamIDGameServer, unIPServer, usPortServer );
else Platform.Win64.ISteamUser.AdvertiseGame( _ptr, steamIDGameServer, unIPServer, usPortServer );
}
@ -23,6 +25,8 @@ public void AdvertiseGame( CSteamID steamIDGameServer /*class CSteamID*/, uint u
// BeginAuthSessionResult
public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket /*const void **/, int cbAuthTicket /*int*/, CSteamID steamID /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.BeginAuthSession( _ptr, (IntPtr) pAuthTicket, cbAuthTicket, steamID );
else return Platform.Win64.ISteamUser.BeginAuthSession( _ptr, (IntPtr) pAuthTicket, cbAuthTicket, steamID );
}
@ -30,6 +34,8 @@ public BeginAuthSessionResult BeginAuthSession( IntPtr pAuthTicket /*const void
// bool
public bool BIsBehindNAT()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.BIsBehindNAT( _ptr );
else return Platform.Win64.ISteamUser.BIsBehindNAT( _ptr );
}
@ -37,6 +43,8 @@ public bool BIsBehindNAT()
// bool
public bool BIsPhoneVerified()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.BIsPhoneVerified( _ptr );
else return Platform.Win64.ISteamUser.BIsPhoneVerified( _ptr );
}
@ -44,6 +52,8 @@ public bool BIsPhoneVerified()
// bool
public bool BIsTwoFactorEnabled()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.BIsTwoFactorEnabled( _ptr );
else return Platform.Win64.ISteamUser.BIsTwoFactorEnabled( _ptr );
}
@ -51,6 +61,8 @@ public bool BIsTwoFactorEnabled()
// bool
public bool BLoggedOn()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.BLoggedOn( _ptr );
else return Platform.Win64.ISteamUser.BLoggedOn( _ptr );
}
@ -58,6 +70,8 @@ public bool BLoggedOn()
// void
public void CancelAuthTicket( HAuthTicket hAuthTicket /*HAuthTicket*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUser.CancelAuthTicket( _ptr, hAuthTicket );
else Platform.Win64.ISteamUser.CancelAuthTicket( _ptr, hAuthTicket );
}
@ -65,6 +79,8 @@ public void CancelAuthTicket( HAuthTicket hAuthTicket /*HAuthTicket*/ )
// VoiceResult
public VoiceResult DecompressVoice( IntPtr pCompressed /*const void **/, uint cbCompressed /*uint32*/, IntPtr pDestBuffer /*void **/, uint cbDestBufferSize /*uint32*/, out uint nBytesWritten /*uint32 **/, uint nDesiredSampleRate /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.DecompressVoice( _ptr, (IntPtr) pCompressed, cbCompressed, (IntPtr) pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate );
else return Platform.Win64.ISteamUser.DecompressVoice( _ptr, (IntPtr) pCompressed, cbCompressed, (IntPtr) pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate );
}
@ -72,6 +88,8 @@ public VoiceResult DecompressVoice( IntPtr pCompressed /*const void **/, uint cb
// void
public void EndAuthSession( CSteamID steamID /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUser.EndAuthSession( _ptr, steamID );
else Platform.Win64.ISteamUser.EndAuthSession( _ptr, steamID );
}
@ -79,6 +97,8 @@ public void EndAuthSession( CSteamID steamID /*class CSteamID*/ )
// HAuthTicket
public HAuthTicket GetAuthSessionTicket( IntPtr pTicket /*void **/, int cbMaxTicket /*int*/, out uint pcbTicket /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetAuthSessionTicket( _ptr, (IntPtr) pTicket, cbMaxTicket, out pcbTicket );
else return Platform.Win64.ISteamUser.GetAuthSessionTicket( _ptr, (IntPtr) pTicket, cbMaxTicket, out pcbTicket );
}
@ -86,6 +106,8 @@ public HAuthTicket GetAuthSessionTicket( IntPtr pTicket /*void **/, int cbMaxTic
// VoiceResult
public VoiceResult GetAvailableVoice( out uint pcbCompressed /*uint32 **/, out uint pcbUncompressed /*uint32 **/, uint nUncompressedVoiceDesiredSampleRate /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetAvailableVoice( _ptr, out pcbCompressed, out pcbUncompressed, nUncompressedVoiceDesiredSampleRate );
else return Platform.Win64.ISteamUser.GetAvailableVoice( _ptr, out pcbCompressed, out pcbUncompressed, nUncompressedVoiceDesiredSampleRate );
}
@ -93,6 +115,8 @@ public VoiceResult GetAvailableVoice( out uint pcbCompressed /*uint32 **/, out u
// bool
public bool GetEncryptedAppTicket( IntPtr pTicket /*void **/, int cbMaxTicket /*int*/, out uint pcbTicket /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetEncryptedAppTicket( _ptr, (IntPtr) pTicket, cbMaxTicket, out pcbTicket );
else return Platform.Win64.ISteamUser.GetEncryptedAppTicket( _ptr, (IntPtr) pTicket, cbMaxTicket, out pcbTicket );
}
@ -100,6 +124,8 @@ public bool GetEncryptedAppTicket( IntPtr pTicket /*void **/, int cbMaxTicket /*
// int
public int GetGameBadgeLevel( int nSeries /*int*/, bool bFoil /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetGameBadgeLevel( _ptr, nSeries, bFoil );
else return Platform.Win64.ISteamUser.GetGameBadgeLevel( _ptr, nSeries, bFoil );
}
@ -107,6 +133,8 @@ public int GetGameBadgeLevel( int nSeries /*int*/, bool bFoil /*bool*/ )
// HSteamUser
public HSteamUser GetHSteamUser()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetHSteamUser( _ptr );
else return Platform.Win64.ISteamUser.GetHSteamUser( _ptr );
}
@ -114,6 +142,8 @@ public HSteamUser GetHSteamUser()
// int
public int GetPlayerSteamLevel()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetPlayerSteamLevel( _ptr );
else return Platform.Win64.ISteamUser.GetPlayerSteamLevel( _ptr );
}
@ -121,6 +151,8 @@ public int GetPlayerSteamLevel()
// ulong
public ulong GetSteamID()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetSteamID( _ptr );
else return Platform.Win64.ISteamUser.GetSteamID( _ptr );
}
@ -129,21 +161,22 @@ public ulong GetSteamID()
// with: Detect_StringFetch True
public string GetUserDataFolder()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
var pchBuffer_buffer = new char[4096];
fixed ( void* pchBuffer_ptr = pchBuffer_buffer )
{
int cubBuffer = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUser.GetUserDataFolder( _ptr, (char*)pchBuffer_ptr, cubBuffer );
else bSuccess = Platform.Win64.ISteamUser.GetUserDataFolder( _ptr, (char*)pchBuffer_ptr, cubBuffer );
if ( !bSuccess ) return null;
return Marshal.PtrToStringAuto( (IntPtr)pchBuffer_ptr );
}
System.Text.StringBuilder pchBuffer_sb = new System.Text.StringBuilder( 4096 );
int cubBuffer = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUser.GetUserDataFolder( _ptr, pchBuffer_sb, cubBuffer );
else bSuccess = Platform.Win64.ISteamUser.GetUserDataFolder( _ptr, pchBuffer_sb, cubBuffer );
if ( !bSuccess ) return null;
return pchBuffer_sb.ToString();
}
// VoiceResult
public VoiceResult GetVoice( bool bWantCompressed /*bool*/, IntPtr pDestBuffer /*void **/, uint cbDestBufferSize /*uint32*/, out uint nBytesWritten /*uint32 **/, bool bWantUncompressed /*bool*/, IntPtr pUncompressedDestBuffer /*void **/, uint cbUncompressedDestBufferSize /*uint32*/, out uint nUncompressBytesWritten /*uint32 **/, uint nUncompressedVoiceDesiredSampleRate /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetVoice( _ptr, bWantCompressed, (IntPtr) pDestBuffer, cbDestBufferSize, out nBytesWritten, bWantUncompressed, (IntPtr) pUncompressedDestBuffer, cbUncompressedDestBufferSize, out nUncompressBytesWritten, nUncompressedVoiceDesiredSampleRate );
else return Platform.Win64.ISteamUser.GetVoice( _ptr, bWantCompressed, (IntPtr) pDestBuffer, cbDestBufferSize, out nBytesWritten, bWantUncompressed, (IntPtr) pUncompressedDestBuffer, cbUncompressedDestBufferSize, out nUncompressBytesWritten, nUncompressedVoiceDesiredSampleRate );
}
@ -151,6 +184,8 @@ public VoiceResult GetVoice( bool bWantCompressed /*bool*/, IntPtr pDestBuffer /
// uint
public uint GetVoiceOptimalSampleRate()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.GetVoiceOptimalSampleRate( _ptr );
else return Platform.Win64.ISteamUser.GetVoiceOptimalSampleRate( _ptr );
}
@ -158,6 +193,8 @@ public uint GetVoiceOptimalSampleRate()
// int
public int InitiateGameConnection( IntPtr pAuthBlob /*void **/, int cbMaxAuthBlob /*int*/, CSteamID steamIDGameServer /*class CSteamID*/, uint unIPServer /*uint32*/, ushort usPortServer /*uint16*/, bool bSecure /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.InitiateGameConnection( _ptr, (IntPtr) pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure );
else return Platform.Win64.ISteamUser.InitiateGameConnection( _ptr, (IntPtr) pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure );
}
@ -165,6 +202,8 @@ public int InitiateGameConnection( IntPtr pAuthBlob /*void **/, int cbMaxAuthBlo
// SteamAPICall_t
public SteamAPICall_t RequestEncryptedAppTicket( IntPtr pDataToInclude /*void **/, int cbDataToInclude /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.RequestEncryptedAppTicket( _ptr, (IntPtr) pDataToInclude, cbDataToInclude );
else return Platform.Win64.ISteamUser.RequestEncryptedAppTicket( _ptr, (IntPtr) pDataToInclude, cbDataToInclude );
}
@ -172,6 +211,8 @@ public SteamAPICall_t RequestEncryptedAppTicket( IntPtr pDataToInclude /*void **
// SteamAPICall_t
public SteamAPICall_t RequestStoreAuthURL( string pchRedirectURL /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.RequestStoreAuthURL( _ptr, pchRedirectURL );
else return Platform.Win64.ISteamUser.RequestStoreAuthURL( _ptr, pchRedirectURL );
}
@ -179,6 +220,8 @@ public SteamAPICall_t RequestStoreAuthURL( string pchRedirectURL /*const char **
// void
public void StartVoiceRecording()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUser.StartVoiceRecording( _ptr );
else Platform.Win64.ISteamUser.StartVoiceRecording( _ptr );
}
@ -186,6 +229,8 @@ public void StartVoiceRecording()
// void
public void StopVoiceRecording()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUser.StopVoiceRecording( _ptr );
else Platform.Win64.ISteamUser.StopVoiceRecording( _ptr );
}
@ -193,6 +238,8 @@ public void StopVoiceRecording()
// void
public void TerminateGameConnection( uint unIPServer /*uint32*/, ushort usPortServer /*uint16*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUser.TerminateGameConnection( _ptr, unIPServer, usPortServer );
else Platform.Win64.ISteamUser.TerminateGameConnection( _ptr, unIPServer, usPortServer );
}
@ -200,6 +247,8 @@ public void TerminateGameConnection( uint unIPServer /*uint32*/, ushort usPortSe
// void
public void TrackAppUsageEvent( CGameID gameID /*class CGameID*/, int eAppUsageEvent /*int*/, string pchExtraInfo /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUser.TrackAppUsageEvent( _ptr, gameID, eAppUsageEvent, pchExtraInfo );
else Platform.Win64.ISteamUser.TrackAppUsageEvent( _ptr, gameID, eAppUsageEvent, pchExtraInfo );
}
@ -207,6 +256,8 @@ public void TrackAppUsageEvent( CGameID gameID /*class CGameID*/, int eAppUsageE
// UserHasLicenseForAppResult
public UserHasLicenseForAppResult UserHasLicenseForApp( CSteamID steamID /*class CSteamID*/, AppId_t appID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUser.UserHasLicenseForApp( _ptr, steamID, appID );
else return Platform.Win64.ISteamUser.UserHasLicenseForApp( _ptr, steamID, appID );
}

View File

@ -16,6 +16,8 @@ public SteamUserStats( IntPtr pointer )
// SteamAPICall_t
public SteamAPICall_t AttachLeaderboardUGC( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/, UGCHandle_t hUGC /*UGCHandle_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.AttachLeaderboardUGC( _ptr, hSteamLeaderboard, hUGC );
else return Platform.Win64.ISteamUserStats.AttachLeaderboardUGC( _ptr, hSteamLeaderboard, hUGC );
}
@ -23,6 +25,8 @@ public SteamAPICall_t AttachLeaderboardUGC( SteamLeaderboard_t hSteamLeaderboard
// bool
public bool ClearAchievement( string pchName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.ClearAchievement( _ptr, pchName );
else return Platform.Win64.ISteamUserStats.ClearAchievement( _ptr, pchName );
}
@ -30,6 +34,8 @@ public bool ClearAchievement( string pchName /*const char **/ )
// SteamAPICall_t
public SteamAPICall_t DownloadLeaderboardEntries( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/, LeaderboardDataRequest eLeaderboardDataRequest /*ELeaderboardDataRequest*/, int nRangeStart /*int*/, int nRangeEnd /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.DownloadLeaderboardEntries( _ptr, hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd );
else return Platform.Win64.ISteamUserStats.DownloadLeaderboardEntries( _ptr, hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd );
}
@ -37,6 +43,8 @@ public SteamAPICall_t DownloadLeaderboardEntries( SteamLeaderboard_t hSteamLeade
// SteamAPICall_t
public SteamAPICall_t DownloadLeaderboardEntriesForUsers( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/, IntPtr prgUsers /*class CSteamID **/, int cUsers /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.DownloadLeaderboardEntriesForUsers( _ptr, hSteamLeaderboard, (IntPtr) prgUsers, cUsers );
else return Platform.Win64.ISteamUserStats.DownloadLeaderboardEntriesForUsers( _ptr, hSteamLeaderboard, (IntPtr) prgUsers, cUsers );
}
@ -44,6 +52,8 @@ public SteamAPICall_t DownloadLeaderboardEntriesForUsers( SteamLeaderboard_t hSt
// SteamAPICall_t
public SteamAPICall_t FindLeaderboard( string pchLeaderboardName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.FindLeaderboard( _ptr, pchLeaderboardName );
else return Platform.Win64.ISteamUserStats.FindLeaderboard( _ptr, pchLeaderboardName );
}
@ -51,6 +61,8 @@ public SteamAPICall_t FindLeaderboard( string pchLeaderboardName /*const char **
// SteamAPICall_t
public SteamAPICall_t FindOrCreateLeaderboard( string pchLeaderboardName /*const char **/, LeaderboardSortMethod eLeaderboardSortMethod /*ELeaderboardSortMethod*/, LeaderboardDisplayType eLeaderboardDisplayType /*ELeaderboardDisplayType*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.FindOrCreateLeaderboard( _ptr, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType );
else return Platform.Win64.ISteamUserStats.FindOrCreateLeaderboard( _ptr, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType );
}
@ -58,6 +70,8 @@ public SteamAPICall_t FindOrCreateLeaderboard( string pchLeaderboardName /*const
// bool
public bool GetAchievement( string pchName /*const char **/, out bool pbAchieved /*bool **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetAchievement( _ptr, pchName, out pbAchieved );
else return Platform.Win64.ISteamUserStats.GetAchievement( _ptr, pchName, out pbAchieved );
}
@ -65,6 +79,8 @@ public bool GetAchievement( string pchName /*const char **/, out bool pbAchieved
// bool
public bool GetAchievementAchievedPercent( string pchName /*const char **/, out float pflPercent /*float **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetAchievementAchievedPercent( _ptr, pchName, out pflPercent );
else return Platform.Win64.ISteamUserStats.GetAchievementAchievedPercent( _ptr, pchName, out pflPercent );
}
@ -72,6 +88,8 @@ public bool GetAchievementAchievedPercent( string pchName /*const char **/, out
// bool
public bool GetAchievementAndUnlockTime( string pchName /*const char **/, out bool pbAchieved /*bool **/, out uint punUnlockTime /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetAchievementAndUnlockTime( _ptr, pchName, out pbAchieved, out punUnlockTime );
else return Platform.Win64.ISteamUserStats.GetAchievementAndUnlockTime( _ptr, pchName, out pbAchieved, out punUnlockTime );
}
@ -80,6 +98,8 @@ public bool GetAchievementAndUnlockTime( string pchName /*const char **/, out bo
// with: Detect_StringReturn
public string GetAchievementDisplayAttribute( string pchName /*const char **/, string pchKey /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamUserStats.GetAchievementDisplayAttribute( _ptr, pchName, pchKey );
else string_pointer = Platform.Win64.ISteamUserStats.GetAchievementDisplayAttribute( _ptr, pchName, pchKey );
@ -89,6 +109,8 @@ public string GetAchievementDisplayAttribute( string pchName /*const char **/, s
// int
public int GetAchievementIcon( string pchName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetAchievementIcon( _ptr, pchName );
else return Platform.Win64.ISteamUserStats.GetAchievementIcon( _ptr, pchName );
}
@ -97,6 +119,8 @@ public int GetAchievementIcon( string pchName /*const char **/ )
// with: Detect_StringReturn
public string GetAchievementName( uint iAchievement /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamUserStats.GetAchievementName( _ptr, iAchievement );
else string_pointer = Platform.Win64.ISteamUserStats.GetAchievementName( _ptr, iAchievement );
@ -106,6 +130,8 @@ public string GetAchievementName( uint iAchievement /*uint32*/ )
// bool
public bool GetDownloadedLeaderboardEntry( SteamLeaderboardEntries_t hSteamLeaderboardEntries /*SteamLeaderboardEntries_t*/, int index /*int*/, ref LeaderboardEntry_t pLeaderboardEntry /*struct LeaderboardEntry_t **/, IntPtr pDetails /*int32 **/, int cDetailsMax /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetDownloadedLeaderboardEntry( _ptr, hSteamLeaderboardEntries, index, ref pLeaderboardEntry, (IntPtr) pDetails, cDetailsMax );
else return Platform.Win64.ISteamUserStats.GetDownloadedLeaderboardEntry( _ptr, hSteamLeaderboardEntries, index, ref pLeaderboardEntry, (IntPtr) pDetails, cDetailsMax );
}
@ -113,6 +139,8 @@ public bool GetDownloadedLeaderboardEntry( SteamLeaderboardEntries_t hSteamLeade
// bool
public bool GetGlobalStat( string pchStatName /*const char **/, out long pData /*int64 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetGlobalStat( _ptr, pchStatName, out pData );
else return Platform.Win64.ISteamUserStats.GetGlobalStat( _ptr, pchStatName, out pData );
}
@ -120,6 +148,8 @@ public bool GetGlobalStat( string pchStatName /*const char **/, out long pData /
// bool
public bool GetGlobalStat0( string pchStatName /*const char **/, out double pData /*double **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetGlobalStat0( _ptr, pchStatName, out pData );
else return Platform.Win64.ISteamUserStats.GetGlobalStat0( _ptr, pchStatName, out pData );
}
@ -127,6 +157,8 @@ public bool GetGlobalStat0( string pchStatName /*const char **/, out double pDat
// int
public int GetGlobalStatHistory( string pchStatName /*const char **/, out long pData /*int64 **/, uint cubData /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetGlobalStatHistory( _ptr, pchStatName, out pData, cubData );
else return Platform.Win64.ISteamUserStats.GetGlobalStatHistory( _ptr, pchStatName, out pData, cubData );
}
@ -134,6 +166,8 @@ public int GetGlobalStatHistory( string pchStatName /*const char **/, out long p
// int
public int GetGlobalStatHistory0( string pchStatName /*const char **/, out double pData /*double **/, uint cubData /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetGlobalStatHistory0( _ptr, pchStatName, out pData, cubData );
else return Platform.Win64.ISteamUserStats.GetGlobalStatHistory0( _ptr, pchStatName, out pData, cubData );
}
@ -141,6 +175,8 @@ public int GetGlobalStatHistory0( string pchStatName /*const char **/, out doubl
// LeaderboardDisplayType
public LeaderboardDisplayType GetLeaderboardDisplayType( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetLeaderboardDisplayType( _ptr, hSteamLeaderboard );
else return Platform.Win64.ISteamUserStats.GetLeaderboardDisplayType( _ptr, hSteamLeaderboard );
}
@ -148,6 +184,8 @@ public LeaderboardDisplayType GetLeaderboardDisplayType( SteamLeaderboard_t hSte
// int
public int GetLeaderboardEntryCount( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetLeaderboardEntryCount( _ptr, hSteamLeaderboard );
else return Platform.Win64.ISteamUserStats.GetLeaderboardEntryCount( _ptr, hSteamLeaderboard );
}
@ -156,6 +194,8 @@ public int GetLeaderboardEntryCount( SteamLeaderboard_t hSteamLeaderboard /*Stea
// with: Detect_StringReturn
public string GetLeaderboardName( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamUserStats.GetLeaderboardName( _ptr, hSteamLeaderboard );
else string_pointer = Platform.Win64.ISteamUserStats.GetLeaderboardName( _ptr, hSteamLeaderboard );
@ -165,6 +205,8 @@ public string GetLeaderboardName( SteamLeaderboard_t hSteamLeaderboard /*SteamLe
// LeaderboardSortMethod
public LeaderboardSortMethod GetLeaderboardSortMethod( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetLeaderboardSortMethod( _ptr, hSteamLeaderboard );
else return Platform.Win64.ISteamUserStats.GetLeaderboardSortMethod( _ptr, hSteamLeaderboard );
}
@ -173,17 +215,16 @@ public LeaderboardSortMethod GetLeaderboardSortMethod( SteamLeaderboard_t hSteam
// with: Detect_StringFetch False
public int GetMostAchievedAchievementInfo( out string pchName /*char **/, out float pflPercent /*float **/, out bool pbAchieved /*bool **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
int bSuccess = default( int );
pchName = string.Empty;
var pchName_buffer = new char[4096];
fixed ( void* pchName_ptr = pchName_buffer )
{
uint unNameBufLen = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUserStats.GetMostAchievedAchievementInfo( _ptr, (char*)pchName_ptr, unNameBufLen, out pflPercent, out pbAchieved );
else bSuccess = Platform.Win64.ISteamUserStats.GetMostAchievedAchievementInfo( _ptr, (char*)pchName_ptr, unNameBufLen, out pflPercent, out pbAchieved );
if ( bSuccess <= 0 ) return bSuccess;
pchName = Marshal.PtrToStringAuto( (IntPtr)pchName_ptr );
}
System.Text.StringBuilder pchName_sb = new System.Text.StringBuilder( 4096 );
uint unNameBufLen = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUserStats.GetMostAchievedAchievementInfo( _ptr, pchName_sb, unNameBufLen, out pflPercent, out pbAchieved );
else bSuccess = Platform.Win64.ISteamUserStats.GetMostAchievedAchievementInfo( _ptr, pchName_sb, unNameBufLen, out pflPercent, out pbAchieved );
if ( bSuccess <= 0 ) return bSuccess;
pchName = pchName_sb.ToString();
return bSuccess;
}
@ -191,23 +232,24 @@ public int GetMostAchievedAchievementInfo( out string pchName /*char **/, out fl
// with: Detect_StringFetch False
public int GetNextMostAchievedAchievementInfo( int iIteratorPrevious /*int*/, out string pchName /*char **/, out float pflPercent /*float **/, out bool pbAchieved /*bool **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
int bSuccess = default( int );
pchName = string.Empty;
var pchName_buffer = new char[4096];
fixed ( void* pchName_ptr = pchName_buffer )
{
uint unNameBufLen = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUserStats.GetNextMostAchievedAchievementInfo( _ptr, iIteratorPrevious, (char*)pchName_ptr, unNameBufLen, out pflPercent, out pbAchieved );
else bSuccess = Platform.Win64.ISteamUserStats.GetNextMostAchievedAchievementInfo( _ptr, iIteratorPrevious, (char*)pchName_ptr, unNameBufLen, out pflPercent, out pbAchieved );
if ( bSuccess <= 0 ) return bSuccess;
pchName = Marshal.PtrToStringAuto( (IntPtr)pchName_ptr );
}
System.Text.StringBuilder pchName_sb = new System.Text.StringBuilder( 4096 );
uint unNameBufLen = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUserStats.GetNextMostAchievedAchievementInfo( _ptr, iIteratorPrevious, pchName_sb, unNameBufLen, out pflPercent, out pbAchieved );
else bSuccess = Platform.Win64.ISteamUserStats.GetNextMostAchievedAchievementInfo( _ptr, iIteratorPrevious, pchName_sb, unNameBufLen, out pflPercent, out pbAchieved );
if ( bSuccess <= 0 ) return bSuccess;
pchName = pchName_sb.ToString();
return bSuccess;
}
// uint
public uint GetNumAchievements()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetNumAchievements( _ptr );
else return Platform.Win64.ISteamUserStats.GetNumAchievements( _ptr );
}
@ -215,6 +257,8 @@ public uint GetNumAchievements()
// SteamAPICall_t
public SteamAPICall_t GetNumberOfCurrentPlayers()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetNumberOfCurrentPlayers( _ptr );
else return Platform.Win64.ISteamUserStats.GetNumberOfCurrentPlayers( _ptr );
}
@ -222,6 +266,8 @@ public SteamAPICall_t GetNumberOfCurrentPlayers()
// bool
public bool GetStat( string pchName /*const char **/, out int pData /*int32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetStat( _ptr, pchName, out pData );
else return Platform.Win64.ISteamUserStats.GetStat( _ptr, pchName, out pData );
}
@ -229,6 +275,8 @@ public bool GetStat( string pchName /*const char **/, out int pData /*int32 **/
// bool
public bool GetStat0( string pchName /*const char **/, out float pData /*float **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetStat0( _ptr, pchName, out pData );
else return Platform.Win64.ISteamUserStats.GetStat0( _ptr, pchName, out pData );
}
@ -236,6 +284,8 @@ public bool GetStat0( string pchName /*const char **/, out float pData /*float *
// bool
public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out bool pbAchieved /*bool **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetUserAchievement( _ptr, steamIDUser, pchName, out pbAchieved );
else return Platform.Win64.ISteamUserStats.GetUserAchievement( _ptr, steamIDUser, pchName, out pbAchieved );
}
@ -243,6 +293,8 @@ public bool GetUserAchievement( CSteamID steamIDUser /*class CSteamID*/, string
// bool
public bool GetUserAchievementAndUnlockTime( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out bool pbAchieved /*bool **/, out uint punUnlockTime /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetUserAchievementAndUnlockTime( _ptr, steamIDUser, pchName, out pbAchieved, out punUnlockTime );
else return Platform.Win64.ISteamUserStats.GetUserAchievementAndUnlockTime( _ptr, steamIDUser, pchName, out pbAchieved, out punUnlockTime );
}
@ -250,6 +302,8 @@ public bool GetUserAchievementAndUnlockTime( CSteamID steamIDUser /*class CSteam
// bool
public bool GetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out int pData /*int32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetUserStat( _ptr, steamIDUser, pchName, out pData );
else return Platform.Win64.ISteamUserStats.GetUserStat( _ptr, steamIDUser, pchName, out pData );
}
@ -257,6 +311,8 @@ public bool GetUserStat( CSteamID steamIDUser /*class CSteamID*/, string pchName
// bool
public bool GetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchName /*const char **/, out float pData /*float **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.GetUserStat0( _ptr, steamIDUser, pchName, out pData );
else return Platform.Win64.ISteamUserStats.GetUserStat0( _ptr, steamIDUser, pchName, out pData );
}
@ -264,6 +320,8 @@ public bool GetUserStat0( CSteamID steamIDUser /*class CSteamID*/, string pchNam
// bool
public bool IndicateAchievementProgress( string pchName /*const char **/, uint nCurProgress /*uint32*/, uint nMaxProgress /*uint32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.IndicateAchievementProgress( _ptr, pchName, nCurProgress, nMaxProgress );
else return Platform.Win64.ISteamUserStats.IndicateAchievementProgress( _ptr, pchName, nCurProgress, nMaxProgress );
}
@ -271,6 +329,8 @@ public bool IndicateAchievementProgress( string pchName /*const char **/, uint n
// bool
public bool RequestCurrentStats()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.RequestCurrentStats( _ptr );
else return Platform.Win64.ISteamUserStats.RequestCurrentStats( _ptr );
}
@ -278,6 +338,8 @@ public bool RequestCurrentStats()
// SteamAPICall_t
public SteamAPICall_t RequestGlobalAchievementPercentages()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.RequestGlobalAchievementPercentages( _ptr );
else return Platform.Win64.ISteamUserStats.RequestGlobalAchievementPercentages( _ptr );
}
@ -285,6 +347,8 @@ public SteamAPICall_t RequestGlobalAchievementPercentages()
// SteamAPICall_t
public SteamAPICall_t RequestGlobalStats( int nHistoryDays /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.RequestGlobalStats( _ptr, nHistoryDays );
else return Platform.Win64.ISteamUserStats.RequestGlobalStats( _ptr, nHistoryDays );
}
@ -292,6 +356,8 @@ public SteamAPICall_t RequestGlobalStats( int nHistoryDays /*int*/ )
// SteamAPICall_t
public SteamAPICall_t RequestUserStats( CSteamID steamIDUser /*class CSteamID*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.RequestUserStats( _ptr, steamIDUser );
else return Platform.Win64.ISteamUserStats.RequestUserStats( _ptr, steamIDUser );
}
@ -299,6 +365,8 @@ public SteamAPICall_t RequestUserStats( CSteamID steamIDUser /*class CSteamID*/
// bool
public bool ResetAllStats( bool bAchievementsToo /*bool*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.ResetAllStats( _ptr, bAchievementsToo );
else return Platform.Win64.ISteamUserStats.ResetAllStats( _ptr, bAchievementsToo );
}
@ -306,6 +374,8 @@ public bool ResetAllStats( bool bAchievementsToo /*bool*/ )
// bool
public bool SetAchievement( string pchName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.SetAchievement( _ptr, pchName );
else return Platform.Win64.ISteamUserStats.SetAchievement( _ptr, pchName );
}
@ -313,6 +383,8 @@ public bool SetAchievement( string pchName /*const char **/ )
// bool
public bool SetStat( string pchName /*const char **/, int nData /*int32*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.SetStat( _ptr, pchName, nData );
else return Platform.Win64.ISteamUserStats.SetStat( _ptr, pchName, nData );
}
@ -320,6 +392,8 @@ public bool SetStat( string pchName /*const char **/, int nData /*int32*/ )
// bool
public bool SetStat0( string pchName /*const char **/, float fData /*float*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.SetStat0( _ptr, pchName, fData );
else return Platform.Win64.ISteamUserStats.SetStat0( _ptr, pchName, fData );
}
@ -327,6 +401,8 @@ public bool SetStat0( string pchName /*const char **/, float fData /*float*/ )
// bool
public bool StoreStats()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.StoreStats( _ptr );
else return Platform.Win64.ISteamUserStats.StoreStats( _ptr );
}
@ -334,6 +410,8 @@ public bool StoreStats()
// bool
public bool UpdateAvgRateStat( string pchName /*const char **/, float flCountThisSession /*float*/, double dSessionLength /*double*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.UpdateAvgRateStat( _ptr, pchName, flCountThisSession, dSessionLength );
else return Platform.Win64.ISteamUserStats.UpdateAvgRateStat( _ptr, pchName, flCountThisSession, dSessionLength );
}
@ -341,6 +419,8 @@ public bool UpdateAvgRateStat( string pchName /*const char **/, float flCountThi
// SteamAPICall_t
public SteamAPICall_t UploadLeaderboardScore( SteamLeaderboard_t hSteamLeaderboard /*SteamLeaderboard_t*/, LeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/, int nScore /*int32*/, IntPtr pScoreDetails /*const int32 **/, int cScoreDetailsCount /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUserStats.UploadLeaderboardScore( _ptr, hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, (IntPtr) pScoreDetails, cScoreDetailsCount );
else return Platform.Win64.ISteamUserStats.UploadLeaderboardScore( _ptr, hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, (IntPtr) pScoreDetails, cScoreDetailsCount );
}

View File

@ -16,6 +16,8 @@ public SteamUtils( IntPtr pointer )
// bool
public bool BOverlayNeedsPresent()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.BOverlayNeedsPresent( _ptr );
else return Platform.Win64.ISteamUtils.BOverlayNeedsPresent( _ptr );
}
@ -23,6 +25,8 @@ public bool BOverlayNeedsPresent()
// SteamAPICall_t
public SteamAPICall_t CheckFileSignature( string szFileName /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.CheckFileSignature( _ptr, szFileName );
else return Platform.Win64.ISteamUtils.CheckFileSignature( _ptr, szFileName );
}
@ -30,6 +34,8 @@ public SteamAPICall_t CheckFileSignature( string szFileName /*const char **/ )
// SteamAPICallFailure
public SteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetAPICallFailureReason( _ptr, hSteamAPICall );
else return Platform.Win64.ISteamUtils.GetAPICallFailureReason( _ptr, hSteamAPICall );
}
@ -37,6 +43,8 @@ public SteamAPICallFailure GetAPICallFailureReason( SteamAPICall_t hSteamAPICall
// bool
public bool GetAPICallResult( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, IntPtr pCallback /*void **/, int cubCallback /*int*/, int iCallbackExpected /*int*/, out bool pbFailed /*bool **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetAPICallResult( _ptr, hSteamAPICall, (IntPtr) pCallback, cubCallback, iCallbackExpected, out pbFailed );
else return Platform.Win64.ISteamUtils.GetAPICallResult( _ptr, hSteamAPICall, (IntPtr) pCallback, cubCallback, iCallbackExpected, out pbFailed );
}
@ -44,6 +52,8 @@ public bool GetAPICallResult( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, I
// uint
public uint GetAppID()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetAppID( _ptr );
else return Platform.Win64.ISteamUtils.GetAppID( _ptr );
}
@ -51,6 +61,8 @@ public uint GetAppID()
// Universe
public Universe GetConnectedUniverse()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetConnectedUniverse( _ptr );
else return Platform.Win64.ISteamUtils.GetConnectedUniverse( _ptr );
}
@ -58,6 +70,8 @@ public Universe GetConnectedUniverse()
// bool
public bool GetCSERIPPort( out uint unIP /*uint32 **/, out ushort usPort /*uint16 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetCSERIPPort( _ptr, out unIP, out usPort );
else return Platform.Win64.ISteamUtils.GetCSERIPPort( _ptr, out unIP, out usPort );
}
@ -65,6 +79,8 @@ public bool GetCSERIPPort( out uint unIP /*uint32 **/, out ushort usPort /*uint1
// byte
public byte GetCurrentBatteryPower()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetCurrentBatteryPower( _ptr );
else return Platform.Win64.ISteamUtils.GetCurrentBatteryPower( _ptr );
}
@ -73,21 +89,22 @@ public byte GetCurrentBatteryPower()
// with: Detect_StringFetch True
public string GetEnteredGamepadTextInput()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
bool bSuccess = default( bool );
var pchText_buffer = new char[4096];
fixed ( void* pchText_ptr = pchText_buffer )
{
uint cchText = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUtils.GetEnteredGamepadTextInput( _ptr, (char*)pchText_ptr, cchText );
else bSuccess = Platform.Win64.ISteamUtils.GetEnteredGamepadTextInput( _ptr, (char*)pchText_ptr, cchText );
if ( !bSuccess ) return null;
return Marshal.PtrToStringAuto( (IntPtr)pchText_ptr );
}
System.Text.StringBuilder pchText_sb = new System.Text.StringBuilder( 4096 );
uint cchText = 4096;
if ( Platform.IsWindows32 ) bSuccess = Platform.Win32.ISteamUtils.GetEnteredGamepadTextInput( _ptr, pchText_sb, cchText );
else bSuccess = Platform.Win64.ISteamUtils.GetEnteredGamepadTextInput( _ptr, pchText_sb, cchText );
if ( !bSuccess ) return null;
return pchText_sb.ToString();
}
// uint
public uint GetEnteredGamepadTextLength()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetEnteredGamepadTextLength( _ptr );
else return Platform.Win64.ISteamUtils.GetEnteredGamepadTextLength( _ptr );
}
@ -95,6 +112,8 @@ public uint GetEnteredGamepadTextLength()
// bool
public bool GetImageRGBA( int iImage /*int*/, IntPtr pubDest /*uint8 **/, int nDestBufferSize /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetImageRGBA( _ptr, iImage, (IntPtr) pubDest, nDestBufferSize );
else return Platform.Win64.ISteamUtils.GetImageRGBA( _ptr, iImage, (IntPtr) pubDest, nDestBufferSize );
}
@ -102,6 +121,8 @@ public bool GetImageRGBA( int iImage /*int*/, IntPtr pubDest /*uint8 **/, int nD
// bool
public bool GetImageSize( int iImage /*int*/, out uint pnWidth /*uint32 **/, out uint pnHeight /*uint32 **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetImageSize( _ptr, iImage, out pnWidth, out pnHeight );
else return Platform.Win64.ISteamUtils.GetImageSize( _ptr, iImage, out pnWidth, out pnHeight );
}
@ -109,6 +130,8 @@ public bool GetImageSize( int iImage /*int*/, out uint pnWidth /*uint32 **/, out
// uint
public uint GetIPCCallCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetIPCCallCount( _ptr );
else return Platform.Win64.ISteamUtils.GetIPCCallCount( _ptr );
}
@ -117,6 +140,8 @@ public uint GetIPCCallCount()
// with: Detect_StringReturn
public string GetIPCountry()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamUtils.GetIPCountry( _ptr );
else string_pointer = Platform.Win64.ISteamUtils.GetIPCountry( _ptr );
@ -126,6 +151,8 @@ public string GetIPCountry()
// uint
public uint GetSecondsSinceAppActive()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetSecondsSinceAppActive( _ptr );
else return Platform.Win64.ISteamUtils.GetSecondsSinceAppActive( _ptr );
}
@ -133,6 +160,8 @@ public uint GetSecondsSinceAppActive()
// uint
public uint GetSecondsSinceComputerActive()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetSecondsSinceComputerActive( _ptr );
else return Platform.Win64.ISteamUtils.GetSecondsSinceComputerActive( _ptr );
}
@ -140,6 +169,8 @@ public uint GetSecondsSinceComputerActive()
// uint
public uint GetServerRealTime()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.GetServerRealTime( _ptr );
else return Platform.Win64.ISteamUtils.GetServerRealTime( _ptr );
}
@ -148,6 +179,8 @@ public uint GetServerRealTime()
// with: Detect_StringReturn
public string GetSteamUILanguage()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
IntPtr string_pointer;
if ( Platform.IsWindows32 ) string_pointer = Platform.Win32.ISteamUtils.GetSteamUILanguage( _ptr );
else string_pointer = Platform.Win64.ISteamUtils.GetSteamUILanguage( _ptr );
@ -157,6 +190,8 @@ public string GetSteamUILanguage()
// bool
public bool IsAPICallCompleted( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/, out bool pbFailed /*bool **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.IsAPICallCompleted( _ptr, hSteamAPICall, out pbFailed );
else return Platform.Win64.ISteamUtils.IsAPICallCompleted( _ptr, hSteamAPICall, out pbFailed );
}
@ -164,6 +199,8 @@ public bool IsAPICallCompleted( SteamAPICall_t hSteamAPICall /*SteamAPICall_t*/,
// bool
public bool IsOverlayEnabled()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.IsOverlayEnabled( _ptr );
else return Platform.Win64.ISteamUtils.IsOverlayEnabled( _ptr );
}
@ -171,6 +208,8 @@ public bool IsOverlayEnabled()
// bool
public bool IsSteamInBigPictureMode()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.IsSteamInBigPictureMode( _ptr );
else return Platform.Win64.ISteamUtils.IsSteamInBigPictureMode( _ptr );
}
@ -178,6 +217,8 @@ public bool IsSteamInBigPictureMode()
// bool
public bool IsSteamRunningInVR()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.IsSteamRunningInVR( _ptr );
else return Platform.Win64.ISteamUtils.IsSteamRunningInVR( _ptr );
}
@ -185,6 +226,8 @@ public bool IsSteamRunningInVR()
// void
public void SetOverlayNotificationInset( int nHorizontalInset /*int*/, int nVerticalInset /*int*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUtils.SetOverlayNotificationInset( _ptr, nHorizontalInset, nVerticalInset );
else Platform.Win64.ISteamUtils.SetOverlayNotificationInset( _ptr, nHorizontalInset, nVerticalInset );
}
@ -192,6 +235,8 @@ public void SetOverlayNotificationInset( int nHorizontalInset /*int*/, int nVert
// void
public void SetOverlayNotificationPosition( NotificationPosition eNotificationPosition /*ENotificationPosition*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUtils.SetOverlayNotificationPosition( _ptr, eNotificationPosition );
else Platform.Win64.ISteamUtils.SetOverlayNotificationPosition( _ptr, eNotificationPosition );
}
@ -199,6 +244,8 @@ public void SetOverlayNotificationPosition( NotificationPosition eNotificationPo
// void
public void SetWarningMessageHook( IntPtr pFunction /*SteamAPIWarningMessageHook_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUtils.SetWarningMessageHook( _ptr, (IntPtr) pFunction );
else Platform.Win64.ISteamUtils.SetWarningMessageHook( _ptr, (IntPtr) pFunction );
}
@ -206,6 +253,8 @@ public void SetWarningMessageHook( IntPtr pFunction /*SteamAPIWarningMessageHook
// bool
public bool ShowGamepadTextInput( GamepadTextInputMode eInputMode /*EGamepadTextInputMode*/, GamepadTextInputLineMode eLineInputMode /*EGamepadTextInputLineMode*/, string pchDescription /*const char **/, uint unCharMax /*uint32*/, string pchExistingText /*const char **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamUtils.ShowGamepadTextInput( _ptr, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText );
else return Platform.Win64.ISteamUtils.ShowGamepadTextInput( _ptr, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText );
}
@ -213,6 +262,8 @@ public bool ShowGamepadTextInput( GamepadTextInputMode eInputMode /*EGamepadText
// void
public void StartVRDashboard()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamUtils.StartVRDashboard( _ptr );
else Platform.Win64.ISteamUtils.StartVRDashboard( _ptr );
}

View File

@ -16,6 +16,8 @@ public SteamVideo( IntPtr pointer )
// void
public void GetVideoURL( AppId_t unVideoAppID /*AppId_t*/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) Platform.Win32.ISteamVideo.GetVideoURL( _ptr, unVideoAppID );
else Platform.Win64.ISteamVideo.GetVideoURL( _ptr, unVideoAppID );
}
@ -23,6 +25,8 @@ public void GetVideoURL( AppId_t unVideoAppID /*AppId_t*/ )
// bool
public bool IsBroadcasting( IntPtr pnNumViewers /*int **/ )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "Internal pointer is null"); //
if ( Platform.IsWindows32 ) return Platform.Win32.ISteamVideo.IsBroadcasting( _ptr, (IntPtr) pnNumViewers );
else return Platform.Win64.ISteamVideo.IsBroadcasting( _ptr, (IntPtr) pnNumViewers );
}

View File

@ -52,6 +52,9 @@ bool ShouldBeIntPtr
{
get
{
if ( ManagedType.Contains( "SteamUGCDetails_t" ) )
return false;
if ( Name == "pOutItemsArray" )
return true;
@ -148,6 +151,11 @@ internal string InteropParameter()
if ( ShouldBePassedAsOut )
return $"out {ManagedType.Trim( '*', ' ' )} /*{NativeType}*/ {Name}";
if ( NativeType == "char *" || NativeType == "char **" )
{
return $"System.Text.StringBuilder /*{NativeType}*/ {Name}";
}
if ( TypeDef != null )
{
if ( NativeType.EndsWith( "*" ) )

View File

@ -117,6 +117,12 @@ private void ClassMethod( string classname, SteamApiDefinition.MethodDef m )
if ( argString != "" ) argString = " " + argString + " ";
StartBlock( $"public{statc} {ReturnType} {methodName}({argString})" );
if ( classname != null )
{
WriteLine( "if ( _ptr == IntPtr.Zero ) throw new System.Exception( \"Internal pointer is null\"); // " );
WriteLine();
}
CallPlatformClass( classname, m, callargs.Select( x => x.InteropVariable() ).ToList(), ReturnVar );
WriteLines( BeforeLines );
@ -237,6 +243,10 @@ private void Detect_StringFetch( List<Argument> argList, List<Argument> callargs
bool ReturnString = argList.Count < 4 && (ReturnType == "bool" || ReturnType == "void" || ReturnType == "int"|| ReturnType == "uint");
bool IsFirst = true;
//System.Text.StringBuilder pStrBuffer1 = new System.Text.StringBuilder(2048);
//bool result = NativeEntrypoints.SteamAPI_ISteamUGC_GetQueryUGCMetadata(m_pSteamUGC,handle,index,pStrBuffer1,2048);
//pchMetadata = pStrBuffer1.ToString();
for ( int i=0; i< argList.Count; i++ )
{
if ( argList[i].ManagedType != "char*" ) continue;
@ -264,22 +274,21 @@ private void Detect_StringFetch( List<Argument> argList, List<Argument> callargs
if ( !ReturnString )
BeforeLines.Add( $"{chr.Name} = string.Empty;" );
BeforeLines.Add( $"var {chr.Name}_buffer = new char[4096];" );
BeforeLines.Add( $"fixed ( void* {chr.Name}_ptr = {chr.Name}_buffer )" );
BeforeLines.Add( "{" );
BeforeLines.Add( $"System.Text.StringBuilder {chr.Name}_sb = new System.Text.StringBuilder( 4096 );" );
if ( ReturnString ) ReturnType = "string";
ReturnVar = "bSuccess";
BeforeLines.Add( $"{num.ManagedType.Trim( '*' )} {num.Name} = 4096;" );
callargs.Where( x => x.Name == chr.Name ).All( x => { x.Name = $"({x.ManagedType})" + x.Name + "_ptr"; return true; } );
callargs.Where( x => x.Name == chr.Name ).All( x => { x.Name = x.Name + "_sb"; return true; } );
// callargs.Where( x => x.Name == num.Name ).All( x => { x.Name = "4096"; return true; } );
if ( ReturnString ) AfterLines.Insert( 0, $"return Marshal.PtrToStringAuto( (IntPtr)" + chr.Name + "_ptr );" );
else AfterLines.Insert( 0, $"{chr.Name} = Marshal.PtrToStringAuto( (IntPtr)"+ chr.Name + "_ptr );" );
AfterLines.Insert( 1, "}" );
if ( ReturnString ) AfterLines.Insert( 0, $"return {chr.Name}_sb.ToString();" );
else AfterLines.Insert( 0, $"{chr.Name} = {chr.Name}_sb.ToString();" );
if ( IntReturn )
{