Class Project

class Project

This class represents an InstantTerra project.

InstantTerra instantTerra = new InstantTerra();  // Start the instance
Project project = instantTerra.GetProject();  // Get the current project

enum ExportStatus

This enum represents a status of an export.

  • Success
  • MissingOutputPath
  • BadFileName
  • BadExtension
  • NotComputed
  • UnknownFail
  • InvalidNode
  • NotAnExportNode

void NewProject ()

Create a new project.

Warning

If the current project has not been saved, it will be lost!

project.NewProject();

void SaveProject (string filename)

Param filename

Path of the project to save.

Save the current project with the specified filename.

project.SaveProject("my_project.terrain");

void OpenProject (string filename)

Param filename

Path of the project to save.

Open a project with the specified filename.

Warning

If the current project has not been saved, it will be lost!

project.OpenProject("my_project.terrain");

void CloseProject ()

Close the current project.

Warning

If the current project has not been saved, it will be lost!

project.CloseProject();

bool IsProjectAvailable ()

Returns

True if the project exists, otherwise False.

Returns the status of the current project.

project.IsProjectAvailable();

ExportStatus ExportAll ()

Returns

The status of the export.

Export all nodes of the project.

project.ExportAll();

ExportStatus ExportNode (Node node)

Returns

The status of the export.

Export one node. The node must be an export node.

project.ExportNode(nodeToExport);

Graph GetGraph ()

Access the project graph.

project.GetGraph();

Copyright © 2022 · All Rights Reserved · Wysilab