跳转到内容

ZoneDef

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

Defined in: sdk/src/worldgen/zones.ts:19

optional biome?: string

Defined in: sdk/src/worldgen/zones.ts:31

A biome it holds over its area, if any.


excludes: readonly string[]

Defined in: sdk/src/worldgen/zones.ts:29

The tags of what it keeps out; * keeps out everything.


falloff: number

Defined in: sdk/src/worldgen/zones.ts:26

Over how many world units past its outline it fades out.


optional fields?: Readonly<Record<string, number>>

Defined in: sdk/src/worldgen/zones.ts:33

Fields it sets over its area.


optional flatten?: number | "ground"

Defined in: sdk/src/worldgen/zones.ts:38

Levels the terrain under it: to this world height, or (‘ground’) to the ground’s height at its centre as the ground was made, blending back over its falloff. Live plane generators hold the modifier; it is released when the zone or its last consumer goes.


id: string

Defined in: sdk/src/worldgen/zones.ts:21

Stable: what a placement records as the zone it stands in or was kept out by.


kind: string

Defined in: sdk/src/worldgen/zones.ts:23

What the zone is for (home, road, landing, building, resource, view): a game’s own words.


priority: number

Defined in: sdk/src/worldgen/zones.ts:27


shape: ZoneShape

Defined in: sdk/src/worldgen/zones.ts:24