From 6ad3e7d23f7c759eb9658a2d68aa0b70cec86e2a Mon Sep 17 00:00:00 2001 From: poffo Date: Fri, 18 Nov 2022 19:48:36 -0300 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 22 +++++++++++++++++++++- renet/src/server.rs | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91b30f8f..d73b3eb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,27 @@ ## Unreleased ### Added ⭐ -* Added function `client_addr`, `user_data`, `is_client_connected` for `RenetServer`, some utilities from `NetcodeServer`. +* Added function `client_addr`, `user_data`, `is_client_connected`, `max_clients`, `connected_clients` for `RenetServer`, some utilities from `NetcodeServer`. [(commit)](https://github.com/lucaspoffo/renet/commit/576962e53a2e2b74f8f3c8355ae2abf706826f73) [(commit)](https://github.com/lucaspoffo/renet/commit/dff1fc5785ac2b82309b92477c90a250feb3af55) +* Renetcode/Renet: make generate_random_bytes public, this can be used to generate a random private key. [(commit)](https://github.com/lucaspoffo/renet/commit/f8509f11017e2d234c8059cc181f9644468ea87f) +* Rechannel: add `DefaultChannel` enum, usefull when using the default channel configuration. [(commit)](https://github.com/lucaspoffo/renet/commit/58311b4e7293555bd50e0c1d3cd325f7aa26d068) +* BevyRenet: add configurable event clearing. [(PR)](https://github.com/lucaspoffo/renet/pull/34) +* Rechannel: add configuration for unordered reliable channel. [(commit)](https://github.com/lucaspoffo/renet/commit/6f6ddf592650c124daca66cebf394bc79a0bbebc) +* Rechannel: add configuration for sequenced unreliable channel. [(commit)](https://github.com/lucaspoffo/renet/commit/a415a5d542aabc2c09cb5e80c30738c787e6d672) +* Renetcode: added logging. [(commit)](https://github.com/lucaspoffo/renet/commit/c963b65b66325c536d115faab31638f3ad2b5e48) [(commit)](https://github.com/lucaspoffo/renet/commit/2e41366cc5daa98edc07c7980fbb8199d0a555db) +* BevyRenet: updated bevy to version 0.9; [(PR)](https://github.com/lucaspoffo/renet/pull/55) + +### Changed 🛠️ +* Renetcode: remove `client_id` argument when creating an RenetClient. [(commit)](https://github.com/lucaspoffo/renet/commit/b2affb5d5659f4744faf8802c0718cc38c53f011) +* Rechannel: rename block channel to chunk channel, this makes clear what the channel does: the message is sliced in multiple chunks so it can be sent in multiple frames. Also, it is not confused with "blocking" thread/logic. + + +### Fixed 🐛 +* Rechannel: when sending an empty message, this now gives an error. [(commit)](https://github.com/lucaspoffo/renet/commit/210c752c30d059408aa5765bb91749cbeae27ced) +* Rechannel: ignore already received block messages. [(commit)](https://github.com/lucaspoffo/renet/commit/6c15cf3db5b704fdb1a88cb250aecab6971b4d0a) + +### Contributors 🙏 +* [Aceeri](https://github.com/Aceeri) +* [Alainx277](https://github.com/Alainx277) ## 0.0.9 - 2022-07-25 ### Added ⭐ diff --git a/renet/src/server.rs b/renet/src/server.rs index 46f3dc19..1336c355 100644 --- a/renet/src/server.rs +++ b/renet/src/server.rs @@ -318,7 +318,7 @@ impl RenetServer { self.netcode_server.max_clients() } - /// Returns the maximum number of clients that can be connected. + /// Returns the current number of clients connected. pub fn connected_clients(&self) -> usize { self.netcode_server.connected_clients() }