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')
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)
def __init__(self, cpp): Ticks.init_ticks(self, self.tick_interval)