remove gate ffi struct

This commit is contained in:
Redo
2022-11-04 15:04:49 -06:00
parent 5438de0adf
commit a9056df54d
5 changed files with 17 additions and 29 deletions

View File

@@ -74,7 +74,8 @@ end
function GateDefinition.constructgate(def, objref, position, rotation)
local gate = Gate.new(objref, def)
gate.in_queue = 0
for i = 1, #def.ports do
local portd = def.ports[i]
local type = portd.type
@@ -102,7 +103,7 @@ function GateDefinition.constructgate(def, objref, position, rotation)
gate.ports[port.idx] = port
gate.port_nets[port.idx] = nil
gate.c.ports[port.idx].state = 0
gate.ports_states[port.idx] = 0
end
return gate