Skip to content

five-on-it / packages/world/src/level / inDistrict

Function: inDistrict() ​

inDistrict(district, x, z): boolean

Defined in: packages/world/src/level.ts:649

Whether a point on the ground lies in one of a district's areas.

Parameters ​

district ​

Pick<DistrictDef, "areas">

x ​

number

z ​

number

Returns ​

boolean