@@ -0,0 +1,728 @@
+from model.output import Output%0Afrom model.system import OutputSystem, CompoundSystem%0Afrom ports.art_net import ArtNetPort%0A%0A%0Aclass Engine():%0A    %22%22%22The core object of an LXScript engine instance. Holds all data.%22%22%22%0A%0A    def __init__(self):%0A        self.systems = %7B%7D%0A        self.output = Output()%0A        self.ports = %7BArtNetPort(self.output, 1)%7D%0A%0A    def add_system(self, name, addresses=%5B%5D, names=%5B%5D):%0A        systems = %5BOutputSystem(a, self.output) for a in addresses%5D + %5Bself.systems%5Bn%5D for n in names%5D%0A        if len(systems) == 1:%0A            self.systems%5Bname%5D = systems%5B0%5D%0A        elif len(systems) %3E 1:%0A            self.systems%5Bname%5D = CompoundSystem(systems)%0A        else:%0A            raise ValueError(%22empty system%22)%0A

Add core module