mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-03-12 21:40:15 +03:00
Generated
This commit is contained in:
parent
feb8f93e59
commit
603f85fdf9
@ -17,18 +17,6 @@ namespace Steamworks
|
|||||||
SetupInterface();
|
SetupInterface();
|
||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_InitGameServer")]
|
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
|
||||||
private static extern bool _InitGameServer( IntPtr self, uint unIP, ushort usGamePort, ushort usQueryPort, uint unFlags, AppId nGameAppId, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchVersionString );
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
internal bool InitGameServer( uint unIP, ushort usGamePort, ushort usQueryPort, uint unFlags, AppId nGameAppId, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchVersionString )
|
|
||||||
{
|
|
||||||
var returnValue = _InitGameServer( Self, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString );
|
|
||||||
return returnValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetProduct")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServer_SetProduct")]
|
||||||
private static extern void _SetProduct( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pszProduct );
|
private static extern void _SetProduct( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pszProduct );
|
||||||
|
@ -65,7 +65,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStatInt32")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _SetUserStat( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, int nData );
|
private static extern bool _SetUserStat( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, int nData );
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStat")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamGameServerStats_SetUserStatFloat")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _SetUserStat( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, float fData );
|
private static extern bool _SetUserStat( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, float fData );
|
||||||
|
|
||||||
|
@ -395,7 +395,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetProperty")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyString")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _SetProperty( IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyName, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyValue );
|
private static extern bool _SetProperty( IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyName, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyValue );
|
||||||
|
|
||||||
@ -407,7 +407,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetProperty")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyBool")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _SetProperty( IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyName, [MarshalAs( UnmanagedType.U1 )] bool bValue );
|
private static extern bool _SetProperty( IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyName, [MarshalAs( UnmanagedType.U1 )] bool bValue );
|
||||||
|
|
||||||
@ -419,7 +419,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetProperty")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyInt64")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _SetProperty( IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyName, long nValue );
|
private static extern bool _SetProperty( IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyName, long nValue );
|
||||||
|
|
||||||
@ -431,7 +431,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetProperty")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamInventory_SetPropertyFloat")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _SetProperty( IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyName, float flValue );
|
private static extern bool _SetProperty( IntPtr self, SteamInventoryUpdateHandle_t handle, InventoryItemId nItemID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchPropertyName, float flValue );
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequest")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequestPage")]
|
||||||
private static extern UGCQueryHandle_t _CreateQueryAllUGCRequest( IntPtr self, UGCQuery eQueryType, UgcType eMatchingeMatchingUGCTypeFileType, AppId nCreatorAppID, AppId nConsumerAppID, uint unPage );
|
private static extern UGCQueryHandle_t _CreateQueryAllUGCRequest( IntPtr self, UGCQuery eQueryType, UgcType eMatchingeMatchingUGCTypeFileType, AppId nCreatorAppID, AppId nConsumerAppID, uint unPage );
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -40,7 +40,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequest")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_CreateQueryAllUGCRequestCursor")]
|
||||||
private static extern UGCQueryHandle_t _CreateQueryAllUGCRequest( IntPtr self, UGCQuery eQueryType, UgcType eMatchingeMatchingUGCTypeFileType, AppId nCreatorAppID, AppId nConsumerAppID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchCursor );
|
private static extern UGCQueryHandle_t _CreateQueryAllUGCRequest( IntPtr self, UGCQuery eQueryType, UgcType eMatchingeMatchingUGCTypeFileType, AppId nCreatorAppID, AppId nConsumerAppID, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchCursor );
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -191,7 +191,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUGC_GetQueryFirstUGCKeyValueTag")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _GetQueryUGCKeyValueTag( IntPtr self, UGCQueryHandle_t handle, uint index, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey, IntPtr pchValue, uint cchValueSize );
|
private static extern bool _GetQueryUGCKeyValueTag( IntPtr self, UGCQueryHandle_t handle, uint index, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchKey, IntPtr pchValue, uint cchValueSize );
|
||||||
|
|
||||||
|
@ -361,5 +361,17 @@ namespace Steamworks
|
|||||||
return new CallbackResult<DurationControl_t>( returnValue );
|
return new CallbackResult<DurationControl_t>( returnValue );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region FunctionMeta
|
||||||
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUser_BSetDurationControlOnlineState")]
|
||||||
|
[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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -217,7 +217,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserStatInt32")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _GetUserStat( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, ref int pData );
|
private static extern bool _GetUserStat( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, ref int pData );
|
||||||
|
|
||||||
@ -229,7 +229,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserStat")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetUserStatFloat")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _GetUserStat( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, ref float pData );
|
private static extern bool _GetUserStat( IntPtr self, SteamId steamIDUser, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchName, ref float pData );
|
||||||
|
|
||||||
@ -470,7 +470,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatInt64")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _GetGlobalStat( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchStatName, ref long pData );
|
private static extern bool _GetGlobalStat( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchStatName, ref long pData );
|
||||||
|
|
||||||
@ -482,7 +482,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStat")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatDouble")]
|
||||||
[return: MarshalAs( UnmanagedType.I1 )]
|
[return: MarshalAs( UnmanagedType.I1 )]
|
||||||
private static extern bool _GetGlobalStat( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchStatName, ref double pData );
|
private static extern bool _GetGlobalStat( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchStatName, ref double pData );
|
||||||
|
|
||||||
@ -494,7 +494,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistory")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistoryInt64")]
|
||||||
private static extern int _GetGlobalStatHistory( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchStatName, [In,Out] long[] pData, uint cubData );
|
private static extern int _GetGlobalStatHistory( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchStatName, [In,Out] long[] pData, uint cubData );
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -505,7 +505,7 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
#region FunctionMeta
|
#region FunctionMeta
|
||||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistory")]
|
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamUserStats_GetGlobalStatHistoryDouble")]
|
||||||
private static extern int _GetGlobalStatHistory( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchStatName, [In,Out] double[] pData, uint cubData );
|
private static extern int _GetGlobalStatHistory( IntPtr self, [MarshalAs( UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof( Utf8StringToNative ) )] string pchStatName, [In,Out] double[] pData, uint cubData );
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -164,6 +164,12 @@ namespace Steamworks.Data
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
internal enum EFailureType : int
|
||||||
|
{
|
||||||
|
FlushedCallbackQueue = 0,
|
||||||
|
PipeFail = 1,
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
||||||
@ -1795,7 +1801,7 @@ namespace Steamworks.Data
|
|||||||
internal ulong LSearchID; // m_ullSearchID uint64
|
internal ulong LSearchID; // m_ullSearchID uint64
|
||||||
internal ulong SteamIDPlayerFound; // m_SteamIDPlayerFound CSteamID
|
internal ulong SteamIDPlayerFound; // m_SteamIDPlayerFound CSteamID
|
||||||
internal ulong SteamIDLobby; // m_SteamIDLobby CSteamID
|
internal ulong SteamIDLobby; // m_SteamIDLobby CSteamID
|
||||||
internal PlayerAcceptState_t PlayerAcceptState; // m_ePlayerAcceptState RequestPlayersForGameResultCallback_t_PlayerAcceptState_t
|
internal RequestPlayersForGameResultCallback_t.PlayerAcceptState_t PlayerAcceptState; // m_ePlayerAcceptState RequestPlayersForGameResultCallback_t::PlayerAcceptState_t
|
||||||
internal int PlayerIndex; // m_nPlayerIndex int32
|
internal int PlayerIndex; // m_nPlayerIndex int32
|
||||||
internal int TotalPlayersFound; // m_nTotalPlayersFound int32
|
internal int TotalPlayersFound; // m_nTotalPlayersFound int32
|
||||||
internal int TotalPlayersAcceptedGame; // m_nTotalPlayersAcceptedGame int32
|
internal int TotalPlayersAcceptedGame; // m_nTotalPlayersAcceptedGame int32
|
||||||
@ -1826,6 +1832,13 @@ namespace Steamworks.Data
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
internal enum PlayerAcceptState_t : int
|
||||||
|
{
|
||||||
|
Unknown = 0,
|
||||||
|
PlayerAccepted = 1,
|
||||||
|
PlayerDeclined = 2,
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
||||||
@ -2429,7 +2442,8 @@ namespace Steamworks.Data
|
|||||||
internal int TotalResultCount; // m_nTotalResultCount int32
|
internal int TotalResultCount; // m_nTotalResultCount int32
|
||||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
|
||||||
internal PublishedFileId[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
|
internal PublishedFileId[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
|
||||||
internal uint [50] GRTimeSubscribed; // m_rgRTimeSubscribed uint32 [50]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U4)]
|
||||||
|
internal uint[] GRTimeSubscribed; // m_rgRTimeSubscribed uint32 [50]
|
||||||
|
|
||||||
#region SteamCallback
|
#region SteamCallback
|
||||||
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageEnumerateUserSubscribedFilesResult_t) );
|
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageEnumerateUserSubscribedFilesResult_t) );
|
||||||
@ -2938,7 +2952,8 @@ namespace Steamworks.Data
|
|||||||
internal int TotalResultCount; // m_nTotalResultCount int32
|
internal int TotalResultCount; // m_nTotalResultCount int32
|
||||||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U8)]
|
||||||
internal PublishedFileId[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
|
internal PublishedFileId[] GPublishedFileId; // m_rgPublishedFileId PublishedFileId_t [50]
|
||||||
internal uint [50] GRTimeUpdated; // m_rgRTimeUpdated uint32 [50]
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50, ArraySubType = UnmanagedType.U4)]
|
||||||
|
internal uint[] GRTimeUpdated; // m_rgRTimeUpdated uint32 [50]
|
||||||
|
|
||||||
#region SteamCallback
|
#region SteamCallback
|
||||||
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageEnumeratePublishedFilesByUserActionResult_t) );
|
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(RemoteStorageEnumeratePublishedFilesByUserActionResult_t) );
|
||||||
@ -6276,6 +6291,73 @@ namespace Steamworks.Data
|
|||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
||||||
|
internal struct SteamNetConnectionStatusChangedCallback_t : ICallbackData
|
||||||
|
{
|
||||||
|
internal Connection Conn; // m_hConn HSteamNetConnection
|
||||||
|
internal ConnectionInfo Nfo; // m_info SteamNetConnectionInfo_t
|
||||||
|
internal ConnectionState OldState; // m_eOldState ESteamNetworkingConnectionState
|
||||||
|
|
||||||
|
#region SteamCallback
|
||||||
|
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamNetConnectionStatusChangedCallback_t) );
|
||||||
|
public int DataSize => _datasize;
|
||||||
|
public int CallbackId => 1221;
|
||||||
|
internal static SteamNetConnectionStatusChangedCallback_t Fill( IntPtr p ) => ((SteamNetConnectionStatusChangedCallback_t)Marshal.PtrToStructure( p, typeof(SteamNetConnectionStatusChangedCallback_t) ) );
|
||||||
|
|
||||||
|
static Action<SteamNetConnectionStatusChangedCallback_t> actionClient;
|
||||||
|
[MonoPInvokeCallback] static void OnClient( IntPtr thisptr, IntPtr pvParam ) => actionClient?.Invoke( Fill( pvParam ) );
|
||||||
|
static Action<SteamNetConnectionStatusChangedCallback_t> actionServer;
|
||||||
|
[MonoPInvokeCallback] static void OnServer( IntPtr thisptr, IntPtr pvParam ) => actionServer?.Invoke( Fill( pvParam ) );
|
||||||
|
public static void Install( Action<SteamNetConnectionStatusChangedCallback_t> action, bool server = false )
|
||||||
|
{
|
||||||
|
if ( server )
|
||||||
|
{
|
||||||
|
Event.Register( OnServer, _datasize, 1221, true );
|
||||||
|
actionServer = action;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Event.Register( OnClient, _datasize, 1221, false );
|
||||||
|
actionClient = action;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
||||||
|
internal struct SteamNetAuthenticationStatus_t : ICallbackData
|
||||||
|
{
|
||||||
|
internal SteamNetworkingAvailability Avail; // m_eAvail ESteamNetworkingAvailability
|
||||||
|
internal string DebugMsgUTF8() => System.Text.Encoding.UTF8.GetString( DebugMsg, 0, System.Array.IndexOf<byte>( DebugMsg, 0 ) );
|
||||||
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] // byte[] m_debugMsg
|
||||||
|
internal byte[] DebugMsg; // m_debugMsg char [256]
|
||||||
|
|
||||||
|
#region SteamCallback
|
||||||
|
public static int _datasize = System.Runtime.InteropServices.Marshal.SizeOf( typeof(SteamNetAuthenticationStatus_t) );
|
||||||
|
public int DataSize => _datasize;
|
||||||
|
public int CallbackId => 1222;
|
||||||
|
internal static SteamNetAuthenticationStatus_t Fill( IntPtr p ) => ((SteamNetAuthenticationStatus_t)Marshal.PtrToStructure( p, typeof(SteamNetAuthenticationStatus_t) ) );
|
||||||
|
|
||||||
|
static Action<SteamNetAuthenticationStatus_t> actionClient;
|
||||||
|
[MonoPInvokeCallback] static void OnClient( IntPtr thisptr, IntPtr pvParam ) => actionClient?.Invoke( Fill( pvParam ) );
|
||||||
|
static Action<SteamNetAuthenticationStatus_t> actionServer;
|
||||||
|
[MonoPInvokeCallback] static void OnServer( IntPtr thisptr, IntPtr pvParam ) => actionServer?.Invoke( Fill( pvParam ) );
|
||||||
|
public static void Install( Action<SteamNetAuthenticationStatus_t> action, bool server = false )
|
||||||
|
{
|
||||||
|
if ( server )
|
||||||
|
{
|
||||||
|
Event.Register( OnServer, _datasize, 1222, true );
|
||||||
|
actionServer = action;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Event.Register( OnClient, _datasize, 1222, false );
|
||||||
|
actionClient = action;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
||||||
internal struct SteamRelayNetworkStatus_t : ICallbackData
|
internal struct SteamRelayNetworkStatus_t : ICallbackData
|
||||||
{
|
{
|
||||||
|
@ -97,5 +97,8 @@ namespace Steamworks.Data
|
|||||||
internal static readonly uint k_unServerFlagLinux = 0x08;
|
internal static readonly uint k_unServerFlagLinux = 0x08;
|
||||||
internal static readonly uint k_unServerFlagPassworded = 0x10;
|
internal static readonly uint k_unServerFlagPassworded = 0x10;
|
||||||
internal static readonly uint k_unServerFlagPrivate = 0x20;
|
internal static readonly uint k_unServerFlagPrivate = 0x20;
|
||||||
|
internal static readonly uint k_cbSteamDatagramMaxSerializedTicket = 512;
|
||||||
|
internal static readonly uint k_cbMaxSteamDatagramGameCoordinatorServerLoginAppData = 2048;
|
||||||
|
internal static readonly uint k_cbMaxSteamDatagramGameCoordinatorServerLoginSerialized = 4096;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -551,6 +551,17 @@ namespace Steamworks
|
|||||||
ExitSoon_Night = 7,
|
ExitSoon_Night = 7,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// EDurationControlOnlineState
|
||||||
|
//
|
||||||
|
internal enum DurationControlOnlineState : int
|
||||||
|
{
|
||||||
|
Invalid = 0,
|
||||||
|
Offline = 1,
|
||||||
|
Online = 2,
|
||||||
|
OnlineHighPri = 3,
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// EGameSearchErrorCode_t
|
// EGameSearchErrorCode_t
|
||||||
//
|
//
|
||||||
@ -599,15 +610,6 @@ namespace Steamworks
|
|||||||
Bad = 2,
|
Bad = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// EFailureType
|
|
||||||
//
|
|
||||||
internal enum FailureType : int
|
|
||||||
{
|
|
||||||
FlushedCallbackQueue = 0,
|
|
||||||
PipeFail = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFriendRelationship
|
// EFriendRelationship
|
||||||
//
|
//
|
||||||
@ -837,16 +839,6 @@ namespace Steamworks
|
|||||||
IconURLLarge = 4,
|
IconURLLarge = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// PlayerAcceptState_t
|
|
||||||
//
|
|
||||||
internal enum PlayerAcceptState_t : int
|
|
||||||
{
|
|
||||||
Unknown = 0,
|
|
||||||
PlayerAccepted = 1,
|
|
||||||
PlayerDeclined = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// ERemoteStoragePlatform
|
// ERemoteStoragePlatform
|
||||||
//
|
//
|
||||||
@ -1900,76 +1892,6 @@ namespace Steamworks
|
|||||||
ReservedMax = 255,
|
ReservedMax = 255,
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// EHTMLMouseButton
|
|
||||||
//
|
|
||||||
internal enum HTMLMouseButton : int
|
|
||||||
{
|
|
||||||
Left = 0,
|
|
||||||
Right = 1,
|
|
||||||
Middle = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
// EMouseCursor
|
|
||||||
//
|
|
||||||
internal enum MouseCursor : int
|
|
||||||
{
|
|
||||||
user = 0,
|
|
||||||
none = 1,
|
|
||||||
arrow = 2,
|
|
||||||
ibeam = 3,
|
|
||||||
hourglass = 4,
|
|
||||||
waitarrow = 5,
|
|
||||||
crosshair = 6,
|
|
||||||
up = 7,
|
|
||||||
sizenw = 8,
|
|
||||||
sizese = 9,
|
|
||||||
sizene = 10,
|
|
||||||
sizesw = 11,
|
|
||||||
sizew = 12,
|
|
||||||
sizee = 13,
|
|
||||||
sizen = 14,
|
|
||||||
sizes = 15,
|
|
||||||
sizewe = 16,
|
|
||||||
sizens = 17,
|
|
||||||
sizeall = 18,
|
|
||||||
no = 19,
|
|
||||||
hand = 20,
|
|
||||||
blank = 21,
|
|
||||||
middle_pan = 22,
|
|
||||||
north_pan = 23,
|
|
||||||
north_east_pan = 24,
|
|
||||||
east_pan = 25,
|
|
||||||
south_east_pan = 26,
|
|
||||||
south_pan = 27,
|
|
||||||
south_west_pan = 28,
|
|
||||||
west_pan = 29,
|
|
||||||
north_west_pan = 30,
|
|
||||||
alias = 31,
|
|
||||||
cell = 32,
|
|
||||||
colresize = 33,
|
|
||||||
copycur = 34,
|
|
||||||
verticaltext = 35,
|
|
||||||
rowresize = 36,
|
|
||||||
zoomin = 37,
|
|
||||||
zoomout = 38,
|
|
||||||
help = 39,
|
|
||||||
custom = 40,
|
|
||||||
last = 41,
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
// EHTMLKeyModifiers
|
|
||||||
//
|
|
||||||
internal enum HTMLKeyModifiers : int
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
AltDown = 1,
|
|
||||||
CtrlDown = 2,
|
|
||||||
ShiftDown = 4,
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// ESteamItemFlags
|
// ESteamItemFlags
|
||||||
//
|
//
|
||||||
|
@ -195,4 +195,42 @@ namespace Steamworks.Data
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
||||||
|
internal struct SteamNetworkingConfigValue_t
|
||||||
|
{
|
||||||
|
internal SteamNetworkingConfigValue Value; // m_eValue ESteamNetworkingConfigValue
|
||||||
|
internal SteamNetworkingConfigDataType DataType; // m_eDataType ESteamNetworkingConfigDataType
|
||||||
|
internal long Nt64; // m_int64 int64_t
|
||||||
|
internal int Val_int32; // m_val_int32 int32_t
|
||||||
|
internal long Val_int64; // m_val_int64 int64_t
|
||||||
|
internal float Val_float; // m_val_float float
|
||||||
|
internal string Val_string; // m_val_string const char *
|
||||||
|
internal IntPtr Val_functionPtr; // m_val_functionPtr void *
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
||||||
|
internal struct SteamDatagramHostedAddress
|
||||||
|
{
|
||||||
|
internal int CbSize; // m_cbSize int
|
||||||
|
internal string DataUTF8() => System.Text.Encoding.UTF8.GetString( Data, 0, System.Array.IndexOf<byte>( Data, 0 ) );
|
||||||
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)] // byte[] m_data
|
||||||
|
internal byte[] Data; // m_data char [128]
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[StructLayout( LayoutKind.Sequential, Pack = Platform.StructPlatformPackSize )]
|
||||||
|
internal struct SteamDatagramGameCoordinatorServerLogin
|
||||||
|
{
|
||||||
|
internal NetIdentity Dentity; // m_identity SteamNetworkingIdentity
|
||||||
|
internal SteamDatagramHostedAddress Outing; // m_routing SteamDatagramHostedAddress
|
||||||
|
internal AppId AppID; // m_nAppID AppId_t
|
||||||
|
internal uint Time; // m_rtime RTime32
|
||||||
|
internal int CbAppData; // m_cbAppData int
|
||||||
|
internal string AppDataUTF8() => System.Text.Encoding.UTF8.GetString( AppData, 0, System.Array.IndexOf<byte>( AppData, 0 ) );
|
||||||
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2048)] // byte[] m_appData
|
||||||
|
internal byte[] AppData; // m_appData char [2048]
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user