diff --git a/CHANGELOG.md b/CHANGELOG.md index a59f63da..f959b5dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Added `Debug`/`Clone` derives to `ServerEvent`. +- Added `Debug`/`Copy`/`Clone` derives to `TickPolicy`. + ## [0.26.1] - 2024-05-27 ### Fixed diff --git a/src/server.rs b/src/server.rs index 409481a3..297c952e 100644 --- a/src/server.rs +++ b/src/server.rs @@ -572,6 +572,7 @@ pub enum ServerSet { /// /// Note that component updates are replicated over the unreliable channel, so if a component update packet is lost /// then component updates won't be resent until the server's replication system runs again. +#[derive(Debug, Copy, Clone)] pub enum TickPolicy { /// The replicon tick is incremented at most max ticks per second. In practice the tick rate may be lower if the /// app's update cycle duration is too long. @@ -600,7 +601,7 @@ pub enum VisibilityPolicy { /// Connection and disconnection events on the server. /// /// The messaging backend is responsible for emitting these in [`ServerSet::SendEvents`]. -#[derive(Event)] +#[derive(Event, Debug, Clone)] pub enum ServerEvent { ClientConnected { client_id: ClientId }, ClientDisconnected { client_id: ClientId, reason: String },