跳到主要内容

Class SettingsModuleBase

An abstract settings module with basic functionality. Derive from this class to implement custom settings module.

Events

onSettingsSaved

Called when settings saved.

public event Action onSettingsSaved;

Properties

settings

Current settings.

public T settings { get; private set; }

path

Path of settings file.

public string path { get; }

fileName

Name of settings file (Contains extension).

public virtual string fileName { get; }

saveDirectory

Directory of settings file.

public abstract string saveDirectory { get; }

saving

protected bool saving { get; private set; }

Methods

Save()

Save current settings to disk.

public Task Save()

Initialize()

protected override Task Initialize()