summaryrefslogtreecommitdiff
path: root/modules/enet/enet_multiplayer_peer.h
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2021-09-07 18:44:39 +0200
committerGitHub <noreply@github.com>2021-09-07 18:44:39 +0200
commitacc776f7b6ca43a6dde59f7355f52a11b9ac72f5 (patch)
tree140eef1d91760a0348d430f94b6bd21c7c1fc40d /modules/enet/enet_multiplayer_peer.h
parentb284cb908ab5ca51099cc1e1b75689cacccfa229 (diff)
parentbf9aae09ba5eccde7ec355dac96b6a2088fb1a3f (diff)
Merge pull request #52442 from Faless/mp/4.x_rpc_manager
[Net] Move multiplayer classes to own subfolder. Split RPC from MultiplayerAPI.
Diffstat (limited to 'modules/enet/enet_multiplayer_peer.h')
-rw-r--r--modules/enet/enet_multiplayer_peer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/enet/enet_multiplayer_peer.h b/modules/enet/enet_multiplayer_peer.h
index 78e280db7c..b5316b8292 100644
--- a/modules/enet/enet_multiplayer_peer.h
+++ b/modules/enet/enet_multiplayer_peer.h
@@ -32,7 +32,7 @@
#define NETWORKED_MULTIPLAYER_ENET_H
#include "core/crypto/crypto.h"
-#include "core/io/multiplayer_peer.h"
+#include "core/multiplayer/multiplayer_peer.h"
#include "enet_connection.h"
#include <enet/enet.h>
@@ -66,7 +66,7 @@ private:
int target_peer = 0;
int transfer_channel = 0;
- TransferMode transfer_mode = TRANSFER_MODE_RELIABLE;
+ Multiplayer::TransferMode transfer_mode = Multiplayer::TRANSFER_MODE_RELIABLE;
bool refuse_connections = false;
bool server_relay = true;
@@ -104,8 +104,8 @@ public:
virtual void set_transfer_channel(int p_channel) override;
virtual int get_transfer_channel() const override;
- virtual void set_transfer_mode(TransferMode p_mode) override;
- virtual TransferMode get_transfer_mode() const override;
+ virtual void set_transfer_mode(Multiplayer::TransferMode p_mode) override;
+ virtual Multiplayer::TransferMode get_transfer_mode() const override;
virtual void set_target_peer(int p_peer) override;
virtual int get_packet_peer() const override;