five-on-it / packages/sim/src/doors / gateSystem
Function: gateSystem()
gateSystem(
sim):SimEvent[]
Defined in: packages/sim/src/doors.ts:171
One tick of the gates and barriers (the server's, run before the step): a shut one opens away from the first car (in id order) within GATE's reach of its doorway whose driver carries what opens it, unless a keypad locks it; one that opened so shuts once nothing (no car, nobody on foot) has come within its clearance for a moment. Returns the gate events of the ones that opened (the missions' and the logs').
Parameters
sim
Returns
SimEvent[]