Method | Description | |
---|---|---|
Add ( Script script ) : void |
Adds a script into the manager
|
|
Add ( string filename ) : void |
Adds a script into the manager Only files with an ".rb" extension will be added |
|
AddRange ( IEnumerable scripts ) : void |
Creates and adds multiple scripts into the manager
|
|
AddRange ( IEnumerable |
Creates and adds multiple scripts into the manager Only files with an ".rb" extension will be added |
|
Insert ( Script script, int index ) : void |
Inserts a script at the given index
|
|
LoadScripts ( ) : void |
Loads scripts from the default directory
|
|
LoadScripts ( string directory ) : void |
Loads scripts from the given directory
|
|
RefreshScriptIndices ( ) : void |
Refreshes the indices of all loaded scripts to match their current position in the list
|
|
Remove ( Script script ) : void |
Removes the script from the manager
|
|
Remove ( int index ) : void |
Removes the script at the given index
|
|
Save ( int index ) : bool |
Saves the script at the given index
|
|
SaveAll ( ) : void |
Applies changes and saves all scripts to disk
|
|
ScriptManager ( string parentDirectory ) : System |
Returns a new instance of the ScriptManager
|
|
WithPath ( string path ) : Script |
Finds a and returns the script with the given filename.
|
public Add ( string filename ) : void | ||
filename | string | The path of the script |
return | void |
public AddRange ( IEnumerable scripts ) : void | ||
scripts | IEnumerable | An array of scripts |
return | void |
public AddRange ( IEnumerable |
||
filenames | IEnumerable |
The filenames of the scripts |
return | void |
public Insert ( Script script, int index ) : void | ||
script | Script | The script to insert |
index | int | The index where it will be inserted |
return | void |
public LoadScripts ( string directory ) : void | ||
directory | string | |
return | void |
public Remove ( Script script ) : void | ||
script | Script | The script to remove |
return | void |
public Remove ( int index ) : void | ||
index | int | The index of the script |
return | void |
public ScriptManager ( string parentDirectory ) : System | ||
parentDirectory | string | The parent directory of the scripts |
return | System |
public WithPath ( string path ) : Script | ||
path | string | The path to script to be found |
return | Script |