Table of Contents

Interface IPluginSetting

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a setting tied to a plugin

public interface IPluginSetting

Fields

SerializerOptions

The JSON serializer options used when serializing settings

protected static readonly JsonSerializerOptions SerializerOptions

Field Value

JsonSerializerOptions

Properties

AutoSave

Gets or sets whether changes must automatically be saved

bool AutoSave { get; set; }

Property Value

bool

Name

The name of the setting, unique to this plugin

string Name { get; }

Property Value

string

Methods

RejectChanges()

Resets the setting to the last saved value

void RejectChanges()

Save()

Saves the setting

void Save()

Events

SettingChanged

Occurs when the value of the setting has been changed

event EventHandler? SettingChanged

Event Type

EventHandler

SettingSaved

Occurs when the value of the setting has been saved

event EventHandler? SettingSaved

Event Type

EventHandler