C# Класс ARCed.Scripting.Script

Represents a script file
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DummyScript Script

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Exists() публичный Метод

Checks if the script has a associated file
public Exists ( ) : bool
Результат bool

GetFullPath() публичный Метод

Uses the index and title of the script to create a unique filename
public GetFullPath ( ) : string
Результат string

Load() публичный Метод

Loads a script file from the given path
public Load ( string filename ) : bool
filename string The path to the script
Результат bool

Reload() публичный Метод

Reloads the script from file
public Reload ( ) : void
Результат void

Save() публичный Метод

Saves the script to disk using generated filename
public Save ( ) : bool
Результат bool

Script() публичный Метод

Default constructor
public Script ( ) : System
Результат System

Script() публичный Метод

Parametered constructor to load a script after construction
public Script ( string filename ) : System
filename string The filename of the script to load
Результат System

Описание свойств

DummyScript публичное статическое свойство

Gets an empty script object.
public static Script DummyScript
Результат Script