Skip to content

Commit

Permalink
Remove derive-more dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Oct 2, 2023
1 parent 298d5c7 commit 6692c48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ bevy = { version = "0.11", default-features = false, features = ["bevy_scene"] }
bincode = "1.3"
serde = "1.0"
strum = { version = "0.25", features = ["derive"] }
derive_more = { version = "0.99", default-features = false, features = [
"constructor",
] }

[dev-dependencies]
serde_test = "1.0"
Expand Down
6 changes: 4 additions & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use bevy_renet::{
RenetServerPlugin,
};
use bincode::{DefaultOptions, Options};
use derive_more::Constructor;

use crate::replicon_core::{
replication_rules::{ReplicationId, ReplicationInfo, ReplicationRules},
Expand All @@ -32,7 +31,6 @@ use removal_tracker::{RemovalTracker, RemovalTrackerPlugin};

pub const SERVER_ID: u64 = 0;

#[derive(Constructor)]
pub struct ServerPlugin {
tick_policy: TickPolicy,
}
Expand Down Expand Up @@ -87,6 +85,10 @@ impl Plugin for ServerPlugin {
}

impl ServerPlugin {
pub fn new(tick_policy: TickPolicy) -> Self {
Self { tick_policy }
}

fn acks_receiving_system(
mut server_ticks: ResMut<ServerTicks>,
mut server: ResMut<RenetServer>,
Expand Down

0 comments on commit 6692c48

Please sign in to comment.