diff options
| author | Juan Linietsky | 2016-08-19 16:48:08 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-08-19 16:48:41 -0300 |
| commit | 1add52b55e038a4fa789c64f3919f7fcab808e91 (patch) | |
| tree | dd7878449dd1d2301684a5e5aa34b8466744b168 /modules/gdscript/gd_parser.h | |
| parent | 56fa741b7a729bd5a00cff17e4382af547de92ad (diff) | |
| download | godot-1add52b55e038a4fa789c64f3919f7fcab808e91.tar.gz godot-1add52b55e038a4fa789c64f3919f7fcab808e91.tar.zst godot-1add52b55e038a4fa789c64f3919f7fcab808e91.zip | |
Diffstat (limited to 'modules/gdscript/gd_parser.h')
| -rw-r--r-- | modules/gdscript/gd_parser.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/gdscript/gd_parser.h b/modules/gdscript/gd_parser.h index 2d6b52c47..9e6f6e676 100644 --- a/modules/gdscript/gd_parser.h +++ b/modules/gdscript/gd_parser.h @@ -33,6 +33,7 @@ #include "gd_functions.h" #include "map.h" #include "object.h" +#include "script_language.h" class GDParser { public: @@ -88,6 +89,7 @@ public: StringName getter; int line; Node *expression; + ScriptInstance::RPCMode rpc_mode; }; struct Constant { StringName identifier; @@ -119,12 +121,13 @@ public: struct FunctionNode : public Node { bool _static; + ScriptInstance::RPCMode rpc_mode; StringName name; Vector<StringName> arguments; Vector<Node*> default_values; BlockNode *body; - FunctionNode() { type=TYPE_FUNCTION; _static=false; } + FunctionNode() { type=TYPE_FUNCTION; _static=false; rpc_mode=ScriptInstance::RPC_MODE_DISABLED; } }; @@ -429,6 +432,9 @@ private: PropertyInfo current_export; + ScriptInstance::RPCMode rpc_mode; + + void _set_error(const String& p_error, int p_line=-1, int p_column=-1); bool _recover_from_completion(); |
