make sim local; start circuit compiler

This commit is contained in:
Redo0
2021-05-25 05:26:06 -05:00
parent 569e79ab96
commit 0963ef8ca8
4 changed files with 51 additions and 9 deletions

View File

@@ -3,12 +3,13 @@ Wire = {
logictype = 0
}
function Wire.new(self, objref, layer, bounds)
function Wire.new(self, objref, layer, bounds, sim)
local o = {
objref = objref,
layer = layer,
group = nil,
bounds = bounds
bounds = bounds,
sim = sim,
}
setmetatable(o, self)
self.__index = self