summaryrefslogtreecommitdiff
path: root/src/SMAPI.Internal/ConsoleWriting/ColorSchemeConfig.cs
blob: 4e5850ea43f235fb9e1251ab7e6940129531cb1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;

namespace StardewModdingAPI.Internal.ConsoleWriting
{
    /// <summary>The console color scheme options.</summary>
    internal class ColorSchemeConfig
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The default color scheme ID to use, or <see cref="MonitorColorScheme.AutoDetect"/> to select one automatically.</summary>
        public MonitorColorScheme UseScheme { get; }

        /// <summary>The available console color schemes.</summary>
        public IDictionary<MonitorColorScheme, IDictionary<ConsoleLogLevel, ConsoleColor>> Schemes { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="useScheme">The default color scheme ID to use, or <see cref="MonitorColorScheme.AutoDetect"/> to select one automatically.</param>
        /// <param name="schemes">The available console color schemes.</param>
        public ColorSchemeConfig(MonitorColorScheme useScheme, IDictionary<MonitorColorScheme, IDictionary<ConsoleLogLevel, ConsoleColor>> schemes)
        {
            this.UseScheme = useScheme;
            this.Schemes = schemes;
        }
    }
}