use get/set for parameters on ports and wires

This commit is contained in:
Redo
2021-02-03 09:32:05 -06:00
parent 941348002b
commit 54f45520c0
7 changed files with 118 additions and 74 deletions

View File

@@ -66,3 +66,23 @@ function Port.isfalling(self)
end
return self.group.state == false and (self.group.updatetick == sim.currenttick)
end
function Port.setgate(self, gate)
self.gate = gate
end
function Port.setgroup(self, group)
self.group = group
end
function Port.getgroup(self)
return self.group
end
function Port.gettype(self)
return self.type
end
function Port.getstate(self)
return self.state
end