base.py 591B

1234567891011121314151617181920212223242526
  1. # coding: utf-8
  2. from synergine2.terminals import Terminal
  3. class CocosTerminal(Terminal):
  4. subscribed_events = [
  5. ]
  6. def __init__(self, *args, asynchronous: bool, map_dir_path: str, **kwargs):
  7. super().__init__(*args, **kwargs)
  8. self.asynchronous = asynchronous
  9. self.gui = None
  10. self.map_dir_path = map_dir_path
  11. def run(self):
  12. from sandbox.tile.gui.base import Game
  13. self.gui = Game(
  14. self.config,
  15. self.logger,
  16. self,
  17. map_dir_path=self.map_dir_path,
  18. )
  19. self.gui.run()