Пример #1
0
 def __init__(self, cpp):
     Ticks.init_ticks(self, self.tick_interval)
     if self.parent:
         print('initial burn')
         self.send_world(Operation("consume", Entity(consume_type='fire'), to=self.parent))
     else:
         print('no parent')
Пример #2
0
 def __init__(self, cpp):
     # At init time not all properties have been applied yet, so we need to send ourselves a "setup"
     # op which will be handled immediately, but with a guarantee that all props are installed.
     self.send_world(Operation("setup", to=self.id))
     Ticks.init_ticks(self, self.tick_interval)
Пример #3
0
 def __init__(self, cpp):
     Ticks.init_ticks(self, self.tick_interval)