C# Class SphereStudio.Project

Represents a Sphere Studio project.
Inheritance: IProject
Exibir arquivo Open project: Radnen/spherestudio Class Usage Examples

Public Methods

Method Description
Create ( string rootPath, string name ) : Project

Creates a new, empty Sphere Studio project.

FromSgm ( string fileName ) : Project

Creates a new Sphere Studio project from a Sphere 1.x game.sgm file.

GetAllBreakpoints ( ) : int[]>.IReadOnlyDictionary
GetBreakpoints ( string scriptPath ) : int[]
Open ( string fileName ) : Project

Loads an existing project.

Save ( ) : void

Saves any changes made to the project.

SetBreakpoints ( string scriptPath, int lineNumbers ) : void

Private Methods

Method Description
MakeFileName ( string name ) : string
Project ( string fileName ) : System

Method Details

Create() public static method

Creates a new, empty Sphere Studio project.
public static Create ( string rootPath, string name ) : Project
rootPath string Path of the directory where the project will reside. Must be empty.
name string The name of the project to create.
return Project

FromSgm() public static method

Creates a new Sphere Studio project from a Sphere 1.x game.sgm file.
public static FromSgm ( string fileName ) : Project
fileName string The fully qualified filename of the game.sgm to import.
return Project

GetAllBreakpoints() public method

public GetAllBreakpoints ( ) : int[]>.IReadOnlyDictionary
return int[]>.IReadOnlyDictionary

GetBreakpoints() public method

public GetBreakpoints ( string scriptPath ) : int[]
scriptPath string
return int[]

Open() public static method

Loads an existing project.
public static Open ( string fileName ) : Project
fileName string
return Project

Save() public method

Saves any changes made to the project.
public Save ( ) : void
return void

SetBreakpoints() public method

public SetBreakpoints ( string scriptPath, int lineNumbers ) : void
scriptPath string
lineNumbers int
return void