CnCNet / xna-cncnet-client

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

Dependency injection #390

Closed devo1929 closed 1 year ago

devo1929 commented 1 year ago

This adds dependency injection for all services (or service-like classes) AND all XNAControl based controls. The class ClientGUICreator was re-purposed to facilitate this dependency injection for all XNAControl based controls. They can be instantiated as a part of dependency injection in a constructor or when instantiated via an INI file. Controls are simply registered in a different way, but the backing logic mostly remains intact.

github-actions[bot] commented 1 year ago

Nightly build for this pull request:

SadPencil commented 1 year ago

Sounds good. I don't have questions now and let's wait for others' reviews