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 /core/io/multiplayer_api.h | |
| parent | a71b0830ab79709ec7f6daa1c9a03c6de6e9f83b (diff) | |
| download | godot-9de4ffde616266f5bcc2164590f36ef1143bc271.tar.gz godot-9de4ffde616266f5bcc2164590f36ef1143bc271.tar.zst godot-9de4ffde616266f5bcc2164590f36ef1143bc271.zip | |
Diffstat (limited to 'core/io/multiplayer_api.h')
| -rw-r--r-- | core/io/multiplayer_api.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/io/multiplayer_api.h b/core/io/multiplayer_api.h index 64f59d32d..f9284a0bd 100644 --- a/core/io/multiplayer_api.h +++ b/core/io/multiplayer_api.h @@ -87,6 +87,15 @@ public: NETWORK_COMMAND_RAW, }; + enum RPCMode { + + RPC_MODE_DISABLED, // No rpc for this method, calls to this will be blocked (default) + RPC_MODE_REMOTE, // Using rpc() on it will call method / set property in all remote peers + RPC_MODE_SYNC, // Using rpc() on it will call method / set property in all remote peers and locally + RPC_MODE_MASTER, // Using rpc() on it will call method on wherever the master is, be it local or remote + RPC_MODE_SLAVE, // Using rpc() on it will call method for all slaves + }; + void poll(); void clear(); void set_root_node(Node *p_node); @@ -117,4 +126,6 @@ public: ~MultiplayerAPI(); }; +VARIANT_ENUM_CAST(MultiplayerAPI::RPCMode); + #endif // MULTIPLAYER_PROTOCOL_H |
