Skip to content

Client-server-features #298

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

Merged
merged 4 commits into from
Jun 27, 2024
Merged

Client-server-features #298

merged 4 commits into from
Jun 27, 2024

Conversation

Shatur
Copy link
Contributor

@Shatur Shatur commented Jun 27, 2024

I had to move a few modules into core since they used on both.

Advises about the organization are very welcome!

Shatur added 4 commits June 27, 2024 23:36
I had to move a few modules into core since they used on both.
@Shatur Shatur requested a review from UkoeHB June 27, 2024 21:13
@Shatur Shatur marked this pull request as ready for review June 27, 2024 21:13
Copy link

codecov bot commented Jun 27, 2024

Codecov Report

Attention: Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.95%. Comparing base (47b2cfa) to head (7dfd36a).

Files Patch % Lines
src/core/connected_clients.rs 90.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           0.14.0-rc     #298      +/-   ##
=============================================
- Coverage      90.96%   90.95%   -0.01%     
=============================================
  Files             37       37              
  Lines           2202     2200       -2     
=============================================
- Hits            2003     2001       -2     
  Misses           199      199              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -20,30 +20,31 @@ fn serialize_missing_component() {
let mut app = App::new();
app.add_plugins((MinimalPlugins, RepliconPlugins));

let tick = RepliconTick::default();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are there any tests for the case when tick is not default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, but it's just to pass it to the context, we don't use it for the logic.

@Shatur Shatur merged commit 9e42d16 into 0.14.0-rc Jun 27, 2024
7 checks passed
@Shatur Shatur deleted the client-server-features branch June 27, 2024 23:01
Shatur added a commit that referenced this pull request Jul 4, 2024
* Update to 0.14.0-rc.2

* Temporary disable CI for bevy_replicon_renet

* Minor stylistic changes

Just a few spaces and an intermediate veriable to make the code look a
little bit nicer.

* Bump version to 0.27.0-rc.1

* Remove bevy_replicon_renet from workspace

* Bump version to 0.27.0-rc.2

* Undo changes in bevy_replicon_renet [skip ci]

* Rework events organization

- Swap `receive` system between ServerEventsPlugin and `ClientEventsPlugin` to properly separate what what runs on client or server.
- Move `ServerEventsPlugin::reset` logic inside `ClientEventsPlugin::reset` because this logic runs on client.
- Move `server::events::event_data` module to `core::event_registry::server_event`.
- Move `client::events::event_data` module to `core::event_registry::client_event`.

No functional changes, except `ServerEventsPlugin` and `ClientEventsPlugin` can be disabled on client-only and server-only apps respectively.

Closes #276.

* Do not divide values per seconds by the number of messages

* Update changelog [skip ci]

* Put `ClientDiagnosticsPlugin` under `diagnostics` feature (#295)

* Put `scene` module under `scene` feature (enabled by default)

* Put `parent_sync` module under `parent_sync` feature

* Client-server-features (#298)

* Use GitHub's warning about semver compatibility

https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts

* Document features better

I took inspiration from Bevy.

* Update src/lib.rs

* Move `bevy_replicon_renet` to a dedicated repository

* Bump version to 0.27.0-rc.3

* Fix copy-paste

* Speedup removals caching

The necessary method was provided in 0.14.

* Remove mentions of the RC

Without it it will be quite hard to read the changelog (users will have to check  the changes from RC) or I will need to copy all changes from RC for the upcoming 0.27.0.

I also removed it from the compatibility table as suggested by @UkoeHB. I also don't think that they will be useful... Keeping them will make the table harder to read.
Another option would be to keep them, but put under a spoiler.

---------

Co-authored-by: UkoeHB <37489173+UkoeHB@users.noreply.github.com>
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