From 33dda2e68a40888a7fd41e9a8d421873d9dc7fde Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 31 Oct 2022 14:18:22 +0100 Subject: [MP] Remove connection state signals from MultiplayerPeer. Now handled directly by the MultiplayerAPI implementation. --- doc/classes/MultiplayerPeer.xml | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) (limited to 'doc') diff --git a/doc/classes/MultiplayerPeer.xml b/doc/classes/MultiplayerPeer.xml index 6661fbfe0b..dd7dac3f23 100644 --- a/doc/classes/MultiplayerPeer.xml +++ b/doc/classes/MultiplayerPeer.xml @@ -1,11 +1,11 @@ - A high-level network interface to simplify multiplayer interactions. + Abstract class for specialized [PacketPeer]s used by the [MultiplayerAPI]. - Manages the connection to multiplayer peers. Assigns unique IDs to each client connected to the server. See also [MultiplayerAPI]. - [b]Note:[/b] The high-level multiplayer API protocol is an implementation detail and isn't meant to be used by non-Godot servers. It may change without notice. + Manages the connection with one or more remote peers acting as server or client and assigning unique IDs to each of them. See also [MultiplayerAPI]. + [b]Note:[/b] The [MultiplayerAPI] protocol is an implementation detail and isn't meant to be used by non-Godot servers. It may change without notice. [b]Note:[/b] When exporting to Android, make sure to enable the [code]INTERNET[/code] permission in the Android export preset before exporting the project or using one-click deploy. Otherwise, network communication of any kind will be blocked by Android. @@ -97,49 +97,34 @@ - - - Emitted when a connection attempt fails. - - - - - Emitted when a connection attempt succeeds. - - - Emitted by the server when a client connects. + Emitted when a remote peer connects. - Emitted by the server when a client disconnects. - - - - - Emitted by clients when the server disconnects. + Emitted when a remote peer has disconnected. - The ongoing connection disconnected. + The MultiplayerPeer is disconnected. - A connection attempt is ongoing. + The MultiplayerPeer is currently connecting to a server. - The connection attempt succeeded. + This MultiplayerPeer is connected. - Packets are sent to the server and then redistributed to other peers. + Packets are sent to all connected peers. - Packets are sent to the server alone. + Packets are sent to the remote peer acting as server. Packets are not acknowledged, no resend attempts are made for lost packets. Packets may arrive in any order. Potentially faster than [constant TRANSFER_MODE_UNRELIABLE_ORDERED]. Use for non-critical data, and always consider whether the order matters. -- cgit v1.2.3