Avoiding specialization for resources #56
MarcGuiselin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bevy currently differentiates resources and components, but steps are being taken to combine the two concepts together. See https://hackmd.io/_uB08OiAT4GqOXPE-X76eQ and bevyengine/bevy#19731
TLDR the long term plan is to unify the two apis such that:
In the latest version, resources are already components. But there are still some large api differences between the two.
I think that instead of inheriting the cruft from the current bevy version we build a better, more future-proof api that learns from their design work.
We also need to consider Bevy's specialized use-cases for resources such as the asset system. Should we create a dedicated system param for assets (such as an
assetsresource in wit) or can we leverage the authoring system in Wasvy? It might be possible to generate bindings for assets directly in such a way that a user can access anyAssets<T>resource, without wasvy needing a custom implementation for every asset we want to support.Todo:
resourceresource in wit. Is there any usecase that requires specialization?Beta Was this translation helpful? Give feedback.
All reactions