PutableEvent.py 526B

12345678910111213
  1. from intelligine.synergy.event.transport.TakeableEvent import TakeableEvent
  2. from xyzworld.mechanism.ArroundMechanism import ArroundMechanism
  3. from intelligine.cst import CANT_PUT_STILL, COL_TRANSPORTER_CARRYING
  4. class PutableEvent(TakeableEvent):
  5. concern = COL_TRANSPORTER_CARRYING
  6. def _object_match(self, object_id, context, parameters={}):
  7. if context.metas.value.get(CANT_PUT_STILL, object_id, allow_empty=True):
  8. return False
  9. return super()._object_match(object_id, context, parameters)