Files
HSUI/Config/Attributes/SectionAttributes.cs

31 lines
761 B
C#

using System;
namespace HSUI.Config.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class SectionAttribute : Attribute
{
public string SectionName;
public bool ForceAllowExport;
public SectionAttribute(string name, bool forceAllowExport = false)
{
SectionName = name;
ForceAllowExport = forceAllowExport;
}
}
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class SubSectionAttribute : Attribute
{
public string SubSectionName;
public int Depth;
public SubSectionAttribute(string subSectionName, int depth)
{
SubSectionName = subSectionName;
Depth = depth;
}
}
}