-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Systems Component #17
Add Systems Component #17
Conversation
TFEntity contains TFComponent as a Dictionary. Change this to a Set to implicitly ensure that each entity only has one instance of any given type of component at any point.
} | ||
|
||
movementComponent.updatePosition(with: displacement) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need an general update for movement system to generate all the move events. As there is currrently no way for the movement events to be created. Also this serves us the opportunity to control the movement of the entities as well. For example, if 2 entities that can collide with each other are waking towards each other, we need to somehow be able to prevent them from passing each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what you mean by general update movement. Are you saying that move events should be created inside the movement system? What exactly would trigger move events and how would the system handle this?
Summary