C# 클래스 ARCed.Scripting.Script

Represents a script file
파일 보기 프로젝트 열기: borisblizzard/arcreator 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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