Table of Contents

Class SingletonConfigSection<TConfigSection>

Namespace
MonkeyLoader.Configuration
Assembly
MonkeyLoader.dll

Represents a section of a Config for any IConfigOwner, of which there can only ever be once instance.
This is primarily useful for public config sections which others mods should be able to access.

public abstract class SingletonConfigSection<TConfigSection> : ConfigSection, INestedIdentifiable<Config>, INestedIdentifiable, IIdentifiableOwner<ConfigSection, IDefiningConfigKey>, IIdentifiableOwner<IDefiningConfigKey>, IIdentifiable, IPrioritizable where TConfigSection : SingletonConfigSection<TConfigSection>

Type Parameters

TConfigSection

The type of the actual config section.

Inheritance
SingletonConfigSection<TConfigSection>
Implements
Inherited Members
Extension Methods

Remarks

Use your mod's Config instance to load sections.

Constructors

SingletonConfigSection()

Creates an instance of this config section once.

public SingletonConfigSection()

Exceptions

InvalidOperationException

When TConfigSection isn't the concrete type, or there is already an Instance of this config section.

Properties

Instance

Gets this singleton ConfigSection's instance.

public static TConfigSection Instance { get; }

Property Value

TConfigSection