NetworkedMultiplayerCustom

Inherits: NetworkedMultiplayerPeer < PacketPeer < Reference < Object NetworkedMultiplayerPeer implementation that can be controlled from a script.

Description

NetworkedMultiplayerPeer implementation that can be used as a MultiplayerAPI.network_peer and controlled from a script. Its purpose is to allow adding a new backend for the high-Level multiplayer API without needing to use GDNative.

Methods

Signals

  • packet_generated ( int peer_id, PoolByteArray buffer, int transfer_mode ) MultiplayerAPI generates a packet. deliver_packet with the data when it’s received).

    Method Descriptions

  • deliver_packet ( PoolByteArray buffer, int from_peer_id ) MultiplayerAPI. packet_generated signal on the sending peer), passing it to this method will deliver it locally.

  • initialize ( int self_peer_id ) peer_id (must be between 1 and 2147483647).

  • set_connection_status ( ConnectionStatus connection_status ) ConnectionStatus.

  • set_max_packet_size ( int max_packet_size ) Set the max packet size that this peer can handle.