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

create a messaging system #6

Open
DumplingEater opened this issue Aug 16, 2020 · 1 comment
Open

create a messaging system #6

DumplingEater opened this issue Aug 16, 2020 · 1 comment
Labels
New Feature New functionality that doesn't exist yet

Comments

@DumplingEater
Copy link
Owner

The basic idea is objects in a simulation need to communicate with each other at certain times, and we want to do that in such a way that there aren't unnecessary inter-dependencies, for example, a spaceship detects a new planet and sends a message to its home base. We want the message to send and function regardless of whether or not there is a home base to receive it.

The premise is going to be creating an entity with a MessageSystem component that handles all of our messages. Entities can subscribe to the message system and, when subscribed, they can either send messages to the system or receive messages from the system. This prevents potential dependency problems of entities being directly dependent on each other for sending and receiving of messages, as all messages are sent to and handled by the MessageSystem component.

@DumplingEater
Copy link
Owner Author

Also here is a link roughly explaining the idea. This will be a somewhat complicated coding issue.

@DumplingEater DumplingEater added the New Feature New functionality that doesn't exist yet label Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature New functionality that doesn't exist yet
Projects
None yet
Development

No branches or pull requests

1 participant