mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
[Net] Add call_local argument to Node.rpc_config.
This commit is contained in:
@@ -587,8 +587,9 @@
|
||||
<return type="int" />
|
||||
<argument index="0" name="method" type="StringName" />
|
||||
<argument index="1" name="rpc_mode" type="int" enum="RPCMode" />
|
||||
<argument index="2" name="transfer_mode" type="int" enum="TransferMode" default="2" />
|
||||
<argument index="3" name="channel" type="int" default="0" />
|
||||
<argument index="2" name="call_local" type="bool" default="false" />
|
||||
<argument index="3" name="transfer_mode" type="int" enum="TransferMode" default="2" />
|
||||
<argument index="4" name="channel" type="int" default="0" />
|
||||
<description>
|
||||
Changes the RPC mode for the given [code]method[/code] to the given [code]rpc_mode[/code], optionally specifying the [code]transfer_mode[/code] and [code]channel[/code] (on supported peers). See [enum RPCMode] and [enum TransferMode]. An alternative is annotating methods and properties with the corresponding annotation ([code]@rpc(any)[/code], [code]@rpc(auth)[/code]). By default, methods are not exposed to networking (and RPCs).
|
||||
</description>
|
||||
|
||||
Reference in New Issue
Block a user