diff options
| author | Fabio Alessandrelli | 2018-05-26 10:30:36 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli | 2018-05-29 20:26:41 +0200 |
| commit | 8e35d937a96399c7fc9dcc3b9cd7344a6a38cfd8 (patch) | |
| tree | 0668016861a01e0858cb96364e97a2fad2f7efb1 /modules/gdnative/nativescript/nativescript.cpp | |
| parent | 4524153b6ece766e496d7b9c1a4f9216ea9e34cc (diff) | |
| download | godot-8e35d937a96399c7fc9dcc3b9cd7344a6a38cfd8.tar.gz godot-8e35d937a96399c7fc9dcc3b9cd7344a6a38cfd8.tar.zst godot-8e35d937a96399c7fc9dcc3b9cd7344a6a38cfd8.zip | |
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.cpp')
| -rw-r--r-- | modules/gdnative/nativescript/nativescript.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp index 3ae3a79bf..d6abbc1bc 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -766,6 +766,12 @@ MultiplayerAPI::RPCMode NativeScriptInstance::get_rpc_mode(const StringName &p_m return MultiplayerAPI::RPC_MODE_MASTER; case GODOT_METHOD_RPC_MODE_SLAVE: return MultiplayerAPI::RPC_MODE_SLAVE; + case GODOT_METHOD_RPC_MODE_REMOTESYNC: + return MultiplayerAPI::RPC_MODE_REMOTESYNC; + case GODOT_METHOD_RPC_MODE_MASTERSYNC: + return MultiplayerAPI::RPC_MODE_MASTERSYNC; + case GODOT_METHOD_RPC_MODE_SLAVESYNC: + return MultiplayerAPI::RPC_MODE_SLAVESYNC; default: return MultiplayerAPI::RPC_MODE_DISABLED; } |
