DrInfy / sharpy-sc2

Python framework for rapid development of Starcraft 2 AI bots
MIT License
69 stars 28 forks source link

Added a get_manager method that returns manager by its type or subtype #60

Closed DrInfy closed 4 years ago

DrInfy commented 4 years ago

Added a method from getting managers by their type from the Knowledge class.

Attempts to solve #54 with as few breaking changes as possible and having proper generic type return from requesting the manager by its type.

Unit tests included.

Compatible with all old syntax, but includes a new one for getting managers.

data_manager = knowledge.get_manager(DataManager)