ChrisNeedham24 / microcosm

A little 4X game written using Pyxel.
GNU General Public License v3.0
11 stars 8 forks source link

Refactor event_listener.py #153

Open ChrisNeedham24 opened 1 week ago

ChrisNeedham24 commented 1 week ago

Yes, I know it was only just made in #150 but it could definitely be improved. The main two ways I can see this going are to split RequestHandler and EventListener into their own files, and potentially going even further, to split a sort of UpdateHandler out of RequestHandler.

ChrisNeedham24 commented 2 days ago

Could also get even more tricky and extract game state modification out of both EventListener and GameState into some common file, but that would understandably be quite difficult.