make net in port lists arrays
This commit is contained in:
@@ -28,8 +28,8 @@ function Gate.addport(self, port)
|
||||
Port.setgate(port, self)
|
||||
end
|
||||
|
||||
function Gate.getportstate(self, index)
|
||||
return self.ports[index].group.state
|
||||
function Gate.getportstate(gate, index)
|
||||
return gate.ports[index].group.state
|
||||
end
|
||||
|
||||
function Gate.setportstate(self, index, state)
|
||||
|
||||
Reference in New Issue
Block a user