You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re. live discussion, another API issue right now is how the componentCreated and attributeChanged signals currently work.
Currently app code handling components gets a "componentAdded" signal with the default values for attributes and then an attributeChanged signal per attribute as the attributes are decoded from the network.
We could add a signal that's triggered after a createComponent/createEntity message comes in and SyncManager does a "readComponentFullUpdate". The only issue is whether we want to bake this protocol behaviour to the API and what to call the signal. The signal should also be triggerable from user code after creating & initializing a new local component. Something like, componentFullyUpdated (if we want to refer to the protocol concept) or componentReady (for a more straightforward sound?).
About reusing the current component registration mechanisms for injecting custom "active" component prototypes to the ec model side of things, that would be a break from the current organisation of the code. So far the design has been that the EC side is inert data and app logic is handled outside of the "model" side. On the other hand the recently merged animation/avatar code does that as well. We should agree on some kind of architectural direction here.
The practical issue of having to check the type of the added component as the first
line of the signal handler can be fixed with a convenience method I think.
(see e-mail for details for now)
The text was updated successfully, but these errors were encountered: