Skip to content

SiteRequest beta ​

Interface of @v12-engine/engine/ai

ts
export interface SiteRequest

Where a type is wanted: near a place, no further than within, and which of its kind this is (ordinal, so that two farms do not try the same corner first)

Members ​

near ​

ts
near: Vec2;

The place the building is wanted near

ordinal ​

ts
ordinal: number;

Which of its kind this one is, so that two of the type do not try the same corner first

within ​

ts
within: number;

The furthest from near, in cells, the spot may be