mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #99752 from Faless/mp/fix_offlfine_mp_docs
[MP] Move OfflineMultiplayerPeer docs to the module
This commit is contained in:
commit
ab54ba92a4
2 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ def get_doc_classes():
|
|||
"SceneMultiplayer",
|
||||
"MultiplayerSpawner",
|
||||
"MultiplayerSynchronizer",
|
||||
"OfflineMultiplayerPeer",
|
||||
]
|
||||
|
||||
|
||||
|
|
12
modules/multiplayer/doc_classes/OfflineMultiplayerPeer.xml
Normal file
12
modules/multiplayer/doc_classes/OfflineMultiplayerPeer.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="OfflineMultiplayerPeer" inherits="MultiplayerPeer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/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>
|
Loading…
Add table
Add a link
Reference in a new issue