event.py 502B

12345678910111213141516171819202122
  1. # coding: utf-8
  2. """
  3. WARNING: Do not import cocos/pyglet stuff here: cocos/pyglet modules must be loaded inside gui process.
  4. """
  5. import typing
  6. from synergine2.simulation import Event
  7. class GuiRequestMoveEvent(Event):
  8. def __init__(
  9. self,
  10. subject_id: int,
  11. move_to_position: typing.Tuple[int, int],
  12. *args,
  13. **kwargs
  14. ) -> None:
  15. super().__init__(*args, **kwargs)
  16. self.subject_id = subject_id
  17. self.move_to_position = move_to_position