Zetawar / zetawar

Zetawar is a turn based tactical strategy game implemented in 100% ClojureScript.
MIT License
169 stars 14 forks source link

Remove event router dependency on Reagent #94

Closed djwhitt closed 6 years ago

djwhitt commented 7 years ago

The goal with this is to be able to run the event router without any UI. This should be possible by moving the Reagent specific code into callbacks that are passed into the router when starting it.

tbeddy commented 7 years ago

The only Reagent specific code that needs to be moved is the single use of next-tick in router.cljs, right?

djwhitt commented 7 years ago

Yep, the amount of code is trivial. The bigger question is how to make the interface generic so next-tick could be replaced with equivalent functionality from another rendering engine.

djwhitt commented 6 years ago

Not the most elegant solution, but it'll do for now. Hopefully something better emerges over time.