summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer
diff options
context:
space:
mode:
authorNinni Pipping <over999ships@gmail.com>2023-06-21 11:06:32 +0200
committerNinni Pipping <over999ships@gmail.com>2023-06-22 17:01:08 +0200
commit9159208ed1c850437946d4f93c407bb5d51f4258 (patch)
tree4dfeeee5790de8ba0298022f79b250a82dac34a8 /modules/multiplayer
parente74bf831c2d3ece79b849405f03999281f807648 (diff)
downloadredot-engine-9159208ed1c850437946d4f93c407bb5d51f4258.tar.gz
Ensure `RID`, `Callable`, and `Signal` are stored as strings
Prevents parser errors in `.tscn` and `.tres` files where the assignment would otherwise be empty.
Diffstat (limited to 'modules/multiplayer')
-rw-r--r--modules/multiplayer/doc_classes/MultiplayerSpawner.xml2
-rw-r--r--modules/multiplayer/doc_classes/SceneMultiplayer.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/multiplayer/doc_classes/MultiplayerSpawner.xml b/modules/multiplayer/doc_classes/MultiplayerSpawner.xml
index e6564a8aac..b2ac85ef30 100644
--- a/modules/multiplayer/doc_classes/MultiplayerSpawner.xml
+++ b/modules/multiplayer/doc_classes/MultiplayerSpawner.xml
@@ -47,7 +47,7 @@
</method>
</methods>
<members>
- <member name="spawn_function" type="Callable" setter="set_spawn_function" getter="get_spawn_function">
+ <member name="spawn_function" type="Callable" setter="set_spawn_function" getter="get_spawn_function" default="Callable()">
Method called on all peers when for every custom [method spawn] requested by the authority. Will receive the [code]data[/code] parameter, and should return a [Node] that is not in the scene tree.
[b]Note:[/b] The returned node should [b]not[/b] be added to the scene with [method Node.add_child]. This is done automatically.
</member>
diff --git a/modules/multiplayer/doc_classes/SceneMultiplayer.xml b/modules/multiplayer/doc_classes/SceneMultiplayer.xml
index 2df2d53b4d..224e481f19 100644
--- a/modules/multiplayer/doc_classes/SceneMultiplayer.xml
+++ b/modules/multiplayer/doc_classes/SceneMultiplayer.xml
@@ -64,7 +64,7 @@
If [code]true[/code], the MultiplayerAPI will allow encoding and decoding of object during RPCs.
[b]Warning:[/b] Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threat such as remote code execution.
</member>
- <member name="auth_callback" type="Callable" setter="set_auth_callback" getter="get_auth_callback">
+ <member name="auth_callback" type="Callable" setter="set_auth_callback" getter="get_auth_callback" default="Callable()">
The callback to execute when when receiving authentication data sent via [method send_auth]. If the [Callable] is empty (default), peers will be automatically accepted as soon as they connect.
</member>
<member name="auth_timeout" type="float" setter="set_auth_timeout" getter="get_auth_timeout" default="3.0">