From c531287328f8fd1c2208eba41115c454a4c70774 Mon Sep 17 00:00:00 2001 From: mhilbrunner Date: Sun, 8 Apr 2018 22:45:14 +0200 Subject: NetworkedMultiplayerEnet: Add disconnecting/kicking peers --- modules/enet/networked_multiplayer_enet.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/enet/networked_multiplayer_enet.h') diff --git a/modules/enet/networked_multiplayer_enet.h b/modules/enet/networked_multiplayer_enet.h index 440e9b5400..f93f24fd49 100644 --- a/modules/enet/networked_multiplayer_enet.h +++ b/modules/enet/networked_multiplayer_enet.h @@ -120,6 +120,8 @@ public: void close_connection(); + void disconnect_peer(int p_peer, bool now = false); + virtual void poll(); virtual bool is_server() const; -- cgit v1.2.3