CnCNet / xna-cncnet-client

XNA / MonoGame based client for playing classic Command & Conquer games both online and offline with a CnCNet game spawner.
Other
224 stars 85 forks source link

Move parsing of UPDATE and GAME messages to Channel class #413

Closed devo1929 closed 1 year ago

devo1929 commented 1 year ago

This is only a first step in an effort to move "logic" out of the UI layer and into a more serviceable one. The UI controls/components do way more than they should in terms of non-UI logic, like in this specific case, message parsing.

This PR moves the UPDATE and GAME command parsing up to the Channel class for cncnet lobby broadcasting where it invokes specific event handlers for those specific messages. Else, it falls back to the base CTCP event handler invoke.

github-actions[bot] commented 1 year ago

Nightly build for this pull request: