Delegate SceneMultiplayer.PeerPacketEventHandler
- Namespace
- Godot
- Assembly
- GodotSharp.dll
Represents the method that handles the PeerPacket event of a SceneMultiplayer class.
public delegate void SceneMultiplayer.PeerPacketEventHandler(long id, byte[] packet)
Parameters
id
long- Represents the method that handles the event of a class.
packet
byte[]- Represents the method that handles the event of a class.
Constructors
PeerPacketEventHandler(object, IntPtr)
public PeerPacketEventHandler(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(long, byte[], AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(long id, byte[] packet, AsyncCallback callback, object @object)
Parameters
id
longpacket
byte[]callback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Invoke(long, byte[])
public virtual void Invoke(long id, byte[] packet)