summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-04 14:07:21 +0200
committerGitHub <noreply@github.com>2021-05-04 14:07:21 +0200
commitea9cab3e76b7cb8754b6d64102101f79a253ed8d (patch)
tree21039d2b6cee343d2d16eef6a62009a4093eacf8 /doc/classes
parent4e7ca279fca892c1ceef875ef728be748ab1179b (diff)
parentc76acf68900ad20f7043c1a151c750472da1465d (diff)
Merge pull request #48430 from reduz/add-rpc-to-callable
Add RPC support to Callable
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Callable.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/classes/Callable.xml b/doc/classes/Callable.xml
index 0cfbd0270c..cbab1a8f50 100644
--- a/doc/classes/Callable.xml
+++ b/doc/classes/Callable.xml
@@ -151,6 +151,22 @@
Returns [code]true[/code] if both [Callable]s invoke the same custom target.
</description>
</method>
+ <method name="rpc" qualifiers="vararg const">
+ <return type="void">
+ </return>
+ <description>
+ Perform an RPC (Remote Procedure Call). This is used for multiplayer and is normally not available unless the function being called has been marked as [i]RPC[/i]. Calling it on unsupported functions will result in an error.
+ </description>
+ </method>
+ <method name="rpc_id" qualifiers="vararg const">
+ <return type="void">
+ </return>
+ <argument index="0" name="peer_id" type="int">
+ </argument>
+ <description>
+ Perform an RPC (Remote Procedure Call) on a specific peer ID (see multiplayer documentation for reference). This is used for multiplayer and is normally not available unless the function being called has been marked as [i]RPC[/i]. Calling it on unsupported functions will result in an error.
+ </description>
+ </method>
<method name="unbind" qualifiers="const">
<return type="Callable">
</return>