Show / Hide Table of Contents

Class PluginConfig<T>

Inheritance
System.Object
PluginConfig<T>
Implements
IPluginConfig
Namespace: Eco.Core.Plugins
Assembly: Eco.Core.dll
Syntax
public class PluginConfig<T> : Object, IPluginConfig where T : new()
Type Parameters
Name Description
T

Constructors

PluginConfig(T)

Declaration
public PluginConfig(T config)
Parameters
Type Name Description
T config

PluginConfig(String, Boolean, Boolean)

Declaration
public PluginConfig(string name, bool preserveReferences = false, bool buildConfigProperties = true)
Parameters
Type Name Description
System.String name
System.Boolean preserveReferences
System.Boolean buildConfigProperties

Properties

Config

Declaration
public T Config { get; }
Property Value
Type Description
T

ConfigJson

Declaration
public string ConfigJson { get; set; }
Property Value
Type Description
System.String

ConfigProperties

Declaration
public Dictionary<string, IPluginConfigProperty> ConfigProperties { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, IPluginConfigProperty>

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

BuildConfigProperties()

Declaration
public void BuildConfigProperties()

GetConfig()

Declaration
public object GetConfig()
Returns
Type Description
System.Object

LoadAsync(String)

Declaration
public Task LoadAsync(string filename)
Parameters
Type Name Description
System.String filename
Returns
Type Description
System.Threading.Tasks.Task

ResetAsync()

Resets config to default.

Declaration
public Task ResetAsync()
Returns
Type Description
System.Threading.Tasks.Task

SaveAsAsync(String)

Saves config file asynchronously to specific filename. Safe for Wait() from UI thread.

Declaration
public Task SaveAsAsync(string filename)
Parameters
Type Name Description
System.String filename
Returns
Type Description
System.Threading.Tasks.Task

SaveAsync()

Saves config file asynchronously. Safe for Wait() from UI thread.

Declaration
public Task SaveAsync()
Returns
Type Description
System.Threading.Tasks.Task

SaveTemplateAsync()

Declaration
public Task SaveTemplateAsync()
Returns
Type Description
System.Threading.Tasks.Task

Implements

IPluginConfig

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾