Simulation.py 277B

12345678910
  1. from synergine.synergy.Simulation import Simulation as BaseSimulation
  2. from xyzworld.cst import POSITION, POSITIONS
  3. class Simulation(BaseSimulation):
  4. def end_cycle(self, context):
  5. if context.get_cycle() % 100 is 0:
  6. context.metas.list.clean(POSITIONS)