跳转到内容

VoxelPlugin

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

Defined in: sdk/src/voxel/voxelPlugin.ts:314

Makes and keeps every VoxelTerrain.

new VoxelPlugin(): VoxelPlugin

VoxelPlugin

readonly activeWhen: ComponentDef<VoxelTerrainData>[]

Defined in: sdk/src/voxel/voxelPlugin.ts:316

The components this plugin’s work is about: while no entity has any of them, its systems are not run — a game that never places water pays nothing for the water plugin each frame. They keep running for one frame after the last one goes, so a plugin can release what it held. Absent: always run.

Plugin.activeWhen


name: string = 'voxel'

Defined in: sdk/src/voxel/voxelPlugin.ts:315

Plugin.name

build(app): void

Defined in: sdk/src/voxel/voxelPlugin.ts:319

App

void

Plugin.build


cleanup(app?): void

Defined in: sdk/src/voxel/voxelPlugin.ts:349

Releases acquired resources on quit or a failed build; must tolerate a partially completed build.

App

void

Plugin.cleanup