stash.py 496B

123456789101112131415161718192021222324
  1. # coding: utf-8
  2. import typing
  3. from synergine2.config import Config
  4. from opencombat.strategy.team.model import UnitModel
  5. class UnitStash(object):
  6. def __init__(
  7. self,
  8. config: Config,
  9. units_file_path: str,
  10. ) -> None:
  11. self._confg = config
  12. # TODO Load xml, validate
  13. self._units = None # typing.List[UnitModel]
  14. def get_units(self) -> typing.List[UnitModel]:
  15. pass
  16. def get_unit(self, unit_id: str) -> UnitModel:
  17. pass