Divooka Reference

Terrain Layers

8 nodes

On this page 8

Add Layer

Function

The world with a new, empty layer on top.

Signature
AddLayer(world: World, name: Text) -> World
World AddLayer(World world, string name = "Layer")

Parameters

nametypedefaultdescription
worldWorld—The world.
nameTextLayerThe layer's name.

Returns

WorldWorld
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Layers
Package
Fantasy Planet Painter

Layers

Function

The world's terrain layers, from the bottom.

Signature
Layers(world: World) -> Terrain Layer Array
TerrainLayerInfo[] Layers(World world)

Parameters

nametypedefaultdescription
worldWorld—The world.

Returns

LayersTerrain Layer Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Layers
Package
Fantasy Planet Painter

Lock Layer

Function

The world with one layer locked or unlocked. Painting and shaping leave a locked layer alone.

Signature
LockLayer(world: World, layer: Integer, locked: Truth) -> World
World LockLayer(World world, int layer, bool locked = true)

Parameters

nametypedefaultdescription
worldWorld—The world.
layerInteger—Which layer, from the bottom at 0.
lockedTruthTrueWhether the layer is locked.

Returns

WorldWorld
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Layers
Package
Fantasy Planet Painter

Move Layer

Function

The world with one layer moved to another place in the stack.

Signature
MoveLayer -> World
    world: World
    layer: Integer
    position: Integer
World MoveLayer(World world, int layer, int position)

Parameters

nametypedefaultdescription
worldWorld—The world.
layerInteger—Which layer, from the bottom at 0.
positionInteger—Where it goes, from the bottom at 0.

Returns

WorldWorld
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Layers
Package
Fantasy Planet Painter

Remove Layer

Function

The world without one of its layers. The last layer cannot be removed.

Signature
RemoveLayer(world: World, layer: Integer) -> World
World RemoveLayer(World world, int layer)

Parameters

nametypedefaultdescription
worldWorld—The world.
layerInteger—Which layer, from the bottom at 0.

Returns

WorldWorld
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Layers
Package
Fantasy Planet Painter

Rename Layer

Function

The world with one layer renamed.

Signature
RenameLayer(world: World, layer: Integer, name: Text) -> World
World RenameLayer(World world, int layer, string name)

Parameters

nametypedefaultdescription
worldWorld—The world.
layerInteger—Which layer, from the bottom at 0.
nameText—The new name.

Returns

WorldWorld
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Layers
Package
Fantasy Planet Painter

Resize Grid

Function

The world on a grid of another size: every layer resampled to it, or cut and padded.

Signature
ResizeGrid -> World
    world: World
    width: Integer
    height: Integer
    resample: Truth
World ResizeGrid(
    World world,
    int width,
    int height,
    bool resample = true)

Parameters

nametypedefaultdescription
worldWorld—The world.
widthInteger—Cells around the equator, 1 to 2,048.
heightInteger—Cells from pole to pole, 1 to 2,048.
resampleTruthTrueResample the terrain to the new grid; off, it is cut or padded with empty cells.

Returns

WorldWorld
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Layers
Package
Fantasy Planet Painter

Show Layer

Function

The world with one layer shown or hidden. A hidden layer is kept but adds nothing to the terrain.

Signature
ShowLayer(world: World, layer: Integer, visible: Truth) -> World
World ShowLayer(World world, int layer, bool visible = true)

Parameters

nametypedefaultdescription
worldWorld—The world.
layerInteger—Which layer, from the bottom at 0.
visibleTruthTrueWhether the layer is shown.

Returns

WorldWorld
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Layers
Package
Fantasy Planet Painter