mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
[Net] Move multiplayer to core subdir, split RPCManager.
Move multiplayer classes to "core/multiplayer" subdir. Move the RPCConfig and enums (TransferMode, RPCMode) to a separate file (multiplayer.h), and bind them to the global namespace. Move the RPC handling code to its own class (RPCManager). Renames "get_rpc_sender_id" to "get_remote_sender_id".
This commit is contained in:
parent
b0b30aaf41
commit
bf9aae09ba
57 changed files with 976 additions and 767 deletions
|
|
@ -49,7 +49,7 @@ class VisualScriptFunction : public VisualScriptNode {
|
|||
|
||||
bool stack_less;
|
||||
int stack_size;
|
||||
MultiplayerAPI::RPCMode rpc_mode;
|
||||
Multiplayer::RPCMode rpc_mode;
|
||||
bool sequenced;
|
||||
|
||||
protected:
|
||||
|
|
@ -96,8 +96,8 @@ public:
|
|||
void set_return_type(Variant::Type p_type);
|
||||
Variant::Type get_return_type() const;
|
||||
|
||||
void set_rpc_mode(MultiplayerAPI::RPCMode p_mode);
|
||||
MultiplayerAPI::RPCMode get_rpc_mode() const;
|
||||
void set_rpc_mode(Multiplayer::RPCMode p_mode);
|
||||
Multiplayer::RPCMode get_rpc_mode() const;
|
||||
|
||||
virtual VisualScriptNodeInstance *instantiate(VisualScriptInstance *p_instance) override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue