Skip to content

Commit

Permalink
Derive Clone, Copy for Replication
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Sep 6, 2023
1 parent 5155f96 commit ebbc0fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Derive `Clone, Copy` for `Replication`.
- Make `ServerPlugin` fields private and add `ServerPlugin::new`.
- Make `AckedTicks` public.
- Make `NetworkEntityMap` public.
Expand Down
2 changes: 1 addition & 1 deletion src/replication_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ impl FromWorld for ReplicationRules {
}

/// Marks entity for replication.
#[derive(Component, Default, Reflect)]
#[derive(Component, Default, Reflect, Clone, Copy)]
#[reflect(Component)]
pub struct Replication;

0 comments on commit ebbc0fc

Please sign in to comment.