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

Upgrade to replicon 0.16 #1

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Conversation

xentripetal
Copy link
Contributor

  • Upgrades to bevy_replicon 0.16
  • Changes bevy semver to minor version to allow future patches
  • Remove unnecessary parentheses

(Note, cargo complains that lib.rs::predicted_event_system() is unused. Is this intentional or should it be registered with add_client_predicted_event?)

@Bendzae
Copy link
Owner

Bendzae commented Nov 2, 2023

Thank you for the PR, besides the one thing everything still works well so I will merge it when that's fixed 👍 The predicted event system is indeed not needed (It was a leftover from a previous implementation of prediction). You can remove it if you want or else I'll do it after!

@xentripetal xentripetal force-pushed the replicon-0.16.0 branch 2 times, most recently from 8c495fe to a3e6dae Compare November 3, 2023 03:34
@xentripetal
Copy link
Contributor Author

Thanks! I'm not really sure what's up with the bevy::reflect::erased_serde::__private module. My cargo complained __private didn't exist so I swapped to private which compiled on my machine but not the runner?

So just got rid of that and went with using serde directly instead.

Also removed the unused system.

- use bevy minor version to permit consumer upgrades
- Get rid of private bevy access and use serde directly
- Remove unused system
src/lib.rs Outdated
@@ -6,7 +6,7 @@ use std::io::Cursor;
use bevy::ecs::world::EntityMut;
use bevy::prelude::*;
use bevy::ptr::Ptr;
use bevy::reflect::erased_serde::__private::serde::{Deserialize, Serialize};
use bevy::reflect::erased_serde::private::serde::{Deserialize, Serialize};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Idea why I was using this import path in the first place but let's use use serde::{Deserialize, Serialize};;)

@Bendzae Bendzae merged commit a384626 into Bendzae:main Nov 3, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants