mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Revert "RPCMode refactor, more sync modes"
This commit is contained in:
parent
d0b62ce155
commit
4c69a495c9
30 changed files with 333 additions and 319 deletions
|
@ -96,6 +96,14 @@ public:
|
|||
ADDR_TYPE_NIL = 9
|
||||
};
|
||||
|
||||
enum RPCMode {
|
||||
RPC_DISABLED,
|
||||
RPC_ENABLED,
|
||||
RPC_SYNC,
|
||||
RPC_SYNC_MASTER,
|
||||
RPC_SYNC_SLAVE
|
||||
};
|
||||
|
||||
struct StackDebug {
|
||||
|
||||
int line;
|
||||
|
@ -127,7 +135,7 @@ private:
|
|||
int _call_size;
|
||||
int _initial_line;
|
||||
bool _static;
|
||||
MultiplayerAPI::RPCMode rpc_mode;
|
||||
ScriptInstance::RPCMode rpc_mode;
|
||||
|
||||
GDScript *_script;
|
||||
|
||||
|
@ -222,7 +230,7 @@ public:
|
|||
|
||||
Variant call(GDScriptInstance *p_instance, const Variant **p_args, int p_argcount, Variant::CallError &r_err, CallState *p_state = NULL);
|
||||
|
||||
_FORCE_INLINE_ MultiplayerAPI::RPCMode get_rpc_mode() const { return rpc_mode; }
|
||||
_FORCE_INLINE_ ScriptInstance::RPCMode get_rpc_mode() const { return rpc_mode; }
|
||||
GDScriptFunction();
|
||||
~GDScriptFunction();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue