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

System lifecycle #148

Merged
merged 2 commits into from
Jul 10, 2024
Merged

System lifecycle #148

merged 2 commits into from
Jul 10, 2024

Conversation

RefuX
Copy link
Contributor

@RefuX RefuX commented Jul 9, 2024

When a system is removed from the world, we should dispose the resources it is using.
If a disposed system is readded to the world it will have to be smart enough to re-create resources or error.

@Quillraven
Copy link
Owner

We also have an onInit function on a system. I am wondering if we should call that when a system gets added?

Currently it gets called after the world configuration is done.

@Quillraven Quillraven added the enhancement New feature or request label Jul 9, 2024
@Quillraven Quillraven added this to the 2.9 milestone Jul 9, 2024
@Quillraven Quillraven assigned Quillraven and unassigned Quillraven Jul 9, 2024
@RefuX
Copy link
Contributor Author

RefuX commented Jul 10, 2024

We also have an onInit function on a system. I am wondering if we should call that when a system gets added?

Currently it gets called after the world configuration is done.

Fantastic point, I was wondering about a compliment to onDispose.

@Quillraven Quillraven merged commit c9f8e91 into Quillraven:master Jul 10, 2024
4 checks passed
@Quillraven
Copy link
Owner

Should be available in SNAPSHOT in a few minutes. Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants