mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Net] Modularize multiplayer, expose MultiplayerAPI to extensions.
- RPC configurations are now dictionaries. - Script.get_rpc_methods renamed to Script.get_rpc_config. - Node.rpc[_id] and Callable.rpc now return an Error. - Refactor MultiplayerAPI to allow extension. - New MultiplayerAPI.rpc method with Array argument (for scripts). - Move the default MultiplayerAPI implementation to a module.
This commit is contained in:
parent
c3dc887c41
commit
ca7d572908
80 changed files with 1819 additions and 1388 deletions
|
@ -477,7 +477,7 @@ private:
|
|||
|
||||
int _initial_line = 0;
|
||||
bool _static = false;
|
||||
Multiplayer::RPCConfig rpc_config;
|
||||
Variant rpc_config;
|
||||
|
||||
GDScript *_script = nullptr;
|
||||
|
||||
|
@ -599,7 +599,7 @@ public:
|
|||
void disassemble(const Vector<String> &p_code_lines) const;
|
||||
#endif
|
||||
|
||||
_FORCE_INLINE_ Multiplayer::RPCConfig get_rpc_config() const { return rpc_config; }
|
||||
_FORCE_INLINE_ const Variant get_rpc_config() const { return rpc_config; }
|
||||
GDScriptFunction();
|
||||
~GDScriptFunction();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue