Renamed all attributes and drawers to have postfix of either Attribute or AttributeDrawer
This commit is contained in:
parent
81bac32538
commit
dc15bfec81
161 changed files with 265 additions and 265 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue