跳转到内容

ExploredGrid

此内容尚不支持你的语言。

Defined in: sdk/src/render/fogOfWar.ts:115

What has been seen, on a grid of cells over the fog’s rectangle: the part that survives a lost device and goes into a save.

new ExploredGrid(size): ExploredGrid

Defined in: sdk/src/render/fogOfWar.ts:118

number

ExploredGrid

readonly cells: Uint8Array

Defined in: sdk/src/render/fogOfWar.ts:116


readonly size: number

Defined in: sdk/src/render/fogOfWar.ts:118

fromString(text): boolean

Defined in: sdk/src/render/fogOfWar.ts:166

Takes what toString wrote. False, leaving the grid as it was, for a string of another size or a damaged one.

string

boolean


mark(x, y, left, bottom, width, height): boolean

Defined in: sdk/src/render/fogOfWar.ts:123

Marks the cell holding a world point, given the rectangle’s low corner and its edge. True when it was new.

number

number

number

number

number

number

boolean


markFan(origin, distances, left, bottom, width, height): boolean

Defined in: sdk/src/render/fogOfWar.ts:133

Marks everything the rays of one viewer reach, a block of cells round each step along each ray.

SightPoint

Float32Array

number

number

number

number

boolean


toString(): string

Defined in: sdk/src/render/fogOfWar.ts:152

The grid as a string a save file can hold: run lengths of its cells, in base 36.

string