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

Merge InitModifier and UpdateModifier #292

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Mar 2, 2024

Merge the InitModifier and UpdateModifier supertraits into their Modifier subtrait, and delete them. This unifies handling of modifiers for the init and update contexts. The modifiers can now easily be compatible with both contexts by simply returning the appropriate ModifierContext without having to duplicate the implementation into each supertrait.

At this time, RenderModifier still contains some hard-coded elements not yet transitioned to a fully data driven model (mainly, anything related to texture resources), and therefore cannot be merged too. However the longer term plan is to eventually merge it and retain a single Modifier trait.

@djeedai djeedai added A - modifiers Change related to modifiers C - breaking change A breaking API or behavior change labels Mar 2, 2024
Merge the `InitModifier` and `UpdateModifier` supertraits into their
`Modifier` subtrait, and delete them. This unifies handling of modifiers
for the init and update contexts. The modifiers can now easily be
compatible with both contexts by simply returning the appropriate
`ModifierContext` without having to duplicate the implementation into
each supertrait.

At this time, `RenderModifier` still contains some hard-coded elements
not yet transitioned to a fully data driven model (mainly, anything
related to texture resources), and therefore cannot be merged too.
However the longer term plan is to eventually merge it and retain a
single `Modifier` trait.
@djeedai djeedai force-pushed the u/merge-init-update-traits branch from 9946ad4 to c07a460 Compare March 2, 2024 13:12
@djeedai djeedai merged commit ae41628 into main Mar 2, 2024
13 checks passed
@djeedai djeedai deleted the u/merge-init-update-traits branch March 2, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - modifiers Change related to modifiers C - breaking change A breaking API or behavior change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant