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