Brand new networked multiplayer

This commit is contained in:
Juan Linietsky 2016-08-19 16:48:08 -03:00
parent 56fa741b7a
commit 1add52b55e
23 changed files with 1312 additions and 253 deletions

View file

@ -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();