C# Класс RemoteTech.Settings

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

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

Свойство Тип Описание
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