five-on-it / packages/ai/src/crowd / crowdSystem
Function: crowdSystem()
crowdSystem(
ai):void
Defined in: packages/ai/src/crowd.ts:763
One tick of the crowd, after the traffic: the pedestrians gone (removed by somebody else), gone inside or too far are taken off the street (a walker's dog with it), then a new one near the players if fewer than wanted; then the dogs (dogSystem). Nothing to do while the crowd is off and the streets are empty.
Parameters
ai
Returns
void