OfflineMultiplayerPeer
继承: MultiplayerPeer < PacketPeer < RefCounted < Object
始终连接并用作服务器的 MultiplayerPeer。
描述
这是 Node.multiplayer 的默认 MultiplayerAPI.multiplayer_peer。会模仿未连接任何对等体的服务器的行为。
这意味着 SceneTree 会默认作为多人游戏控制方。调用 MultiplayerAPI.is_server 会返回 true
,调用 MultiplayerAPI.get_unique_id 会返回 MultiplayerPeer.TARGET_PEER_SERVER。
© 版权所有 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision b1c660f7
.
Built with Sphinx using a theme provided by Read the Docs.