RealismusModding / FS17_seasons

Farming Simulator 17 seasons mod
https://www.realismusmodding.com/mods/seasons
75 stars 55 forks source link

Remove hour/day/minute listeners in favor of a big update function #625

Open joskuijpers opened 7 years ago

joskuijpers commented 7 years ago

Give ssMain a big update function that calls into our modules, allowing us to control update order perfectly.

So WM:dayChanged turns into :updateForecast and :updateWeatherListeners. After that, the germination data in GM is updated, instead of WM calling into GM.

There should be a "before midnight" and "after midnight".

joskuijpers commented 7 years ago

Btw, this is only for mod classes. Objects and Specs can of course use the listeners freely.