mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Refactor RPCMode enum and checks
This commit is contained in:
@@ -136,5 +136,20 @@
|
||||
</signal>
|
||||
</signals>
|
||||
<constants>
|
||||
<constant name="RPC_MODE_DISABLED" value="0" enum="RPCMode">
|
||||
Used with [method Node.rpc_config] or [method Node.rset_config] to disable a method or property for all RPC calls, making it unavailable. Default for all methods.
|
||||
</constant>
|
||||
<constant name="RPC_MODE_REMOTE" value="1" enum="RPCMode">
|
||||
Used with [method Node.rpc_config] or [method Node.rset_config] to set a method to be called or a property to be changed only on the remote end, not locally. Analogous to the [code]remote[/code] keyword.
|
||||
</constant>
|
||||
<constant name="RPC_MODE_SYNC" value="2" enum="RPCMode">
|
||||
Used with [method Node.rpc_config] or [method Node.rset_config] to set a method to be called or a property to be changed both on the remote end and locally. Analogous to the [code]sync[/code] keyword.
|
||||
</constant>
|
||||
<constant name="RPC_MODE_MASTER" value="3" enum="RPCMode">
|
||||
Used with [method Node.rpc_config] or [method Node.rset_config] to set a method to be called or a property to be changed only on the network master for this node. Analogous to the [code]master[/code] keyword. See [method Node.set_network_master].
|
||||
</constant>
|
||||
<constant name="RPC_MODE_SLAVE" value="4" enum="RPCMode">
|
||||
Used with [method Node.rpc_config] or [method Node.rset_config] to set a method to be called or a property to be changed only on slaves for this node. Analogous to the [code]slave[/code] keyword. See [method Node.set_network_master].
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
|
||||
Reference in New Issue
Block a user