Table of Contents

Class ConfigFileAttribute

Namespace
Nautilus.Json
Assembly
Nautilus.dll
Attribute used to specify the filename and subfolder for a ConfigFile.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class ConfigFileAttribute : Attribute, _Attribute
Inheritance
ConfigFileAttribute
Implements
Inherited Members
Extension Methods

Examples

using Nautilus.Json;

[ConfigFile("options", "configs")]
public class Config : ConfigFile
{
    public float MyFloatValue;
}

Remarks

When used alongside the ConfigFile(string, string) constructor, this attribute is ignored.

Constructors

ConfigFileAttribute(string)

Used to specify the filename for the ConfigFile.
public ConfigFileAttribute(string filename = "config")

Parameters

filename string
The filename to use for the ConfigFile.

Remarks

When used alongside the ConfigFile(string, string) constructor, this attribute is ignored.

Properties

Filename

The filename to use for the ConfigFile.
public string Filename { get; }

Property Value

string

Subfolder

The subfolder within the mod's folder for the ConfigFile.
public string Subfolder { get; set; }

Property Value

string