C# Class ARCed.Scripting.Script

Represents a script file
Afficher le fichier Open project: borisblizzard/arcreator Class Usage Examples

Méthodes publiques

Свойство Type Description
DummyScript Script

Méthodes publiques

Méthode Description
Exists ( ) : bool

Checks if the script has a associated file

GetFullPath ( ) : string

Uses the index and title of the script to create a unique filename

Load ( string filename ) : bool

Loads a script file from the given path

Reload ( ) : void

Reloads the script from file

Save ( ) : bool

Saves the script to disk using generated filename

Script ( ) : System

Default constructor

Script ( string filename ) : System

Parametered constructor to load a script after construction

Private Methods

Méthode Description
SetIndex ( int index ) : void

Sets the index of the script

SetText ( string text ) : void

Sets the text of the script

SetTitle ( string title ) : void

Sets the title of the script

Method Details

Exists() public méthode

Checks if the script has a associated file
public Exists ( ) : bool
Résultat bool

GetFullPath() public méthode

Uses the index and title of the script to create a unique filename
public GetFullPath ( ) : string
Résultat string

Load() public méthode

Loads a script file from the given path
public Load ( string filename ) : bool
filename string The path to the script
Résultat bool

Reload() public méthode

Reloads the script from file
public Reload ( ) : void
Résultat void

Save() public méthode

Saves the script to disk using generated filename
public Save ( ) : bool
Résultat bool

Script() public méthode

Default constructor
public Script ( ) : System
Résultat System

Script() public méthode

Parametered constructor to load a script after construction
public Script ( string filename ) : System
filename string The filename of the script to load
Résultat System

Property Details

DummyScript public_oe static_oe property

Gets an empty script object.
public static Script DummyScript
Résultat Script