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

[meta] Notify on enum modifications #1414

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

jpeletier
Copy link
Contributor

This PR makes sure that when an enum changes, observers on EcsEnum (flecs::Enum) are notified.

This makes the api coherent with structs, that is, when a member is added to a struct, observers watching EcsStruct (flecs::Struct) are notified.

Normally, structs/enums/etc are only modified during startup logic as they are constructed. These notifications help serialization libraries synchronize what they know about the type.

@jpeletier jpeletier changed the title Notify on enum modifications [meta] Notify on enum modifications Oct 26, 2024
@SanderMertens
Copy link
Owner

Thanks for the PR!

@SanderMertens SanderMertens merged commit 2d80124 into SanderMertens:master Oct 31, 2024
73 checks passed
@jpeletier jpeletier deleted the enum-notify branch November 18, 2024 11:51
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.

2 participants