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

Add last_changed_tick and added_tick to ComponentTicks #8803

Merged
merged 2 commits into from
Jun 12, 2023

Commits on Jun 10, 2023

  1. Add last_changed to ComponentTicks

    EntityRef::get_change_ticks mentions that ComponentTicks is useful to
    create change detection for your own runtime.
    
    However, ComponentTicks doesn't even expose enough data to create
    something that implements DetectChanges. Specifically, we need to be
    able to extract the last change tick.
    
    We add a method to get the last change tick.
    nicopap committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    d0066e6 View commit details
    Browse the repository at this point in the history
  2. Return ticks

    nicopap committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    5538d51 View commit details
    Browse the repository at this point in the history