Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer

This commit is contained in:
Anders Ejlersen 2021-12-04 12:47:44 +01:00
parent 81bac32538
commit dc15bfec81
161 changed files with 265 additions and 265 deletions

View file

@ -3,11 +3,11 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class ArrayIndex : ValueModifierPropertyAttribute
public sealed class ArrayIndexAttribute : ValueModifierPropertyAttribute
{
public readonly string fieldName;
public ArrayIndex(string fieldName)
public ArrayIndexAttribute(string fieldName)
{
this.fieldName = fieldName;
}

View file

@ -3,11 +3,11 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class LargerThanField : ValueModifierPropertyAttribute
public sealed class LargerThanFieldAttribute : ValueModifierPropertyAttribute
{
public readonly string fieldName;
public LargerThanField(string fieldName)
public LargerThanFieldAttribute(string fieldName)
{
this.fieldName = fieldName;
}

View file

@ -4,18 +4,18 @@ using UnityEngine;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class MaxValue : ValueModifierPropertyAttribute
public sealed class MaxValueAttribute : ValueModifierPropertyAttribute
{
public readonly int intValue;
public readonly float floatValue;
public MaxValue(int value)
public MaxValueAttribute(int value)
{
intValue = value;
floatValue = value;
}
public MaxValue(float value)
public MaxValueAttribute(float value)
{
intValue = Mathf.RoundToInt(value);
floatValue = value;

View file

@ -4,18 +4,18 @@ using UnityEngine;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class MinValue : ValueModifierPropertyAttribute
public sealed class MinValueAttribute : ValueModifierPropertyAttribute
{
public readonly int intValue;
public readonly float floatValue;
public MinValue(int value)
public MinValueAttribute(int value)
{
intValue = value;
floatValue = value;
}
public MinValue(float value)
public MinValueAttribute(float value)
{
intValue = Mathf.RoundToInt(value);
floatValue = value;

View file

@ -3,11 +3,11 @@
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class SmallerThanField : ValueModifierPropertyAttribute
public sealed class SmallerThanFieldAttribute : ValueModifierPropertyAttribute
{
public readonly string fieldName;
public SmallerThanField(string fieldName)
public SmallerThanFieldAttribute(string fieldName)
{
this.fieldName = fieldName;
}