Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/System/ConfigFileAttribute.cs
rex hill e7280c5e0b Allow build targets to use config file attributes
#rb ben.marsh
#jira


#ROBOMERGE-SOURCE: CL 11576703 via CL 11576704 via CL 11576706
#ROBOMERGE-BOT: (v654-11333218)

[CL 11576708 by rex hill in Main branch]
2020-02-21 12:36:44 -05:00

46 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnrealBuildTool
{
/// <summary>
/// Attribute indicating a value which should be populated from a UE4 .ini config file
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public class ConfigFileAttribute : Attribute
{
/// <summary>
/// Name of the config hierarchy to read from
/// </summary>
public ConfigHierarchyType ConfigType;
/// <summary>
/// Section containing the setting
/// </summary>
public string SectionName;
/// <summary>
/// Key name to search for
/// </summary>
public string KeyName;
/// <summary>
/// Constructor
/// </summary>
/// <param name="ConfigType">Type of the config hierarchy to read from</param>
/// <param name="SectionName">Section containing the setting</param>
/// <param name="KeyName">Key name to search for. Optional; uses the name of the field if not set.</param>
public ConfigFileAttribute(ConfigHierarchyType ConfigType, string SectionName, string KeyName = null)
{
this.ConfigType = ConfigType;
this.SectionName = SectionName;
this.KeyName = KeyName;
}
}
}