Skip to content
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

Closed

Conversation

sp4ce-cowboy
Copy link
Contributor

@sp4ce-cowboy sp4ce-cowboy commented Mar 21, 2024

Summary

  • Add HealthSystem, SpawnSystem, MovementSystem and RemoveSystem
  • Minor refactoring to a few existing functions
  • Reorganized project file structure (added a root Main folder for top-level files like AppDelegate)

@sp4ce-cowboy sp4ce-cowboy added this to the Sprint 1 milestone Mar 21, 2024
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)
}

Copy link
Contributor

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.

Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants