
from patcher.bases import EventHandler

from .check_internal import IS_INTERNAL

if IS_INTERNAL:
    from .jack_engine_remote import JackEngine
else:
    from .jack_engine import JackEngine


class Engine(JackEngine): # type:ignore
    XML_TAG = 'RAY-JACKPATCH'
    EXECUTABLE = 'ray-jackpatch'
    NSM_NAME = 'JACK Connections'

    def __init__(self, event_handler: EventHandler):
        super().__init__(event_handler)

    def init(self) -> bool:
        return super().init()
