terminal.py 436B

1234567891011121314151617
  1. # coding: utf-8
  2. from synergine2.terminals import Terminal, TerminalPackage
  3. class GameTerminal(Terminal):
  4. def __init__(self, *args, **kwargs):
  5. super().__init__(*args, **kwargs)
  6. self.gui = None
  7. def receive(self, package: TerminalPackage):
  8. self.gui.before_received(package)
  9. super().receive(package)
  10. self.gui.after_received(package)
  11. def run(self):
  12. raise NotImplementedError()