Skip to content
Jérôme Leclercq edited this page Dec 8, 2020 · 1 revision

API: packet.NewPacket

Description:

Instantiate a new packet, associated with a particular name (that will serve upon reception).

Prototype:

packet.NewPacket(name: string) -> packet: OutgoingNetworkPacket

Parameters:

  1. name: The packet name.

Returns:

  1. packet: An empty packet that can now be used to write data in it.

Clone this wiki locally