five-on-it / packages/missions/src/zones
packages/missions/src/zones
A game's zones as areas of the ground (@foi/shared's Area): a circle zone round its place, a polygon zone inside its outline with the circle round it (its vertices' mean, out to the farthest). What the interpreter tests a player against, the tracker points at, the server hands the simulation and the AI (safe and restricted zones) and the minimap draws. A zone on a floor (its place's height, a polygon's y) is that floor's: within ZONE_BAND metres of it.