C# 클래스 RemoteTech.Settings

파일 보기 프로젝트 열기: RemoteTechnologiesGroup/RemoteTech 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FirstStart bool
SavedWindowPositions Rect>.Dictionary
SettingsLoaded bool

Private Properties

프로퍼티 타입 설명
SearchAndPreparePresets void

공개 메소드들

메소드 설명
AddGroundStation ( string name, double latitude, double longitude, double height, int body ) : System.Guid

Adds a new ground station to the list.

Load ( ) : Settings

Utilise KSP's GameDatabase to get a list of cfgs, included our Default_Settings.cfg, contained the 'RemoteTechSettings' node and process each cfg accordingly NOTE: Please do not use the static 'Default_Settings.cfg' file directly because we want third-party modders to apply ModuleManager patches of their tweaks, like no signal delay, to our default-settings cfg that will be used when a player starts a new game. (refer to our online manual for more details)

LoadPreset ( Settings previousSettings, string presetCfgUrl ) : Settings

Load a preset configuration into the RemoteTech settings object.

RemoveGroundStation ( System.Guid stationid ) : bool

Removes a ground station from the list by its unique stationid.

Save ( ) : void

Saves the current RTSettings object to the RemoteTech_Settings.cfg

비공개 메소드들

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

메소드 상세

AddGroundStation() 공개 메소드

Adds a new ground station to the list.
public AddGroundStation ( string name, double latitude, double longitude, double height, int body ) : System.Guid
name string Name of the ground station
latitude double Latitude position
longitude double Longitude position
height double Height above sea level
body int Reference body 1=Kerbin etc...
리턴 System.Guid

Load() 공개 정적인 메소드

Utilise KSP's GameDatabase to get a list of cfgs, included our Default_Settings.cfg, contained the 'RemoteTechSettings' node and process each cfg accordingly NOTE: Please do not use the static 'Default_Settings.cfg' file directly because we want third-party modders to apply ModuleManager patches of their tweaks, like no signal delay, to our default-settings cfg that will be used when a player starts a new game. (refer to our online manual for more details)
public static Load ( ) : Settings
리턴 Settings

LoadPreset() 공개 정적인 메소드

Load a preset configuration into the RemoteTech settings object.
public static LoadPreset ( Settings previousSettings, string presetCfgUrl ) : Settings
previousSettings Settings
presetCfgUrl string
리턴 Settings

RemoveGroundStation() 공개 메소드

Removes a ground station from the list by its unique stationid.
public RemoveGroundStation ( System.Guid stationid ) : bool
stationid System.Guid Unique ground station id
리턴 bool

Save() 공개 메소드

Saves the current RTSettings object to the RemoteTech_Settings.cfg
public Save ( ) : void
리턴 void

프로퍼티 상세

FirstStart 공개적으로 프로퍼티

True if its the first start of RemoteTech for this save, false otherwise.
public bool FirstStart
리턴 bool

SavedWindowPositions 공개적으로 프로퍼티

Temp Variable for all the Window Positions for each instance.
public Dictionary SavedWindowPositions
리턴 Rect>.Dictionary

SettingsLoaded 공개적으로 프로퍼티

Trigger to force a reloading of the settings if a selected save is running.
public bool SettingsLoaded
리턴 bool