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

Implement automatic calling of updateable entities #15

Open
PranavBahuguna opened this issue Nov 15, 2020 · 0 comments
Open

Implement automatic calling of updateable entities #15

PranavBahuguna opened this issue Nov 15, 2020 · 0 comments
Assignees
Labels
Feature New feature or request Priority: Medium Requests to be implemented in the near to mid term Refactor Non-functional quality of life improvements
Projects

Comments

@PranavBahuguna
Copy link
Owner

Currently, there are many entities (models, lights etc.) that have an update function intended to be called in the main game loop. What we want is the ability for any updateable entity to automatically have this function be called every update cycle rather than having to do it ourselves. This will likely require implementation of the following:

  • Some kind of overarching Updateable interface (can tie in with a transform interface, similar to Unity's Monobehaviour).
  • Some way for the Main class to store and call updateables.
  • Some way for updateables to be added and removed on demand.

Consider using something like the Observer pattern to achieve this.

@PranavBahuguna PranavBahuguna added Feature New feature or request Refactor Non-functional quality of life improvements Priority: Medium Requests to be implemented in the near to mid term labels Nov 15, 2020
@PranavBahuguna PranavBahuguna self-assigned this Nov 15, 2020
@PranavBahuguna PranavBahuguna added this to To do in 3DEngine via automation Nov 15, 2020
@PranavBahuguna PranavBahuguna moved this from To do to In progress in 3DEngine Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Priority: Medium Requests to be implemented in the near to mid term Refactor Non-functional quality of life improvements
Projects
3DEngine
In progress
Development

No branches or pull requests

1 participant