From 4c69a495c948b1698a1634b506bf660bd49cdd76 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 29 May 2018 11:47:52 +0200 Subject: Revert "RPCMode refactor, more sync modes" --- .../include/nativescript/godot_nativescript.h | 3 -- modules/gdnative/nativescript/nativescript.cpp | 38 +++++++---------- modules/gdnative/nativescript/nativescript.h | 4 +- .../pluginscript/pluginscript_instance.cpp | 4 +- .../gdnative/pluginscript/pluginscript_instance.h | 4 +- .../gdnative/pluginscript/pluginscript_script.cpp | 24 +++++------ .../gdnative/pluginscript/pluginscript_script.h | 8 ++-- modules/gdscript/gdscript.cpp | 13 +++--- modules/gdscript/gdscript.h | 6 +-- modules/gdscript/gdscript_function.cpp | 2 +- modules/gdscript/gdscript_function.h | 12 +++++- modules/gdscript/gdscript_parser.cpp | 49 ++++------------------ modules/gdscript/gdscript_parser.h | 8 ++-- modules/gdscript/gdscript_tokenizer.cpp | 9 ---- modules/gdscript/gdscript_tokenizer.h | 3 -- modules/mono/csharp_script.cpp | 32 ++++++-------- modules/mono/csharp_script.h | 6 +-- modules/mono/glue/cs_files/RPCAttributes.cs | 9 ---- modules/mono/mono_gd/gd_mono_utils.cpp | 6 --- modules/visual_script/visual_script.cpp | 10 ++--- modules/visual_script/visual_script.h | 4 +- modules/visual_script/visual_script_nodes.cpp | 8 ++-- modules/visual_script/visual_script_nodes.h | 6 +-- 23 files changed, 100 insertions(+), 168 deletions(-) (limited to 'modules') diff --git a/modules/gdnative/include/nativescript/godot_nativescript.h b/modules/gdnative/include/nativescript/godot_nativescript.h index f28ba352ab..cfbe16fa7d 100644 --- a/modules/gdnative/include/nativescript/godot_nativescript.h +++ b/modules/gdnative/include/nativescript/godot_nativescript.h @@ -43,9 +43,6 @@ 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 d6abbc1bcf..cf8977f3ea 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -747,7 +747,7 @@ Ref