diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-20 15:37:26 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-20 15:37:26 +0100 |
commit | 9dc2739c1f361225152ccdcb8dc3f4c7578e7429 (patch) | |
tree | 05d0c05913c1a1063f83044c37eccf4c943f19de /doc | |
parent | f9c042102b61b0d374ef088a12a89dbb23b0eede (diff) | |
parent | b19c1a2e4f9ce5ac66daa55382322b62a2a12d1f (diff) |
Merge pull request #68689 from Faless/mp/4.x_offline_is_server
[MP] New default multiplayer_peer acting as server.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/OfflineMultiplayerPeer.xml | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<class name="OfflineMultiplayerPeer" inherits="MultiplayerPeer" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> + <brief_description> + A [MultiplayerPeer] which is always connected and acts as a server. + </brief_description> + <description> + 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]. + </description> + <tutorials> + </tutorials> +</class> |