make net states pointers
This commit is contained in:
@@ -36,11 +36,11 @@ function Port.getconnectionposition(port)
|
||||
end
|
||||
|
||||
function Port.isrising(port)
|
||||
return port.group.state==1 and (port.group.update_tick == GSim.current_tick)
|
||||
return port.group.state[0]==1 and (port.group.update_tick[0] == GSim.current_tick)
|
||||
end
|
||||
|
||||
function Port.isfalling(port)
|
||||
return port.group.state==0 and (port.group.update_tick == GSim.current_tick)
|
||||
return port.group.state[0]==0 and (port.group.update_tick[0] == GSim.current_tick)
|
||||
end
|
||||
|
||||
function Port.getgate(port)
|
||||
|
||||
Reference in New Issue
Block a user