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();
-
Boolean
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();