Skip to content

feat: Add GgrsLocal#96

Draft
johanhelsing wants to merge 3 commits intogschup:mainfrom
johanhelsing:locals
Draft

feat: Add GgrsLocal#96
johanhelsing wants to merge 3 commits intogschup:mainfrom
johanhelsing:locals

Conversation

@johanhelsing
Copy link
Collaborator

@johanhelsing johanhelsing commented Dec 2, 2023

A rollback aware version of Bevy's Local system params.

I wanted to write systems with local resources in order to reduce boilerplate. And also to implement a rollback aware verison of EventReader. I needed something that behaves like Local<T> but rolls back when bevy_ggrs does.

This is a draft because:

  • It doesn't correctly handles systems that don't mutate every frame
  • It doesn't work for systems behind run conditions. It would be ok to not support this, but it should consistently panic in that case.
  • Make API public
  • Use it in examples
  • Needs docs

Putting it out here since I don't have time to work on it now. Perhaps someone else has.

A rollback aware version of Bevy's `Local` system params.
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.

1 participant