C# 클래스 Aura.Shared.Scripting.ScriptManager

파일 보기 프로젝트 열기: aura-project/aura

보호된 프로퍼티들

프로퍼티 타입 설명
_compilers Compiler>.Dictionary
_scripts Type>.Dictionary
_scriptsToDispose List

공개 메소드들

메소드 설명
GetScriptType ( string typeName ) : Type

Returns the type of the script with the given name.

LoadScripts ( string scriptListFile ) : void

Loads scripts from list file.

ScriptManager ( ) : Aura.Data

Creates new script manager.

보호된 메소드들

메소드 설명
DisposeScripts ( ) : void

Disposes all disposable scripts and clears internal script list.

GetAssembly ( string path ) : Assembly

Loads assembly for script, compiles it if necessary. Returns null if there was a problem.

GetCachePath ( string path ) : string

Returns path for the compiled version of the script. Creates directory structure if it doesn't exist.

GetJITtedTypes ( Assembly asm, string filePath ) : IEnumerable

TODO: We might want to stop loading if this is a problem, scripts might depend on each other, which could lead to more errors.

ReadScriptList ( string scriptListFile ) : List

Returns list of script files loaded from scripts.txt.

비공개 메소드들

메소드 설명
InitializeScripts ( ) : void

Initializes all scripts loaded from assemblies.

LoadScript ( string scriptPath ) : bool

Loads script from given path.

LoadScriptAssembly ( Assembly asm, string filePath ) : void

Reads script classes from assembly and adds them to internal script list.

LoadScripts ( ICollection scriptFileList ) : int

Loads scripts from collection.

메소드 상세

DisposeScripts() 보호된 메소드

Disposes all disposable scripts and clears internal script list.
protected DisposeScripts ( ) : void
리턴 void

GetAssembly() 보호된 메소드

Loads assembly for script, compiles it if necessary. Returns null if there was a problem.
protected GetAssembly ( string path ) : Assembly
path string
리턴 System.Reflection.Assembly

GetCachePath() 보호된 메소드

Returns path for the compiled version of the script. Creates directory structure if it doesn't exist.
protected GetCachePath ( string path ) : string
path string
리턴 string

GetJITtedTypes() 보호된 정적인 메소드

TODO: We might want to stop loading if this is a problem, scripts might depend on each other, which could lead to more errors.
protected static GetJITtedTypes ( Assembly asm, string filePath ) : IEnumerable
asm System.Reflection.Assembly
filePath string
리턴 IEnumerable

GetScriptType() 공개 메소드

Returns the type of the script with the given name.
public GetScriptType ( string typeName ) : Type
typeName string
리턴 System.Type

LoadScripts() 공개 메소드

Loads scripts from list file.
public LoadScripts ( string scriptListFile ) : void
scriptListFile string Text file containing paths to script files.
리턴 void

ReadScriptList() 보호된 메소드

Returns list of script files loaded from scripts.txt.
protected ReadScriptList ( string scriptListFile ) : List
scriptListFile string
리턴 List

ScriptManager() 공개 메소드

Creates new script manager.
public ScriptManager ( ) : Aura.Data
리턴 Aura.Data

프로퍼티 상세

_compilers 보호되어 있는 프로퍼티

protected Dictionary _compilers
리턴 Compiler>.Dictionary

_scripts 보호되어 있는 프로퍼티

protected Dictionary _scripts
리턴 Type>.Dictionary

_scriptsToDispose 보호되어 있는 프로퍼티

protected List _scriptsToDispose
리턴 List