diff options
author | mhilbrunner <m.hilbrunner@gmail.com> | 2018-04-08 22:45:14 +0200 |
---|---|---|
committer | mhilbrunner <m.hilbrunner@gmail.com> | 2018-04-10 19:00:05 +0200 |
commit | c531287328f8fd1c2208eba41115c454a4c70774 (patch) | |
tree | 4305b386a578139c7d3eb520a49b4c5d2fcf683b /modules/enet/networked_multiplayer_enet.h | |
parent | 9acc199bf87db512ea330d62dabacda4f31de6ff (diff) |
NetworkedMultiplayerEnet: Add disconnecting/kicking peers
Diffstat (limited to 'modules/enet/networked_multiplayer_enet.h')
-rw-r--r-- | modules/enet/networked_multiplayer_enet.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |