Skip to content

Commit

Permalink
add derives to TickPolicy and ServerEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
UkoeHB committed May 28, 2024
1 parent 6d7a82e commit d7df6f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 },
Expand Down

0 comments on commit d7df6f7

Please sign in to comment.