C# Class RoadNamer.Managers.SavedOptionManager

Show file Open project: PropaneDragon/RoadNamer Class Usage Examples

Public Methods

Method Description
Instance ( ) : SavedOptionManager
LoadOptions ( ) : void

Load all options from the disk.

SaveOptions ( ) : void

Saves all options to the disk. Make sure you've updated the options first.

SetCheckBoxOptions ( RoadCheckBoxOption options ) : void

Sets all internal checkbox option values for saving.

SetDropdownOptions ( RoadDropdownOption options ) : void

Sets all internal slider option values for saving.

SetInstance ( SavedOptionManager optionManager ) : void

Change the instance used for the options.

SetSliderOptions ( RoadSliderOption options ) : void

Sets all internal slider option values for saving.

Method Details

Instance() public static method

public static Instance ( ) : SavedOptionManager
return SavedOptionManager

LoadOptions() public static method

Load all options from the disk.
public static LoadOptions ( ) : void
return void

SaveOptions() public static method

Saves all options to the disk. Make sure you've updated the options first.
public static SaveOptions ( ) : void
return void

SetCheckBoxOptions() public method

Sets all internal checkbox option values for saving.
public SetCheckBoxOptions ( RoadCheckBoxOption options ) : void
options RoadCheckBoxOption Checkbox options which are going to be saved to disk
return void

SetDropdownOptions() public method

Sets all internal slider option values for saving.
public SetDropdownOptions ( RoadDropdownOption options ) : void
options RoadDropdownOption Slider options which are going to be saved to disk
return void

SetInstance() public static method

Change the instance used for the options.
public static SetInstance ( SavedOptionManager optionManager ) : void
optionManager SavedOptionManager The SavedOptionManager to replace the existing manager with.
return void

SetSliderOptions() public method

Sets all internal slider option values for saving.
public SetSliderOptions ( RoadSliderOption options ) : void
options RoadSliderOption Slider options which are going to be saved to disk
return void