Rename many types to better reflect their usability (in the context of Components and Resources)#11772
Rename many types to better reflect their usability (in the context of Components and Resources)#11772Adamkob12 wants to merge 1 commit intobevyengine:mainfrom
Components and Resources)#11772Conversation
Components and Resources)
|
I disagree with renaming |
|
I'm not too attached to either. I also worry that if another type would be added in the future (I vaguely remember hearing talk of Another option is encapsulating |
|
I think What about:
|
Objective
Solution
Componentin the them to a name without the wordComponent(usuallyData) to reflect that they could be used in the context of resources as well.Changelog
ComponentstoWorldDataComponentIdtoDataIdComponentDescriptortoDataDescriptorComponentInfotoDataInfocomponent_id,data_idandresource_idappropriately based on the context)componentsfield inWorldtoworld_dataMigration Guide
WorldDatainstead ofComponentsDataIdinstead ofComponentIdDataDescriptorinstead ofComponentDescriptorDataInfoinstead ofComponentInfoAdditional Context
At first I wanted to f i x #3007 in one PR like #4955 tried but I realized that all of the refactoring and the renaming will make it very difficult to review. So I decided to split them out. This PR will be focused on renaming and iterating over all of the
ComponentsandResourceswill be a different PR.