Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions.

MultiplayerMatchExtension🔗

Inherits: MultiplayerAPIExtension

There is currently no description for this class. Please help us by contributing one !

Propiedades🔗

SceneMultiplayer

_multiplayer

<unknown>

int

max_peers

32

Métodos🔗

void

_init()

Error

_poll()

Error

_rpc(peer: int, object: Object, method: StringName, args: Array)

void

_set_multiplayer_peer(p_peer: MultiplayerPeer)

MultiplayerPeer

_get_multiplayer_peer()

int

_get_unique_id()

int

_get_remote_sender_id()

PackedInt32Array

_get_peer_ids()

Error

serve(port: int = 9000)

void

join(host: String = "localhost", port: int = 9000)

void

_on_peer_connected(peer_id: int)

void

_on_peer_disconnected(peer_id: int)


Signals🔗

scene_changed() 🔗

There is currently no description for this signal. Please help us by contributing one!


Property Descriptions🔗

SceneMultiplayer _multiplayer = <unknown> 🔗

There is currently no description for this property. Please help us by contributing one!


int max_peers = 32 🔗

The maximum number of concurrent connections to accept


Method Descriptions🔗

void _init() 🔗

There is currently no description for this method. Please help us by contributing one!


Error _poll() 🔗

There is currently no description for this method. Please help us by contributing one!


Error _rpc(peer: int, object: Object, method: StringName, args: Array) 🔗

There is currently no description for this method. Please help us by contributing one!


void _set_multiplayer_peer(p_peer: MultiplayerPeer) 🔗

There is currently no description for this method. Please help us by contributing one!


MultiplayerPeer _get_multiplayer_peer() 🔗

There is currently no description for this method. Please help us by contributing one!


int _get_unique_id() 🔗

There is currently no description for this method. Please help us by contributing one!


int _get_remote_sender_id() 🔗

There is currently no description for this method. Please help us by contributing one!


PackedInt32Array _get_peer_ids() 🔗

There is currently no description for this method. Please help us by contributing one!


Error serve(port: int = 9000) 🔗

Creates a server peer and listens for connections on all intefaces for specifed port


void join(host: String = "localhost", port: int = 9000) 🔗

Creates a client peer and connects to specified host and port


void _on_peer_connected(peer_id: int) 🔗

Emitted when a multiplayer peer successfully connects to a server. Only emitted on the server.


void _on_peer_disconnected(peer_id: int) 🔗

There is currently no description for this method. Please help us by contributing one!