MoveEvent.py 426B

123456789101112131415
  1. from synergine.synergy.event.Event import Event
  2. from xyzworld.mechanism.PositionedArroundMechanism import PositionedArroundMechanism
  3. class MoveEvent(Event):
  4. def concern(self, object_id, context):
  5. return True
  6. def __init__(self, actions):
  7. super().__init__(actions)
  8. self._mechanism = PositionedArroundMechanism
  9. def _object_match(self, object_id, context, parameters={}):
  10. return True