Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove derive-more dependency #69

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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