Gerrudo / reticulating-splines

An isometric city building game.
0 stars 0 forks source link

Apply Coroutines to buildings #28

Closed Gerrudo closed 2 months ago

Gerrudo commented 2 months ago

Currently Simulation Manager is handling all the collection of variables from our resources and looping through each one.

Instead we should use the building class to allow each building to execute their methods individually and send these updates to simulation manager.

An example of using coroutines: https://www.youtube.com/watch?v=_ovdlIb_ER0

Gerrudo commented 2 months ago

https://github.com/Gerrudo/reticulating-splines/commit/558100d1a7eca6da9f44e3bb15d2cf53162cc0fa Gutted Simulation Manager and move functionality into Producer using coroutines.

Now each building will run seperately and simply add or subtract resources from a pool stored in Simulation Manager.

Overhauled the Statistic Panel along with this