Skip to content

ResourcesPassOptions beta ​

Interface of @v12-engine/engine

ts
export interface ResourcesPassOptions

What resourcesPass takes: where the game's mines go, and what the game puts there

Members ​

clearing ​

ts
clearing?: number;

How many cells around each are made flat and dry for it, as a start's clearing is: 3 when left out, enough for a mine of 4 by 4; 0 for none

extra ​

ts
extra?: number;

How many more there are besides the starts', spread over the map and mirrored: 2 when left out

from ​

ts
from: (ctx: GeneratorContext, at: Vec2, start?: MapPlayer) => void;

Puts the resource down: the game's mine, a camp guarding it. Told the start it is for, where it is one's

main ​

ts
main?: number | false;

How far from each start its own stands, in cells: 8 when left out; false for none at the starts (a game puts those down itself)

spacing ​

ts
spacing?: number;

How far apart the extra ones keep from each other and from the starts, in cells: 20 when left out