Games
Games copied to clipboard
Get rid of event system
In retrospect, using a flexible event system was not a good idea.
Using a dynamic event-driven approach for everything...
- makes code very unreadable and confusing
- makes it difficult to figure out or troubleshoot "when A happens, B will happen"
- is still an interesting concept, somehow specifying "business requirements" in code is still intriguing to me (No I don't mean Cucumber. In the actual application, not just in tests)
Should be easier with The Big Refactoring™ #302
Using Koin can be an option: https://insert-koin.io/
Using SharedFlows would be similar to an event system but would be more Kotlin-ic. And would make supporting multiple coroutines/threads easier.