World Editor
15 nodes
On this page 15
Make World Editor
FunctionAn editor over a copy of a world: the world given is left as it was.
Signature
WorldEditor(world: World) -> World Editor
WorldEditor WorldEditor(World world)
Parameters
| name | type | default | description |
|---|---|---|---|
| world | World | — | The world to start from. |
Returns
| result | World Editor |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Add Place
FunctionAdds a place, as one step.
Signature
AddPlace
World Editor: World Editor
name: Text
latitude: Number
longitude: Numbervoid AddPlace(
WorldEditor World Editor,
string name,
double latitude,
double longitude)Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — | |
| name | Text | — | The place's name. |
| latitude | Number | — | Degrees north. |
| longitude | Number | — | Degrees east. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Erase
FunctionErases along a path, as one step.
Signature
Erase
World Editor: World Editor
latitudes: Number Array
longitudes: Number Array
size: Integer
layer: Integervoid Erase(
WorldEditor World Editor,
double[] latitudes,
double[] longitudes,
int size = 15,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — | |
| latitudes | Number Array | — | The path's latitudes, in degrees north. |
| longitudes | Number Array | — | The path's longitudes, in degrees east. |
| size | Integer | 15 | The eraser's diameter, in cells. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Can Redo
FunctionWhether there is an undone step to redo.
Signature
CanRedo(World Editor: World Editor) -> Truth
bool CanRedo(WorldEditor World Editor)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Can Undo
FunctionWhether there is a step to undo.
Signature
CanUndo(World Editor: World Editor) -> Truth
bool CanUndo(WorldEditor World Editor)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
History
FunctionThe steps that can be undone, oldest first.
Signature
History(World Editor: World Editor) -> Text Array
string[] History(WorldEditor World Editor)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
World
FunctionThe world as it stands now, as a value of its own: later changes here leave it as it was.
Signature
World(World Editor: World Editor) -> World
World World(WorldEditor World Editor)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — |
Returns
| result | World |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Paint
FunctionPaints one stroke of the brush along a path, as one step.
Signature
Paint
World Editor: World Editor
latitudes: Number Array
longitudes: Number Array
height: Number
size: Integer
tool: Brush Tool
falloff: Brush Falloff
layer: Integervoid Paint(
WorldEditor World Editor,
double[] latitudes,
double[] longitudes,
double height = 1500,
int size = 9,
BrushTool tool = BrushTool.SoftBrush,
BrushFalloff falloff = BrushFalloff.SmoothStep,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — | |
| latitudes | Number Array | — | The path's latitudes, in degrees north; one point paints one dab. |
| longitudes | Number Array | — | The path's longitudes, in degrees east. |
| height | Number | 1500 | The height to paint, in metres on the datum. |
| size | Integer | 9 | The brush's diameter, in cells. |
| tool | Brush Tool | Soft brush | The brush's shape. |
| falloff | Brush Falloff | Smooth step | How a soft or blending brush fades to its edge. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Raise
FunctionRaises or lowers one layer's painted land, as one step.
Signature
Raise
World Editor: World Editor
metres: Number
selection: Height Selection
layer: Integervoid Raise(
WorldEditor World Editor,
double metres,
HeightSelection selection = HeightSelection.Land,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — | |
| metres | Number | — | How far to raise, negative to lower. |
| selection | Height Selection | Land | Which cells: land, water or both. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Redo
FunctionPuts back the latest step taken back.
Signature
Redo(World Editor: World Editor)
void Redo(WorldEditor World Editor)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Save
FunctionSaves the world as it stands as an .fpp2 file.
Signature
Save(World Editor: World Editor, path: Text)
void Save(WorldEditor World Editor, string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — | |
| path | Text | — | Where to save it, ending in .fpp2. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Set Sea Level
FunctionMoves the sea, as one step.
Signature
SetSeaLevel(World Editor: World Editor, seaLevel: Number)
void SetSeaLevel(WorldEditor World Editor, double seaLevel)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — | |
| seaLevel | Number | — | The sea's height, in metres on the datum. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Smooth
FunctionSmooths one layer's painted cells toward their neighbours, as one step.
Signature
Smooth
World Editor: World Editor
amount: Number
selection: Height Selection
layer: Integervoid Smooth(
WorldEditor World Editor,
double amount = 0.5,
HeightSelection selection = HeightSelection.All,
int layer = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — | |
| amount | Number | 0.5 | How far toward the neighbours' mean, 0 to 1. |
| selection | Height Selection | All | Which cells: land, water or both. |
| layer | Integer | 0 | Which layer, from the bottom at 0. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
To String
FunctionThis node carries no documentation.
Signature
ToString(World Editor: World Editor) -> Text
string ToString(WorldEditor World Editor)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter
Undo
FunctionTakes back the latest step.
Signature
Undo(World Editor: World Editor)
void Undo(WorldEditor World Editor)
Parameters
| name | type | default | description |
|---|---|---|---|
| World Editor | World Editor | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- World Editor
- Package
- Fantasy Planet Painter