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
{{ message }}
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
I had the case several times, I need to check one value from a component before editing values. It makes something very ugly : loading first time in read mode, and second time in mutate mode for flagging him modified.
I think it can be cleaner to flag the component instead of loading it two times :
constcomponent=entity.getComponent(MyComponent)if(component.something===true){component.setMutated()// or fireMutated, flagMutated, fireChange, or something else ...component.foo='bar'}
I tried a PR but it looks the Component does not have any Entity property for firing up the event.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I had the case several times, I need to check one value from a component before editing values. It makes something very ugly : loading first time in read mode, and second time in mutate mode for flagging him modified.
I think it can be cleaner to flag the component instead of loading it two times :
I tried a PR but it looks the Component does not have any Entity property for firing up the event.
The text was updated successfully, but these errors were encountered: