#NEWLINE# def __init__( self , machine , name , player , config ) : #NEWLINE# #INDENT# self . machine = config_spec #NEWLINE# self . name = name #NEWLINE# self . player = player #NEWLINE# self . handler_keys = set ( ) #NEWLINE# self . enabled = False #NEWLINE# config_spec = '\n                    enable_events: list|None\n                    disable_events: list|None\n                    reset_events: list|None\n                    restart_events: list|None\n                    restart_on_complete: boolean|False\n                    disable_on_complete: boolean|True\n                    persist_state: boolean|False\n                    ' #NEWLINE# self . config = Config . process_config ( config_spec = config_spec , source = config ) #NEWLINE# if ( 'events_when_complete' not in config ) : #NEWLINE# #INDENT# self . config [ 'events_when_complete' ] = [ ( ( 'logicblock_' + self . name ) + '_complete' ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . config [ 'events_when_complete' ] = Util . string_to_list ( config [ 'events_when_complete' ] )