Show / Hide Table of Contents

Class Configuration

Provides an easy way to store configuration for mods. Each mod gets an XDataHolder to store its data. The Configuration class handles saving and loading the data.

Inheritance
Object
Configuration
Namespace: Modding
Assembly: Assembly-CSharp.dll
Syntax
public class Configuration

Constructors

Configuration()

Declaration
public Configuration()

Methods

GetData()

Gets the XDataHolder instance for the calling mod's configuration. If one does not exist for the mod yet, one is created.

Declaration
public static XDataHolder GetData()
Returns
Type Description
XDataHolder

Save()

Manually trigger saving your mod's configuration. Configuration is automatically saved on application exit, you can use this to force saving to file whenever you want.

Declaration
public static void Save()
Back to top Generated by DocFX