From b19c1a2e4f9ce5ac66daa55382322b62a2a12d1f Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 15 Nov 2022 10:24:20 +0100 Subject: [MP] New default multiplayer_peer acting as server. Adds a OfflineMultiplayerPeer class which behaves like a server with no connected peers. Use OfflineMultiplayerPeer as default for SceneMultiplayer. This means that the SceneTree will act as the multiplayer authority by default. Calls to is_server will return true, and calls to get_unique_id will return TARGET_PEER_SERVER. --- doc/classes/OfflineMultiplayerPeer.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/classes/OfflineMultiplayerPeer.xml (limited to 'doc') diff --git a/doc/classes/OfflineMultiplayerPeer.xml b/doc/classes/OfflineMultiplayerPeer.xml new file mode 100644 index 0000000000..5e15992d54 --- /dev/null +++ b/doc/classes/OfflineMultiplayerPeer.xml @@ -0,0 +1,12 @@ + + + + A [MultiplayerPeer] which is always connected and acts as a server. + + + This is the default [member MultiplayerAPI.multiplayer_peer] for the [member Node.multiplayer]. It mimics the behavior of a server with no peers connected. + This means that the [SceneTree] will act as the multiplayer authority by default. Calls to [method MultiplayerAPI.is_server] will return [code]true[/code], and calls to [method MultiplayerAPI.get_unique_id] will return [constant MultiplayerPeer.TARGET_PEER_SERVER]. + + + + -- cgit v1.2.3