Unstable 1.1.14.0

This commit is contained in:
Markus Isberg
2023-10-02 16:43:54 +03:00
parent 94f5a93a0c
commit cf8f0de659
606 changed files with 21906 additions and 11456 deletions
@@ -23,6 +23,7 @@ namespace Steamworks
StoreAuthURLResponse = 165,
MarketEligibilityResponse = 166,
DurationControl = 167,
GetTicketForWebApiResponse = 168,
GSClientApprove = 201,
GSClientDeny = 202,
GSClientKick = 203,
@@ -51,6 +52,9 @@ namespace Steamworks
FriendsEnumerateFollowingList = 346,
SetPersonaNameResponse = 347,
UnreadChatMessagesChanged = 348,
OverlayBrowserProtocolNavigation = 349,
EquippedProfileItemsChanged = 350,
EquippedProfileItems = 351,
FavoritesListChanged = 502,
LobbyInvite = 503,
LobbyEnter = 504,
@@ -69,11 +73,14 @@ namespace Steamworks
SteamShutdown = 704,
CheckFileSignature = 705,
GamepadTextInputDismissed = 714,
AppResumingFromSuspend = 736,
FloatingGamepadTextInputDismissed = 738,
FilterTextDictionaryChanged = 739,
DlcInstalled = 1005,
RegisterActivationCodeResponse = 1008,
NewUrlLaunchParameters = 1014,
AppProofOfPurchaseKeyResponse = 1021,
FileDetailsResult = 1023,
TimedTrialStatus = 1030,
UserStatsReceived = 1101,
UserStatsStored = 1102,
UserAchievementStored = 1103,
@@ -93,11 +100,10 @@ namespace Steamworks
P2PSessionConnectFail = 1203,
SteamNetConnectionStatusChangedCallback = 1221,
SteamNetAuthenticationStatus = 1222,
SteamNetworkingFakeIPResult = 1223,
SteamNetworkingMessagesSessionRequest = 1251,
SteamNetworkingMessagesSessionFailed = 1252,
SteamRelayNetworkStatus = 1281,
RemoteStorageAppSyncedClient = 1301,
RemoteStorageAppSyncedServer = 1302,
RemoteStorageAppSyncProgress = 1303,
RemoteStorageAppSyncStatusCheck = 1305,
RemoteStorageFileShareResult = 1307,
RemoteStoragePublishFileResult = 1309,
RemoteStorageDeletePublishedFileResult = 1311,
@@ -122,6 +128,7 @@ namespace Steamworks
RemoteStoragePublishedFileUpdated = 1330,
RemoteStorageFileWriteAsyncComplete = 1331,
RemoteStorageFileReadAsyncComplete = 1332,
RemoteStorageLocalFileChange = 1333,
GSStatsReceived = 1800,
GSStatsStored = 1801,
HTTPRequestCompleted = 2101,
@@ -129,6 +136,10 @@ namespace Steamworks
HTTPRequestDataReceived = 2103,
ScreenshotReady = 2301,
ScreenshotRequested = 2302,
SteamInputDeviceConnected = 2801,
SteamInputDeviceDisconnected = 2802,
SteamInputConfigurationLoaded = 2803,
SteamInputGamepadSlotChange = 2804,
SteamUGCQueryCompleted = 3401,
SteamUGCRequestUGCDetailsResult = 3402,
CreateItemResult = 3403,
@@ -146,6 +157,8 @@ namespace Steamworks
RemoveAppDependencyResult = 3415,
GetAppDependenciesResult = 3416,
DeleteItemResult = 3417,
UserSubscribedItemsListChanged = 3418,
WorkshopEULAStatus = 3420,
SteamAppInstalled = 3901,
SteamAppUninstalled = 3902,
PlaybackStatusHasChanged = 4001,
@@ -187,8 +200,6 @@ namespace Steamworks
HTML_UpdateToolTip = 4525,
HTML_HideToolTip = 4526,
HTML_BrowserRestarted = 4527,
BroadcastUploadStart = 4604,
BroadcastUploadStop = 4605,
GetVideoURLResult = 4611,
GetOPFSettingsResult = 4624,
SteamInventoryResultReady = 4700,
@@ -213,6 +224,7 @@ namespace Steamworks
ActiveBeaconsUpdated = 5306,
SteamRemotePlaySessionConnected = 5701,
SteamRemotePlaySessionDisconnected = 5702,
SteamRemotePlayTogetherGuestInvite = 5703,
}
internal static partial class CallbackTypeFactory
{
@@ -233,6 +245,7 @@ namespace Steamworks
{ CallbackType.StoreAuthURLResponse, typeof( StoreAuthURLResponse_t )},
{ CallbackType.MarketEligibilityResponse, typeof( MarketEligibilityResponse_t )},
{ CallbackType.DurationControl, typeof( DurationControl_t )},
{ CallbackType.GetTicketForWebApiResponse, typeof( GetTicketForWebApiResponse_t )},
{ CallbackType.GSClientApprove, typeof( GSClientApprove_t )},
{ CallbackType.GSClientDeny, typeof( GSClientDeny_t )},
{ CallbackType.GSClientKick, typeof( GSClientKick_t )},
@@ -261,6 +274,9 @@ namespace Steamworks
{ CallbackType.FriendsEnumerateFollowingList, typeof( FriendsEnumerateFollowingList_t )},
{ CallbackType.SetPersonaNameResponse, typeof( SetPersonaNameResponse_t )},
{ CallbackType.UnreadChatMessagesChanged, typeof( UnreadChatMessagesChanged_t )},
{ CallbackType.OverlayBrowserProtocolNavigation, typeof( OverlayBrowserProtocolNavigation_t )},
{ CallbackType.EquippedProfileItemsChanged, typeof( EquippedProfileItemsChanged_t )},
{ CallbackType.EquippedProfileItems, typeof( EquippedProfileItems_t )},
{ CallbackType.FavoritesListChanged, typeof( FavoritesListChanged_t )},
{ CallbackType.LobbyInvite, typeof( LobbyInvite_t )},
{ CallbackType.LobbyEnter, typeof( LobbyEnter_t )},
@@ -279,11 +295,14 @@ namespace Steamworks
{ CallbackType.SteamShutdown, typeof( SteamShutdown_t )},
{ CallbackType.CheckFileSignature, typeof( CheckFileSignature_t )},
{ CallbackType.GamepadTextInputDismissed, typeof( GamepadTextInputDismissed_t )},
{ CallbackType.AppResumingFromSuspend, typeof( AppResumingFromSuspend_t )},
{ CallbackType.FloatingGamepadTextInputDismissed, typeof( FloatingGamepadTextInputDismissed_t )},
{ CallbackType.FilterTextDictionaryChanged, typeof( FilterTextDictionaryChanged_t )},
{ CallbackType.DlcInstalled, typeof( DlcInstalled_t )},
{ CallbackType.RegisterActivationCodeResponse, typeof( RegisterActivationCodeResponse_t )},
{ CallbackType.NewUrlLaunchParameters, typeof( NewUrlLaunchParameters_t )},
{ CallbackType.AppProofOfPurchaseKeyResponse, typeof( AppProofOfPurchaseKeyResponse_t )},
{ CallbackType.FileDetailsResult, typeof( FileDetailsResult_t )},
{ CallbackType.TimedTrialStatus, typeof( TimedTrialStatus_t )},
{ CallbackType.UserStatsReceived, typeof( UserStatsReceived_t )},
{ CallbackType.UserStatsStored, typeof( UserStatsStored_t )},
{ CallbackType.UserAchievementStored, typeof( UserAchievementStored_t )},
@@ -301,11 +320,10 @@ namespace Steamworks
{ CallbackType.P2PSessionConnectFail, typeof( P2PSessionConnectFail_t )},
{ CallbackType.SteamNetConnectionStatusChangedCallback, typeof( SteamNetConnectionStatusChangedCallback_t )},
{ CallbackType.SteamNetAuthenticationStatus, typeof( SteamNetAuthenticationStatus_t )},
{ CallbackType.SteamNetworkingFakeIPResult, typeof( SteamNetworkingFakeIPResult_t )},
{ CallbackType.SteamNetworkingMessagesSessionRequest, typeof( SteamNetworkingMessagesSessionRequest_t )},
{ CallbackType.SteamNetworkingMessagesSessionFailed, typeof( SteamNetworkingMessagesSessionFailed_t )},
{ CallbackType.SteamRelayNetworkStatus, typeof( SteamRelayNetworkStatus_t )},
{ CallbackType.RemoteStorageAppSyncedClient, typeof( RemoteStorageAppSyncedClient_t )},
{ CallbackType.RemoteStorageAppSyncedServer, typeof( RemoteStorageAppSyncedServer_t )},
{ CallbackType.RemoteStorageAppSyncProgress, typeof( RemoteStorageAppSyncProgress_t )},
{ CallbackType.RemoteStorageAppSyncStatusCheck, typeof( RemoteStorageAppSyncStatusCheck_t )},
{ CallbackType.RemoteStorageFileShareResult, typeof( RemoteStorageFileShareResult_t )},
{ CallbackType.RemoteStoragePublishFileResult, typeof( RemoteStoragePublishFileResult_t )},
{ CallbackType.RemoteStorageDeletePublishedFileResult, typeof( RemoteStorageDeletePublishedFileResult_t )},
@@ -330,6 +348,7 @@ namespace Steamworks
{ CallbackType.RemoteStoragePublishedFileUpdated, typeof( RemoteStoragePublishedFileUpdated_t )},
{ CallbackType.RemoteStorageFileWriteAsyncComplete, typeof( RemoteStorageFileWriteAsyncComplete_t )},
{ CallbackType.RemoteStorageFileReadAsyncComplete, typeof( RemoteStorageFileReadAsyncComplete_t )},
{ CallbackType.RemoteStorageLocalFileChange, typeof( RemoteStorageLocalFileChange_t )},
{ CallbackType.GSStatsReceived, typeof( GSStatsReceived_t )},
{ CallbackType.GSStatsStored, typeof( GSStatsStored_t )},
{ CallbackType.HTTPRequestCompleted, typeof( HTTPRequestCompleted_t )},
@@ -337,6 +356,10 @@ namespace Steamworks
{ CallbackType.HTTPRequestDataReceived, typeof( HTTPRequestDataReceived_t )},
{ CallbackType.ScreenshotReady, typeof( ScreenshotReady_t )},
{ CallbackType.ScreenshotRequested, typeof( ScreenshotRequested_t )},
{ CallbackType.SteamInputDeviceConnected, typeof( SteamInputDeviceConnected_t )},
{ CallbackType.SteamInputDeviceDisconnected, typeof( SteamInputDeviceDisconnected_t )},
{ CallbackType.SteamInputConfigurationLoaded, typeof( SteamInputConfigurationLoaded_t )},
{ CallbackType.SteamInputGamepadSlotChange, typeof( SteamInputGamepadSlotChange_t )},
{ CallbackType.SteamUGCQueryCompleted, typeof( SteamUGCQueryCompleted_t )},
{ CallbackType.SteamUGCRequestUGCDetailsResult, typeof( SteamUGCRequestUGCDetailsResult_t )},
{ CallbackType.CreateItemResult, typeof( CreateItemResult_t )},
@@ -354,6 +377,8 @@ namespace Steamworks
{ CallbackType.RemoveAppDependencyResult, typeof( RemoveAppDependencyResult_t )},
{ CallbackType.GetAppDependenciesResult, typeof( GetAppDependenciesResult_t )},
{ CallbackType.DeleteItemResult, typeof( DeleteItemResult_t )},
{ CallbackType.UserSubscribedItemsListChanged, typeof( UserSubscribedItemsListChanged_t )},
{ CallbackType.WorkshopEULAStatus, typeof( WorkshopEULAStatus_t )},
{ CallbackType.SteamAppInstalled, typeof( SteamAppInstalled_t )},
{ CallbackType.SteamAppUninstalled, typeof( SteamAppUninstalled_t )},
{ CallbackType.PlaybackStatusHasChanged, typeof( PlaybackStatusHasChanged_t )},
@@ -395,8 +420,6 @@ namespace Steamworks
{ CallbackType.HTML_UpdateToolTip, typeof( HTML_UpdateToolTip_t )},
{ CallbackType.HTML_HideToolTip, typeof( HTML_HideToolTip_t )},
{ CallbackType.HTML_BrowserRestarted, typeof( HTML_BrowserRestarted_t )},
{ CallbackType.BroadcastUploadStart, typeof( BroadcastUploadStart_t )},
{ CallbackType.BroadcastUploadStop, typeof( BroadcastUploadStop_t )},
{ CallbackType.GetVideoURLResult, typeof( GetVideoURLResult_t )},
{ CallbackType.GetOPFSettingsResult, typeof( GetOPFSettingsResult_t )},
{ CallbackType.SteamInventoryResultReady, typeof( SteamInventoryResultReady_t )},
@@ -421,6 +444,7 @@ namespace Steamworks
{ CallbackType.ActiveBeaconsUpdated, typeof( ActiveBeaconsUpdated_t )},
{ CallbackType.SteamRemotePlaySessionConnected, typeof( SteamRemotePlaySessionConnected_t )},
{ CallbackType.SteamRemotePlaySessionDisconnected, typeof( SteamRemotePlaySessionDisconnected_t )},
{ CallbackType.SteamRemotePlayTogetherGuestInvite, typeof( SteamRemotePlayTogetherGuestInvite_t )},
};
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamAppList : SteamInterface
internal unsafe class ISteamAppList : SteamInterface
{
internal ISteamAppList( bool IsGameServer )
@@ -49,8 +49,7 @@ namespace Steamworks
#endregion
internal int GetAppName( AppId nAppID, out string pchName )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchName = memory;
using var mempchName = Helpers.TakeMemory();
var returnValue = _GetAppName( Self, nAppID, mempchName, (1024 * 32) );
pchName = Helpers.MemoryToString( mempchName );
return returnValue;
@@ -63,8 +62,7 @@ namespace Steamworks
#endregion
internal int GetAppInstallDir( AppId nAppID, out string pchDirectory )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchDirectory = memory;
using var mempchDirectory = Helpers.TakeMemory();
var returnValue = _GetAppInstallDir( Self, nAppID, mempchDirectory, (1024 * 32) );
pchDirectory = Helpers.MemoryToString( mempchDirectory );
return returnValue;
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamApps : SteamInterface
internal unsafe class ISteamApps : SteamInterface
{
internal ISteamApps( bool IsGameServer )
@@ -18,9 +18,6 @@ namespace Steamworks
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamApps_v008", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamApps_v008();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamApps_v008();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServerApps_v008", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServerApps_v008();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServerApps_v008();
#region FunctionMeta
@@ -159,8 +156,7 @@ namespace Steamworks
#endregion
internal bool BGetDLCDataByIndex( int iDLC, ref AppId pAppID, [MarshalAs( UnmanagedType.U1 )] ref bool pbAvailable, out string pchName )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchName = memory;
using var mempchName = Helpers.TakeMemory();
var returnValue = _BGetDLCDataByIndex( Self, iDLC, ref pAppID, ref pbAvailable, mempchName, (1024 * 32) );
pchName = Helpers.MemoryToString( mempchName );
return returnValue;
@@ -204,8 +200,7 @@ namespace Steamworks
#endregion
internal bool GetCurrentBetaName( out string pchName )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchName = memory;
using var mempchName = Helpers.TakeMemory();
var returnValue = _GetCurrentBetaName( Self, mempchName, (1024 * 32) );
pchName = Helpers.MemoryToString( mempchName );
return returnValue;
@@ -241,8 +236,7 @@ namespace Steamworks
#endregion
internal uint GetAppInstallDir( AppId appID, out string pchFolder )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchFolder = memory;
using var mempchFolder = Helpers.TakeMemory();
var returnValue = _GetAppInstallDir( Self, appID, mempchFolder, (1024 * 32) );
pchFolder = Helpers.MemoryToString( mempchFolder );
return returnValue;
@@ -333,8 +327,7 @@ namespace Steamworks
#endregion
internal int GetLaunchCommandLine( out string pszCommandLine )
{
using var memory = Helpers.TakeMemory();
IntPtr mempszCommandLine = memory;
using var mempszCommandLine = Helpers.TakeMemory();
var returnValue = _GetLaunchCommandLine( Self, mempszCommandLine, (1024 * 32) );
pszCommandLine = Helpers.MemoryToString( mempszCommandLine );
return returnValue;
@@ -352,5 +345,29 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamApps_BIsTimedTrial", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BIsTimedTrial( IntPtr self, ref uint punSecondsAllowed, ref uint punSecondsPlayed );
#endregion
internal bool BIsTimedTrial( ref uint punSecondsAllowed, ref uint punSecondsPlayed )
{
var returnValue = _BIsTimedTrial( Self, ref punSecondsAllowed, ref punSecondsPlayed );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamApps_SetDlcContext", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetDlcContext( IntPtr self, AppId nAppID );
#endregion
internal bool SetDlcContext( AppId nAppID )
{
var returnValue = _SetDlcContext( Self, nAppID );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamClient : SteamInterface
internal unsafe class ISteamClient : SteamInterface
{
internal ISteamClient( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamController : SteamInterface
internal unsafe class ISteamController : SteamInterface
{
internal ISteamController( bool IsGameServer )
@@ -15,9 +15,9 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamController_v007", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamController_v007();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamController_v007();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamController_v008", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamController_v008();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamController_v008();
#region FunctionMeta
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamFriends : SteamInterface
internal unsafe class ISteamFriends : SteamInterface
{
internal ISteamFriends( bool IsGameServer )
@@ -840,5 +840,72 @@ namespace Steamworks
_ActivateGameOverlayRemotePlayTogetherInviteDialog( Self, steamIDLobby );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamFriends_RegisterProtocolInOverlayBrowser", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _RegisterProtocolInOverlayBrowser( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchProtocol );
#endregion
internal bool RegisterProtocolInOverlayBrowser( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchProtocol )
{
var returnValue = _RegisterProtocolInOverlayBrowser( Self, pchProtocol );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialogConnectString", CallingConvention = Platform.CC)]
private static extern void _ActivateGameOverlayInviteDialogConnectString( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchConnectString );
#endregion
internal void ActivateGameOverlayInviteDialogConnectString( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchConnectString )
{
_ActivateGameOverlayInviteDialogConnectString( Self, pchConnectString );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamFriends_RequestEquippedProfileItems", CallingConvention = Platform.CC)]
private static extern SteamAPICall_t _RequestEquippedProfileItems( IntPtr self, SteamId steamID );
#endregion
internal CallResult<EquippedProfileItems_t> RequestEquippedProfileItems( SteamId steamID )
{
var returnValue = _RequestEquippedProfileItems( Self, steamID );
return new CallResult<EquippedProfileItems_t>( returnValue, IsServer );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamFriends_BHasEquippedProfileItem", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BHasEquippedProfileItem( IntPtr self, SteamId steamID, CommunityProfileItemType itemType );
#endregion
internal bool BHasEquippedProfileItem( SteamId steamID, CommunityProfileItemType itemType )
{
var returnValue = _BHasEquippedProfileItem( Self, steamID, itemType );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetProfileItemPropertyString", CallingConvention = Platform.CC)]
private static extern Utf8StringPointer _GetProfileItemPropertyString( IntPtr self, SteamId steamID, CommunityProfileItemType itemType, CommunityProfileItemProperty prop );
#endregion
internal string GetProfileItemPropertyString( SteamId steamID, CommunityProfileItemType itemType, CommunityProfileItemProperty prop )
{
var returnValue = _GetProfileItemPropertyString( Self, steamID, itemType, prop );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamFriends_GetProfileItemPropertyUint", CallingConvention = Platform.CC)]
private static extern uint _GetProfileItemPropertyUint( IntPtr self, SteamId steamID, CommunityProfileItemType itemType, CommunityProfileItemProperty prop );
#endregion
internal uint GetProfileItemPropertyUint( SteamId steamID, CommunityProfileItemType itemType, CommunityProfileItemProperty prop )
{
var returnValue = _GetProfileItemPropertyUint( Self, steamID, itemType, prop );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamGameSearch : SteamInterface
internal unsafe class ISteamGameSearch : SteamInterface
{
internal ISteamGameSearch( bool IsGameServer )
@@ -82,8 +82,7 @@ namespace Steamworks
#endregion
internal GameSearchErrorCode_t RetrieveConnectionDetails( SteamId steamIDHost, out string pchConnectionDetails )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchConnectionDetails = memory;
using var mempchConnectionDetails = Helpers.TakeMemory();
var returnValue = _RetrieveConnectionDetails( Self, steamIDHost, mempchConnectionDetails, (1024 * 32) );
pchConnectionDetails = Helpers.MemoryToString( mempchConnectionDetails );
return returnValue;
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamGameServer : SteamInterface
internal unsafe class ISteamGameServer : SteamInterface
{
internal ISteamGameServer( bool IsGameServer )
@@ -15,9 +15,9 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServer_v013", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServer_v013();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServer_v013();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServer_v015", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServer_v015();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServer_v015();
#region FunctionMeta
@@ -258,58 +258,23 @@ namespace Steamworks
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SendUserConnectAndAuthenticate( IntPtr self, uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetAdvertiseServerActive", CallingConvention = Platform.CC)]
private static extern void _SetAdvertiseServerActive( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bActive );
#endregion
internal bool SendUserConnectAndAuthenticate( uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser )
internal void SetAdvertiseServerActive( [MarshalAs( UnmanagedType.U1 )] bool bActive )
{
var returnValue = _SendUserConnectAndAuthenticate( Self, unIPClient, pvAuthBlob, cubAuthBlobSize, ref pSteamIDUser );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection", CallingConvention = Platform.CC)]
private static extern SteamId _CreateUnauthenticatedUserConnection( IntPtr self );
#endregion
internal SteamId CreateUnauthenticatedUserConnection()
{
var returnValue = _CreateUnauthenticatedUserConnection( Self );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SendUserDisconnect", CallingConvention = Platform.CC)]
private static extern void _SendUserDisconnect( IntPtr self, SteamId steamIDUser );
#endregion
internal void SendUserDisconnect( SteamId steamIDUser )
{
_SendUserDisconnect( Self, steamIDUser );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BUpdateUserData", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BUpdateUserData( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPlayerName, uint uScore );
#endregion
internal bool BUpdateUserData( SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPlayerName, uint uScore )
{
var returnValue = _BUpdateUserData( Self, steamIDUser, pchPlayerName, uScore );
return returnValue;
_SetAdvertiseServerActive( Self, bActive );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_GetAuthSessionTicket", CallingConvention = Platform.CC)]
private static extern HAuthTicket _GetAuthSessionTicket( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket );
private static extern HAuthTicket _GetAuthSessionTicket( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket, ref NetIdentity pSnid );
#endregion
internal HAuthTicket GetAuthSessionTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket )
internal HAuthTicket GetAuthSessionTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket, ref NetIdentity pSnid )
{
var returnValue = _GetAuthSessionTicket( Self, pTicket, cbMaxTicket, ref pcbTicket );
var returnValue = _GetAuthSessionTicket( Self, pTicket, cbMaxTicket, ref pcbTicket, ref pSnid );
return returnValue;
}
@@ -422,36 +387,6 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_EnableHeartbeats", CallingConvention = Platform.CC)]
private static extern void _EnableHeartbeats( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bActive );
#endregion
internal void EnableHeartbeats( [MarshalAs( UnmanagedType.U1 )] bool bActive )
{
_EnableHeartbeats( Self, bActive );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetHeartbeatInterval", CallingConvention = Platform.CC)]
private static extern void _SetHeartbeatInterval( IntPtr self, int iHeartbeatInterval );
#endregion
internal void SetHeartbeatInterval( int iHeartbeatInterval )
{
_SetHeartbeatInterval( Self, iHeartbeatInterval );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_ForceHeartbeat", CallingConvention = Platform.CC)]
private static extern void _ForceHeartbeat( IntPtr self );
#endregion
internal void ForceHeartbeat()
{
_ForceHeartbeat( Self );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_AssociateWithClan", CallingConvention = Platform.CC)]
private static extern SteamAPICall_t _AssociateWithClan( IntPtr self, SteamId steamIDClan );
@@ -474,5 +409,50 @@ namespace Steamworks
return new CallResult<ComputeNewPlayerCompatibilityResult_t>( returnValue, IsServer );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate_DEPRECATED", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SendUserConnectAndAuthenticate_DEPRECATED( IntPtr self, uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser );
#endregion
internal bool SendUserConnectAndAuthenticate_DEPRECATED( uint unIPClient, IntPtr pvAuthBlob, uint cubAuthBlobSize, ref SteamId pSteamIDUser )
{
var returnValue = _SendUserConnectAndAuthenticate_DEPRECATED( Self, unIPClient, pvAuthBlob, cubAuthBlobSize, ref pSteamIDUser );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection", CallingConvention = Platform.CC)]
private static extern SteamId _CreateUnauthenticatedUserConnection( IntPtr self );
#endregion
internal SteamId CreateUnauthenticatedUserConnection()
{
var returnValue = _CreateUnauthenticatedUserConnection( Self );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SendUserDisconnect_DEPRECATED", CallingConvention = Platform.CC)]
private static extern void _SendUserDisconnect_DEPRECATED( IntPtr self, SteamId steamIDUser );
#endregion
internal void SendUserDisconnect_DEPRECATED( SteamId steamIDUser )
{
_SendUserDisconnect_DEPRECATED( Self, steamIDUser );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_BUpdateUserData", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BUpdateUserData( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPlayerName, uint uScore );
#endregion
internal bool BUpdateUserData( SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPlayerName, uint uScore )
{
var returnValue = _BUpdateUserData( Self, steamIDUser, pchPlayerName, uScore );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamGameServerStats : SteamInterface
internal unsafe class ISteamGameServerStats : SteamInterface
{
internal ISteamGameServerStats( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamHTMLSurface : SteamInterface
internal unsafe class ISteamHTMLSurface : SteamInterface
{
internal ISteamHTMLSurface( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamHTTP : SteamInterface
internal unsafe class ISteamHTTP : SteamInterface
{
internal ISteamHTTP( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamInput : SteamInterface
internal unsafe class ISteamInput : SteamInterface
{
internal ISteamInput( bool IsGameServer )
@@ -15,20 +15,20 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamInput_v001", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamInput_v001();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamInput_v001();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamInput_v006", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamInput_v006();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamInput_v006();
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_Init", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _Init( IntPtr self );
private static extern bool _Init( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bExplicitlyCallRunFrame );
#endregion
internal bool Init()
internal bool Init( [MarshalAs( UnmanagedType.U1 )] bool bExplicitlyCallRunFrame )
{
var returnValue = _Init( Self );
var returnValue = _Init( Self, bExplicitlyCallRunFrame );
return returnValue;
}
@@ -45,13 +45,49 @@ namespace Steamworks
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_RunFrame", CallingConvention = Platform.CC)]
private static extern void _RunFrame( IntPtr self );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_SetInputActionManifestFilePath", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetInputActionManifestFilePath( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchInputActionManifestAbsolutePath );
#endregion
internal void RunFrame()
internal bool SetInputActionManifestFilePath( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchInputActionManifestAbsolutePath )
{
_RunFrame( Self );
var returnValue = _SetInputActionManifestFilePath( Self, pchInputActionManifestAbsolutePath );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_RunFrame", CallingConvention = Platform.CC)]
private static extern void _RunFrame( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bReservedValue );
#endregion
internal void RunFrame( [MarshalAs( UnmanagedType.U1 )] bool bReservedValue )
{
_RunFrame( Self, bReservedValue );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_BWaitForData", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BWaitForData( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bWaitForever, uint unTimeout );
#endregion
internal bool BWaitForData( [MarshalAs( UnmanagedType.U1 )] bool bWaitForever, uint unTimeout )
{
var returnValue = _BWaitForData( Self, bWaitForever, unTimeout );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_BNewDataAvailable", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BNewDataAvailable( IntPtr self );
#endregion
internal bool BNewDataAvailable()
{
var returnValue = _BNewDataAvailable( Self );
return returnValue;
}
#region FunctionMeta
@@ -65,6 +101,16 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_EnableDeviceCallbacks", CallingConvention = Platform.CC)]
private static extern void _EnableDeviceCallbacks( IntPtr self );
#endregion
internal void EnableDeviceCallbacks()
{
_EnableDeviceCallbacks( Self );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetActionSetHandle", CallingConvention = Platform.CC)]
private static extern InputActionSetHandle_t _GetActionSetHandle( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pszActionSetName );
@@ -171,6 +217,17 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForDigitalActionName", CallingConvention = Platform.CC)]
private static extern Utf8StringPointer _GetStringForDigitalActionName( IntPtr self, InputDigitalActionHandle_t eActionHandle );
#endregion
internal string GetStringForDigitalActionName( InputDigitalActionHandle_t eActionHandle )
{
var returnValue = _GetStringForDigitalActionName( Self, eActionHandle );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetAnalogActionHandle", CallingConvention = Platform.CC)]
private static extern InputAnalogActionHandle_t _GetAnalogActionHandle( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pszActionName );
@@ -205,13 +262,35 @@ namespace Steamworks
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphForActionOrigin", CallingConvention = Platform.CC)]
private static extern Utf8StringPointer _GetGlyphForActionOrigin( IntPtr self, InputActionOrigin eOrigin );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphPNGForActionOrigin", CallingConvention = Platform.CC)]
private static extern Utf8StringPointer _GetGlyphPNGForActionOrigin( IntPtr self, InputActionOrigin eOrigin, GlyphSize eSize, uint unFlags );
#endregion
internal string GetGlyphForActionOrigin( InputActionOrigin eOrigin )
internal string GetGlyphPNGForActionOrigin( InputActionOrigin eOrigin, GlyphSize eSize, uint unFlags )
{
var returnValue = _GetGlyphForActionOrigin( Self, eOrigin );
var returnValue = _GetGlyphPNGForActionOrigin( Self, eOrigin, eSize, unFlags );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphSVGForActionOrigin", CallingConvention = Platform.CC)]
private static extern Utf8StringPointer _GetGlyphSVGForActionOrigin( IntPtr self, InputActionOrigin eOrigin, uint unFlags );
#endregion
internal string GetGlyphSVGForActionOrigin( InputActionOrigin eOrigin, uint unFlags )
{
var returnValue = _GetGlyphSVGForActionOrigin( Self, eOrigin, unFlags );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetGlyphForActionOrigin_Legacy", CallingConvention = Platform.CC)]
private static extern Utf8StringPointer _GetGlyphForActionOrigin_Legacy( IntPtr self, InputActionOrigin eOrigin );
#endregion
internal string GetGlyphForActionOrigin_Legacy( InputActionOrigin eOrigin )
{
var returnValue = _GetGlyphForActionOrigin_Legacy( Self, eOrigin );
return returnValue;
}
@@ -226,6 +305,17 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetStringForAnalogActionName", CallingConvention = Platform.CC)]
private static extern Utf8StringPointer _GetStringForAnalogActionName( IntPtr self, InputAnalogActionHandle_t eActionHandle );
#endregion
internal string GetStringForAnalogActionName( InputAnalogActionHandle_t eActionHandle )
{
var returnValue = _GetStringForAnalogActionName( Self, eActionHandle );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_StopAnalogActionMomentum", CallingConvention = Platform.CC)]
private static extern void _StopAnalogActionMomentum( IntPtr self, InputHandle_t inputHandle, InputAnalogActionHandle_t eAction );
@@ -257,6 +347,26 @@ namespace Steamworks
_TriggerVibration( Self, inputHandle, usLeftSpeed, usRightSpeed );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerVibrationExtended", CallingConvention = Platform.CC)]
private static extern void _TriggerVibrationExtended( IntPtr self, InputHandle_t inputHandle, ushort usLeftSpeed, ushort usRightSpeed, ushort usLeftTriggerSpeed, ushort usRightTriggerSpeed );
#endregion
internal void TriggerVibrationExtended( InputHandle_t inputHandle, ushort usLeftSpeed, ushort usRightSpeed, ushort usLeftTriggerSpeed, ushort usRightTriggerSpeed )
{
_TriggerVibrationExtended( Self, inputHandle, usLeftSpeed, usRightSpeed, usLeftTriggerSpeed, usRightTriggerSpeed );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerSimpleHapticEvent", CallingConvention = Platform.CC)]
private static extern void _TriggerSimpleHapticEvent( IntPtr self, InputHandle_t inputHandle, ControllerHapticLocation eHapticLocation, byte nIntensity, char nGainDB, byte nOtherIntensity, char nOtherGainDB );
#endregion
internal void TriggerSimpleHapticEvent( InputHandle_t inputHandle, ControllerHapticLocation eHapticLocation, byte nIntensity, char nGainDB, byte nOtherIntensity, char nOtherGainDB )
{
_TriggerSimpleHapticEvent( Self, inputHandle, eHapticLocation, nIntensity, nGainDB, nOtherIntensity, nOtherGainDB );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_SetLEDColor", CallingConvention = Platform.CC)]
private static extern void _SetLEDColor( IntPtr self, InputHandle_t inputHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags );
@@ -268,23 +378,23 @@ namespace Steamworks
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerHapticPulse", CallingConvention = Platform.CC)]
private static extern void _TriggerHapticPulse( IntPtr self, InputHandle_t inputHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_Legacy_TriggerHapticPulse", CallingConvention = Platform.CC)]
private static extern void _Legacy_TriggerHapticPulse( IntPtr self, InputHandle_t inputHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec );
#endregion
internal void TriggerHapticPulse( InputHandle_t inputHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec )
internal void Legacy_TriggerHapticPulse( InputHandle_t inputHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec )
{
_TriggerHapticPulse( Self, inputHandle, eTargetPad, usDurationMicroSec );
_Legacy_TriggerHapticPulse( Self, inputHandle, eTargetPad, usDurationMicroSec );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_TriggerRepeatedHapticPulse", CallingConvention = Platform.CC)]
private static extern void _TriggerRepeatedHapticPulse( IntPtr self, InputHandle_t inputHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_Legacy_TriggerRepeatedHapticPulse", CallingConvention = Platform.CC)]
private static extern void _Legacy_TriggerRepeatedHapticPulse( IntPtr self, InputHandle_t inputHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags );
#endregion
internal void TriggerRepeatedHapticPulse( InputHandle_t inputHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags )
internal void Legacy_TriggerRepeatedHapticPulse( InputHandle_t inputHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags )
{
_TriggerRepeatedHapticPulse( Self, inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags );
_Legacy_TriggerRepeatedHapticPulse( Self, inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags );
}
#region FunctionMeta
@@ -399,5 +509,16 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInput_GetSessionInputConfigurationSettings", CallingConvention = Platform.CC)]
private static extern ushort _GetSessionInputConfigurationSettings( IntPtr self );
#endregion
internal ushort GetSessionInputConfigurationSettings()
{
var returnValue = _GetSessionInputConfigurationSettings( Self );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamInventory : SteamInterface
internal unsafe class ISteamInventory : SteamInterface
{
internal ISteamInventory( bool IsGameServer )
@@ -28,9 +28,6 @@ namespace Steamworks
private static extern Result _GetResultStatus( IntPtr self, SteamInventoryResult_t resultHandle );
#endregion
/// <summary>
/// Find out the status of an asynchronous inventory result handle.
/// </summary>
internal Result GetResultStatus( SteamInventoryResult_t resultHandle )
{
var returnValue = _GetResultStatus( Self, resultHandle );
@@ -43,9 +40,6 @@ namespace Steamworks
private static extern bool _GetResultItems( IntPtr self, SteamInventoryResult_t resultHandle, [In,Out] SteamItemDetails_t[]? pOutItemsArray, ref uint punOutItemsArraySize );
#endregion
/// <summary>
/// Copies the contents of a result set into a flat array. The specific contents of the result set depend on which query which was used.
/// </summary>
internal bool GetResultItems( SteamInventoryResult_t resultHandle, [In,Out] SteamItemDetails_t[]? pOutItemsArray, ref uint punOutItemsArraySize )
{
var returnValue = _GetResultItems( Self, resultHandle, pOutItemsArray, ref punOutItemsArraySize );
@@ -60,8 +54,7 @@ namespace Steamworks
#endregion
internal bool GetResultItemProperty( SteamInventoryResult_t resultHandle, uint unItemIndex, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string? pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSizeOut )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchValueBuffer = memory;
using var mempchValueBuffer = Helpers.TakeMemory();
var returnValue = _GetResultItemProperty( Self, resultHandle, unItemIndex, pchPropertyName, mempchValueBuffer, ref punValueBufferSizeOut );
pchValueBuffer = Helpers.MemoryToString( mempchValueBuffer );
return returnValue;
@@ -72,9 +65,6 @@ namespace Steamworks
private static extern uint _GetResultTimestamp( IntPtr self, SteamInventoryResult_t resultHandle );
#endregion
/// <summary>
/// Returns the server time at which the result was generated. Compare against the value of IClientUtils::GetServerRealTime() to determine age.
/// </summary>
internal uint GetResultTimestamp( SteamInventoryResult_t resultHandle )
{
var returnValue = _GetResultTimestamp( Self, resultHandle );
@@ -87,9 +77,6 @@ namespace Steamworks
private static extern bool _CheckResultSteamID( IntPtr self, SteamInventoryResult_t resultHandle, SteamId steamIDExpected );
#endregion
/// <summary>
/// Returns true if the result belongs to the target steam ID or false if the result does not. This is important when using DeserializeResult to verify that a remote player is not pretending to have a different users inventory.
/// </summary>
internal bool CheckResultSteamID( SteamInventoryResult_t resultHandle, SteamId steamIDExpected )
{
var returnValue = _CheckResultSteamID( Self, resultHandle, steamIDExpected );
@@ -101,9 +88,6 @@ namespace Steamworks
private static extern void _DestroyResult( IntPtr self, SteamInventoryResult_t resultHandle );
#endregion
/// <summary>
/// Destroys a result handle and frees all associated memory.
/// </summary>
internal void DestroyResult( SteamInventoryResult_t resultHandle )
{
_DestroyResult( Self, resultHandle );
@@ -115,9 +99,6 @@ namespace Steamworks
private static extern bool _GetAllItems( IntPtr self, ref SteamInventoryResult_t pResultHandle );
#endregion
/// <summary>
/// Captures the entire state of the current users Steam inventory.
/// </summary>
internal bool GetAllItems( ref SteamInventoryResult_t pResultHandle )
{
var returnValue = _GetAllItems( Self, ref pResultHandle );
@@ -130,9 +111,6 @@ namespace Steamworks
private static extern bool _GetItemsByID( IntPtr self, ref SteamInventoryResult_t pResultHandle, ref InventoryItemId pInstanceIDs, uint unCountInstanceIDs );
#endregion
/// <summary>
/// Captures the state of a subset of the current users Steam inventory identified by an array of item instance IDs.
/// </summary>
internal bool GetItemsByID( ref SteamInventoryResult_t pResultHandle, ref InventoryItemId pInstanceIDs, uint unCountInstanceIDs )
{
var returnValue = _GetItemsByID( Self, ref pResultHandle, ref pInstanceIDs, unCountInstanceIDs );
@@ -181,9 +159,6 @@ namespace Steamworks
private static extern bool _GrantPromoItems( IntPtr self, ref SteamInventoryResult_t pResultHandle );
#endregion
/// <summary>
/// GrantPromoItems() checks the list of promotional items for which the user may be eligible and grants the items (one time only).
/// </summary>
internal bool GrantPromoItems( ref SteamInventoryResult_t pResultHandle )
{
var returnValue = _GrantPromoItems( Self, ref pResultHandle );
@@ -220,9 +195,6 @@ namespace Steamworks
private static extern bool _ConsumeItem( IntPtr self, ref SteamInventoryResult_t pResultHandle, InventoryItemId itemConsume, uint unQuantity );
#endregion
/// <summary>
/// ConsumeItem() removes items from the inventory permanently.
/// </summary>
internal bool ConsumeItem( ref SteamInventoryResult_t pResultHandle, InventoryItemId itemConsume, uint unQuantity )
{
var returnValue = _ConsumeItem( Self, ref pResultHandle, itemConsume, unQuantity );
@@ -258,9 +230,6 @@ namespace Steamworks
private static extern void _SendItemDropHeartbeat( IntPtr self );
#endregion
/// <summary>
/// Deprecated method. Playtime accounting is performed on the Steam servers.
/// </summary>
internal void SendItemDropHeartbeat()
{
_SendItemDropHeartbeat( Self );
@@ -272,9 +241,6 @@ namespace Steamworks
private static extern bool _TriggerItemDrop( IntPtr self, ref SteamInventoryResult_t pResultHandle, InventoryDefId dropListDefinition );
#endregion
/// <summary>
/// Playtime credit must be consumed and turned into item drops by your game.
/// </summary>
internal bool TriggerItemDrop( ref SteamInventoryResult_t pResultHandle, InventoryDefId dropListDefinition )
{
var returnValue = _TriggerItemDrop( Self, ref pResultHandle, dropListDefinition );
@@ -299,9 +265,6 @@ namespace Steamworks
private static extern bool _LoadItemDefinitions( IntPtr self );
#endregion
/// <summary>
/// LoadItemDefinitions triggers the automatic load and refresh of item definitions.
/// </summary>
internal bool LoadItemDefinitions()
{
var returnValue = _LoadItemDefinitions( Self );
@@ -328,8 +291,7 @@ namespace Steamworks
#endregion
internal bool GetItemDefinitionProperty( InventoryDefId iDefinition, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string? pchPropertyName, out string pchValueBuffer, ref uint punValueBufferSizeOut )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchValueBuffer = memory;
using var mempchValueBuffer = Helpers.TakeMemory();
var returnValue = _GetItemDefinitionProperty( Self, iDefinition, pchPropertyName, mempchValueBuffer, ref punValueBufferSizeOut );
pchValueBuffer = Helpers.MemoryToString( mempchValueBuffer );
return returnValue;
@@ -498,5 +460,17 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_InspectItem", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _InspectItem( IntPtr self, ref SteamInventoryResult_t pResultHandle, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchItemToken );
#endregion
internal bool InspectItem( ref SteamInventoryResult_t pResultHandle, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchItemToken )
{
var returnValue = _InspectItem( Self, ref pResultHandle, pchItemToken );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamMatchmaking : SteamInterface
internal unsafe class ISteamMatchmaking : SteamInterface
{
internal ISteamMatchmaking( bool IsGameServer )
@@ -266,10 +266,8 @@ namespace Steamworks
#endregion
internal bool GetLobbyDataByIndex( SteamId steamIDLobby, int iLobbyData, out string pchKey, out string pchValue )
{
using var memoryKey = Helpers.TakeMemory();
using var memoryValue = Helpers.TakeMemory();
IntPtr mempchKey = memoryKey;
IntPtr mempchValue = memoryValue;
using var mempchKey = Helpers.TakeMemory();
using var mempchValue = Helpers.TakeMemory();
var returnValue = _GetLobbyDataByIndex( Self, steamIDLobby, iLobbyData, mempchKey, (1024 * 32), mempchValue, (1024 * 32) );
pchKey = Helpers.MemoryToString( mempchKey );
pchValue = Helpers.MemoryToString( mempchValue );
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamMatchmakingPingResponse : SteamInterface
internal unsafe class ISteamMatchmakingPingResponse : SteamInterface
{
internal ISteamMatchmakingPingResponse( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamMatchmakingPlayersResponse : SteamInterface
internal unsafe class ISteamMatchmakingPlayersResponse : SteamInterface
{
internal ISteamMatchmakingPlayersResponse( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamMatchmakingRulesResponse : SteamInterface
internal unsafe class ISteamMatchmakingRulesResponse : SteamInterface
{
internal ISteamMatchmakingRulesResponse( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamMatchmakingServerListResponse : SteamInterface
internal unsafe class ISteamMatchmakingServerListResponse : SteamInterface
{
internal ISteamMatchmakingServerListResponse( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamMatchmakingServers : SteamInterface
internal unsafe class ISteamMatchmakingServers : SteamInterface
{
internal ISteamMatchmakingServers( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamMusic : SteamInterface
internal unsafe class ISteamMusic : SteamInterface
{
internal ISteamMusic( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamMusicRemote : SteamInterface
internal unsafe class ISteamMusicRemote : SteamInterface
{
internal ISteamMusicRemote( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamNetworking : SteamInterface
internal unsafe class ISteamNetworking : SteamInterface
{
internal ISteamNetworking( bool IsGameServer )
@@ -1,41 +0,0 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Steamworks.Data;
namespace Steamworks
{
internal class ISteamNetworkingConnectionCustomSignaling : SteamInterface
{
internal ISteamNetworkingConnectionCustomSignaling( bool IsGameServer )
{
SetupInterface( IsGameServer );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingConnectionCustomSignaling_SendSignal", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SendSignal( IntPtr self, Connection hConn, ref ConnectionInfo info, IntPtr pMsg, int cbMsg );
#endregion
internal bool SendSignal( Connection hConn, ref ConnectionInfo info, IntPtr pMsg, int cbMsg )
{
var returnValue = _SendSignal( Self, hConn, ref info, pMsg, cbMsg );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingConnectionCustomSignaling_Release", CallingConvention = Platform.CC)]
private static extern void _Release( IntPtr self );
#endregion
internal void Release()
{
_Release( Self );
}
}
}
@@ -1,40 +0,0 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Steamworks.Data;
namespace Steamworks
{
internal class ISteamNetworkingCustomSignalingRecvContext : SteamInterface
{
internal ISteamNetworkingCustomSignalingRecvContext( bool IsGameServer )
{
SetupInterface( IsGameServer );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingCustomSignalingRecvContext_OnConnectRequest", CallingConvention = Platform.CC)]
private static extern IntPtr _OnConnectRequest( IntPtr self, Connection hConn, ref NetIdentity identityPeer );
#endregion
internal IntPtr OnConnectRequest( Connection hConn, ref NetIdentity identityPeer )
{
var returnValue = _OnConnectRequest( Self, hConn, ref identityPeer );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingCustomSignalingRecvContext_SendRejectionSignal", CallingConvention = Platform.CC)]
private static extern void _SendRejectionSignal( IntPtr self, ref NetIdentity identityPeer, IntPtr pMsg, int cbMsg );
#endregion
internal void SendRejectionSignal( ref NetIdentity identityPeer, IntPtr pMsg, int cbMsg )
{
_SendRejectionSignal( Self, ref identityPeer, pMsg, cbMsg );
}
}
}
@@ -0,0 +1,61 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Steamworks.Data;
namespace Steamworks
{
internal unsafe class ISteamNetworkingFakeUDPPort : SteamInterface
{
internal ISteamNetworkingFakeUDPPort( bool IsGameServer )
{
SetupInterface( IsGameServer );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingFakeUDPPort_DestroyFakeUDPPort", CallingConvention = Platform.CC)]
private static extern void _DestroyFakeUDPPort( IntPtr self );
#endregion
internal void DestroyFakeUDPPort()
{
_DestroyFakeUDPPort( Self );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingFakeUDPPort_SendMessageToFakeIP", CallingConvention = Platform.CC)]
private static extern Result _SendMessageToFakeIP( IntPtr self, ref NetAddress remoteAddress, IntPtr pData, uint cbData, int nSendFlags );
#endregion
internal Result SendMessageToFakeIP( ref NetAddress remoteAddress, IntPtr pData, uint cbData, int nSendFlags )
{
var returnValue = _SendMessageToFakeIP( Self, ref remoteAddress, pData, cbData, nSendFlags );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingFakeUDPPort_ReceiveMessages", CallingConvention = Platform.CC)]
private static extern int _ReceiveMessages( IntPtr self, IntPtr ppOutMessages, int nMaxMessages );
#endregion
internal int ReceiveMessages( IntPtr ppOutMessages, int nMaxMessages )
{
var returnValue = _ReceiveMessages( Self, ppOutMessages, nMaxMessages );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingFakeUDPPort_ScheduleCleanup", CallingConvention = Platform.CC)]
private static extern void _ScheduleCleanup( IntPtr self, ref NetAddress remoteAddress );
#endregion
internal void ScheduleCleanup( ref NetAddress remoteAddress )
{
_ScheduleCleanup( Self, ref remoteAddress );
}
}
}
@@ -0,0 +1,96 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Steamworks.Data;
namespace Steamworks
{
internal unsafe class ISteamNetworkingMessages : SteamInterface
{
internal ISteamNetworkingMessages( bool IsGameServer )
{
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingMessages_SteamAPI_v002", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamNetworkingMessages_SteamAPI_v002();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamNetworkingMessages_SteamAPI_v002();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServerNetworkingMessages_SteamAPI_v002", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServerNetworkingMessages_SteamAPI_v002();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServerNetworkingMessages_SteamAPI_v002();
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_SendMessageToUser", CallingConvention = Platform.CC)]
private static extern Result _SendMessageToUser( IntPtr self, ref NetIdentity identityRemote, [In,Out] IntPtr[] pubData, uint cubData, int nSendFlags, int nRemoteChannel );
#endregion
internal Result SendMessageToUser( ref NetIdentity identityRemote, [In,Out] IntPtr[] pubData, uint cubData, int nSendFlags, int nRemoteChannel )
{
var returnValue = _SendMessageToUser( Self, ref identityRemote, pubData, cubData, nSendFlags, nRemoteChannel );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_ReceiveMessagesOnChannel", CallingConvention = Platform.CC)]
private static extern int _ReceiveMessagesOnChannel( IntPtr self, int nLocalChannel, IntPtr ppOutMessages, int nMaxMessages );
#endregion
internal int ReceiveMessagesOnChannel( int nLocalChannel, IntPtr ppOutMessages, int nMaxMessages )
{
var returnValue = _ReceiveMessagesOnChannel( Self, nLocalChannel, ppOutMessages, nMaxMessages );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_AcceptSessionWithUser", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _AcceptSessionWithUser( IntPtr self, ref NetIdentity identityRemote );
#endregion
internal bool AcceptSessionWithUser( ref NetIdentity identityRemote )
{
var returnValue = _AcceptSessionWithUser( Self, ref identityRemote );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_CloseSessionWithUser", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _CloseSessionWithUser( IntPtr self, ref NetIdentity identityRemote );
#endregion
internal bool CloseSessionWithUser( ref NetIdentity identityRemote )
{
var returnValue = _CloseSessionWithUser( Self, ref identityRemote );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_CloseChannelWithUser", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _CloseChannelWithUser( IntPtr self, ref NetIdentity identityRemote, int nLocalChannel );
#endregion
internal bool CloseChannelWithUser( ref NetIdentity identityRemote, int nLocalChannel )
{
var returnValue = _CloseChannelWithUser( Self, ref identityRemote, nLocalChannel );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingMessages_GetSessionConnectionInfo", CallingConvention = Platform.CC)]
private static extern ConnectionState _GetSessionConnectionInfo( IntPtr self, ref NetIdentity identityRemote, ref ConnectionInfo pConnectionInfo, ref ConnectionStatus pQuickStatus );
#endregion
internal ConnectionState GetSessionConnectionInfo( ref NetIdentity identityRemote, ref ConnectionInfo pConnectionInfo, ref ConnectionStatus pQuickStatus )
{
var returnValue = _GetSessionConnectionInfo( Self, ref identityRemote, ref pConnectionInfo, ref pQuickStatus );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamNetworkingSockets : SteamInterface
internal unsafe class ISteamNetworkingSockets : SteamInterface
{
internal ISteamNetworkingSockets( bool IsGameServer )
@@ -15,12 +15,12 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingSockets_v008", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamNetworkingSockets_v008();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamNetworkingSockets_v008();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServerNetworkingSockets_v008", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServerNetworkingSockets_v008();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServerNetworkingSockets_v008();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingSockets_SteamAPI_v012", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamNetworkingSockets_SteamAPI_v012();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamNetworkingSockets_SteamAPI_v012();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServerNetworkingSockets_SteamAPI_v012", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServerNetworkingSockets_SteamAPI_v012();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServerNetworkingSockets_SteamAPI_v012();
#region FunctionMeta
@@ -47,23 +47,23 @@ namespace Steamworks
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2P", CallingConvention = Platform.CC)]
private static extern Socket _CreateListenSocketP2P( IntPtr self, int nVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
private static extern Socket _CreateListenSocketP2P( IntPtr self, int nLocalVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
#endregion
internal Socket CreateListenSocketP2P( int nVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
internal Socket CreateListenSocketP2P( int nLocalVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
{
var returnValue = _CreateListenSocketP2P( Self, nVirtualPort, nOptions, pOptions );
var returnValue = _CreateListenSocketP2P( Self, nLocalVirtualPort, nOptions, pOptions );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectP2P", CallingConvention = Platform.CC)]
private static extern Connection _ConnectP2P( IntPtr self, ref NetIdentity identityRemote, int nVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
private static extern Connection _ConnectP2P( IntPtr self, ref NetIdentity identityRemote, int nRemoteVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
#endregion
internal Connection ConnectP2P( ref NetIdentity identityRemote, int nVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
internal Connection ConnectP2P( ref NetIdentity identityRemote, int nRemoteVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
{
var returnValue = _ConnectP2P( Self, ref identityRemote, nVirtualPort, nOptions, pOptions );
var returnValue = _ConnectP2P( Self, ref identityRemote, nRemoteVirtualPort, nOptions, pOptions );
return returnValue;
}
@@ -143,8 +143,7 @@ namespace Steamworks
#endregion
internal bool GetConnectionName( Connection hPeer, out string pszName )
{
using var memory = Helpers.TakeMemory();
IntPtr mempszName = memory;
using var mempszName = Helpers.TakeMemory();
var returnValue = _GetConnectionName( Self, hPeer, mempszName, (1024 * 32) );
pszName = Helpers.MemoryToString( mempszName );
return returnValue;
@@ -163,12 +162,12 @@ namespace Steamworks
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_SendMessages", CallingConvention = Platform.CC)]
private static extern void _SendMessages( IntPtr self, int nMessages, ref NetMsg pMessages, [In,Out] long[] pOutMessageNumberOrResult );
private static extern void _SendMessages( IntPtr self, int nMessages, NetMsg** pMessages, long* pOutMessageNumberOrResult );
#endregion
internal void SendMessages( int nMessages, ref NetMsg pMessages, [In,Out] long[] pOutMessageNumberOrResult )
internal void SendMessages( int nMessages, NetMsg** pMessages, long* pOutMessageNumberOrResult )
{
_SendMessages( Self, nMessages, ref pMessages, pOutMessageNumberOrResult );
_SendMessages( Self, nMessages, pMessages, pOutMessageNumberOrResult );
}
#region FunctionMeta
@@ -206,14 +205,13 @@ namespace Steamworks
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetQuickConnectionStatus", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _GetQuickConnectionStatus( IntPtr self, Connection hConn, ref SteamNetworkingQuickConnectionStatus pStats );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetConnectionRealTimeStatus", CallingConvention = Platform.CC)]
private static extern Result _GetConnectionRealTimeStatus( IntPtr self, Connection hConn, ref ConnectionStatus pStatus, int nLanes, [In,Out] ConnectionLaneStatus[]? pLanes );
#endregion
internal bool GetQuickConnectionStatus( Connection hConn, ref SteamNetworkingQuickConnectionStatus pStats )
internal Result GetConnectionRealTimeStatus( Connection hConn, ref ConnectionStatus pStatus, int nLanes, [In,Out] ConnectionLaneStatus[]? pLanes )
{
var returnValue = _GetQuickConnectionStatus( Self, hConn, ref pStats );
var returnValue = _GetConnectionRealTimeStatus( Self, hConn, ref pStatus, nLanes, pLanes );
return returnValue;
}
@@ -224,8 +222,7 @@ namespace Steamworks
#endregion
internal int GetDetailedConnectionStatus( Connection hConn, out string pszBuf )
{
using var memory = Helpers.TakeMemory();
IntPtr mempszBuf = memory;
using var mempszBuf = Helpers.TakeMemory();
var returnValue = _GetDetailedConnectionStatus( Self, hConn, mempszBuf, (1024 * 32) );
pszBuf = Helpers.MemoryToString( mempszBuf );
return returnValue;
@@ -255,6 +252,17 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConfigureConnectionLanes", CallingConvention = Platform.CC)]
private static extern Result _ConfigureConnectionLanes( IntPtr self, Connection hConn, int nNumLanes, [In,Out] int[] pLanePriorities, [In,Out] ushort[] pLaneWeights );
#endregion
internal Result ConfigureConnectionLanes( Connection hConn, int nNumLanes, [In,Out] int[] pLanePriorities, [In,Out] ushort[] pLaneWeights )
{
var returnValue = _ConfigureConnectionLanes( Self, hConn, nNumLanes, pLanePriorities, pLaneWeights );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetIdentity", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
@@ -349,23 +357,23 @@ namespace Steamworks
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_FindRelayAuthTicketForServer", CallingConvention = Platform.CC)]
private static extern int _FindRelayAuthTicketForServer( IntPtr self, ref NetIdentity identityGameServer, int nVirtualPort, [In,Out] SteamDatagramRelayAuthTicket[] pOutParsedTicket );
private static extern int _FindRelayAuthTicketForServer( IntPtr self, ref NetIdentity identityGameServer, int nRemoteVirtualPort, [In,Out] SteamDatagramRelayAuthTicket[] pOutParsedTicket );
#endregion
internal int FindRelayAuthTicketForServer( ref NetIdentity identityGameServer, int nVirtualPort, [In,Out] SteamDatagramRelayAuthTicket[] pOutParsedTicket )
internal int FindRelayAuthTicketForServer( ref NetIdentity identityGameServer, int nRemoteVirtualPort, [In,Out] SteamDatagramRelayAuthTicket[] pOutParsedTicket )
{
var returnValue = _FindRelayAuthTicketForServer( Self, ref identityGameServer, nVirtualPort, pOutParsedTicket );
var returnValue = _FindRelayAuthTicketForServer( Self, ref identityGameServer, nRemoteVirtualPort, pOutParsedTicket );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectToHostedDedicatedServer", CallingConvention = Platform.CC)]
private static extern Connection _ConnectToHostedDedicatedServer( IntPtr self, ref NetIdentity identityTarget, int nVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
private static extern Connection _ConnectToHostedDedicatedServer( IntPtr self, ref NetIdentity identityTarget, int nRemoteVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
#endregion
internal Connection ConnectToHostedDedicatedServer( ref NetIdentity identityTarget, int nVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
internal Connection ConnectToHostedDedicatedServer( ref NetIdentity identityTarget, int nRemoteVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
{
var returnValue = _ConnectToHostedDedicatedServer( Self, ref identityTarget, nVirtualPort, nOptions, pOptions );
var returnValue = _ConnectToHostedDedicatedServer( Self, ref identityTarget, nRemoteVirtualPort, nOptions, pOptions );
return returnValue;
}
@@ -404,12 +412,12 @@ namespace Steamworks
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket", CallingConvention = Platform.CC)]
private static extern Socket _CreateHostedDedicatedServerListenSocket( IntPtr self, int nVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
private static extern Socket _CreateHostedDedicatedServerListenSocket( IntPtr self, int nLocalVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
#endregion
internal Socket CreateHostedDedicatedServerListenSocket( int nVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
internal Socket CreateHostedDedicatedServerListenSocket( int nLocalVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
{
var returnValue = _CreateHostedDedicatedServerListenSocket( Self, nVirtualPort, nOptions, pOptions );
var returnValue = _CreateHostedDedicatedServerListenSocket( Self, nLocalVirtualPort, nOptions, pOptions );
return returnValue;
}
@@ -426,12 +434,12 @@ namespace Steamworks
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ConnectP2PCustomSignaling", CallingConvention = Platform.CC)]
private static extern Connection _ConnectP2PCustomSignaling( IntPtr self, IntPtr pSignaling, ref NetIdentity pPeerIdentity, int nOptions, [In,Out] NetKeyValue[] pOptions );
private static extern Connection _ConnectP2PCustomSignaling( IntPtr self, IntPtr pSignaling, ref NetIdentity pPeerIdentity, int nRemoteVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions );
#endregion
internal Connection ConnectP2PCustomSignaling( IntPtr pSignaling, ref NetIdentity pPeerIdentity, int nOptions, [In,Out] NetKeyValue[] pOptions )
internal Connection ConnectP2PCustomSignaling( IntPtr pSignaling, ref NetIdentity pPeerIdentity, int nRemoteVirtualPort, int nOptions, [In,Out] NetKeyValue[] pOptions )
{
var returnValue = _ConnectP2PCustomSignaling( Self, pSignaling, ref pPeerIdentity, nOptions, pOptions );
var returnValue = _ConnectP2PCustomSignaling( Self, pSignaling, ref pPeerIdentity, nRemoteVirtualPort, nOptions, pOptions );
return returnValue;
}
@@ -471,5 +479,80 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_ResetIdentity", CallingConvention = Platform.CC)]
private static extern void _ResetIdentity( IntPtr self, ref NetIdentity pIdentity );
#endregion
internal void ResetIdentity( ref NetIdentity pIdentity )
{
_ResetIdentity( Self, ref pIdentity );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_RunCallbacks", CallingConvention = Platform.CC)]
private static extern void _RunCallbacks( IntPtr self );
#endregion
internal void RunCallbacks()
{
_RunCallbacks( Self );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_BeginAsyncRequestFakeIP", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BeginAsyncRequestFakeIP( IntPtr self, int nNumPorts );
#endregion
internal bool BeginAsyncRequestFakeIP( int nNumPorts )
{
var returnValue = _BeginAsyncRequestFakeIP( Self, nNumPorts );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetFakeIP", CallingConvention = Platform.CC)]
private static extern void _GetFakeIP( IntPtr self, int idxFirstPort, ref SteamNetworkingFakeIPResult_t pInfo );
#endregion
internal void GetFakeIP( int idxFirstPort, ref SteamNetworkingFakeIPResult_t pInfo )
{
_GetFakeIP( Self, idxFirstPort, ref pInfo );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2PFakeIP", CallingConvention = Platform.CC)]
private static extern Socket _CreateListenSocketP2PFakeIP( IntPtr self, int idxFakePort, int nOptions, [In,Out] NetKeyValue[] pOptions );
#endregion
internal Socket CreateListenSocketP2PFakeIP( int idxFakePort, int nOptions, [In,Out] NetKeyValue[] pOptions )
{
var returnValue = _CreateListenSocketP2PFakeIP( Self, idxFakePort, nOptions, pOptions );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_GetRemoteFakeIPForConnection", CallingConvention = Platform.CC)]
private static extern Result _GetRemoteFakeIPForConnection( IntPtr self, Connection hConn, [In,Out] NetAddress[] pOutAddr );
#endregion
internal Result GetRemoteFakeIPForConnection( Connection hConn, [In,Out] NetAddress[] pOutAddr )
{
var returnValue = _GetRemoteFakeIPForConnection( Self, hConn, pOutAddr );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingSockets_CreateFakeUDPPort", CallingConvention = Platform.CC)]
private static extern IntPtr _CreateFakeUDPPort( IntPtr self, int idxFakeServerPort );
#endregion
internal IntPtr CreateFakeUDPPort( int idxFakeServerPort )
{
var returnValue = _CreateFakeUDPPort( Self, idxFakeServerPort );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamNetworkingUtils : SteamInterface
internal unsafe class ISteamNetworkingUtils : SteamInterface
{
internal ISteamNetworkingUtils( bool IsGameServer )
@@ -15,20 +15,20 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingUtils_v003", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamNetworkingUtils_v003();
public override IntPtr GetGlobalInterfacePointer() => SteamAPI_SteamNetworkingUtils_v003();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingUtils_SteamAPI_v004", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamNetworkingUtils_SteamAPI_v004();
public override IntPtr GetGlobalInterfacePointer() => SteamAPI_SteamNetworkingUtils_SteamAPI_v004();
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_AllocateMessage", CallingConvention = Platform.CC)]
private static extern IntPtr _AllocateMessage( IntPtr self, int cbAllocateBuffer );
private static extern NetMsg* _AllocateMessage( IntPtr self, int cbAllocateBuffer );
#endregion
internal NetMsg AllocateMessage( int cbAllocateBuffer )
internal NetMsg* AllocateMessage( int cbAllocateBuffer )
{
var returnValue = _AllocateMessage( Self, cbAllocateBuffer );
return returnValue.ToType<NetMsg>();
return returnValue;
}
#region FunctionMeta
@@ -92,8 +92,7 @@ namespace Steamworks
#endregion
internal void ConvertPingLocationToString( ref NetPingLocation location, out string pszBuf )
{
using var memory = Helpers.TakeMemory();
IntPtr mempszBuf = memory;
using var mempszBuf = Helpers.TakeMemory();
_ConvertPingLocationToString( Self, ref location, mempszBuf, (1024 * 32) );
pszBuf = Helpers.MemoryToString( mempszBuf );
}
@@ -187,6 +186,40 @@ namespace Steamworks
_SetDebugOutputFunction( Self, eDetailLevel, pfnFunc );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_IsFakeIPv4", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _IsFakeIPv4( IntPtr self, uint nIPv4 );
#endregion
internal bool IsFakeIPv4( uint nIPv4 )
{
var returnValue = _IsFakeIPv4( Self, nIPv4 );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetIPv4FakeIPType", CallingConvention = Platform.CC)]
private static extern SteamNetworkingFakeIPType _GetIPv4FakeIPType( IntPtr self, uint nIPv4 );
#endregion
internal SteamNetworkingFakeIPType GetIPv4FakeIPType( uint nIPv4 )
{
var returnValue = _GetIPv4FakeIPType( Self, nIPv4 );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetRealIdentityForFakeIP", CallingConvention = Platform.CC)]
private static extern Result _GetRealIdentityForFakeIP( IntPtr self, ref NetAddress fakeIP, [In,Out] NetIdentity[] pOutRealIdentity );
#endregion
internal Result GetRealIdentityForFakeIP( ref NetAddress fakeIP, [In,Out] NetIdentity[] pOutRealIdentity )
{
var returnValue = _GetRealIdentityForFakeIP( Self, ref fakeIP, pOutRealIdentity );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValueInt32", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
@@ -223,6 +256,18 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValuePtr", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetGlobalConfigValuePtr( IntPtr self, NetConfig eValue, IntPtr val );
#endregion
internal bool SetGlobalConfigValuePtr( NetConfig eValue, IntPtr val )
{
var returnValue = _SetGlobalConfigValuePtr( Self, eValue, val );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueInt32", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
@@ -259,6 +304,78 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_SteamNetConnectionStatusChanged", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetGlobalCallback_SteamNetConnectionStatusChanged( IntPtr self, FnSteamNetConnectionStatusChanged fnCallback );
#endregion
internal bool SetGlobalCallback_SteamNetConnectionStatusChanged( FnSteamNetConnectionStatusChanged fnCallback )
{
var returnValue = _SetGlobalCallback_SteamNetConnectionStatusChanged( Self, fnCallback );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_SteamNetAuthenticationStatusChanged", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetGlobalCallback_SteamNetAuthenticationStatusChanged( IntPtr self, FnSteamNetAuthenticationStatusChanged fnCallback );
#endregion
internal bool SetGlobalCallback_SteamNetAuthenticationStatusChanged( FnSteamNetAuthenticationStatusChanged fnCallback )
{
var returnValue = _SetGlobalCallback_SteamNetAuthenticationStatusChanged( Self, fnCallback );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_SteamRelayNetworkStatusChanged", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetGlobalCallback_SteamRelayNetworkStatusChanged( IntPtr self, FnSteamRelayNetworkStatusChanged fnCallback );
#endregion
internal bool SetGlobalCallback_SteamRelayNetworkStatusChanged( FnSteamRelayNetworkStatusChanged fnCallback )
{
var returnValue = _SetGlobalCallback_SteamRelayNetworkStatusChanged( Self, fnCallback );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_FakeIPResult", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetGlobalCallback_FakeIPResult( IntPtr self, FnSteamNetworkingFakeIPResult fnCallback );
#endregion
internal bool SetGlobalCallback_FakeIPResult( FnSteamNetworkingFakeIPResult fnCallback )
{
var returnValue = _SetGlobalCallback_FakeIPResult( Self, fnCallback );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_MessagesSessionRequest", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetGlobalCallback_MessagesSessionRequest( IntPtr self, FnSteamNetworkingMessagesSessionRequest fnCallback );
#endregion
internal bool SetGlobalCallback_MessagesSessionRequest( FnSteamNetworkingMessagesSessionRequest fnCallback )
{
var returnValue = _SetGlobalCallback_MessagesSessionRequest( Self, fnCallback );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetGlobalCallback_MessagesSessionFailed", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetGlobalCallback_MessagesSessionFailed( IntPtr self, FnSteamNetworkingMessagesSessionFailed fnCallback );
#endregion
internal bool SetGlobalCallback_MessagesSessionFailed( FnSteamNetworkingMessagesSessionFailed fnCallback )
{
var returnValue = _SetGlobalCallback_MessagesSessionFailed( Self, fnCallback );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetConfigValue", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
@@ -296,24 +413,23 @@ namespace Steamworks
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetConfigValueInfo", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _GetConfigValueInfo( IntPtr self, NetConfig eValue, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pOutName, ref NetConfigType pOutDataType, [In,Out] NetConfigScope[] pOutScope, [In,Out] NetConfig[] pOutNextValue );
private static extern Utf8StringPointer _GetConfigValueInfo( IntPtr self, NetConfig eValue, ref NetConfigType pOutDataType, [In,Out] NetConfigScope[] pOutScope );
#endregion
internal bool GetConfigValueInfo( NetConfig eValue, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pOutName, ref NetConfigType pOutDataType, [In,Out] NetConfigScope[] pOutScope, [In,Out] NetConfig[] pOutNextValue )
internal string GetConfigValueInfo( NetConfig eValue, ref NetConfigType pOutDataType, [In,Out] NetConfigScope[] pOutScope )
{
var returnValue = _GetConfigValueInfo( Self, eValue, pOutName, ref pOutDataType, pOutScope, pOutNextValue );
var returnValue = _GetConfigValueInfo( Self, eValue, ref pOutDataType, pOutScope );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_GetFirstConfigValue", CallingConvention = Platform.CC)]
private static extern NetConfig _GetFirstConfigValue( IntPtr self );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_IterateGenericEditableConfigValues", CallingConvention = Platform.CC)]
private static extern NetConfig _IterateGenericEditableConfigValues( IntPtr self, NetConfig eCurrent, [MarshalAs( UnmanagedType.U1 )] bool bEnumerateDevVars );
#endregion
internal NetConfig GetFirstConfigValue()
internal NetConfig IterateGenericEditableConfigValues( NetConfig eCurrent, [MarshalAs( UnmanagedType.U1 )] bool bEnumerateDevVars )
{
var returnValue = _GetFirstConfigValue( Self );
var returnValue = _IterateGenericEditableConfigValues( Self, eCurrent, bEnumerateDevVars );
return returnValue;
}
@@ -324,8 +440,7 @@ namespace Steamworks
#endregion
internal void SteamNetworkingIPAddr_ToString( ref NetAddress addr, out string buf, [MarshalAs( UnmanagedType.U1 )] bool bWithPort )
{
using var memory = Helpers.TakeMemory();
IntPtr membuf = memory;
using var membuf = Helpers.TakeMemory();
_SteamNetworkingIPAddr_ToString( Self, ref addr, membuf, (1024 * 32), bWithPort );
buf = Helpers.MemoryToString( membuf );
}
@@ -342,6 +457,17 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_GetFakeIPType", CallingConvention = Platform.CC)]
private static extern SteamNetworkingFakeIPType _SteamNetworkingIPAddr_GetFakeIPType( IntPtr self, ref NetAddress addr );
#endregion
internal SteamNetworkingFakeIPType SteamNetworkingIPAddr_GetFakeIPType( ref NetAddress addr )
{
var returnValue = _SteamNetworkingIPAddr_GetFakeIPType( Self, ref addr );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ToString", CallingConvention = Platform.CC)]
private static extern void _SteamNetworkingIdentity_ToString( IntPtr self, ref NetIdentity identity, IntPtr buf, uint cbBuf );
@@ -349,8 +475,7 @@ namespace Steamworks
#endregion
internal void SteamNetworkingIdentity_ToString( ref NetIdentity identity, out string buf )
{
using var memory = Helpers.TakeMemory();
IntPtr membuf = memory;
using var membuf = Helpers.TakeMemory();
_SteamNetworkingIdentity_ToString( Self, ref identity, membuf, (1024 * 32) );
buf = Helpers.MemoryToString( membuf );
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamParentalSettings : SteamInterface
internal unsafe class ISteamParentalSettings : SteamInterface
{
internal ISteamParentalSettings( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamParties : SteamInterface
internal unsafe class ISteamParties : SteamInterface
{
internal ISteamParties( bool IsGameServer )
@@ -50,8 +50,7 @@ namespace Steamworks
#endregion
internal bool GetBeaconDetails( PartyBeaconID_t ulBeaconID, ref SteamId pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t pLocation, out string pchMetadata )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchMetadata = memory;
using var mempchMetadata = Helpers.TakeMemory();
var returnValue = _GetBeaconDetails( Self, ulBeaconID, ref pSteamIDBeaconOwner, ref pLocation, mempchMetadata, (1024 * 32) );
pchMetadata = Helpers.MemoryToString( mempchMetadata );
return returnValue;
@@ -154,8 +153,7 @@ namespace Steamworks
#endregion
internal bool GetBeaconLocationData( SteamPartyBeaconLocation_t BeaconLocation, SteamPartyBeaconLocationData eData, out string pchDataStringOut )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchDataStringOut = memory;
using var mempchDataStringOut = Helpers.TakeMemory();
var returnValue = _GetBeaconLocationData( Self, BeaconLocation, eData, mempchDataStringOut, (1024 * 32) );
pchDataStringOut = Helpers.MemoryToString( mempchDataStringOut );
return returnValue;
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamRemotePlay : SteamInterface
internal unsafe class ISteamRemotePlay : SteamInterface
{
internal ISteamRemotePlay( bool IsGameServer )
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamRemoteStorage : SteamInterface
internal unsafe class ISteamRemoteStorage : SteamInterface
{
internal ISteamRemoteStorage( bool IsGameServer )
@@ -15,9 +15,9 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamRemoteStorage_v014", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamRemoteStorage_v014();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamRemoteStorage_v014();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamRemoteStorage_v016", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamRemoteStorage_v016();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamRemoteStorage_v016();
#region FunctionMeta
@@ -375,5 +375,51 @@ namespace Steamworks
return new CallResult<RemoteStorageDownloadUGCResult_t>( returnValue, IsServer );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetLocalFileChangeCount", CallingConvention = Platform.CC)]
private static extern int _GetLocalFileChangeCount( IntPtr self );
#endregion
internal int GetLocalFileChangeCount()
{
var returnValue = _GetLocalFileChangeCount( Self );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_GetLocalFileChange", CallingConvention = Platform.CC)]
private static extern Utf8StringPointer _GetLocalFileChange( IntPtr self, int iFile, ref RemoteStorageLocalFileChange pEChangeType, ref RemoteStorageFilePathType pEFilePathType );
#endregion
internal string GetLocalFileChange( int iFile, ref RemoteStorageLocalFileChange pEChangeType, ref RemoteStorageFilePathType pEFilePathType )
{
var returnValue = _GetLocalFileChange( Self, iFile, ref pEChangeType, ref pEFilePathType );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_BeginFileWriteBatch", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BeginFileWriteBatch( IntPtr self );
#endregion
internal bool BeginFileWriteBatch()
{
var returnValue = _BeginFileWriteBatch( Self );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamRemoteStorage_EndFileWriteBatch", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _EndFileWriteBatch( IntPtr self );
#endregion
internal bool EndFileWriteBatch()
{
var returnValue = _EndFileWriteBatch( Self );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamScreenshots : SteamInterface
internal unsafe class ISteamScreenshots : SteamInterface
{
internal ISteamScreenshots( bool IsGameServer )
@@ -1,97 +0,0 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Steamworks.Data;
namespace Steamworks
{
internal class ISteamTV : SteamInterface
{
internal ISteamTV( bool IsGameServer )
{
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamTV_v001", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamTV_v001();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamTV_v001();
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamTV_IsBroadcasting", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _IsBroadcasting( IntPtr self, ref int pnNumViewers );
#endregion
internal bool IsBroadcasting( ref int pnNumViewers )
{
var returnValue = _IsBroadcasting( Self, ref pnNumViewers );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamTV_AddBroadcastGameData", CallingConvention = Platform.CC)]
private static extern void _AddBroadcastGameData( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchValue );
#endregion
internal void AddBroadcastGameData( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchValue )
{
_AddBroadcastGameData( Self, pchKey, pchValue );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamTV_RemoveBroadcastGameData", CallingConvention = Platform.CC)]
private static extern void _RemoveBroadcastGameData( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey );
#endregion
internal void RemoveBroadcastGameData( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey )
{
_RemoveBroadcastGameData( Self, pchKey );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamTV_AddTimelineMarker", CallingConvention = Platform.CC)]
private static extern void _AddTimelineMarker( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchTemplateName, [MarshalAs( UnmanagedType.U1 )] bool bPersistent, byte nColorR, byte nColorG, byte nColorB );
#endregion
internal void AddTimelineMarker( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchTemplateName, [MarshalAs( UnmanagedType.U1 )] bool bPersistent, byte nColorR, byte nColorG, byte nColorB )
{
_AddTimelineMarker( Self, pchTemplateName, bPersistent, nColorR, nColorG, nColorB );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamTV_RemoveTimelineMarker", CallingConvention = Platform.CC)]
private static extern void _RemoveTimelineMarker( IntPtr self );
#endregion
internal void RemoveTimelineMarker()
{
_RemoveTimelineMarker( Self );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamTV_AddRegion", CallingConvention = Platform.CC)]
private static extern uint _AddRegion( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchElementName, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchTimelineDataSection, ref SteamTVRegion_t pSteamTVRegion, SteamTVRegionBehavior eSteamTVRegionBehavior );
#endregion
internal uint AddRegion( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchElementName, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchTimelineDataSection, ref SteamTVRegion_t pSteamTVRegion, SteamTVRegionBehavior eSteamTVRegionBehavior )
{
var returnValue = _AddRegion( Self, pchElementName, pchTimelineDataSection, ref pSteamTVRegion, eSteamTVRegionBehavior );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamTV_RemoveRegion", CallingConvention = Platform.CC)]
private static extern void _RemoveRegion( IntPtr self, uint unRegionHandle );
#endregion
internal void RemoveRegion( uint unRegionHandle )
{
_RemoveRegion( Self, unRegionHandle );
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamUGC : SteamInterface
internal unsafe class ISteamUGC : SteamInterface
{
internal ISteamUGC( bool IsGameServer )
@@ -15,12 +15,12 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamUGC_v014", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamUGC_v014();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamUGC_v014();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServerUGC_v014", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServerUGC_v014();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServerUGC_v014();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamUGC_v017", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamUGC_v017();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamUGC_v017();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServerUGC_v017", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServerUGC_v017();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServerUGC_v017();
#region FunctionMeta
@@ -90,6 +90,45 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCNumTags", CallingConvention = Platform.CC)]
private static extern uint _GetQueryUGCNumTags( IntPtr self, UGCQueryHandle_t handle, uint index );
#endregion
internal uint GetQueryUGCNumTags( UGCQueryHandle_t handle, uint index )
{
var returnValue = _GetQueryUGCNumTags( Self, handle, index );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCTag", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _GetQueryUGCTag( IntPtr self, UGCQueryHandle_t handle, uint index, uint indexTag, IntPtr pchValue, uint cchValueSize );
#endregion
internal bool GetQueryUGCTag( UGCQueryHandle_t handle, uint index, uint indexTag, out string pchValue )
{
using var mempchValue = Helpers.TakeMemory();
var returnValue = _GetQueryUGCTag( Self, handle, index, indexTag, mempchValue, (1024 * 32) );
pchValue = Helpers.MemoryToString( mempchValue );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCTagDisplayName", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _GetQueryUGCTagDisplayName( IntPtr self, UGCQueryHandle_t handle, uint index, uint indexTag, IntPtr pchValue, uint cchValueSize );
#endregion
internal bool GetQueryUGCTagDisplayName( UGCQueryHandle_t handle, uint index, uint indexTag, out string pchValue )
{
using var mempchValue = Helpers.TakeMemory();
var returnValue = _GetQueryUGCTagDisplayName( Self, handle, index, indexTag, mempchValue, (1024 * 32) );
pchValue = Helpers.MemoryToString( mempchValue );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCPreviewURL", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
@@ -98,8 +137,7 @@ namespace Steamworks
#endregion
internal bool GetQueryUGCPreviewURL( UGCQueryHandle_t handle, uint index, out string pchURL )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchURL = memory;
using var mempchURL = Helpers.TakeMemory();
var returnValue = _GetQueryUGCPreviewURL( Self, handle, index, mempchURL, (1024 * 32) );
pchURL = Helpers.MemoryToString( mempchURL );
return returnValue;
@@ -113,8 +151,7 @@ namespace Steamworks
#endregion
internal bool GetQueryUGCMetadata( UGCQueryHandle_t handle, uint index, out string pchMetadata )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchMetadata = memory;
using var mempchMetadata = Helpers.TakeMemory();
var returnValue = _GetQueryUGCMetadata( Self, handle, index, mempchMetadata, (1024 * 32) );
pchMetadata = Helpers.MemoryToString( mempchMetadata );
return returnValue;
@@ -163,10 +200,8 @@ namespace Steamworks
#endregion
internal bool GetQueryUGCAdditionalPreview( UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, out string pchOriginalFileName, ref ItemPreviewType pPreviewType )
{
using var memoryUrlOrId = Helpers.TakeMemory();
using var memoryFileName = Helpers.TakeMemory();
IntPtr mempchURLOrVideoID = memoryUrlOrId;
IntPtr mempchOriginalFileName = memoryFileName;
using var mempchURLOrVideoID = Helpers.TakeMemory();
using var mempchOriginalFileName = Helpers.TakeMemory();
var returnValue = _GetQueryUGCAdditionalPreview( Self, handle, index, previewIndex, mempchURLOrVideoID, (1024 * 32), mempchOriginalFileName, (1024 * 32), ref pPreviewType );
pchURLOrVideoID = Helpers.MemoryToString( mempchURLOrVideoID );
pchOriginalFileName = Helpers.MemoryToString( mempchOriginalFileName );
@@ -192,10 +227,8 @@ namespace Steamworks
#endregion
internal bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, out string pchKey, out string pchValue )
{
using var memoryKey = Helpers.TakeMemory();
using var memoryValue = Helpers.TakeMemory();
IntPtr mempchKey = memoryKey;
IntPtr mempchValue = memoryValue;
using var mempchKey = Helpers.TakeMemory();
using var mempchValue = Helpers.TakeMemory();
var returnValue = _GetQueryUGCKeyValueTag( Self, handle, index, keyValueTagIndex, mempchKey, (1024 * 32), mempchValue, (1024 * 32) );
pchKey = Helpers.MemoryToString( mempchKey );
pchValue = Helpers.MemoryToString( mempchValue );
@@ -210,13 +243,23 @@ namespace Steamworks
#endregion
internal bool GetQueryUGCKeyValueTag( UGCQueryHandle_t handle, uint index, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey, out string pchValue )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchValue = memory;
using var mempchValue = Helpers.TakeMemory();
var returnValue = _GetQueryUGCKeyValueTag( Self, handle, index, pchKey, mempchValue, (1024 * 32) );
pchValue = Helpers.MemoryToString( mempchValue );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCContentDescriptors", CallingConvention = Platform.CC)]
private static extern uint _GetQueryUGCContentDescriptors( IntPtr self, UGCQueryHandle_t handle, uint index, [In,Out] UGCContentDescriptorID[] pvecDescriptors, uint cMaxEntries );
#endregion
internal uint GetQueryUGCContentDescriptors( UGCQueryHandle_t handle, uint index, [In,Out] UGCContentDescriptorID[] pvecDescriptors, uint cMaxEntries )
{
var returnValue = _GetQueryUGCContentDescriptors( Self, handle, index, pvecDescriptors, cMaxEntries );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_ReleaseQueryUGCRequest", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
@@ -433,6 +476,30 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetTimeCreatedDateRange", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetTimeCreatedDateRange( IntPtr self, UGCQueryHandle_t handle, RTime32 rtStart, RTime32 rtEnd );
#endregion
internal bool SetTimeCreatedDateRange( UGCQueryHandle_t handle, RTime32 rtStart, RTime32 rtEnd )
{
var returnValue = _SetTimeCreatedDateRange( Self, handle, rtStart, rtEnd );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_SetTimeUpdatedDateRange", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _SetTimeUpdatedDateRange( IntPtr self, UGCQueryHandle_t handle, RTime32 rtStart, RTime32 rtEnd );
#endregion
internal bool SetTimeUpdatedDateRange( UGCQueryHandle_t handle, RTime32 rtStart, RTime32 rtEnd )
{
var returnValue = _SetTimeUpdatedDateRange( Self, handle, rtStart, rtEnd );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddRequiredKeyValueTag", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
@@ -671,6 +738,30 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_AddContentDescriptor", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _AddContentDescriptor( IntPtr self, UGCUpdateHandle_t handle, UGCContentDescriptorID descid );
#endregion
internal bool AddContentDescriptor( UGCUpdateHandle_t handle, UGCContentDescriptorID descid )
{
var returnValue = _AddContentDescriptor( Self, handle, descid );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_RemoveContentDescriptor", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _RemoveContentDescriptor( IntPtr self, UGCUpdateHandle_t handle, UGCContentDescriptorID descid );
#endregion
internal bool RemoveContentDescriptor( UGCUpdateHandle_t handle, UGCContentDescriptorID descid )
{
var returnValue = _RemoveContentDescriptor( Self, handle, descid );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_SubmitItemUpdate", CallingConvention = Platform.CC)]
private static extern SteamAPICall_t _SubmitItemUpdate( IntPtr self, UGCUpdateHandle_t handle, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchChangeNote );
@@ -800,8 +891,7 @@ namespace Steamworks
#endregion
internal bool GetItemInstallInfo( PublishedFileId nPublishedFileID, ref ulong punSizeOnDisk, out string pchFolder, ref uint punTimeStamp )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchFolder = memory;
using var mempchFolder = Helpers.TakeMemory();
var returnValue = _GetItemInstallInfo( Self, nPublishedFileID, ref punSizeOnDisk, mempchFolder, (1024 * 32), ref punTimeStamp );
pchFolder = Helpers.MemoryToString( mempchFolder );
return returnValue;
@@ -952,5 +1042,28 @@ namespace Steamworks
return new CallResult<DeleteItemResult_t>( returnValue, IsServer );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_ShowWorkshopEULA", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _ShowWorkshopEULA( IntPtr self );
#endregion
internal bool ShowWorkshopEULA()
{
var returnValue = _ShowWorkshopEULA( Self );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetWorkshopEULAStatus", CallingConvention = Platform.CC)]
private static extern SteamAPICall_t _GetWorkshopEULAStatus( IntPtr self );
#endregion
internal CallResult<WorkshopEULAStatus_t> GetWorkshopEULAStatus()
{
var returnValue = _GetWorkshopEULAStatus( Self );
return new CallResult<WorkshopEULAStatus_t>( returnValue, IsServer );
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamUser : SteamInterface
internal unsafe class ISteamUser : SteamInterface
{
internal ISteamUser( bool IsGameServer )
@@ -15,9 +15,9 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamUser_v020", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamUser_v020();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamUser_v020();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamUser_v023", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamUser_v023();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamUser_v023();
#region FunctionMeta
@@ -55,24 +55,24 @@ namespace Steamworks
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection", CallingConvention = Platform.CC)]
private static extern int _InitiateGameConnection( IntPtr self, IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUser_InitiateGameConnection_DEPRECATED", CallingConvention = Platform.CC)]
private static extern int _InitiateGameConnection_DEPRECATED( IntPtr self, IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure );
#endregion
internal int InitiateGameConnection( IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure )
internal int InitiateGameConnection_DEPRECATED( IntPtr pAuthBlob, int cbMaxAuthBlob, SteamId steamIDGameServer, uint unIPServer, ushort usPortServer, [MarshalAs( UnmanagedType.U1 )] bool bSecure )
{
var returnValue = _InitiateGameConnection( Self, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure );
var returnValue = _InitiateGameConnection_DEPRECATED( Self, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection", CallingConvention = Platform.CC)]
private static extern void _TerminateGameConnection( IntPtr self, uint unIPServer, ushort usPortServer );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUser_TerminateGameConnection_DEPRECATED", CallingConvention = Platform.CC)]
private static extern void _TerminateGameConnection_DEPRECATED( IntPtr self, uint unIPServer, ushort usPortServer );
#endregion
internal void TerminateGameConnection( uint unIPServer, ushort usPortServer )
internal void TerminateGameConnection_DEPRECATED( uint unIPServer, ushort usPortServer )
{
_TerminateGameConnection( Self, unIPServer, usPortServer );
_TerminateGameConnection_DEPRECATED( Self, unIPServer, usPortServer );
}
#region FunctionMeta
@@ -93,8 +93,7 @@ namespace Steamworks
#endregion
internal bool GetUserDataFolder( out string pchBuffer )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchBuffer = memory;
using var mempchBuffer = Helpers.TakeMemory();
var returnValue = _GetUserDataFolder( Self, mempchBuffer, (1024 * 32) );
pchBuffer = Helpers.MemoryToString( mempchBuffer );
return returnValue;
@@ -166,12 +165,23 @@ namespace Steamworks
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUser_GetAuthSessionTicket", CallingConvention = Platform.CC)]
private static extern HAuthTicket _GetAuthSessionTicket( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket );
private static extern HAuthTicket _GetAuthSessionTicket( IntPtr self, IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket, ref NetIdentity pSteamNetworkingIdentity );
#endregion
internal HAuthTicket GetAuthSessionTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket )
internal HAuthTicket GetAuthSessionTicket( IntPtr pTicket, int cbMaxTicket, ref uint pcbTicket, ref NetIdentity pSteamNetworkingIdentity )
{
var returnValue = _GetAuthSessionTicket( Self, pTicket, cbMaxTicket, ref pcbTicket );
var returnValue = _GetAuthSessionTicket( Self, pTicket, cbMaxTicket, ref pcbTicket, ref pSteamNetworkingIdentity );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUser_GetAuthTicketForWebApi", CallingConvention = Platform.CC)]
private static extern HAuthTicket _GetAuthTicketForWebApi( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchIdentity );
#endregion
internal HAuthTicket GetAuthTicketForWebApi( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchIdentity )
{
var returnValue = _GetAuthTicketForWebApi( Self, pchIdentity );
return returnValue;
}
@@ -365,5 +375,17 @@ namespace Steamworks
return new CallResult<DurationControl_t>( returnValue, IsServer );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUser_BSetDurationControlOnlineState", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _BSetDurationControlOnlineState( IntPtr self, DurationControlOnlineState eNewState );
#endregion
internal bool BSetDurationControlOnlineState( DurationControlOnlineState eNewState )
{
var returnValue = _BSetDurationControlOnlineState( Self, eNewState );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamUserStats : SteamInterface
internal unsafe class ISteamUserStats : SteamInterface
{
internal ISteamUserStats( bool IsGameServer )
@@ -15,9 +15,9 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamUserStats_v011", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamUserStats_v011();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamUserStats_v011();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamUserStats_v012", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamUserStats_v012();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamUserStats_v012();
#region FunctionMeta
@@ -361,9 +361,6 @@ namespace Steamworks
private static extern SteamAPICall_t _DownloadLeaderboardEntriesForUsers( IntPtr self, SteamLeaderboard_t hSteamLeaderboard, [In,Out] SteamId[] prgUsers, int cUsers );
#endregion
/// <summary>
/// Downloads leaderboard entries for an arbitrary set of users - ELeaderboardDataRequest is k_ELeaderboardDataRequestUsers
/// </summary>
internal CallResult<LeaderboardScoresDownloaded_t> DownloadLeaderboardEntriesForUsers( SteamLeaderboard_t hSteamLeaderboard, [In,Out] SteamId[] prgUsers, int cUsers )
{
var returnValue = _DownloadLeaderboardEntriesForUsers( Self, hSteamLeaderboard, prgUsers, cUsers );
@@ -433,8 +430,7 @@ namespace Steamworks
#endregion
internal int GetMostAchievedAchievementInfo( out string pchName, ref float pflPercent, [MarshalAs( UnmanagedType.U1 )] ref bool pbAchieved )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchName = memory;
using var mempchName = Helpers.TakeMemory();
var returnValue = _GetMostAchievedAchievementInfo( Self, mempchName, (1024 * 32), ref pflPercent, ref pbAchieved );
pchName = Helpers.MemoryToString( mempchName );
return returnValue;
@@ -447,8 +443,7 @@ namespace Steamworks
#endregion
internal int GetNextMostAchievedAchievementInfo( int iIteratorPrevious, out string pchName, ref float pflPercent, [MarshalAs( UnmanagedType.U1 )] ref bool pbAchieved )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchName = memory;
using var mempchName = Helpers.TakeMemory();
var returnValue = _GetNextMostAchievedAchievementInfo( Self, iIteratorPrevious, mempchName, (1024 * 32), ref pflPercent, ref pbAchieved );
pchName = Helpers.MemoryToString( mempchName );
return returnValue;
@@ -523,5 +518,29 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementProgressLimitsInt32", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _GetAchievementProgressLimits( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, ref int pnMinProgress, ref int pnMaxProgress );
#endregion
internal bool GetAchievementProgressLimits( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, ref int pnMinProgress, ref int pnMaxProgress )
{
var returnValue = _GetAchievementProgressLimits( Self, pchName, ref pnMinProgress, ref pnMaxProgress );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetAchievementProgressLimitsFloat", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _GetAchievementProgressLimits( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, ref float pfMinProgress, ref float pfMaxProgress );
#endregion
internal bool GetAchievementProgressLimits( [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, ref float pfMinProgress, ref float pfMaxProgress )
{
var returnValue = _GetAchievementProgressLimits( Self, pchName, ref pfMinProgress, ref pfMaxProgress );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamUtils : SteamInterface
internal unsafe class ISteamUtils : SteamInterface
{
internal ISteamUtils( bool IsGameServer )
@@ -15,12 +15,12 @@ namespace Steamworks
SetupInterface( IsGameServer );
}
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamUtils_v009", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamUtils_v009();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamUtils_v009();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServerUtils_v009", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServerUtils_v009();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServerUtils_v009();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamUtils_v010", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamUtils_v010();
public override IntPtr GetUserInterfacePointer() => SteamAPI_SteamUtils_v010();
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamGameServerUtils_v010", CallingConvention = Platform.CC)]
internal static extern IntPtr SteamAPI_SteamGameServerUtils_v010();
public override IntPtr GetServerInterfacePointer() => SteamAPI_SteamGameServerUtils_v010();
#region FunctionMeta
@@ -102,18 +102,6 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetCSERIPPort", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _GetCSERIPPort( IntPtr self, ref uint unIP, ref ushort usPort );
#endregion
internal bool GetCSERIPPort( ref uint unIP, ref ushort usPort )
{
var returnValue = _GetCSERIPPort( Self, ref unIP, ref usPort );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUtils_GetCurrentBatteryPower", CallingConvention = Platform.CC)]
private static extern byte _GetCurrentBatteryPower( IntPtr self );
@@ -268,8 +256,7 @@ namespace Steamworks
#endregion
internal bool GetEnteredGamepadTextInput( out string pchText )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchText = memory;
using var mempchText = Helpers.TakeMemory();
var returnValue = _GetEnteredGamepadTextInput( Self, mempchText, (1024 * 32) );
pchText = Helpers.MemoryToString( mempchText );
return returnValue;
@@ -367,25 +354,24 @@ namespace Steamworks
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUtils_InitFilterText", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _InitFilterText( IntPtr self );
private static extern bool _InitFilterText( IntPtr self, uint unFilterOptions );
#endregion
internal bool InitFilterText()
internal bool InitFilterText( uint unFilterOptions )
{
var returnValue = _InitFilterText( Self );
var returnValue = _InitFilterText( Self, unFilterOptions );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUtils_FilterText", CallingConvention = Platform.CC)]
private static extern int _FilterText( IntPtr self, IntPtr pchOutFilteredText, uint nByteSizeOutFilteredText, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchInputMessage, [MarshalAs( UnmanagedType.U1 )] bool bLegalOnly );
private static extern int _FilterText( IntPtr self, TextFilteringContext eContext, SteamId sourceSteamID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchInputMessage, IntPtr pchOutFilteredText, uint nByteSizeOutFilteredText );
#endregion
internal int FilterText( out string pchOutFilteredText, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchInputMessage, [MarshalAs( UnmanagedType.U1 )] bool bLegalOnly )
internal int FilterText( TextFilteringContext eContext, SteamId sourceSteamID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchInputMessage, out string pchOutFilteredText )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchOutFilteredText = memory;
var returnValue = _FilterText( Self, mempchOutFilteredText, (1024 * 32), pchInputMessage, bLegalOnly );
using var mempchOutFilteredText = Helpers.TakeMemory();
var returnValue = _FilterText( Self, eContext, sourceSteamID, pchInputMessage, mempchOutFilteredText, (1024 * 32) );
pchOutFilteredText = Helpers.MemoryToString( mempchOutFilteredText );
return returnValue;
}
@@ -401,5 +387,51 @@ namespace Steamworks
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUtils_IsSteamRunningOnSteamDeck", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _IsSteamRunningOnSteamDeck( IntPtr self );
#endregion
internal bool IsSteamRunningOnSteamDeck()
{
var returnValue = _IsSteamRunningOnSteamDeck( Self );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUtils_ShowFloatingGamepadTextInput", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _ShowFloatingGamepadTextInput( IntPtr self, TextInputMode eKeyboardMode, int nTextFieldXPosition, int nTextFieldYPosition, int nTextFieldWidth, int nTextFieldHeight );
#endregion
internal bool ShowFloatingGamepadTextInput( TextInputMode eKeyboardMode, int nTextFieldXPosition, int nTextFieldYPosition, int nTextFieldWidth, int nTextFieldHeight )
{
var returnValue = _ShowFloatingGamepadTextInput( Self, eKeyboardMode, nTextFieldXPosition, nTextFieldYPosition, nTextFieldWidth, nTextFieldHeight );
return returnValue;
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUtils_SetGameLauncherMode", CallingConvention = Platform.CC)]
private static extern void _SetGameLauncherMode( IntPtr self, [MarshalAs( UnmanagedType.U1 )] bool bLauncherMode );
#endregion
internal void SetGameLauncherMode( [MarshalAs( UnmanagedType.U1 )] bool bLauncherMode )
{
_SetGameLauncherMode( Self, bLauncherMode );
}
#region FunctionMeta
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUtils_DismissFloatingGamepadTextInput", CallingConvention = Platform.CC)]
[return: MarshalAs( UnmanagedType.I1 )]
private static extern bool _DismissFloatingGamepadTextInput( IntPtr self );
#endregion
internal bool DismissFloatingGamepadTextInput()
{
var returnValue = _DismissFloatingGamepadTextInput( Self );
return returnValue;
}
}
}
@@ -7,7 +7,7 @@ using Steamworks.Data;
namespace Steamworks
{
internal class ISteamVideo : SteamInterface
internal unsafe class ISteamVideo : SteamInterface
{
internal ISteamVideo( bool IsGameServer )
@@ -60,8 +60,7 @@ namespace Steamworks
#endregion
internal bool GetOPFStringForApp( AppId unVideoAppID, out string pchBuffer, ref int pnBufferSize )
{
using var memory = Helpers.TakeMemory();
IntPtr mempchBuffer = memory;
using var mempchBuffer = Helpers.TakeMemory();
var returnValue = _GetOPFStringForApp( Self, unVideoAppID, mempchBuffer, ref pnBufferSize );
pchBuffer = Helpers.MemoryToString( mempchBuffer );
return returnValue;
@@ -206,6 +206,22 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct GetTicketForWebApiResponse_t : ICallbackData
{
internal uint AuthTicket; // m_hAuthTicket HAuthTicket
internal Result Result; // m_eResult EResult
internal int Ticket; // m_cubTicket int
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2560)] // m_rgubTicket
internal byte[] GubTicket; // m_rgubTicket uint8 [2560]
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(GetTicketForWebApiResponse_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.GetTicketForWebApiResponse;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct PersonaStateChange_t : ICallbackData
{
@@ -223,6 +239,9 @@ namespace Steamworks.Data
internal struct GameOverlayActivated_t : ICallbackData
{
internal byte Active; // m_bActive uint8
[MarshalAs(UnmanagedType.I1)]
internal bool UserInitiated; // m_bUserInitiated bool
internal AppId AppID; // m_nAppID AppId_t
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(GameOverlayActivated_t) );
@@ -473,6 +492,55 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct OverlayBrowserProtocolNavigation_t : ICallbackData
{
internal string RgchURIUTF8() => System.Text.Encoding.UTF8.GetString( RgchURI, 0, System.Array.IndexOf<byte>( RgchURI, 0 ) );
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)] // byte[] rgchURI
internal byte[] RgchURI; // rgchURI char [1024]
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(OverlayBrowserProtocolNavigation_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.OverlayBrowserProtocolNavigation;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct EquippedProfileItemsChanged_t : ICallbackData
{
internal ulong SteamID; // m_steamID CSteamID
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(EquippedProfileItemsChanged_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.EquippedProfileItemsChanged;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPackSize )]
internal struct EquippedProfileItems_t : ICallbackData
{
internal Result Result; // m_eResult EResult
internal ulong SteamID; // m_steamID CSteamID
[MarshalAs(UnmanagedType.I1)]
internal bool HasAnimatedAvatar; // m_bHasAnimatedAvatar bool
[MarshalAs(UnmanagedType.I1)]
internal bool HasAvatarFrame; // m_bHasAvatarFrame bool
[MarshalAs(UnmanagedType.I1)]
internal bool HasProfileModifier; // m_bHasProfileModifier bool
[MarshalAs(UnmanagedType.I1)]
internal bool HasProfileBackground; // m_bHasProfileBackground bool
[MarshalAs(UnmanagedType.I1)]
internal bool HasMiniProfileBackground; // m_bHasMiniProfileBackground bool
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(EquippedProfileItems_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.EquippedProfileItems;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct IPCountry_t : ICallbackData
{
@@ -539,6 +607,7 @@ namespace Steamworks.Data
[MarshalAs(UnmanagedType.I1)]
internal bool Submitted; // m_bSubmitted bool
internal uint SubmittedText; // m_unSubmittedText uint32
internal AppId AppID; // m_unAppID AppId_t
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(GamepadTextInputDismissed_t) );
@@ -547,6 +616,40 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct AppResumingFromSuspend_t : ICallbackData
{
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(AppResumingFromSuspend_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.AppResumingFromSuspend;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct FloatingGamepadTextInputDismissed_t : ICallbackData
{
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(FloatingGamepadTextInputDismissed_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.FloatingGamepadTextInputDismissed;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct FilterTextDictionaryChanged_t : ICallbackData
{
internal int Language; // m_eLanguage int
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(FilterTextDictionaryChanged_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.FilterTextDictionaryChanged;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct FavoritesListChanged_t : ICallbackData
{
@@ -914,66 +1017,6 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct RemoteStorageAppSyncedClient_t : ICallbackData
{
internal AppId AppID; // m_nAppID AppId_t
internal Result Result; // m_eResult EResult
internal int NumDownloads; // m_unNumDownloads int
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageAppSyncedClient_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.RemoteStorageAppSyncedClient;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct RemoteStorageAppSyncedServer_t : ICallbackData
{
internal AppId AppID; // m_nAppID AppId_t
internal Result Result; // m_eResult EResult
internal int NumUploads; // m_unNumUploads int
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageAppSyncedServer_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.RemoteStorageAppSyncedServer;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct RemoteStorageAppSyncProgress_t : ICallbackData
{
internal string CurrentFileUTF8() => System.Text.Encoding.UTF8.GetString( CurrentFile, 0, System.Array.IndexOf<byte>( CurrentFile, 0 ) );
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 260)] // byte[] m_rgchCurrentFile
internal byte[] CurrentFile; // m_rgchCurrentFile char [260]
internal AppId AppID; // m_nAppID AppId_t
internal uint BytesTransferredThisChunk; // m_uBytesTransferredThisChunk uint32
internal double DAppPercentComplete; // m_dAppPercentComplete double
[MarshalAs(UnmanagedType.I1)]
internal bool Uploading; // m_bUploading bool
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageAppSyncProgress_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.RemoteStorageAppSyncProgress;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct RemoteStorageAppSyncStatusCheck_t : ICallbackData
{
internal AppId AppID; // m_nAppID AppId_t
internal Result Result; // m_eResult EResult
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageAppSyncStatusCheck_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.RemoteStorageAppSyncStatusCheck;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct RemoteStorageFileShareResult_t : ICallbackData
{
@@ -1364,6 +1407,17 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct RemoteStorageLocalFileChange_t : ICallbackData
{
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageLocalFileChange_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.RemoteStorageLocalFileChange;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPackSize )]
internal struct UserStatsReceived_t : ICallbackData
{
@@ -1548,19 +1602,6 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct RegisterActivationCodeResponse_t : ICallbackData
{
internal RegisterActivationCodeResult Result; // m_eResult ERegisterActivationCodeResult
internal uint PackageRegistered; // m_unPackageRegistered uint32
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RegisterActivationCodeResponse_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.RegisterActivationCodeResponse;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct NewUrlLaunchParameters_t : ICallbackData
{
@@ -1605,6 +1646,22 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct TimedTrialStatus_t : ICallbackData
{
internal AppId AppID; // m_unAppID AppId_t
[MarshalAs(UnmanagedType.I1)]
internal bool IsOffline; // m_bIsOffline bool
internal uint SecondsAllowed; // m_unSecondsAllowed uint32
internal uint SecondsPlayed; // m_unSecondsPlayed uint32
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(TimedTrialStatus_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.TimedTrialStatus;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct P2PSessionRequest_t : ICallbackData
{
@@ -1884,6 +1941,66 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamInputDeviceConnected_t : ICallbackData
{
internal ulong ConnectedDeviceHandle; // m_ulConnectedDeviceHandle InputHandle_t
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamInputDeviceConnected_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.SteamInputDeviceConnected;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamInputDeviceDisconnected_t : ICallbackData
{
internal ulong DisconnectedDeviceHandle; // m_ulDisconnectedDeviceHandle InputHandle_t
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamInputDeviceDisconnected_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.SteamInputDeviceDisconnected;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPackSize )]
internal struct SteamInputConfigurationLoaded_t : ICallbackData
{
internal AppId AppID; // m_unAppID AppId_t
internal ulong DeviceHandle; // m_ulDeviceHandle InputHandle_t
internal ulong MappingCreator; // m_ulMappingCreator CSteamID
internal uint MajorRevision; // m_unMajorRevision uint32
internal uint MinorRevision; // m_unMinorRevision uint32
[MarshalAs(UnmanagedType.I1)]
internal bool UsesSteamInputAPI; // m_bUsesSteamInputAPI bool
[MarshalAs(UnmanagedType.I1)]
internal bool UsesGamepadAPI; // m_bUsesGamepadAPI bool
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamInputConfigurationLoaded_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.SteamInputConfigurationLoaded;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamInputGamepadSlotChange_t : ICallbackData
{
internal AppId AppID; // m_unAppID AppId_t
internal ulong DeviceHandle; // m_ulDeviceHandle InputHandle_t
internal InputType DeviceType; // m_eDeviceType ESteamInputType
internal int OldGamepadSlot; // m_nOldGamepadSlot int
internal int NewGamepadSlot; // m_nNewGamepadSlot int
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamInputGamepadSlotChange_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.SteamInputGamepadSlotChange;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamUGCQueryCompleted_t : ICallbackData
{
@@ -2134,10 +2251,42 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct UserSubscribedItemsListChanged_t : ICallbackData
{
internal AppId AppID; // m_nAppID AppId_t
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(UserSubscribedItemsListChanged_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.UserSubscribedItemsListChanged;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct WorkshopEULAStatus_t : ICallbackData
{
internal Result Result; // m_eResult EResult
internal AppId AppID; // m_nAppID AppId_t
internal uint Version; // m_unVersion uint32
internal uint TAction; // m_rtAction RTime32
[MarshalAs(UnmanagedType.I1)]
internal bool Accepted; // m_bAccepted bool
[MarshalAs(UnmanagedType.I1)]
internal bool NeedsAction; // m_bNeedsAction bool
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(WorkshopEULAStatus_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.WorkshopEULAStatus;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamAppInstalled_t : ICallbackData
{
internal AppId AppID; // m_nAppID AppId_t
internal int InstallFolderIndex; // m_iInstallFolderIndex int
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamAppInstalled_t) );
@@ -2150,6 +2299,7 @@ namespace Steamworks.Data
internal struct SteamAppUninstalled_t : ICallbackData
{
internal AppId AppID; // m_nAppID AppId_t
internal int InstallFolderIndex; // m_iInstallFolderIndex int
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamAppUninstalled_t) );
@@ -2611,31 +2761,6 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct BroadcastUploadStart_t : ICallbackData
{
[MarshalAs(UnmanagedType.I1)]
internal bool IsRTMP; // m_bIsRTMP bool
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(BroadcastUploadStart_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.BroadcastUploadStart;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct BroadcastUploadStop_t : ICallbackData
{
internal BroadcastUploadResult Result; // m_eResult EBroadcastUploadResult
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(BroadcastUploadStop_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.BroadcastUploadStop;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamParentalSettingsChanged_t : ICallbackData
{
@@ -2671,6 +2796,44 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamRemotePlayTogetherGuestInvite_t : ICallbackData
{
internal string ConnectURLUTF8() => System.Text.Encoding.UTF8.GetString( ConnectURL, 0, System.Array.IndexOf<byte>( ConnectURL, 0 ) );
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)] // byte[] m_szConnectURL
internal byte[] ConnectURL; // m_szConnectURL char [1024]
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamRemotePlayTogetherGuestInvite_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.SteamRemotePlayTogetherGuestInvite;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamNetworkingMessagesSessionRequest_t : ICallbackData
{
internal NetIdentity DentityRemote; // m_identityRemote SteamNetworkingIdentity
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamNetworkingMessagesSessionRequest_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.SteamNetworkingMessagesSessionRequest;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamNetworkingMessagesSessionFailed_t : ICallbackData
{
internal ConnectionInfo Nfo; // m_info SteamNetConnectionInfo_t
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamNetworkingMessagesSessionFailed_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.SteamNetworkingMessagesSessionFailed;
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamNetConnectionStatusChangedCallback_t : ICallbackData
{
@@ -2906,4 +3069,20 @@ namespace Steamworks.Data
#endregion
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamNetworkingFakeIPResult_t : ICallbackData
{
internal Result Result; // m_eResult EResult
internal NetIdentity Dentity; // m_identity SteamNetworkingIdentity
internal uint IP; // m_unIP uint32
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8, ArraySubType = UnmanagedType.U2)]
internal ushort[] Ports; // m_unPorts uint16 [8]
#region SteamCallback
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamNetworkingFakeIPResult_t) );
public int DataSize => _datasize;
public CallbackType CallbackType => CallbackType.SteamNetworkingFakeIPResult;
#endregion
}
}
@@ -8,22 +8,9 @@ namespace Steamworks.Data
{
internal static class Defines
{
internal static readonly int k_cubSaltSize = 8;
internal static readonly GID_t k_GIDNil = 0xffffffffffffffff;
internal static readonly GID_t k_TxnIDNil = k_GIDNil;
internal static readonly GID_t k_TxnIDUnknown = 0;
internal static readonly JobID_t k_JobIDNil = 0xffffffffffffffff;
internal static readonly PackageId_t k_uPackageIdInvalid = 0xFFFFFFFF;
internal static readonly BundleId_t k_uBundleIdInvalid = 0;
internal static readonly AppId k_uAppIdInvalid = 0x0;
internal static readonly AssetClassId_t k_ulAssetClassIdInvalid = 0x0;
internal static readonly PhysicalItemId_t k_uPhysicalItemIdInvalid = 0x0;
internal static readonly DepotId_t k_uDepotIdInvalid = 0x0;
internal static readonly CellID_t k_uCellIDInvalid = 0xFFFFFFFF;
internal static readonly SteamAPICall_t k_uAPICallInvalid = 0x0;
internal static readonly PartnerId_t k_uPartnerIdInvalid = 0;
internal static readonly ManifestId_t k_uManifestIdInvalid = 0;
internal static readonly SiteId_t k_ulSiteIdInvalid = 0;
internal static readonly PartyBeaconID_t k_ulPartyBeaconIdInvalid = 0;
internal static readonly HAuthTicket k_HAuthTicketInvalid = 0;
internal static readonly uint k_unSteamAccountIDMask = 0xFFFFFFFF;
@@ -77,6 +64,13 @@ namespace Steamworks.Data
internal static readonly int k_cchMaxSteamNetworkingErrMsg = 1024;
internal static readonly int k_cchSteamNetworkingMaxConnectionCloseReason = 128;
internal static readonly int k_cchSteamNetworkingMaxConnectionDescription = 128;
internal static readonly int k_cchSteamNetworkingMaxConnectionAppName = 32;
internal static readonly int k_nSteamNetworkConnectionInfoFlags_Unauthenticated = 1;
internal static readonly int k_nSteamNetworkConnectionInfoFlags_Unencrypted = 2;
internal static readonly int k_nSteamNetworkConnectionInfoFlags_LoopbackBuffers = 4;
internal static readonly int k_nSteamNetworkConnectionInfoFlags_Fast = 8;
internal static readonly int k_nSteamNetworkConnectionInfoFlags_Relayed = 16;
internal static readonly int k_nSteamNetworkConnectionInfoFlags_DualWifi = 32;
internal static readonly int k_cbMaxSteamNetworkingSocketsMessageSizeSend = 512 * 1024;
internal static readonly int k_nSteamNetworkingSend_Unreliable = 0;
internal static readonly int k_nSteamNetworkingSend_NoNagle = 1;
@@ -86,19 +80,23 @@ namespace Steamworks.Data
internal static readonly int k_nSteamNetworkingSend_Reliable = 8;
internal static readonly int k_nSteamNetworkingSend_ReliableNoNagle = k_nSteamNetworkingSend_Reliable | k_nSteamNetworkingSend_NoNagle;
internal static readonly int k_nSteamNetworkingSend_UseCurrentThread = 16;
internal static readonly int k_nSteamNetworkingSend_AutoRestartBrokenSession = 32;
internal static readonly int k_cchMaxSteamNetworkingPingLocationString = 1024;
internal static readonly int k_nSteamNetworkingPing_Failed = - 1;
internal static readonly int k_nSteamNetworkingPing_Unknown = - 2;
internal static readonly int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Default = - 1;
internal static readonly int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Disable = 0;
internal static readonly int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Relay = 1;
internal static readonly int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Private = 2;
internal static readonly int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_Public = 4;
internal static readonly int k_nSteamNetworkingConfig_P2P_Transport_ICE_Enable_All = 0x7fffffff;
internal static readonly SteamNetworkingPOPID k_SteamDatagramPOPID_dev = ( ( uint ) 'd' << 16 ) | ( ( uint ) 'e' << 8 ) | ( uint ) 'v';
internal static readonly uint k_unServerFlagNone = 0x00;
internal static readonly uint k_unServerFlagActive = 0x01;
internal static readonly uint k_unServerFlagSecure = 0x02;
internal static readonly uint k_unServerFlagDedicated = 0x04;
internal static readonly uint k_unServerFlagLinux = 0x08;
internal static readonly uint k_unServerFlagPassworded = 0x10;
internal static readonly uint k_unServerFlagPrivate = 0x20;
internal static readonly ushort STEAMGAMESERVER_QUERY_PORT_SHARED = 0xffff;
internal static readonly ushort MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE = STEAMGAMESERVER_QUERY_PORT_SHARED;
internal static readonly uint k_cbSteamDatagramMaxSerializedTicket = 512;
internal static readonly uint k_cbMaxSteamDatagramGameCoordinatorServerLoginAppData = 2048;
internal static readonly uint k_cbMaxSteamDatagramGameCoordinatorServerLoginSerialized = 4096;
internal static readonly int k_cbSteamNetworkingSocketsFakeUDPPortRecommendedMTU = 1200;
internal static readonly int k_cbSteamNetworkingSocketsFakeUDPPortMaxMessageSize = 4096;
}
}
@@ -148,6 +148,18 @@ namespace Steamworks
CantRemoveItem = 113,
AccountDeleted = 114,
ExistingUserCancelledLicense = 115,
CommunityCooldown = 116,
NoLauncherSpecified = 117,
MustAgreeToSSA = 118,
LauncherMigrated = 119,
SteamRealmMismatch = 120,
InvalidSignature = 121,
ParseFailure = 122,
NoVerifiedPhone = 123,
InsufficientBattery = 124,
ChargerRequired = 125,
CachedCredentialInvalid = 126,
K_EResultPhoneNumberIsVOIP = 127,
}
//
@@ -222,6 +234,7 @@ namespace Steamworks
AuthTicketInvalidAlreadyUsed = 7,
AuthTicketInvalid = 8,
PublisherIssuedBan = 9,
AuthTicketNetworkIdentityFailure = 10,
}
//
@@ -253,88 +266,6 @@ namespace Steamworks
Max = 11,
}
//
// EAppReleaseState
//
internal enum AppReleaseState : int
{
Unknown = 0,
Unavailable = 1,
Prerelease = 2,
PreloadOnly = 3,
Released = 4,
}
//
// EAppOwnershipFlags
//
internal enum AppOwnershipFlags : int
{
None = 0,
OwnsLicense = 1,
FreeLicense = 2,
RegionRestricted = 4,
LowViolence = 8,
InvalidPlatform = 16,
SharedLicense = 32,
FreeWeekend = 64,
RetailLicense = 128,
LicenseLocked = 256,
LicensePending = 512,
LicenseExpired = 1024,
LicensePermanent = 2048,
LicenseRecurring = 4096,
LicenseCanceled = 8192,
AutoGrant = 16384,
PendingGift = 32768,
RentalNotActivated = 65536,
Rental = 131072,
SiteLicense = 262144,
LegacyFreeSub = 524288,
InvalidOSType = 1048576,
}
//
// EAppType
//
internal enum AppType : int
{
Invalid = 0,
Game = 1,
Application = 2,
Tool = 4,
Demo = 8,
Media_DEPRECATED = 16,
DLC = 32,
Guide = 64,
Driver = 128,
Config = 256,
Hardware = 512,
Franchise = 1024,
Video = 2048,
Plugin = 4096,
MusicAlbum = 8192,
Series = 16384,
Comic_UNUSED = 32768,
Beta = 65536,
Shortcut = 1073741824,
DepotOnly = -2147483648,
}
//
// ESteamUserStatType
//
internal enum SteamUserStatType : int
{
INVALID = 0,
INT = 1,
FLOAT = 2,
AVGRATE = 3,
ACHIEVEMENTS = 4,
GROUPACHIEVEMENTS = 5,
MAX = 6,
}
//
// EChatEntryType
//
@@ -384,24 +315,12 @@ namespace Steamworks
InstanceFlagMMSLobby = 131072,
}
//
// EMarketingMessageFlags
//
internal enum MarketingMessageFlags : int
{
None = 0,
HighPriority = 1,
PlatformWindows = 2,
PlatformMac = 4,
PlatformLinux = 8,
PlatformRestrictions = 14,
}
//
// ENotificationPosition
//
public enum NotificationPosition : int
{
Invalid = -1,
TopLeft = 0,
TopRight = 1,
BottomLeft = 2,
@@ -439,70 +358,6 @@ namespace Steamworks
AudioInitFailed = 23,
}
//
// ELaunchOptionType
//
internal enum LaunchOptionType : int
{
None = 0,
Default = 1,
SafeMode = 2,
Multiplayer = 3,
Config = 4,
OpenVR = 5,
Server = 6,
Editor = 7,
Manual = 8,
Benchmark = 9,
Option1 = 10,
Option2 = 11,
Option3 = 12,
OculusVR = 13,
OpenVROverlay = 14,
OSVR = 15,
Dialog = 1000,
}
//
// EVRHMDType
//
internal enum VRHMDType : int
{
MDType_None = -1,
MDType_Unknown = 0,
MDType_HTC_Dev = 1,
MDType_HTC_VivePre = 2,
MDType_HTC_Vive = 3,
MDType_HTC_VivePro = 4,
MDType_HTC_ViveCosmos = 5,
MDType_HTC_Unknown = 20,
MDType_Oculus_DK1 = 21,
MDType_Oculus_DK2 = 22,
MDType_Oculus_Rift = 23,
MDType_Oculus_RiftS = 24,
MDType_Oculus_Quest = 25,
MDType_Oculus_Unknown = 40,
MDType_Acer_Unknown = 50,
MDType_Acer_WindowsMR = 51,
MDType_Dell_Unknown = 60,
MDType_Dell_Visor = 61,
MDType_Lenovo_Unknown = 70,
MDType_Lenovo_Explorer = 71,
MDType_HP_Unknown = 80,
MDType_HP_WindowsMR = 81,
MDType_HP_Reverb = 82,
MDType_Samsung_Unknown = 90,
MDType_Samsung_Odyssey = 91,
MDType_Unannounced_Unknown = 100,
MDType_Unannounced_WindowsMR = 101,
MDType_vridge = 110,
MDType_Huawei_Unknown = 120,
MDType_Huawei_VR2 = 121,
MDType_Huawei_EndOfRange = 129,
mdType_Valve_Unknown = 130,
mdType_Valve_Index = 131,
}
//
// EMarketNotAllowedReasonFlags
//
@@ -555,6 +410,17 @@ namespace Steamworks
ExitSoon_Night = 7,
}
//
// EDurationControlOnlineState
//
internal enum DurationControlOnlineState : int
{
Invalid = 0,
Offline = 1,
Online = 2,
OnlineHighPri = 3,
}
//
// EGameSearchErrorCode_t
//
@@ -672,7 +538,7 @@ namespace Steamworks
//
// EOverlayToStoreFlag
//
internal enum OverlayToStoreFlag : int
public enum OverlayToStoreFlag : int
{
None = 0,
AddToCart = 1,
@@ -688,6 +554,37 @@ namespace Steamworks
Modal = 1,
}
//
// ECommunityProfileItemType
//
internal enum CommunityProfileItemType : int
{
AnimatedAvatar = 0,
AvatarFrame = 1,
ProfileModifier = 2,
ProfileBackground = 3,
MiniProfileBackground = 4,
}
//
// ECommunityProfileItemProperty
//
internal enum CommunityProfileItemProperty : int
{
ImageSmall = 0,
ImageLarge = 1,
InternalName = 2,
Title = 3,
Description = 4,
AppID = 5,
TypeID = 6,
Class = 7,
MovieWebM = 8,
MovieMP4 = 9,
MovieWebMSmall = 10,
MovieMP4Small = 11,
}
//
// EPersonaChange
//
@@ -740,6 +637,28 @@ namespace Steamworks
MultipleLines = 1,
}
//
// EFloatingGamepadTextInputMode
//
public enum TextInputMode : int
{
SingleLine = 0,
MultipleLines = 1,
Email = 2,
Numeric = 3,
}
//
// ETextFilteringContext
//
public enum TextFilteringContext : int
{
Unknown = 0,
GameContent = 1,
Chat = 2,
Name = 3,
}
//
// ECheckFileSignature
//
@@ -937,6 +856,26 @@ namespace Steamworks
lose = 2,
}
//
// ERemoteStorageLocalFileChange
//
internal enum RemoteStorageLocalFileChange : int
{
Invalid = 0,
FileUpdated = 1,
FileDeleted = 2,
}
//
// ERemoteStorageFilePathType
//
internal enum RemoteStorageFilePathType : int
{
Invalid = 0,
Absolute = 1,
APIFilename = 2,
}
//
// ELeaderboardDataRequest
//
@@ -964,28 +903,16 @@ namespace Steamworks
ForceUpdate = 2,
}
//
// ERegisterActivationCodeResult
//
internal enum RegisterActivationCodeResult : int
{
ResultOK = 0,
ResultFail = 1,
ResultAlreadyRegistered = 2,
ResultTimeout = 3,
AlreadyOwned = 4,
}
//
// EP2PSessionError
//
public enum P2PSessionError : int
{
None = 0,
NotRunningApp = 1,
NoRightsToApp = 2,
DestinationNotLoggedIn = 3,
Timeout = 4,
NotRunningApp_DELETED = 1,
DestinationNotLoggedIn_DELETED = 3,
Max = 5,
}
@@ -1067,6 +994,7 @@ namespace Steamworks
Code304NotModified = 304,
Code305UseProxy = 305,
Code307TemporaryRedirect = 307,
Code308PermanentRedirect = 308,
Code400BadRequest = 400,
Code401Unauthorized = 401,
Code402PaymentRequired = 402,
@@ -1087,6 +1015,7 @@ namespace Steamworks
Code417ExpectationFailed = 417,
Code4xxUnknown = 418,
Code429TooManyRequests = 429,
Code444ConnectionClosed = 444,
Code500InternalServerError = 500,
Code501NotImplemented = 501,
Code502BadGateway = 502,
@@ -1268,11 +1197,11 @@ namespace Steamworks
XBoxOne_DPad_West = 140,
XBoxOne_DPad_East = 141,
XBoxOne_DPad_Move = 142,
XBoxOne_Reserved1 = 143,
XBoxOne_Reserved2 = 144,
XBoxOne_Reserved3 = 145,
XBoxOne_Reserved4 = 146,
XBoxOne_Reserved5 = 147,
XBoxOne_LeftGrip_Lower = 143,
XBoxOne_LeftGrip_Upper = 144,
XBoxOne_RightGrip_Lower = 145,
XBoxOne_RightGrip_Upper = 146,
XBoxOne_Share = 147,
XBoxOne_Reserved6 = 148,
XBoxOne_Reserved7 = 149,
XBoxOne_Reserved8 = 150,
@@ -1373,17 +1302,165 @@ namespace Steamworks
Switch_LeftGrip_Upper = 245,
Switch_RightGrip_Lower = 246,
Switch_RightGrip_Upper = 247,
Switch_Reserved11 = 248,
Switch_Reserved12 = 249,
Switch_Reserved13 = 250,
Switch_Reserved14 = 251,
Switch_JoyConButton_N = 248,
Switch_JoyConButton_E = 249,
Switch_JoyConButton_S = 250,
Switch_JoyConButton_W = 251,
Switch_Reserved15 = 252,
Switch_Reserved16 = 253,
Switch_Reserved17 = 254,
Switch_Reserved18 = 255,
Switch_Reserved19 = 256,
Switch_Reserved20 = 257,
Count = 258,
PS5_X = 258,
PS5_Circle = 259,
PS5_Triangle = 260,
PS5_Square = 261,
PS5_LeftBumper = 262,
PS5_RightBumper = 263,
PS5_Option = 264,
PS5_Create = 265,
PS5_Mute = 266,
PS5_LeftPad_Touch = 267,
PS5_LeftPad_Swipe = 268,
PS5_LeftPad_Click = 269,
PS5_LeftPad_DPadNorth = 270,
PS5_LeftPad_DPadSouth = 271,
PS5_LeftPad_DPadWest = 272,
PS5_LeftPad_DPadEast = 273,
PS5_RightPad_Touch = 274,
PS5_RightPad_Swipe = 275,
PS5_RightPad_Click = 276,
PS5_RightPad_DPadNorth = 277,
PS5_RightPad_DPadSouth = 278,
PS5_RightPad_DPadWest = 279,
PS5_RightPad_DPadEast = 280,
PS5_CenterPad_Touch = 281,
PS5_CenterPad_Swipe = 282,
PS5_CenterPad_Click = 283,
PS5_CenterPad_DPadNorth = 284,
PS5_CenterPad_DPadSouth = 285,
PS5_CenterPad_DPadWest = 286,
PS5_CenterPad_DPadEast = 287,
PS5_LeftTrigger_Pull = 288,
PS5_LeftTrigger_Click = 289,
PS5_RightTrigger_Pull = 290,
PS5_RightTrigger_Click = 291,
PS5_LeftStick_Move = 292,
PS5_LeftStick_Click = 293,
PS5_LeftStick_DPadNorth = 294,
PS5_LeftStick_DPadSouth = 295,
PS5_LeftStick_DPadWest = 296,
PS5_LeftStick_DPadEast = 297,
PS5_RightStick_Move = 298,
PS5_RightStick_Click = 299,
PS5_RightStick_DPadNorth = 300,
PS5_RightStick_DPadSouth = 301,
PS5_RightStick_DPadWest = 302,
PS5_RightStick_DPadEast = 303,
PS5_DPad_North = 304,
PS5_DPad_South = 305,
PS5_DPad_West = 306,
PS5_DPad_East = 307,
PS5_Gyro_Move = 308,
PS5_Gyro_Pitch = 309,
PS5_Gyro_Yaw = 310,
PS5_Gyro_Roll = 311,
PS5_DPad_Move = 312,
PS5_LeftGrip = 313,
PS5_RightGrip = 314,
PS5_LeftFn = 315,
PS5_RightFn = 316,
PS5_Reserved5 = 317,
PS5_Reserved6 = 318,
PS5_Reserved7 = 319,
PS5_Reserved8 = 320,
PS5_Reserved9 = 321,
PS5_Reserved10 = 322,
PS5_Reserved11 = 323,
PS5_Reserved12 = 324,
PS5_Reserved13 = 325,
PS5_Reserved14 = 326,
PS5_Reserved15 = 327,
PS5_Reserved16 = 328,
PS5_Reserved17 = 329,
PS5_Reserved18 = 330,
PS5_Reserved19 = 331,
PS5_Reserved20 = 332,
SteamDeck_A = 333,
SteamDeck_B = 334,
SteamDeck_X = 335,
SteamDeck_Y = 336,
SteamDeck_L1 = 337,
SteamDeck_R1 = 338,
SteamDeck_Menu = 339,
SteamDeck_View = 340,
SteamDeck_LeftPad_Touch = 341,
SteamDeck_LeftPad_Swipe = 342,
SteamDeck_LeftPad_Click = 343,
SteamDeck_LeftPad_DPadNorth = 344,
SteamDeck_LeftPad_DPadSouth = 345,
SteamDeck_LeftPad_DPadWest = 346,
SteamDeck_LeftPad_DPadEast = 347,
SteamDeck_RightPad_Touch = 348,
SteamDeck_RightPad_Swipe = 349,
SteamDeck_RightPad_Click = 350,
SteamDeck_RightPad_DPadNorth = 351,
SteamDeck_RightPad_DPadSouth = 352,
SteamDeck_RightPad_DPadWest = 353,
SteamDeck_RightPad_DPadEast = 354,
SteamDeck_L2_SoftPull = 355,
SteamDeck_L2 = 356,
SteamDeck_R2_SoftPull = 357,
SteamDeck_R2 = 358,
SteamDeck_LeftStick_Move = 359,
SteamDeck_L3 = 360,
SteamDeck_LeftStick_DPadNorth = 361,
SteamDeck_LeftStick_DPadSouth = 362,
SteamDeck_LeftStick_DPadWest = 363,
SteamDeck_LeftStick_DPadEast = 364,
SteamDeck_LeftStick_Touch = 365,
SteamDeck_RightStick_Move = 366,
SteamDeck_R3 = 367,
SteamDeck_RightStick_DPadNorth = 368,
SteamDeck_RightStick_DPadSouth = 369,
SteamDeck_RightStick_DPadWest = 370,
SteamDeck_RightStick_DPadEast = 371,
SteamDeck_RightStick_Touch = 372,
SteamDeck_L4 = 373,
SteamDeck_R4 = 374,
SteamDeck_L5 = 375,
SteamDeck_R5 = 376,
SteamDeck_DPad_Move = 377,
SteamDeck_DPad_North = 378,
SteamDeck_DPad_South = 379,
SteamDeck_DPad_West = 380,
SteamDeck_DPad_East = 381,
SteamDeck_Gyro_Move = 382,
SteamDeck_Gyro_Pitch = 383,
SteamDeck_Gyro_Yaw = 384,
SteamDeck_Gyro_Roll = 385,
SteamDeck_Reserved1 = 386,
SteamDeck_Reserved2 = 387,
SteamDeck_Reserved3 = 388,
SteamDeck_Reserved4 = 389,
SteamDeck_Reserved5 = 390,
SteamDeck_Reserved6 = 391,
SteamDeck_Reserved7 = 392,
SteamDeck_Reserved8 = 393,
SteamDeck_Reserved9 = 394,
SteamDeck_Reserved10 = 395,
SteamDeck_Reserved11 = 396,
SteamDeck_Reserved12 = 397,
SteamDeck_Reserved13 = 398,
SteamDeck_Reserved14 = 399,
SteamDeck_Reserved15 = 400,
SteamDeck_Reserved16 = 401,
SteamDeck_Reserved17 = 402,
SteamDeck_Reserved18 = 403,
SteamDeck_Reserved19 = 404,
SteamDeck_Reserved20 = 405,
Count = 406,
MaximumPossibleValue = 32767,
}
@@ -1432,6 +1509,26 @@ namespace Steamworks
Right = 1,
}
//
// EControllerHapticLocation
//
internal enum ControllerHapticLocation : int
{
Left = 1,
Right = 2,
Both = 3,
}
//
// EControllerHapticType
//
internal enum ControllerHapticType : int
{
Off = 0,
Tick = 1,
Click = 2,
}
//
// ESteamInputType
//
@@ -1450,10 +1547,24 @@ namespace Steamworks
SwitchProController = 10,
MobileTouch = 11,
PS3Controller = 12,
Count = 13,
PS5Controller = 13,
SteamDeckController = 14,
Count = 15,
MaximumPossibleValue = 255,
}
//
// ESteamInputConfigurationEnableType
//
internal enum SteamInputConfigurationEnableType : int
{
None = 0,
Playstation = 1,
Xbox = 2,
Generic = 4,
Switch = 8,
}
//
// ESteamInputLEDFlag
//
@@ -1463,6 +1574,38 @@ namespace Steamworks
RestoreUserDefault = 1,
}
//
// ESteamInputGlyphSize
//
public enum GlyphSize : int
{
Small = 0,
Medium = 1,
Large = 2,
Count = 3,
}
//
// ESteamInputGlyphStyle
//
internal enum SteamInputGlyphStyle : int
{
Knockout = 0,
Light = 1,
Dark = 2,
NeutralColorABXY = 16,
SolidABXY = 32,
}
//
// ESteamInputActionEventType
//
internal enum SteamInputActionEventType : int
{
DigitalAction = 0,
AnalogAction = 1,
}
//
// EControllerActionOrigin
//
@@ -1713,7 +1856,148 @@ namespace Steamworks
XBoxOne_DPad_Move = 242,
XBox360_DPad_Move = 243,
Switch_DPad_Move = 244,
Count = 245,
PS5_X = 245,
PS5_Circle = 246,
PS5_Triangle = 247,
PS5_Square = 248,
PS5_LeftBumper = 249,
PS5_RightBumper = 250,
PS5_Option = 251,
PS5_Create = 252,
PS5_Mute = 253,
PS5_LeftPad_Touch = 254,
PS5_LeftPad_Swipe = 255,
PS5_LeftPad_Click = 256,
PS5_LeftPad_DPadNorth = 257,
PS5_LeftPad_DPadSouth = 258,
PS5_LeftPad_DPadWest = 259,
PS5_LeftPad_DPadEast = 260,
PS5_RightPad_Touch = 261,
PS5_RightPad_Swipe = 262,
PS5_RightPad_Click = 263,
PS5_RightPad_DPadNorth = 264,
PS5_RightPad_DPadSouth = 265,
PS5_RightPad_DPadWest = 266,
PS5_RightPad_DPadEast = 267,
PS5_CenterPad_Touch = 268,
PS5_CenterPad_Swipe = 269,
PS5_CenterPad_Click = 270,
PS5_CenterPad_DPadNorth = 271,
PS5_CenterPad_DPadSouth = 272,
PS5_CenterPad_DPadWest = 273,
PS5_CenterPad_DPadEast = 274,
PS5_LeftTrigger_Pull = 275,
PS5_LeftTrigger_Click = 276,
PS5_RightTrigger_Pull = 277,
PS5_RightTrigger_Click = 278,
PS5_LeftStick_Move = 279,
PS5_LeftStick_Click = 280,
PS5_LeftStick_DPadNorth = 281,
PS5_LeftStick_DPadSouth = 282,
PS5_LeftStick_DPadWest = 283,
PS5_LeftStick_DPadEast = 284,
PS5_RightStick_Move = 285,
PS5_RightStick_Click = 286,
PS5_RightStick_DPadNorth = 287,
PS5_RightStick_DPadSouth = 288,
PS5_RightStick_DPadWest = 289,
PS5_RightStick_DPadEast = 290,
PS5_DPad_Move = 291,
PS5_DPad_North = 292,
PS5_DPad_South = 293,
PS5_DPad_West = 294,
PS5_DPad_East = 295,
PS5_Gyro_Move = 296,
PS5_Gyro_Pitch = 297,
PS5_Gyro_Yaw = 298,
PS5_Gyro_Roll = 299,
XBoxOne_LeftGrip_Lower = 300,
XBoxOne_LeftGrip_Upper = 301,
XBoxOne_RightGrip_Lower = 302,
XBoxOne_RightGrip_Upper = 303,
XBoxOne_Share = 304,
SteamDeck_A = 305,
SteamDeck_B = 306,
SteamDeck_X = 307,
SteamDeck_Y = 308,
SteamDeck_L1 = 309,
SteamDeck_R1 = 310,
SteamDeck_Menu = 311,
SteamDeck_View = 312,
SteamDeck_LeftPad_Touch = 313,
SteamDeck_LeftPad_Swipe = 314,
SteamDeck_LeftPad_Click = 315,
SteamDeck_LeftPad_DPadNorth = 316,
SteamDeck_LeftPad_DPadSouth = 317,
SteamDeck_LeftPad_DPadWest = 318,
SteamDeck_LeftPad_DPadEast = 319,
SteamDeck_RightPad_Touch = 320,
SteamDeck_RightPad_Swipe = 321,
SteamDeck_RightPad_Click = 322,
SteamDeck_RightPad_DPadNorth = 323,
SteamDeck_RightPad_DPadSouth = 324,
SteamDeck_RightPad_DPadWest = 325,
SteamDeck_RightPad_DPadEast = 326,
SteamDeck_L2_SoftPull = 327,
SteamDeck_L2 = 328,
SteamDeck_R2_SoftPull = 329,
SteamDeck_R2 = 330,
SteamDeck_LeftStick_Move = 331,
SteamDeck_L3 = 332,
SteamDeck_LeftStick_DPadNorth = 333,
SteamDeck_LeftStick_DPadSouth = 334,
SteamDeck_LeftStick_DPadWest = 335,
SteamDeck_LeftStick_DPadEast = 336,
SteamDeck_LeftStick_Touch = 337,
SteamDeck_RightStick_Move = 338,
SteamDeck_R3 = 339,
SteamDeck_RightStick_DPadNorth = 340,
SteamDeck_RightStick_DPadSouth = 341,
SteamDeck_RightStick_DPadWest = 342,
SteamDeck_RightStick_DPadEast = 343,
SteamDeck_RightStick_Touch = 344,
SteamDeck_L4 = 345,
SteamDeck_R4 = 346,
SteamDeck_L5 = 347,
SteamDeck_R5 = 348,
SteamDeck_DPad_Move = 349,
SteamDeck_DPad_North = 350,
SteamDeck_DPad_South = 351,
SteamDeck_DPad_West = 352,
SteamDeck_DPad_East = 353,
SteamDeck_Gyro_Move = 354,
SteamDeck_Gyro_Pitch = 355,
SteamDeck_Gyro_Yaw = 356,
SteamDeck_Gyro_Roll = 357,
SteamDeck_Reserved1 = 358,
SteamDeck_Reserved2 = 359,
SteamDeck_Reserved3 = 360,
SteamDeck_Reserved4 = 361,
SteamDeck_Reserved5 = 362,
SteamDeck_Reserved6 = 363,
SteamDeck_Reserved7 = 364,
SteamDeck_Reserved8 = 365,
SteamDeck_Reserved9 = 366,
SteamDeck_Reserved10 = 367,
SteamDeck_Reserved11 = 368,
SteamDeck_Reserved12 = 369,
SteamDeck_Reserved13 = 370,
SteamDeck_Reserved14 = 371,
SteamDeck_Reserved15 = 372,
SteamDeck_Reserved16 = 373,
SteamDeck_Reserved17 = 374,
SteamDeck_Reserved18 = 375,
SteamDeck_Reserved19 = 376,
SteamDeck_Reserved20 = 377,
Switch_JoyConButton_N = 378,
Switch_JoyConButton_E = 379,
Switch_JoyConButton_S = 380,
Switch_JoyConButton_W = 381,
PS5_LeftGrip = 382,
PS5_RightGrip = 383,
PS5_LeftFn = 384,
PS5_RightFn = 385,
Count = 386,
MaximumPossibleValue = 32767,
}
@@ -1801,6 +2085,7 @@ namespace Steamworks
RankedByLifetimeAveragePlaytime = 16,
RankedByPlaytimeSessionsTrend = 17,
RankedByLifetimePlaytimeSessions = 18,
RankedByLastUpdatedDate = 19,
}
//
@@ -1853,7 +2138,7 @@ namespace Steamworks
//
// EItemPreviewType
//
internal enum ItemPreviewType : int
public enum ItemPreviewType : int
{
Image = 0,
YouTubeVideo = 1,
@@ -1863,6 +2148,18 @@ namespace Steamworks
ReservedMax = 255,
}
//
// EUGCContentDescriptorID
//
internal enum UGCContentDescriptorID : int
{
NudityOrSexualContent = 1,
FrequentViolenceOrGore = 2,
AdultOnlySexualContent = 3,
GratuitousSexualContent = 4,
AnyMatureContent = 5,
}
//
// ESteamItemFlags
//
@@ -1873,17 +2170,6 @@ namespace Steamworks
Consumed = 512,
}
//
// ESteamTVRegionBehavior
//
internal enum SteamTVRegionBehavior : int
{
Invalid = -1,
Hover = 0,
ClickPopup = 1,
ClickSurroundingRegion = 2,
}
//
// EParentalFeature
//
@@ -1903,7 +2189,8 @@ namespace Steamworks
Library = 11,
Test = 12,
SiteLicense = 13,
Max = 14,
KioskMode = 14,
Max = 15,
}
//
@@ -1943,6 +2230,8 @@ namespace Steamworks
Invalid = 0,
SteamID = 16,
XboxPairwiseID = 17,
SonyPSN = 18,
GoogleStadia = 19,
IPAddress = 1,
GenericString = 2,
GenericBytes = 3,
@@ -1950,6 +2239,17 @@ namespace Steamworks
Force32bit = 2147483647,
}
//
// ESteamNetworkingFakeIPType
//
internal enum SteamNetworkingFakeIPType : int
{
Invalid = 0,
NotFake = 1,
GlobalIPv4 = 2,
LocalIPv4 = 3,
}
//
// ESteamNetworkingConnectionState
//
@@ -1984,22 +2284,24 @@ namespace Steamworks
Local_HostedServerPrimaryRelay = 3003,
Local_NetworkConfig = 3004,
Local_Rights = 3005,
Local_P2P_ICE_NoPublicAddresses = 3006,
Local_Max = 3999,
Remote_Min = 4000,
Remote_Timeout = 4001,
Remote_BadCrypt = 4002,
Remote_BadCert = 4003,
Remote_NotLoggedIn = 4004,
Remote_NotRunningApp = 4005,
Remote_BadProtocolVersion = 4006,
Remote_P2P_ICE_NoPublicAddresses = 4007,
Remote_Max = 4999,
Misc_Min = 5000,
Misc_Generic = 5001,
Misc_InternalError = 5002,
Misc_Timeout = 5003,
Misc_RelayConnectivity = 5004,
Misc_SteamConnectivity = 5005,
Misc_NoRelaySessionsToClient = 5006,
Misc_P2P_Rendezvous = 5008,
Misc_P2P_NAT_Firewall = 5009,
Misc_PeerSentNoConnection = 5010,
Misc_Max = 5999,
}
@@ -2023,7 +2325,7 @@ namespace Steamworks
Int64 = 2,
Float = 3,
String = 4,
FunctionPtr = 5,
Ptr = 5,
}
//
@@ -2032,6 +2334,21 @@ namespace Steamworks
internal enum NetConfig : int
{
Invalid = 0,
TimeoutInitial = 24,
TimeoutConnected = 25,
SendBufferSize = 9,
ConnectionUserData = 40,
SendRateMin = 10,
SendRateMax = 11,
NagleTime = 12,
IP_AllowWithoutAuth = 23,
MTU_PacketSize = 32,
MTU_DataSize = 33,
Unencrypted = 34,
SymmetricConnect = 37,
LocalVirtualPort = 38,
DualWifi_Enable = 39,
EnableDiagnosticsUI = 46,
FakePacketLoss_Send = 2,
FakePacketLoss_Recv = 3,
FakePacketLag_Send = 4,
@@ -2042,17 +2359,26 @@ namespace Steamworks
FakePacketDup_Send = 26,
FakePacketDup_Recv = 27,
FakePacketDup_TimeMax = 28,
TimeoutInitial = 24,
TimeoutConnected = 25,
SendBufferSize = 9,
SendRateMin = 10,
SendRateMax = 11,
NagleTime = 12,
IP_AllowWithoutAuth = 23,
MTU_PacketSize = 32,
MTU_DataSize = 33,
Unencrypted = 34,
EnumerateDevVars = 35,
PacketTraceMaxBytes = 41,
FakeRateLimit_Send_Rate = 42,
FakeRateLimit_Send_Burst = 43,
FakeRateLimit_Recv_Rate = 44,
FakeRateLimit_Recv_Burst = 45,
Callback_ConnectionStatusChanged = 201,
Callback_AuthStatusChanged = 202,
Callback_RelayNetworkStatusChanged = 203,
Callback_MessagesSessionRequest = 204,
Callback_MessagesSessionFailed = 205,
Callback_CreateConnectionSignaling = 206,
Callback_FakeIPResult = 207,
P2P_STUN_ServerList = 103,
P2P_Transport_ICE_Enable = 104,
P2P_Transport_ICE_Penalty = 105,
P2P_Transport_SDR_Penalty = 106,
P2P_TURN_ServerList = 107,
P2P_TURN_UserList = 108,
P2P_TURN_PassList = 109,
P2P_Transport_ICE_Implementation = 110,
SDRClient_ConsecutitivePingTimeoutsFailInitial = 19,
SDRClient_ConsecutitivePingTimeoutsFail = 20,
SDRClient_MinPingsBeforePingAccurate = 21,
@@ -2067,6 +2393,7 @@ namespace Steamworks
LogLevel_PacketGaps = 16,
LogLevel_P2PRendezvous = 17,
LogLevel_SDRRelayPings = 18,
DELETED_EnumerateDevVars = 35,
}
//
@@ -88,6 +88,25 @@ namespace Steamworks.Data
}
internal partial struct NetKeyValue
{
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingConfigValue_t_SetInt32", CallingConvention = Platform.CC)]
internal static extern void InternalSetInt32( ref NetKeyValue self, NetConfig eVal, int data );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingConfigValue_t_SetInt64", CallingConvention = Platform.CC)]
internal static extern void InternalSetInt64( ref NetKeyValue self, NetConfig eVal, long data );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingConfigValue_t_SetFloat", CallingConvention = Platform.CC)]
internal static extern void InternalSetFloat( ref NetKeyValue self, NetConfig eVal, float data );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingConfigValue_t_SetPtr", CallingConvention = Platform.CC)]
internal static extern void InternalSetPtr( ref NetKeyValue self, NetConfig eVal, IntPtr data );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingConfigValue_t_SetString", CallingConvention = Platform.CC)]
internal static extern void InternalSetString( ref NetKeyValue self, NetConfig eVal, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string data );
}
public partial struct NetIdentity
{
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_Clear", CallingConvention = Platform.CC)]
@@ -116,12 +135,37 @@ namespace Steamworks.Data
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID", CallingConvention = Platform.CC)]
internal static extern Utf8StringPointer InternalGetXboxPairwiseID( ref NetIdentity self );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetPSNID", CallingConvention = Platform.CC)]
internal static extern void InternalSetPSNID( ref NetIdentity self, ulong id );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetPSNID", CallingConvention = Platform.CC)]
internal static extern ulong InternalGetPSNID( ref NetIdentity self );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetStadiaID", CallingConvention = Platform.CC)]
internal static extern void InternalSetStadiaID( ref NetIdentity self, ulong id );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetStadiaID", CallingConvention = Platform.CC)]
internal static extern ulong InternalGetStadiaID( ref NetIdentity self );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetIPAddr", CallingConvention = Platform.CC)]
internal static extern void InternalSetIPAddr( ref NetIdentity self, ref NetAddress addr );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetIPAddr", CallingConvention = Platform.CC)]
internal static extern IntPtr InternalGetIPAddr( ref NetIdentity self );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetIPv4Addr", CallingConvention = Platform.CC)]
internal static extern void InternalSetIPv4Addr( ref NetIdentity self, uint nIPv4, ushort nPort );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetIPv4", CallingConvention = Platform.CC)]
internal static extern uint InternalGetIPv4( ref NetIdentity self );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_GetFakeIPType", CallingConvention = Platform.CC)]
internal static extern SteamNetworkingFakeIPType InternalGetFakeIPType( ref NetIdentity self );
[return: MarshalAs( UnmanagedType.I1 )]
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_IsFakeIP", CallingConvention = Platform.CC)]
internal static extern bool InternalIsFakeIP( ref NetIdentity self );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIdentity_SetLocalHost", CallingConvention = Platform.CC)]
internal static extern void InternalSetLocalHost( ref NetIdentity self );
@@ -196,6 +240,13 @@ namespace Steamworks.Data
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsEqualTo", CallingConvention = Platform.CC)]
internal static extern bool InternalIsEqualTo( ref NetAddress self, ref NetAddress x );
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_GetFakeIPType", CallingConvention = Platform.CC)]
internal static extern SteamNetworkingFakeIPType InternalGetFakeIPType( ref NetAddress self );
[return: MarshalAs( UnmanagedType.I1 )]
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_SteamNetworkingIPAddr_IsFakeIP", CallingConvention = Platform.CC)]
internal static extern bool InternalIsFakeIP( ref NetAddress self );
}
internal partial struct NetMsg
@@ -17,14 +17,6 @@ namespace Steamworks.Data
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct FriendSessionStateInfo_t
{
internal uint IOnlineSessionInstances; // m_uiOnlineSessionInstances uint32
internal byte IPublishedToFriendsSessionInstance; // m_uiPublishedToFriendsSessionInstance uint8
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal partial struct servernetadr_t
{
@@ -113,6 +105,39 @@ namespace Steamworks.Data
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct InputMotionDataV2_t
{
internal float DriftCorrectedQuatX; // driftCorrectedQuatX float
internal float DriftCorrectedQuatY; // driftCorrectedQuatY float
internal float DriftCorrectedQuatZ; // driftCorrectedQuatZ float
internal float DriftCorrectedQuatW; // driftCorrectedQuatW float
internal float SensorFusionQuatX; // sensorFusionQuatX float
internal float SensorFusionQuatY; // sensorFusionQuatY float
internal float SensorFusionQuatZ; // sensorFusionQuatZ float
internal float SensorFusionQuatW; // sensorFusionQuatW float
internal float DeferredSensorFusionQuatX; // deferredSensorFusionQuatX float
internal float DeferredSensorFusionQuatY; // deferredSensorFusionQuatY float
internal float DeferredSensorFusionQuatZ; // deferredSensorFusionQuatZ float
internal float DeferredSensorFusionQuatW; // deferredSensorFusionQuatW float
internal float GravityX; // gravityX float
internal float GravityY; // gravityY float
internal float GravityZ; // gravityZ float
internal float DegreesPerSecondX; // degreesPerSecondX float
internal float DegreesPerSecondY; // degreesPerSecondY float
internal float DegreesPerSecondZ; // degreesPerSecondZ float
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamInputActionEvent_t
{
internal ulong ControllerHandle; // controllerHandle InputHandle_t
internal SteamInputActionEventType EEventType; // eEventType ESteamInputActionEventType
// internal SteamInputActionEvent_t.AnalogAction_t AnalogAction; // analogAction SteamInputActionEvent_t::AnalogAction_t
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamUGCDetails_t
{
@@ -168,37 +193,6 @@ namespace Steamworks.Data
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamTVRegion_t
{
internal uint UnMinX; // unMinX uint32
internal uint UnMinY; // unMinY uint32
internal uint UnMaxX; // unMaxX uint32
internal uint UnMaxY; // unMaxY uint32
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal struct SteamNetworkingQuickConnectionStatus
{
internal ConnectionState State; // m_eState ESteamNetworkingConnectionState
internal int Ping; // m_nPing int
internal float ConnectionQualityLocal; // m_flConnectionQualityLocal float
internal float ConnectionQualityRemote; // m_flConnectionQualityRemote float
internal float OutPacketsPerSec; // m_flOutPacketsPerSec float
internal float OutBytesPerSec; // m_flOutBytesPerSec float
internal float InPacketsPerSec; // m_flInPacketsPerSec float
internal float InBytesPerSec; // m_flInBytesPerSec float
internal int SendRateBytesPerSecond; // m_nSendRateBytesPerSecond int
internal int CbPendingUnreliable; // m_cbPendingUnreliable int
internal int CbPendingReliable; // m_cbPendingReliable int
internal int CbSentUnackedReliable; // m_cbSentUnackedReliable int
internal long EcQueueTime; // m_usecQueueTime SteamNetworkingMicroseconds
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16, ArraySubType = UnmanagedType.U4)]
internal uint[] Reserved; // reserved uint32 [16]
}
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
internal partial struct SteamDatagramHostedAddress
{
@@ -6,118 +6,6 @@ using System.Threading.Tasks;
namespace Steamworks.Data
{
internal struct GID_t : IEquatable<GID_t>, IComparable<GID_t>
{
// Name: GID_t, Type: unsigned long long
public ulong Value;
public static implicit operator GID_t( ulong value ) => new GID_t(){ Value = value };
public static implicit operator ulong( GID_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (GID_t) p );
public bool Equals( GID_t p ) => p.Value == Value;
public static bool operator ==( GID_t a, GID_t b ) => a.Equals( b );
public static bool operator !=( GID_t a, GID_t b ) => !a.Equals( b );
public int CompareTo( GID_t other ) => Value.CompareTo( other.Value );
}
internal struct JobID_t : IEquatable<JobID_t>, IComparable<JobID_t>
{
// Name: JobID_t, Type: unsigned long long
public ulong Value;
public static implicit operator JobID_t( ulong value ) => new JobID_t(){ Value = value };
public static implicit operator ulong( JobID_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (JobID_t) p );
public bool Equals( JobID_t p ) => p.Value == Value;
public static bool operator ==( JobID_t a, JobID_t b ) => a.Equals( b );
public static bool operator !=( JobID_t a, JobID_t b ) => !a.Equals( b );
public int CompareTo( JobID_t other ) => Value.CompareTo( other.Value );
}
internal struct TxnID_t : IEquatable<TxnID_t>, IComparable<TxnID_t>
{
// Name: TxnID_t, Type: unsigned long long
public ulong Value;
public static implicit operator TxnID_t( ulong value ) => new TxnID_t(){ Value = value };
public static implicit operator ulong( TxnID_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (TxnID_t) p );
public bool Equals( TxnID_t p ) => p.Value == Value;
public static bool operator ==( TxnID_t a, TxnID_t b ) => a.Equals( b );
public static bool operator !=( TxnID_t a, TxnID_t b ) => !a.Equals( b );
public int CompareTo( TxnID_t other ) => Value.CompareTo( other.Value );
}
internal struct PackageId_t : IEquatable<PackageId_t>, IComparable<PackageId_t>
{
// Name: PackageId_t, Type: unsigned int
public uint Value;
public static implicit operator PackageId_t( uint value ) => new PackageId_t(){ Value = value };
public static implicit operator uint( PackageId_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (PackageId_t) p );
public bool Equals( PackageId_t p ) => p.Value == Value;
public static bool operator ==( PackageId_t a, PackageId_t b ) => a.Equals( b );
public static bool operator !=( PackageId_t a, PackageId_t b ) => !a.Equals( b );
public int CompareTo( PackageId_t other ) => Value.CompareTo( other.Value );
}
internal struct BundleId_t : IEquatable<BundleId_t>, IComparable<BundleId_t>
{
// Name: BundleId_t, Type: unsigned int
public uint Value;
public static implicit operator BundleId_t( uint value ) => new BundleId_t(){ Value = value };
public static implicit operator uint( BundleId_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (BundleId_t) p );
public bool Equals( BundleId_t p ) => p.Value == Value;
public static bool operator ==( BundleId_t a, BundleId_t b ) => a.Equals( b );
public static bool operator !=( BundleId_t a, BundleId_t b ) => !a.Equals( b );
public int CompareTo( BundleId_t other ) => Value.CompareTo( other.Value );
}
internal struct AssetClassId_t : IEquatable<AssetClassId_t>, IComparable<AssetClassId_t>
{
// Name: AssetClassId_t, Type: unsigned long long
public ulong Value;
public static implicit operator AssetClassId_t( ulong value ) => new AssetClassId_t(){ Value = value };
public static implicit operator ulong( AssetClassId_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (AssetClassId_t) p );
public bool Equals( AssetClassId_t p ) => p.Value == Value;
public static bool operator ==( AssetClassId_t a, AssetClassId_t b ) => a.Equals( b );
public static bool operator !=( AssetClassId_t a, AssetClassId_t b ) => !a.Equals( b );
public int CompareTo( AssetClassId_t other ) => Value.CompareTo( other.Value );
}
internal struct PhysicalItemId_t : IEquatable<PhysicalItemId_t>, IComparable<PhysicalItemId_t>
{
// Name: PhysicalItemId_t, Type: unsigned int
public uint Value;
public static implicit operator PhysicalItemId_t( uint value ) => new PhysicalItemId_t(){ Value = value };
public static implicit operator uint( PhysicalItemId_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (PhysicalItemId_t) p );
public bool Equals( PhysicalItemId_t p ) => p.Value == Value;
public static bool operator ==( PhysicalItemId_t a, PhysicalItemId_t b ) => a.Equals( b );
public static bool operator !=( PhysicalItemId_t a, PhysicalItemId_t b ) => !a.Equals( b );
public int CompareTo( PhysicalItemId_t other ) => Value.CompareTo( other.Value );
}
internal struct DepotId_t : IEquatable<DepotId_t>, IComparable<DepotId_t>
{
// Name: DepotId_t, Type: unsigned int
@@ -150,22 +38,6 @@ namespace Steamworks.Data
public int CompareTo( RTime32 other ) => Value.CompareTo( other.Value );
}
internal struct CellID_t : IEquatable<CellID_t>, IComparable<CellID_t>
{
// Name: CellID_t, Type: unsigned int
public uint Value;
public static implicit operator CellID_t( uint value ) => new CellID_t(){ Value = value };
public static implicit operator uint( CellID_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (CellID_t) p );
public bool Equals( CellID_t p ) => p.Value == Value;
public static bool operator ==( CellID_t a, CellID_t b ) => a.Equals( b );
public static bool operator !=( CellID_t a, CellID_t b ) => !a.Equals( b );
public int CompareTo( CellID_t other ) => Value.CompareTo( other.Value );
}
internal struct SteamAPICall_t : IEquatable<SteamAPICall_t>, IComparable<SteamAPICall_t>
{
// Name: SteamAPICall_t, Type: unsigned long long
@@ -198,54 +70,6 @@ namespace Steamworks.Data
public int CompareTo( AccountID_t other ) => Value.CompareTo( other.Value );
}
internal struct PartnerId_t : IEquatable<PartnerId_t>, IComparable<PartnerId_t>
{
// Name: PartnerId_t, Type: unsigned int
public uint Value;
public static implicit operator PartnerId_t( uint value ) => new PartnerId_t(){ Value = value };
public static implicit operator uint( PartnerId_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (PartnerId_t) p );
public bool Equals( PartnerId_t p ) => p.Value == Value;
public static bool operator ==( PartnerId_t a, PartnerId_t b ) => a.Equals( b );
public static bool operator !=( PartnerId_t a, PartnerId_t b ) => !a.Equals( b );
public int CompareTo( PartnerId_t other ) => Value.CompareTo( other.Value );
}
internal struct ManifestId_t : IEquatable<ManifestId_t>, IComparable<ManifestId_t>
{
// Name: ManifestId_t, Type: unsigned long long
public ulong Value;
public static implicit operator ManifestId_t( ulong value ) => new ManifestId_t(){ Value = value };
public static implicit operator ulong( ManifestId_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (ManifestId_t) p );
public bool Equals( ManifestId_t p ) => p.Value == Value;
public static bool operator ==( ManifestId_t a, ManifestId_t b ) => a.Equals( b );
public static bool operator !=( ManifestId_t a, ManifestId_t b ) => !a.Equals( b );
public int CompareTo( ManifestId_t other ) => Value.CompareTo( other.Value );
}
internal struct SiteId_t : IEquatable<SiteId_t>, IComparable<SiteId_t>
{
// Name: SiteId_t, Type: unsigned long long
public ulong Value;
public static implicit operator SiteId_t( ulong value ) => new SiteId_t(){ Value = value };
public static implicit operator ulong( SiteId_t value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (SiteId_t) p );
public bool Equals( SiteId_t p ) => p.Value == Value;
public static bool operator ==( SiteId_t a, SiteId_t b ) => a.Equals( b );
public static bool operator !=( SiteId_t a, SiteId_t b ) => !a.Equals( b );
public int CompareTo( SiteId_t other ) => Value.CompareTo( other.Value );
}
internal struct PartyBeaconID_t : IEquatable<PartyBeaconID_t>, IComparable<PartyBeaconID_t>
{
// Name: PartyBeaconID_t, Type: unsigned long long
@@ -278,22 +102,6 @@ namespace Steamworks.Data
public int CompareTo( HAuthTicket other ) => Value.CompareTo( other.Value );
}
internal struct BREAKPAD_HANDLE : IEquatable<BREAKPAD_HANDLE>, IComparable<BREAKPAD_HANDLE>
{
// Name: BREAKPAD_HANDLE, Type: void *
public IntPtr Value;
public static implicit operator BREAKPAD_HANDLE( IntPtr value ) => new BREAKPAD_HANDLE(){ Value = value };
public static implicit operator IntPtr( BREAKPAD_HANDLE value ) => value.Value;
public override string ToString() => Value.ToString();
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals( object p ) => this.Equals( (BREAKPAD_HANDLE) p );
public bool Equals( BREAKPAD_HANDLE p ) => p.Value == Value;
public static bool operator ==( BREAKPAD_HANDLE a, BREAKPAD_HANDLE b ) => a.Equals( b );
public static bool operator !=( BREAKPAD_HANDLE a, BREAKPAD_HANDLE b ) => !a.Equals( b );
public int CompareTo( BREAKPAD_HANDLE other ) => Value.ToInt64().CompareTo( other.Value.ToInt64() );
}
internal struct HSteamPipe : IEquatable<HSteamPipe>, IComparable<HSteamPipe>
{
// Name: HSteamPipe, Type: int