Show / Hide Table of Contents

Class UserSettingsSerializer

Saves/loads our user settings to/from either our persistent data paths (local storage) or Steam cloud (remote storage). The data we save/load are: (SystemSettings and TimerSettings). Only saves/loads to/from local storage on the Android platform.

Inheritance
System.Object
UserSettingsSerializer
Namespace: AdrianMiasik.Components.Core.Settings
Assembly: Assembly-CSharp.dll
Syntax
public static class UserSettingsSerializer

Methods

| Improve this Doc View Source

DeleteSettingsFile(String)

Declaration
public static void DeleteSettingsFile(string fileName)
Parameters
Type Name Description
System.String fileName
| Improve this Doc View Source

LoadSettings<T>(String)

Declaration
public static T LoadSettings<T>(string fileName)

    where T : class
Parameters
Type Name Description
System.String fileName
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

SaveSettingsFile<T>(T, String)

Saves the provided file to both the Steam cloud (remote storage) and local storage. Only saves locally on Android platform.

Declaration
public static void SaveSettingsFile<T>(T type, string fileName)
Parameters
Type Name Description
T type
System.String fileName
Type Parameters
Name Description
T
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX