diff options
author | reduz <reduzio@gmail.com> | 2021-05-03 18:00:44 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-05-03 19:21:37 -0300 |
commit | c76acf68900ad20f7043c1a151c750472da1465d (patch) | |
tree | 78d41cfe574b718f497ee0faf846e2af68cfb5bd /doc/classes | |
parent | f47c285f678345f5fde6937deb8bd740589beb83 (diff) |
Add RPC to Callable
-Up to each scripting language to implement this
-If not supported for the function, it will just error when you try to call
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Callable.xml | 16 |
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> |