Editor

From Crumbled World Wiki

EditorExampleCode

Static functions

return function description
save(string fileName) Save the current map if in EDITOR.

If no file has been chosen a window will open where file can be specified.

export(string fileName) Export the current map if in EDITOR.

If no file has been chosen a window will open where file can be specified.

load(string fileName) Will open a window where a map can be selected to open.
PlayerNode createNewMap() Create the new player node and populate the world with back end nodes.
setMainAreaPanel(Panel mainPanel) Set which panel represent the main work area.
File getSaveFolder() Return directory where map can be saved.
pauseEditor() Pause the map editor.