Divooka Reference

Terrain Layer

7 nodes

On this page 7

Make Terrain Layer

Function

One terrain layer of a world, as it is now.

Signature
TerrainLayerInfo -> Terrain Layer
    index: Integer
    name: Text
    visible: Truth
    locked: Truth
    hasExactHeights: Truth
    paintedCells: Integer
TerrainLayerInfo TerrainLayerInfo(
    int index,
    string name,
    bool visible,
    bool locked,
    bool hasExactHeights,
    int paintedCells)

Parameters

nametypedefaultdescription
indexInteger—Where the layer is in the stack, from the bottom at 0.
nameText—The layer's name.
visibleTruth—Whether the layer is shown and counts in the world's heights.
lockedTruth—Whether the layer refuses painting and shaping.
hasExactHeightsTruth—Whether some cells hold an exact height in metres rather than one of the world's levels.
paintedCellsInteger—How many cells of the layer are painted; the rest let the layers below show through.

Returns

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

Has Exact Heights

Function

Whether some cells hold an exact height in metres rather than one of the world's levels.

Signature
HasExactHeights(Terrain Layer: Terrain Layer) -> Truth
bool HasExactHeights(TerrainLayerInfo Terrain Layer)

Parameters

nametypedefaultdescription
Terrain LayerTerrain Layer—

Returns

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

Index

Function

Where the layer is in the stack, from the bottom at 0.

Signature
Index(Terrain Layer: Terrain Layer) -> Integer
int Index(TerrainLayerInfo Terrain Layer)

Parameters

nametypedefaultdescription
Terrain LayerTerrain Layer—

Returns

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

Locked

Function

Whether the layer refuses painting and shaping.

Signature
Locked(Terrain Layer: Terrain Layer) -> Truth
bool Locked(TerrainLayerInfo Terrain Layer)

Parameters

nametypedefaultdescription
Terrain LayerTerrain Layer—

Returns

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

Name

Function

The layer's name.

Signature
Name(Terrain Layer: Terrain Layer) -> Text
string Name(TerrainLayerInfo Terrain Layer)

Parameters

nametypedefaultdescription
Terrain LayerTerrain Layer—

Returns

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

Painted Cells

Function

How many cells of the layer are painted; the rest let the layers below show through.

Signature
PaintedCells(Terrain Layer: Terrain Layer) -> Integer
int PaintedCells(TerrainLayerInfo Terrain Layer)

Parameters

nametypedefaultdescription
Terrain LayerTerrain Layer—

Returns

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

Visible

Function

Whether the layer is shown and counts in the world's heights.

Signature
Visible(Terrain Layer: Terrain Layer) -> Truth
bool Visible(TerrainLayerInfo Terrain Layer)

Parameters

nametypedefaultdescription
Terrain LayerTerrain Layer—

Returns

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