Skip to content

Add a system closure example #4262

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

Closed
alice-i-cecile opened this issue Mar 19, 2022 · 3 comments
Closed

Add a system closure example #4262

alice-i-cecile opened this issue Mar 19, 2022 · 3 comments
Labels
A-ECS Entities, components, systems, and events C-Examples An addition or correction to our examples D-Trivial Nice and easy! A great choice to get started with Bevy

Comments

@alice-i-cecile
Copy link
Member

alice-i-cecile commented Mar 19, 2022

How can Bevy's documentation be improved?

Systems can be created through closures. This will be a surprising fact to many, and should be demonstrated in an example.

Steps:

  1. Create a "closure_system" example.
  2. Demonstrate the use of a simple closure system.
  3. Demonstrate configuring Local variables with closure systems, as shown in the corresponding docs.

Previously attempted in #2231: please try to build off that branch and credit the author.

@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy A-ECS Entities, components, systems, and events C-Examples An addition or correction to our examples labels Mar 19, 2022
@cab
Copy link

cab commented Mar 19, 2022

Sorry for missing your other comments and for leaving that PR hanging!

And thank you for picking it up! In case you need anything from that original PR or if it makes anything easier, I've commented on the licensing thread.

@alice-i-cecile
Copy link
Member Author

alice-i-cecile commented Mar 20, 2022

Awesome; I'll let a newcomer port that up to main :)

@wilk10
Copy link
Contributor

wilk10 commented Aug 5, 2022

With #4327 having been merged, can this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Examples An addition or correction to our examples D-Trivial Nice and easy! A great choice to get started with Bevy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants