BadScript 2
Loading...
Searching...
No Matches
BadLogWriterSettings.cs
Go to the documentation of this file.
2
4
8public class BadLogWriterSettings : BadSettingsProvider<BadLogWriterSettings>
9{
12
13 public BadLogWriterSettings() : base("Logging.Writer") { }
14
16 {
17 get => BadLogMask.GetMask(m_Mask.GetValue()!.Select(x => (BadLogMask)x).ToArray());
18 set => m_Mask.Set(value.GetNames());
19 }
20}
Implements a Mask for Log Messages.
Definition BadLogMask.cs:7
static BadLogMask GetMask(params BadLogMask[] masks)
Returns a combined mask of all masks provided.
string[] GetNames()
Returns a list of masks that are contained in this mask.
static readonly BadLogMask All
Static Helper for the "All" Mask.
Definition BadLogMask.cs:29
readonly BadEditableSetting< BadLogWriterSettings, string[]> m_Mask
Implements an Editable Setting.
Helper class that can be used to automatically load a settings object from a file.
Contains Writer Implementations for the BadScript Logging System.
Contains the Settings Implementation.