Aragas/Bannerlord.MBOptionScreen

View on GitHub
src/MCM.Implementation/FluentBuilder/Models/DefaultSettingsPropertyTextBuilder.cs

Summary

Maintainability
A
1 hr
Test Coverage
using MCM.Abstractions;
using MCM.Abstractions.FluentBuilder.Models;
using MCM.Abstractions.Wrapper;
using MCM.Common;

using System.Collections.Generic;

namespace MCM.Implementation.FluentBuilder.Models
{
#if !BANNERLORDMCM_INCLUDE_IN_CODE_COVERAGE
    [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage, global::System.Diagnostics.DebuggerNonUserCode]
#endif
    internal sealed class DefaultSettingsPropertyTextBuilder :
        BaseDefaultSettingsPropertyBuilder<ISettingsPropertyTextBuilder>,
        ISettingsPropertyTextBuilder,
        IPropertyDefinitionText
    {
        internal DefaultSettingsPropertyTextBuilder(string id, string name, IRef @ref)
            : base(id, name, @ref)
        {
            SettingsPropertyBuilder = this;
        }

        /// <inheritdoc/>
        public override IEnumerable<IPropertyDefinitionBase> GetDefinitions() => new IPropertyDefinitionBase[]
        {
            new PropertyDefinitionTextWrapper(this),
            new PropertyDefinitionWithIdWrapper(this),
        };
    }
}