VoxelPlugin
Defined in: sdk/src/voxel/voxelPlugin.ts:314
Makes and keeps every VoxelTerrain.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VoxelPlugin():
VoxelPlugin
Returns
Section titled “Returns”VoxelPlugin
Properties
Section titled “Properties”activeWhen
Section titled “activeWhen”
readonlyactiveWhen: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.
Implementation of
Section titled “Implementation of”name:
string='voxel'
Defined in: sdk/src/voxel/voxelPlugin.ts:315
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”build()
Section titled “build()”build(
app):void
Defined in: sdk/src/voxel/voxelPlugin.ts:319
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”cleanup()
Section titled “cleanup()”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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void