rename attribute and fix parsing

This commit is contained in:
nothingTVatYT
2024-01-28 23:28:35 +01:00
parent d28b0ab2a6
commit 2625144945
11 changed files with 42 additions and 40 deletions

View File

@@ -11,23 +11,23 @@ namespace FlaxEngine
/// <seealso cref="System.Attribute" />
[Serializable]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public sealed class ValueCategoryAttribute : Attribute
public sealed class NumberCategoryAttribute : Attribute
{
/// <summary>
/// The value category used for formatting.
/// </summary>
public FlaxEditor.Utilities.Utils.ValueCategory Category;
public Utils.ValueCategory Category;
private ValueCategoryAttribute()
private NumberCategoryAttribute()
{
Category = FlaxEditor.Utilities.Utils.ValueCategory.None;
Category = Utils.ValueCategory.None;
}
/// <summary>
/// Initializes a new instance of the <see cref="ValueCategoryAttribute"/> class.
/// Initializes a new instance of the <see cref="NumberCategoryAttribute"/> class.
/// </summary>
/// <param name="category">The value category.</param>
public ValueCategoryAttribute(FlaxEditor.Utilities.Utils.ValueCategory category)
public NumberCategoryAttribute(Utils.ValueCategory category)
{
Category = category;
}