sekassel / stp-24-server

Server for STP 2024
1 stars 3 forks source link

Jobs Refactoring pt.3 #82

Closed Clashsoft closed 3 months ago

Clashsoft commented 3 months ago

Basically moved all the logic around. Now it is no longer possible to add buildings or districts or technologies. I tried to make most methods "pure" in the sense that they are no longer async and don't rely on Models to fetch or save stuff from or to the database. This helps with testing if we ever decide to do that, and is generally easier to reason about.

TODO: Splitting up GameLogicService and adding real job times.