johnameyer / cards-ts

A card game framework and various games in Typescript. The framework allows for bot development and playing card games in the terminal or in a browser.
6 stars 2 forks source link

Handler rework #46

Closed johnameyer closed 3 years ago

johnameyer commented 3 years ago

As identified in #42 , the current setup works well but requires every concrete handler implementation to re-implement the message function and all future systems. Since this functionality also falls into classes e.g. bot discards messages, intermediary handler sends it to the intermediary, e.t.c. we should be able to break these up using an entity-component-system-type setup.