You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07: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:
@@ -32,7 +32,7 @@
|
||||
#define WEBSOCKET_MULTIPLAYER_PEER_H
|
||||
|
||||
#include "core/error/error_list.h"
|
||||
#include "core/io/multiplayer_peer.h"
|
||||
#include "core/multiplayer/multiplayer_peer.h"
|
||||
#include "core/templates/list.h"
|
||||
#include "websocket_peer.h"
|
||||
|
||||
@@ -80,8 +80,8 @@ public:
|
||||
/* MultiplayerPeer */
|
||||
void set_transfer_channel(int p_channel) override;
|
||||
int get_transfer_channel() const override;
|
||||
void set_transfer_mode(TransferMode p_mode) override;
|
||||
TransferMode get_transfer_mode() const override;
|
||||
void set_transfer_mode(Multiplayer::TransferMode p_mode) override;
|
||||
Multiplayer::TransferMode get_transfer_mode() const override;
|
||||
void set_target_peer(int p_target_peer) override;
|
||||
int get_packet_peer() const override;
|
||||
int get_unique_id() const override;
|
||||
|
||||
Reference in New Issue
Block a user