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

Entity Messaging System #2

Merged
merged 2 commits into from
Aug 25, 2024
Merged

Entity Messaging System #2

merged 2 commits into from
Aug 25, 2024

Commits on Aug 25, 2024

  1. Add Velocity Component

    Create a new component called "Velocity" to generalize things that move
    in a specific velocity every frame, and create a system that applies
    that velocity to an entity's position in an isolated, testable, and
    framerate-independant way.
    
    Also remove the speed/velocity calculations from the UserProjectile
    component so we can use the new Velocity component instead.
    meisekimiu committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    dabeac3 View commit details
    Browse the repository at this point in the history
  2. Create MessageDispatchService

    Give entities a way to communicate with each other via the
    MessageDispatchService. The `MessageInbox` component is used to receive
    messages. Currently the MessageDispatchService is for entity-to-entity
    communication. Global events will be handled by another service,
    although will probably use the same `Message` object with `EventArg`
    parameters.
    meisekimiu committed Aug 25, 2024
    Configuration menu
    Copy the full SHA
    3e7fcea View commit details
    Browse the repository at this point in the history