// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Extensions.EnumExtensions; namespace osu.Framework.Utils { /// /// Allows specifying ordering of members, separate from the actual enum values. /// Only has an effect on members of classes annotated with . /// /// /// Usually used for pretty-printing purposes. /// Methods from the static class can be used to leverage the order defined with these attributes. /// [AttributeUsage(AttributeTargets.Field)] public class OrderAttribute : Attribute { /// /// The sorting order of the annotated enum member. /// public readonly int Order; public OrderAttribute(int order) { Order = order; } } }