Terrain Layer
7 nodes
On this page 7
Make Terrain Layer
FunctionOne terrain layer of a world, as it is now.
Signature
TerrainLayerInfo -> Terrain Layer
index: Integer
name: Text
visible: Truth
locked: Truth
hasExactHeights: Truth
paintedCells: IntegerTerrainLayerInfo TerrainLayerInfo(
int index,
string name,
bool visible,
bool locked,
bool hasExactHeights,
int paintedCells)Parameters
| name | type | default | description |
|---|---|---|---|
| index | Integer | — | Where the layer is in the stack, from the bottom at 0. |
| name | Text | — | The layer's name. |
| visible | Truth | — | Whether the layer is shown and counts in the world's heights. |
| locked | Truth | — | Whether the layer refuses painting and shaping. |
| hasExactHeights | Truth | — | Whether some cells hold an exact height in metres rather than one of the world's levels. |
| paintedCells | Integer | — | How many cells of the layer are painted; the rest let the layers below show through. |
Returns
| result | Terrain 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
FunctionWhether 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
| name | type | default | description |
|---|---|---|---|
| Terrain Layer | Terrain Layer | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layer
- Package
- Fantasy Planet Painter
Index
FunctionWhere the layer is in the stack, from the bottom at 0.
Signature
Index(Terrain Layer: Terrain Layer) -> Integer
int Index(TerrainLayerInfo Terrain Layer)
Parameters
| name | type | default | description |
|---|---|---|---|
| Terrain Layer | Terrain Layer | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layer
- Package
- Fantasy Planet Painter
Locked
FunctionWhether the layer refuses painting and shaping.
Signature
Locked(Terrain Layer: Terrain Layer) -> Truth
bool Locked(TerrainLayerInfo Terrain Layer)
Parameters
| name | type | default | description |
|---|---|---|---|
| Terrain Layer | Terrain Layer | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layer
- Package
- Fantasy Planet Painter
Name
FunctionThe layer's name.
Signature
Name(Terrain Layer: Terrain Layer) -> Text
string Name(TerrainLayerInfo Terrain Layer)
Parameters
| name | type | default | description |
|---|---|---|---|
| Terrain Layer | Terrain Layer | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layer
- Package
- Fantasy Planet Painter
Painted Cells
FunctionHow 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
| name | type | default | description |
|---|---|---|---|
| Terrain Layer | Terrain Layer | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layer
- Package
- Fantasy Planet Painter
Visible
FunctionWhether the layer is shown and counts in the world's heights.
Signature
Visible(Terrain Layer: Terrain Layer) -> Truth
bool Visible(TerrainLayerInfo Terrain Layer)
Parameters
| name | type | default | description |
|---|---|---|---|
| Terrain Layer | Terrain Layer | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Layer
- Package
- Fantasy Planet Painter