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

@ -0,0 +1,43 @@
using System;
namespace Module.Inspector
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class NamingAttribute : DrawerPropertyAttribute
{
public enum EPatternType : byte
{
/// <summary>
/// Camel casing: thisIsCamelCasing
/// </summary>
CamelCasing,
/// <summary>
/// Pascal casing: ThisIsPascalCasing
/// </summary>
PascalCasing,
/// <summary>
/// Snake casing: this_is_snake_casing
/// </summary>
SnakeCasing,
/// <summary>
/// Snake casing: THIS_IS_SNAKE_CASING_WITH_ALL_CAPS
/// </summary>
SnakeCasingAllCaps,
/// <summary>
/// Kebab casing: this-is-kebab-casing
/// </summary>
KebabCasing,
/// <summary>
/// Kebab casing: THIS_IS_KEBAB_CASING_WITH_ALL_CAPS
/// </summary>
KebabCasingAllCaps
}
public readonly EPatternType type;
public NamingAttribute(EPatternType type)
{
this.type = type;
}
}
}