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

void NewProject ()

Create a new project.

Warning

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

project.NewProject();

void SaveProject (string filename)

Param filename

Path of the project to saved.

Save the current project with the specified filename.

project.SaveProject("my_project.terrain");

void OpenProject (string filename)

Param filename

Path of the project to saved.

Open a project with the specified filename.

Warning

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

project.OpenProject("my_project.terrain");

void CloseProject ()

Close the current project.

Warning

If the current project was not 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 the nodes of the project

project.ExportAll();

Graph GetGraph ()

Access to the project graph.

project.GetGraph();

Copyright © 2020 · All Rights Reserved · Wysilab