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

Let's have Networks and Terrains automatically sync with all Agents in their Environment #59

Open
scottpdo opened this issue Oct 15, 2020 · 0 comments

Comments

@scottpdo
Copy link
Owner

^ Pretty self-explanatory...

Instead of having their own .addAgent methods, Networks and Terrains, when constructed with an Environment, should just point their .agents array at the Environment's. Then when the Environment adds or removes Agents, they will automatically be synced to the helper in question.

In addition to updating the constructors, Environment's .addAgent and .removeAgent methods will need to be updated to do any cleanup/updates in the helpers (for example, if removing an Agent that has connections in the Network, remove those connections).

Since this will involve API changes, probably should go under a new major release 0.6.0.

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

No branches or pull requests

1 participant