C# 클래스 XCOM2Launcher.XCOM.XcomEnvironment

파일 보기 프로젝트 열기: coralfox/xcom2-launcher-CN

공개 메소드들

메소드 설명
DetectGameDir ( ) : string

Tries to find the directory of the game and the mod folders, both workshop and default

DetectModDirs ( ) : IEnumerable

Reads the mod directories from the XComEngine.ini file.

GetActiveMods ( ) : string[]

Returns all mods, that are currently listed as "ActiveMods" in the XComModOptions.ini and the DefaultModOptions.ini files.

RunGame ( string gameDir, string args ) : void

Runs the game with the selected arguments

SaveChanges ( Settings settings, bool disableMods ) : void

Updates the XComModOptions.ini and XComEngine.ini according to currently enabled mods and configured mod directories.

보호된 메소드들

메소드 설명
GetConfigFile ( string file, bool load = true ) : XCOM2Launcher.XCOM.DefaultConfigFile
XcomEnvironment ( GameId game ) : System

비공개 메소드들

메소드 설명
ImportActiveMods ( Settings settings ) : void

메소드 상세

DetectGameDir() 공개 메소드

Tries to find the directory of the game and the mod folders, both workshop and default
public DetectGameDir ( ) : string
리턴 string

DetectModDirs() 공개 메소드

Reads the mod directories from the XComEngine.ini file.
public DetectModDirs ( ) : IEnumerable
리턴 IEnumerable

GetActiveMods() 공개 메소드

Returns all mods, that are currently listed as "ActiveMods" in the XComModOptions.ini and the DefaultModOptions.ini files.
public GetActiveMods ( ) : string[]
리턴 string[]

GetConfigFile() 보호된 추상적인 메소드

protected abstract GetConfigFile ( string file, bool load = true ) : XCOM2Launcher.XCOM.DefaultConfigFile
file string
load bool
리턴 XCOM2Launcher.XCOM.DefaultConfigFile

RunGame() 공개 추상적인 메소드

Runs the game with the selected arguments
public abstract RunGame ( string gameDir, string args ) : void
gameDir string
args string
리턴 void

SaveChanges() 공개 메소드

Updates the XComModOptions.ini and XComEngine.ini according to currently enabled mods and configured mod directories.
public SaveChanges ( Settings settings, bool disableMods ) : void
settings Settings
disableMods bool
리턴 void

XcomEnvironment() 보호된 메소드

protected XcomEnvironment ( GameId game ) : System
game GameId
리턴 System