mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 22:58:01 +03:00
Manually create SteamNet delegates
This commit is contained in:
parent
699b7c0850
commit
73b5c9ceb6
@ -257,7 +257,7 @@ namespace Steamworks
|
||||
var returnValue = _SetConnectionConfigValueFloat( Self, hConn, eValue, val );
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
|
||||
#region FunctionMeta
|
||||
[DllImport( Platform.LibraryName, EntryPoint = "SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueString", CallingConvention = Platform.CC)]
|
||||
[return: MarshalAs( UnmanagedType.I1 )]
|
||||
|
25
Facepunch.Steamworks/Networking/Delegates.cs
Normal file
25
Facepunch.Steamworks/Networking/Delegates.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Steamworks.Data;
|
||||
|
||||
namespace Steamworks
|
||||
{
|
||||
[UnmanagedFunctionPointer( Platform.CC )]
|
||||
internal delegate void NetDebugFunc( [In] NetDebugOutput nType, [In] IntPtr pszMsg );
|
||||
|
||||
[UnmanagedFunctionPointer( Platform.CC )]
|
||||
internal unsafe delegate void FnSteamNetConnectionStatusChanged( ref SteamNetConnectionStatusChangedCallback_t arg );
|
||||
|
||||
[UnmanagedFunctionPointer( Platform.CC )]
|
||||
internal delegate void FnSteamNetAuthenticationStatusChanged( ref SteamNetAuthenticationStatus_t arg );
|
||||
|
||||
[UnmanagedFunctionPointer( Platform.CC )]
|
||||
internal delegate void FnSteamRelayNetworkStatusChanged( ref SteamRelayNetworkStatus_t arg );
|
||||
|
||||
[UnmanagedFunctionPointer( Platform.CC )]
|
||||
internal delegate void FnSteamNetworkingMessagesSessionRequest( ref SteamNetworkingMessagesSessionRequest_t arg );
|
||||
|
||||
[UnmanagedFunctionPointer( Platform.CC )]
|
||||
internal delegate void FnSteamNetworkingMessagesSessionFailed( ref SteamNetworkingMessagesSessionFailed_t arg );
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
using Steamworks.Data;
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Steamworks.Data
|
||||
{
|
||||
[UnmanagedFunctionPointer( Platform.CC )]
|
||||
delegate void NetDebugFunc( [In] NetDebugOutput nType, [In] IntPtr pszMsg );
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user