diff options
| author | Fabio Alessandrelli | 2018-05-13 07:07:56 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli | 2018-05-26 10:43:43 +0200 |
| commit | 9de4ffde616266f5bcc2164590f36ef1143bc271 (patch) | |
| tree | 669a745bd08e412bc72ec903cfef74c349715bca /doc/classes/MultiplayerAPI.xml | |
| parent | a71b0830ab79709ec7f6daa1c9a03c6de6e9f83b (diff) | |
| download | godot-9de4ffde616266f5bcc2164590f36ef1143bc271.tar.gz godot-9de4ffde616266f5bcc2164590f36ef1143bc271.tar.zst godot-9de4ffde616266f5bcc2164590f36ef1143bc271.zip | |
Refactor RPCMode enum and checks
Diffstat (limited to '')
| -rw-r--r-- | doc/classes/MultiplayerAPI.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/classes/MultiplayerAPI.xml b/doc/classes/MultiplayerAPI.xml index 7a7036c85..21a13c15d 100644 --- a/doc/classes/MultiplayerAPI.xml +++ b/doc/classes/MultiplayerAPI.xml @@ -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> |
