C# Class RemoteTech.Settings

Afficher le fichier Open project: RemoteTechnologiesGroup/RemoteTech Class Usage Examples

Méthodes publiques

Свойство Type Description
FirstStart bool
SavedWindowPositions Rect>.Dictionary
SettingsLoaded bool

Private Properties

Свойство Type Description
SearchAndPreparePresets void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
SearchAndPreparePresets ( Settings settings ) : void

Method Details

AddGroundStation() public méthode

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...
Résultat System.Guid

Load() public static méthode

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
Résultat Settings

LoadPreset() public static méthode

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

RemoveGroundStation() public méthode

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

Save() public méthode

Saves the current RTSettings object to the RemoteTech_Settings.cfg
public Save ( ) : void
Résultat void

Property Details

FirstStart public_oe property

True if its the first start of RemoteTech for this save, false otherwise.
public bool FirstStart
Résultat bool

SavedWindowPositions public_oe property

Temp Variable for all the Window Positions for each instance.
public Dictionary SavedWindowPositions
Résultat Rect>.Dictionary

SettingsLoaded public_oe property

Trigger to force a reloading of the settings if a selected save is running.
public bool SettingsLoaded
Résultat bool