Skip to main content

Алиасы

  • raknet.add_receive_hook

Аргументы

(packet: RakNetPacket) -> ()
обязательно
Function called with each observed incoming RakNetPacket.

Возвраты

function
The same callback function that was passed in.

Типы

RakNetPacket

Live packet object passed to RakNet hooks and packet signal callbacks. It is only valid during the callback that receives it.

Пример

Observe incoming packets with a callback and remove the same callback later.