Skip to content

Refactoring in preparation for manual packet fragmentation #114

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 3 commits into from
Nov 26, 2023

Conversation

Shatur
Copy link
Contributor

@Shatur Shatur commented Nov 24, 2023

@Shatur Shatur requested a review from UkoeHB November 24, 2023 19:28
@codecov-commenter
Copy link

codecov-commenter commented Nov 24, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (664458e) 89.68% compared to head (fcdd588) 91.09%.

Files Patch % Lines
src/server/replication_buffer.rs 98.21% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #114      +/-   ##
==========================================
+ Coverage   89.68%   91.09%   +1.40%     
==========================================
  Files          14       15       +1     
  Lines         892      898       +6     
==========================================
+ Hits          800      818      +18     
+ Misses         92       80      -12     

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

And move it to `scene` module since it's not directly related
to server and isn't used inside it.
@Shatur Shatur changed the title Use EntityHashMap instead of all HashMap with entities as keys Refactoring in preparation for manual packet fragmentation Nov 25, 2023
- Improve docs.
- Use names that not coupled with replication message structure.
- Group functions differently for clarity.
- Use replication channel constant directly.
- Move entity serialization into a free function to reuse it later.
@Shatur Shatur merged commit 23e579e into master Nov 26, 2023
@Shatur Shatur deleted the entity-hasher branch November 26, 2023 20:25
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.

3 participants