Метод | Описание | |
---|---|---|
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 ( Script script ) : void | ||
script | Script | The script to add |
Результат | void |
public Add ( string filename ) : void | ||
filename | string | The path of the script |
Результат | void |
public AddRange ( IEnumerable scripts ) : void | ||
scripts | IEnumerable | An array of scripts |
Результат | void |
public AddRange ( IEnumerable |
||
filenames | IEnumerable |
The filenames of the scripts |
Результат | void |
public Insert ( Script script, int index ) : void | ||
script | Script | The script to insert |
index | int | The index where it will be inserted |
Результат | void |
public LoadScripts ( string directory ) : void | ||
directory | string | |
Результат | void |
public Remove ( Script script ) : void | ||
script | Script | The script to remove |
Результат | void |
public Remove ( int index ) : void | ||
index | int | The index of the script |
Результат | void |
public Save ( int index ) : bool | ||
index | int | The index of the script |
Результат | bool |
public ScriptManager ( string parentDirectory ) : System | ||
parentDirectory | string | The parent directory of the scripts |
Результат | System |
public WithPath ( string path ) : Script | ||
path | string | The path to script to be found |
Результат | Script |