def __init__(self, machine): """Initialise show controller.""" self.log = logging.getLogger("ShowController") self.machine = machine self.show_players = {} self.running_shows = list() self._next_show_id = 0 # Registers Show with the asset manager Show.initialize(self.machine) self.machine.events.add_handler('init_phase_3', self._initialize) self.machine.mode_controller.register_load_method( self._process_config_shows_section, 'shows')
def __init__(self, machine): """Initialise show controller. Args: machine: Parent machine object. """ super().__init__(machine) self.show_players = {} self._next_show_id = 0 # Registers Show with the asset manager Show.initialize(self.machine) self.machine.events.add_handler('init_phase_3', self._initialize) self.machine.mode_controller.register_load_method( self._process_config_shows_section, 'shows')