MoveEvent.py 392B

123456789101112131415
  1. from synergine.synergy.event.Event import Event
  2. from synergine.core.simulation.mechanism.Mechanism import Mechanism
  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 = Mechanism
  9. def _object_match(self, object_id, context, parameters={}):
  10. return True