mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-16 00:28:22 +03:00
Add IntPtr version of HandleIncomingPacket
This commit is contained in:
parent
253c206f71
commit
adf39138a4
@ -444,8 +444,16 @@ namespace Steamworks
|
|||||||
{
|
{
|
||||||
fixed ( byte* ptr = data )
|
fixed ( byte* ptr = data )
|
||||||
{
|
{
|
||||||
Internal.HandleIncomingPacket( (IntPtr)ptr, size, address, port );
|
HandleIncomingPacket( (IntPtr)ptr, size, address, port );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// We have received a server query on our game port. Pass it to Steam to handle.
|
||||||
|
/// </summary>
|
||||||
|
public static unsafe void HandleIncomingPacket( IntPtr ptr, int size, uint address, ushort port )
|
||||||
|
{
|
||||||
|
Internal.HandleIncomingPacket( ptr, size, address, port );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user