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 | |
| parent | 4524153b6ece766e496d7b9c1a4f9216ea9e34cc (diff) | |
| download | godot-8e35d937a96399c7fc9dcc3b9cd7344a6a38cfd8.tar.gz godot-8e35d937a96399c7fc9dcc3b9cd7344a6a38cfd8.tar.zst godot-8e35d937a96399c7fc9dcc3b9cd7344a6a38cfd8.zip | |
New sync keywords in GDScript, NativeScript, Mono
Diffstat (limited to 'modules/gdnative')
| -rw-r--r-- | modules/gdnative/include/nativescript/godot_nativescript.h | 3 | ||||
| -rw-r--r-- | modules/gdnative/nativescript/nativescript.cpp | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/gdnative/include/nativescript/godot_nativescript.h b/modules/gdnative/include/nativescript/godot_nativescript.h index cfbe16fa7..f28ba352a 100644 --- a/modules/gdnative/include/nativescript/godot_nativescript.h +++ b/modules/gdnative/include/nativescript/godot_nativescript.h @@ -43,6 +43,9 @@ typedef enum { GODOT_METHOD_RPC_MODE_SYNC, GODOT_METHOD_RPC_MODE_MASTER, GODOT_METHOD_RPC_MODE_SLAVE, + GODOT_METHOD_RPC_MODE_REMOTESYNC, + GODOT_METHOD_RPC_MODE_MASTERSYNC, + GODOT_METHOD_RPC_MODE_SLAVESYNC, } godot_method_rpc_mode; typedef enum { 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; } |
