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

Bevy 0.15.0 support #341

Merged
merged 22 commits into from
Dec 2, 2024
Merged

Bevy 0.15.0 support #341

merged 22 commits into from
Dec 2, 2024

Conversation

ironpeak
Copy link
Contributor

Migration to Bevy version 0.15.0-rc.2.

I'll update this PR once the 0.15.0 is out.

README.md Show resolved Hide resolved
Copy link
Contributor

@Shatur Shatur left a comment

Choose a reason for hiding this comment

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

Thanks a lot!
Left a few suggestions/questions.

src/core/event_registry/server_event.rs Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
src/server.rs Show resolved Hide resolved
src/client.rs Outdated Show resolved Hide resolved
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.86%. Comparing base (a8e10a0) to head (f35def0).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #341   +/-   ##
=======================================
  Coverage   89.86%   89.86%           
=======================================
  Files          44       44           
  Lines        2486     2487    +1     
=======================================
+ Hits         2234     2235    +1     
  Misses        252      252           

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

@Shatur Shatur changed the title Bevy 0.15.0-rc.2 Bevy 0.15.0 RC Nov 6, 2024
If someone needs it, it's better to utilize the required components since it's faster.
@Shatur
Copy link
Contributor

Shatur commented Nov 6, 2024

@UkoeHB I pushed 2 commits (diff) that contain a small breaking change. Please, take a look.
I originally wanted to open a PR for it, but unable to do so because this PR comes from a fork.

@UkoeHB
Copy link
Collaborator

UkoeHB commented Nov 7, 2024

@UkoeHB I pushed 2 commits (diff) that contain a small breaking change. Please, take a look.

I disagree with not including Replicated on all entities. I use Replicated as a universal marker to clean up entities when exiting a game's state scope. It is much more fragile to manually make sure every entity gets Replicated, and would inevitably lead to entity leaks.

It also permanently couples Replicated with component definitions, which seems unnecessary. It implies all replicated entities need to have some custom component with a #[requires(Replicated)], even if they don't need a custom component for anything.

@Shatur
Copy link
Contributor

Shatur commented Nov 7, 2024

Good point, I will revert today after work.

@Shatur Shatur requested a review from UkoeHB November 7, 2024 16:37
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@Shatur
Copy link
Contributor

Shatur commented Nov 29, 2024

Made a lot of breaking changes in the latest master. I will wait for review for #359 from @UkoeHB and rebase this one after it.

@ironpeak ironpeak changed the title Bevy 0.15.0 RC Bevy 0.15.0 support Nov 29, 2024
@ironpeak
Copy link
Contributor Author

I merged with master, and created a branch were I tested merging with #359 as well.

All the CI tests are passing:

I also noticed that cargo-deny was failing and updated it to allow Unicode-3.0.

Copy link
Contributor

@Shatur Shatur left a comment

Choose a reason for hiding this comment

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

Thank you a lot!
I think still merge it after #359, but you saved me a lot of time!

Comment on lines +633 to +638
let component: Ptr<'w> = table
.get_component(component_id, entity.table_row())
.unwrap_unchecked();
let ticks = table
.get_ticks_unchecked(component_id, entity.table_row())
.unwrap_unchecked();
Copy link
Contributor

@Shatur Shatur Nov 30, 2024

Choose a reason for hiding this comment

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

Note to self: I made the fields public in bevyengine/bevy#16269, so it should be possible to create ComponentTicks.

README.md Outdated Show resolved Hide resolved
@Shatur Shatur merged commit dcff8b4 into projectharmonia:master Dec 2, 2024
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