mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Sync classref with current source
This commit is contained in:
@@ -19,6 +19,8 @@ High Level Multiplayer API.
|
||||
Properties
|
||||
----------
|
||||
|
||||
+-----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`allow_object_decoding<class_MultiplayerAPI_property_allow_object_decoding>` |
|
||||
+-----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+
|
||||
| :ref:`NetworkedMultiplayerPeer<class_NetworkedMultiplayerPeer>` | :ref:`network_peer<class_MultiplayerAPI_property_network_peer>` |
|
||||
+-----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+
|
||||
@@ -142,6 +144,20 @@ It is possible to override the MultiplayerAPI instance used by specific Nodes by
|
||||
Property Descriptions
|
||||
---------------------
|
||||
|
||||
.. _class_MultiplayerAPI_property_allow_object_decoding:
|
||||
|
||||
- :ref:`bool<class_bool>` **allow_object_decoding**
|
||||
|
||||
+----------+----------------------------------+
|
||||
| *Setter* | set_allow_object_decoding(value) |
|
||||
+----------+----------------------------------+
|
||||
| *Getter* | is_object_decoding_allowed() |
|
||||
+----------+----------------------------------+
|
||||
|
||||
If ``true`` (or if the :ref:`network_peer<class_MultiplayerAPI_property_network_peer>` :ref:`PacketPeer.allow_object_decoding<class_PacketPeer_property_allow_object_decoding>` the MultiplayerAPI will allow encoding and decoding of object during RPCs/RSETs.
|
||||
|
||||
**WARNING:** Deserialized object can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats (remote code execution).
|
||||
|
||||
.. _class_MultiplayerAPI_property_network_peer:
|
||||
|
||||
- :ref:`NetworkedMultiplayerPeer<class_NetworkedMultiplayerPeer>` **network_peer**
|
||||
|
||||
Reference in New Issue
Block a user